if(gTeam[playerid] == TEAM_LSPD) { Your enter code as it is. } else { Your enter code as is. ResetPlayerWeapons(playerid);