18.04.2009, 12:39
Just do something like this: Create a new global variable, like
When you join the GunGame, you set it to 1 for the respective player,
Then you add in OnPlayerSpawn something like
Of course you need to set the variable to 0 also at the point you want the player to spawn normally again after the GunGame finished and you have to add it in OnPlayerDisconnect also and set it to 0 for the playerid.
Hope you understand me and I could help you a bit :P
pawn Code:
new IsInGunGame[MAX_PLAYERS];
pawn Code:
IsInGunGame[playerid]=1;
pawn Code:
if(IsInGunGame[playerid]==1)
{
SetPlayerPos(playerid,x,y,z);
}
Hope you understand me and I could help you a bit :P