28.03.2009, 07:44
new spital[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
if(spital[playerid] ==1)
{
SetPlayerPos(playerid,X,y,z);//x,y,z of spital
spital[playerid]=0;
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
spital[playerid] =1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(spital[playerid] ==1)
{
SetPlayerPos(playerid,X,y,z);//x,y,z of spital
spital[playerid]=0;
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
spital[playerid] =1;
return 1;
}