27.12.2013, 14:19
There are no timers needed.
This is in YCMD, and will need to be converted to whatever command processor you use. If you have foreach I would also switch out my loop but this will still work.
pawn Код:
YCMD:restart(playerid, params[], help)
{
if(IsPlayerAdmin(playerid)) {// Check if the player is logged into RCON or not.
for(new i; i < MAX_PLAYERS; i++) {// Loop through all available player slots
if(IsPlayerConnected(i)) {// Check which of those slots are filled
// Your save code will go here. Replace instances of 'playerid' with 'i'
}
}
SendRconCommand("gmx");
}
else return SendClientMessage(playerid,-1,"You are not authorized to use this command.");
return 1;
}