How to return?
#6

Too Dragon:

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;
}
when I spawn I immediately check if it works

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;
	}
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:

Код:
#define TEAM_COPS 1
#define TEAM_DRIVERS 2
#define TEAM_BANDIT 3
#define TEAM_UNSPAWNED 4
___

Too jefff, what do you mean?
Reply


Messages In This Thread
How to return? - by knackworst - 25.08.2011, 13:12
Re: How to return? - by Dragony92 - 25.08.2011, 13:16
Re: How to return? - by knackworst - 25.08.2011, 13:30
Re: How to return? - by Dragony92 - 25.08.2011, 13:35
Re: How to return? - by Jefff - 25.08.2011, 13:41
Re: How to return? - by knackworst - 25.08.2011, 13:46
Re: How to return? - by RyDeR` - 25.08.2011, 15:20
Re: How to return? - by Dragony92 - 25.08.2011, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)