How to Spawn IN Gamemode after died in Gamemode ?
#2

Just do something like this: Create a new global variable, like

pawn Code:
new IsInGunGame[MAX_PLAYERS];
When you join the GunGame, you set it to 1 for the respective player,

pawn Code:
IsInGunGame[playerid]=1;
Then you add in OnPlayerSpawn something like

pawn Code:
if(IsInGunGame[playerid]==1)
{
  SetPlayerPos(playerid,x,y,z);
}
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
Reply


Messages In This Thread
How to Spawn IN Gamemode after died in Gamemode ? - by Bearfist - 18.04.2009, 11:55
Re: How to Spawn IN Gamemode after died in Gamemode ? - by Soeren - 18.04.2009, 12:39
Re: How to Spawn IN Gamemode after died in Gamemode ? - by Bearfist - 18.04.2009, 13:06

Forum Jump:


Users browsing this thread: 1 Guest(s)