string spamming (+rep)
#5

Quote:
Originally Posted by Robo_N1X
Посмотреть сообщение
That will spam for 100 times to all players.


Btw, try this:
pawn Код:
CMD:cc(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        foreach(Player, i)
        {  
            for(new e = 0; e < 4; e++) ClearChatbox(i);
        }
        new broadcast[128];
        format(broadcast, sizeof(broadcast), "AdmCMD: Administrator %s has cleared the chat", GetPlayerNameEx(playerid));
        ABroadCast(COLOR_LIGHTRED, broadcast, 1);
    }
    return 1;
}
I'm sure "ABroadCast" already have loop to all players on it.
Excellent bro +rep
Reply


Messages In This Thread
string spamming (+rep) - by ChristianIvann09 - 10.04.2014, 13:58
Re: string spamming (+rep) - by Danijel. - 10.04.2014, 14:02
Re: string spamming (+rep) - by ChristianIvann09 - 10.04.2014, 14:08
Re: string spamming (+rep) - by RoboN1X - 10.04.2014, 14:09
Re: string spamming (+rep) - by ChristianIvann09 - 10.04.2014, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)