03.09.2013, 01:13
PHP код:
new MorreuVaiProHospital[MAX_PLAYERS] = 0;
public OnPlayerSpawn(playerid)
{
if(MorreuVaiProHospital[playerid] == 1)
{
MorreuVaiProHospital[playerid] = 0;
if(PlayerInfo[playerid][pFaccoes] == 1)
{
SetPlayerPos(playerid,x,y,z);//troque as coords
}
else if(PlayerInfo[playerid][pFaccoes] == 2)
{
SetPlayerPos(playerid,x,y,z);//troque as coords
}
}
return 1;
}
public OnPlayerDeath(playerid,killerid,reason)
{
MorreuVaiProHospital[playerid] = 1;
return 1;
}