18.10.2014, 16:01
I am having some problems with player deaths... Now when player dies he gets the class selection but i don't want that... i want when player dies, he spawns at hospital...
new Dead[MAX_PLAYERS];
public OnPlayerDeath(playerid)
{
Dead[playerid] = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(Dead[playerid] == 1)
{
SetPlayerPos(playerid, x, y, z);
Dead[playerid] = 0;
}
return 1;
}