Command show problem , help please.
#1

So when you type /helpers only the helpers can see the other helpers .
Ex: If you are a normal player , and on the server are connected 5 helpers , if u type /helpers you don't see nothing.

So i want that normal players can see the other helpers.
Reply
#2

You're checking if playerid is a helper.
pawn Код:
if(playerVariables[playerid][pHelper] == ...)
pawn Код:
if(playerVariables[i][pHelper] == ...)
Reply
#3

Ok i will try and i come with reply
Reply
#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
#5

Ice blizzard i don't want to be /helpers with levels i want to name the levels, understand me?
Reply
#6

Quote:
Originally Posted by buburuzu19
Посмотреть сообщение
Ice blizzard i don't want to be /helpers with levels i want to name the levels, understand me?
No i didn't understand what you wean You want it name the levels?
Reply
#7

Yes , as can you see i put them names
if(playerVariables[i][pHelper] == 1) , format(string, 128, "(%d) 1Helper , 1 Helper is the name.
I will test now what stinged posted.
Reply
#8

its simple use

pawn Код:
format(string, 128, "(%d) %d Helper %s",i,i, name1);
Reply
#9

Problem solved.!
Reply
#10

Good well my code or another's one?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)