how make /helpers for see list of helpers online
#1

hello all,
I need some help for make cmd /helpers,who can help me?
Reply
#2

pawn Код:
CMD:helpers(playerid, params[])
{
    new string[64], name[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pHelpers] >= 1) //just example, change this based on your enum
            {
                GetPlayerName(i, name, MAX_PLAYER_NAME);
                format(string, sizeof(string), "Helper %s", name);
                SendClientMessage(playerid, -1, string);
            }
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)