30.01.2012, 17:04
Bad use of loop. As kirk said, if you're going to make it work, it's gonna spam.
if(IsPlayerConnected(i) && ( i != playerid) && (CanUseNUCLEAR[playerid] == 1337))
^^
One of those does not work
IsPlayerConnected = fine
i != playerid = fine
CanUseNUCLER = try checking this before.
Replace if(gTeam[playerid] != TEAM_NUCLEAR) with if(gTeam[playerid] == TEAM_NUCLEAR)
if(IsPlayerConnected(i) && ( i != playerid) && (CanUseNUCLEAR[playerid] == 1337))
^^
One of those does not work
IsPlayerConnected = fine
i != playerid = fine
CanUseNUCLER = try checking this before.
Replace if(gTeam[playerid] != TEAM_NUCLEAR) with if(gTeam[playerid] == TEAM_NUCLEAR)