17.07.2016, 13:24
try this i think it will work.
Код:
public OnPlayerConnect(playerid) { SendClientMessage(playerid, 0xED1148FF, "Dobro Dosli Na Black Shadow Roleplay!"); playersconnected ++; //playersconnect += 1; new string[60]; format(string, sizeof(string),"Ovde je trenutno %d i %d igraca na serveru.",playersconnected); SendClientMessageToAll(0xED1148FF, string); return 1; } public OnPlayerDisconnect(playerid, reason) { playersconnected --; //playersconnect -= 1; new string[60]; format(string, sizeof(string),"Ovde je trenutno %d i %d igraca na serveru.",playersconnected); SendClientMessageToAll(0xED1148FF, string); return 1; }