29.11.2012, 10:17
pawn Code:
new bool:EuUsoGF[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
EuUsoGF[playerid] = false;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
EuUsoGF[playerid] = true;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(EuUsoGF[playerid]) return EuUsoGF[playerid] = false, SetPlayerPos(playerid, X, Y, Z); // Onde X, Y e Z sгo as coordenadas onde vocк quer que o jogador spawne, no caso, o hospital.
return 1;
}