new newtext[41]; format(newtext, sizeof(newtext), \"%d/%d\", GetPVarInt(playerid, \"Jatekos\"), GetMaxPlayers()); TextDrawSetString(Text:TextdrawName, newtext); TextDrawShowForPlayer(playerid, Text:TextdrawName);
public OnPlayerConnect(playerid) {SetPVarInt(playerid, \"Jatekos\", GetPVarInt(playerid, \"Jatekos\") +1); new newtext[41]; format(newtext, sizeof(newtext), \"%d/%d\", GetPVarInt(playerid, \"Jatekos\"), GetMaxPlayers()); TextDrawSetString(Text:TextdrawName, newtext); TextDrawShowForPlayer(playerid, Text:TextdrawName);return 1;}public OnPlayerDisconnect(playerid, reason) {SetPVarInt(playerid, \"Jatekos\", GetPVarInt(playerid, \"Jatekos\") -1); new newtext[41]; format(newtext, sizeof(newtext), \"%d/%d\", GetPVarInt(playerid, \"Jatekos\"), GetMaxPlayers()); TextDrawSetString(Text:TextdrawName, newtext); TextDrawShowForPlayer(playerid, Text:TextdrawName);return 1;}