Spam command
#1

if i /sethelper

i do /helpers


it spam command like:


Helper Test
Helper Test
Helper Test
helper Test
Helper Test
Command
Код:
CMD:helpers(playerid, params[])
{
    new count = 0, str[40], name[MAX_PLAYER_NAME+1];
    SendClientMessage(playerid, -1, "Helpers Online:");
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(APlayerData[playerid][PlayerHelper])
        {
            GetPlayerName(i, name, sizeof name);
            format(str, sizeof str, "Helper %s", name);
            SendClientMessage(playerid, -1, str);
            count ++;
        }
    }
    if(count == 0) SendClientMessage(playerid, -1, "There are no helpers online at the moment.");
    // Let the server know that this was a valid command
    return 1;
}
Reply


Messages In This Thread
Spam command - by DerickClark - 12.05.2013, 17:03
AW: Spam command - by Blackazur - 12.05.2013, 17:09
Re: Spam command - by DerickClark - 12.05.2013, 17:18
AW: Spam command - by Blackazur - 12.05.2013, 17:27
Re: Spam command - by DerickClark - 12.05.2013, 17:29
AW: Spam command - by Blackazur - 12.05.2013, 17:34

Forum Jump:


Users browsing this thread: 1 Guest(s)