22.08.2011, 15:29
pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new string[100], name[24];
GetPlayerName(playerid,name,24);
format(string,sizeof(string),"%s has slapped everyone",name);
SendClientMessageToAll(-1, string);
}
}
EDIT: Forgot a bracket after IsPlayerConnected.