05.04.2016, 12:19
How to count player's joins after the last server restart and get the info by a string??
Thanks.
Thanks.
new playersJoined;
public OnGameModeInit() {
playersJoined = 0;
return true;
}
public OnPlayerConnect(playerid) {
playersJoined ++;
return true;
}
// Assuming you're using ZCMD
CMD:lastserverrestart(playerid) {
new
string[61];
format(string, sizeof(string), "%i players have connected since the last server restart.", playersJoined);
SendClientMessage(playerid, -1, string);
return true;
}