If Player Is a Police Leader Show Nick
#4

Quote:
Originally Posted by wordas
It was just an exaple lets say:
Quote:

if(PlayerInfo[playerid][pLeader] == 1)

]
i think i can do most of the command but how to like if player pLeader 1 Show player nick?
pawn Код:
if (strcmp(cmd, "/leaders", true) == 0) // The old one
    {
        SendClientMessage(playerid, COLOR_GRAD1, "Leaders Online:");
        for(new i = 0; i <= MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) == 1 && PlayerInfo[playerid][pLeader] == 1)
            {
                GetPlayerName(i, sendername, sizeof(sendername));
                format(string, 256, "Leader: %s", sendername);
                SendClientMessage(playerid, COLOR_GRAD2, string);
            }
        }
        return 1;
    }
Reply


Messages In This Thread
If Player Is a Police Leader Show Nick - by wordas - 13.02.2009, 18:22
Re: If Player Is a Police Leader Show Nick - by Think - 13.02.2009, 18:38
Re: If Player Is a Police Leader Show Nick - by wordas - 13.02.2009, 18:42
Re: If Player Is a Police Leader Show Nick - by Think - 13.02.2009, 18:44
Re: If Player Is a Police Leader Show Nick - by ICECOLDKILLAK8 - 13.02.2009, 18:45
Re: If Player Is a Police Leader Show Nick - by wordas - 13.02.2009, 18:47
Re: If Player Is a Police Leader Show Nick - by Typhome - 04.04.2009, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)