Message Help (+rep)
#2

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.

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;
    }
Reply


Messages In This Thread
Message Help (+rep) - by ScripteRMKD - 17.01.2014, 15:43
Re: Message Help (+rep) - by iOxide - 17.01.2014, 15:51
Re: Message Help (+rep) - by ScripteRMKD - 17.01.2014, 15:52
Re: Message Help (+rep) - by ReD_HunTeR - 17.01.2014, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)