25.08.2011, 13:46
Too Dragon:
Still doesn't work...
here's my team set code:
when I spawn I immediately check if it works
if it doesn't work I type this cmd:
NOTE: I did not post entire code, but the commands work, that's for sure!
I just choose one of them
When i type the command, I'm sure that I changed to the team, because I checked that, but when I try to enter the Nebula (as COP or UNSPAWNED) I can enter it...
Last piece of code:
___
Too jefff, what do you mean?
Still doesn't work...
here's my team set code:
Код:
public OnPlayerSpawn(playerid) { SetPlayerPos(playerid,0,0,10); IsSpawned[playerid] =1; gTeam[playerid] = TEAM_UNSPAWNED; return 1; }
if it doesn't work I type this cmd:
Код:
if (strcmp("/c", cmdtext, true, 10) == 0) { //gTeam[playerid] = 0; gTeam[playerid] = TEAM_COPS; return 1; } if (strcmp("/u", cmdtext, true, 10) == 0) { //gTeam[playerid] = 0; gTeam[playerid] = TEAM_UNSPAWNED; return 1; }
I just choose one of them
When i type the command, I'm sure that I changed to the team, because I checked that, but when I try to enter the Nebula (as COP or UNSPAWNED) I can enter it...
Last piece of code:
Код:
#define TEAM_COPS 1 #define TEAM_DRIVERS 2 #define TEAM_BANDIT 3 #define TEAM_UNSPAWNED 4
Too jefff, what do you mean?