Spam command
#2

Код:
CMD:helpers(playerid, params[])
{
    new count = 0, str[40], name[MAX_PLAYER_NAME+1];
    SendClientMessage(playerid, -1, "Helpers Online:");
        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;
}
just remove the for(new loop.
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)