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


Messages In This Thread
Teamcmds command - by Hobod - 07.09.2010, 20:21
Re: Teamcmds command - by willsuckformoney - 07.09.2010, 20:28
Re: Teamcmds command - by Hobod - 07.09.2010, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)