ZCMD help
#5

pawn Код:
command(helpers, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][Helper] >= 1)
    {
        new string[256]; // This might need to be increased.
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(Player[i][Helper] >= 1)
            {
                format(string, sizeof(string), "%s\n{37DB45}HELPER: {FFFFFF}%s", string, GetName(i));
            }
        }
       
        ShowPlayerDialog(playerid, 0, 9315, "Online helpers:", string, "Done", "");
    }
    return 1;
}
I assume you wanted something that'd get all of the online helpers and then add their names in to a string and show them in that dialog?
Reply


Messages In This Thread
ZCMD help [SOLVED] - by GangsTa_ - 22.06.2011, 22:22
Re: ZCMD help - by =WoR=Varth - 22.06.2011, 22:26
Re: ZCMD help - by GangsTa_ - 22.06.2011, 22:27
Re: ZCMD help - by Laronic - 22.06.2011, 22:37
Re: ZCMD help - by Calgon - 22.06.2011, 22:39
Re: ZCMD help - by GangsTa_ - 22.06.2011, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)