07.09.2010, 20:21
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?
thanks in advance
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; }