Teamcmds command
#1

Well basically i currently have 5 teams using gTeams
and i attempted to make a /teamcmds that displayed the different commands for each team, but instead it just decides to show them all at once.
so help please?
Код:
    if (strcmp("/teamcmds", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, COLOR_CYAN, "|- Team Commands -|");
        if(gTeam[playerid] != 0)
        {
        SendClientMessage(playerid, COLOR_GREEN, "Your A Nub who didn't choose any team right?");
        }
        else if(gTeam[playerid] != 1)
        {
        SendClientMessage(playerid, COLOR_GREEN, "Commands: /ps1 , /ps2 , /lvpd1 , /lvpd2 , /pgate");
        }
        else if(gTeam[playerid] != 2)
        {
        SendClientMessage(playerid, COLOR_GREEN, "Commands: /bgate1 , /bgate2 , /bgate3");
        }
        else if(gTeam[playerid] != 3)
        {
        SendClientMessage(playerid, COLOR_GREEN, "Commands: /hobo");
        }
        else if(gTeam[playerid] != 4)
        {
        SendClientMessage(playerid, COLOR_GREEN, "Commands: YOU DON'T GOT NONE YOU GAYBOI");
        }
        return 1;
    }
thanks in advance
Reply
#2

pawn Код:
if(gTeam[playerid] == THE TEAMNAME)
{
         //do ya stuff.
}
Reply
#3

aha that's perfect dude, cheers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)