Spawn at hospital when dead
#7

Quote:
Originally Posted by Don Correlli
pawn Код:
new
    bool:playerDied[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
  playerDied[playerid] = true;
  return true;
}

public OnPlayerSpawn(playerid)
{
  if(playerDied[playerid] == true)
  {
    // set his position to the hospital.
    playerDied[playerid] = false; // reset the variable.
  }
  return true;
}

public OnPlayerDisconnect(playerid, reason)
{
  playerDied[playerid] = false; // reset the variable.
  return true;
}
As I said.. I suck at those things, I have no idea where to put it, what to do, or anything.. But giving up is the last thing i wanna to :S
Reply


Messages In This Thread
Spawn at hospital when dead - by Dolph - 27.02.2010, 19:05
Re: Spawn at hospital when dead - by Correlli - 27.02.2010, 19:05
Re: Spawn at hospital when dead - by Dolph - 27.02.2010, 19:21
Re: Spawn at hospital when dead - by Correlli - 27.02.2010, 19:24
Re: Spawn at hospital when dead - by Dolph - 27.02.2010, 19:42
Re: Spawn at hospital when dead - by Correlli - 27.02.2010, 19:53
Re: Spawn at hospital when dead - by Dolph - 27.02.2010, 20:26
Re: Spawn at hospital when dead - by Correlli - 27.02.2010, 20:27
Re: Spawn at hospital when dead - by Dolph - 27.02.2010, 20:34
Re: Spawn at hospital when dead - by Correlli - 27.02.2010, 20:36
Re: Spawn at hospital when dead - by Dolph - 27.02.2010, 20:37
Re: Spawn at hospital when dead - by Correlli - 27.02.2010, 20:38
Re: Spawn at hospital when dead - by Dolph - 27.02.2010, 20:38
Re: Spawn at hospital when dead - by Dolph - 27.02.2010, 21:23
Re: Spawn at hospital when dead - by Miguel - 27.02.2010, 21:38
Re: Spawn at hospital when dead - by `Robo - 27.02.2010, 21:47
Re: Spawn at hospital when dead - by Correlli - 27.02.2010, 21:51
Re: Spawn at hospital when dead - by `Robo - 27.02.2010, 21:54
Re: Spawn at hospital when dead - by Correlli - 27.02.2010, 21:58
Re: Spawn at hospital when dead - by Dolph - 28.02.2010, 09:07
Re: Spawn at hospital when dead - by adsy - 28.02.2010, 10:42

Forum Jump:


Users browsing this thread: 2 Guest(s)