if (gTeam[playerid] == 1) { GivePlayerweapon.... } else if (gTeam[playerid] == 2) { GivePlayerweapon.... } }