17.01.2014, 15:51
Its because, the SendClientMessageToAll or SendClientMessage shouldn't be under the looping process. i.e for(new i = 0; i <MAX_PLAYERS; i++)
You should put the message sending method outside it.
Try this one and tell me what happens.
You should put the message sending method outside it.
Try this one and tell me what happens.
pawn Код:
if(strcmp(cmd, "/zemioruzjeall", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
for(new i; i < MAX_PLAYERS; i++)
{
ResetPlayerWeapons(i);
}
format(string, sizeof(string), "Admin %s go odzema oruzjeto na site igraci", sendername);
SendClientMessageToAll(COLOR_TEO, string);
}
}
return 1;
}