Command show problem , help please.
#4

pawn Код:
CMD:helpers(playerid,params[])
{
    new count = 0;
    new string[128];
    new name1[MAX_PLAYER_NAME];
    SendClientMessage(playerid, COLOR_TEAL, "--------------------------------Helpers Online---------------------------");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {
            GetPlayerName(i,name1,MAX_PLAYER_NAME);
            if(playerVariables[i][pHelper] >= 1)
            {
                format(string, 128, "%s", GetName(i));
                SendClientMessage(playerid, COLOR_WHITE, string);
                count++;
            }
        }
    }
    if (count == 0)
    SendClientMessage(playerid,COLOR_GREY,"There are no Helpers Online at the moment");
    SendClientMessage(playerid, COLOR_TEAL, "-------------------------------------------------------------------------------");
    SendClientMessage(playerid, COLOR_WHITE,"-====-=-=-=--------- /n.");
    SendClientMessage(playerid, COLOR_TEAL, "-------------------------------------------------------------------------------");
    return 1;
}
Reply


Messages In This Thread
Command show problem , help please. - by buburuzu19 - 02.09.2014, 06:19
Re: Command show problem , help please. - by Stinged - 02.09.2014, 06:43
Re: Command show problem , help please. - by buburuzu19 - 02.09.2014, 06:44
Re: Command show problem , help please. - by IceBilizard - 02.09.2014, 06:48
Re: Command show problem , help please. - by buburuzu19 - 02.09.2014, 06:55
Re: Command show problem , help please. - by IceBilizard - 02.09.2014, 07:00
Re: Command show problem , help please. - by buburuzu19 - 02.09.2014, 07:09
Re: Command show problem , help please. - by IceBilizard - 02.09.2014, 07:13
Re: Command show problem , help please. - by buburuzu19 - 02.09.2014, 07:27
Re: Command show problem , help please. - by IceBilizard - 02.09.2014, 07:29

Forum Jump:


Users browsing this thread: 1 Guest(s)