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