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;
}
Tem tuto ai de gangzone um bem explicado pra iniciante gangzone dominavel ?
|