Help with Pawno
#4

public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
GameTextForPlayer(playerid, "Sei Morto", getSEC(4), 2);


Playermorto[playerid] = 1;
return 1;
}

public OnPlayerSpawn(playerid)
{
if(Playermorto[playerid] == 1)
{
Spawn_Ospedali(playerid);
TakeSoldi(playerid);
//~~~~~~~~~~~~~~~~~~~[ Setta salute / armatura ]
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);

GameTextForPlayer(playerid, "~n~", 10, 2);
Playermorto[playerid] = 0;
}
return 1;
}


Then the first death I do is very fast and I have the word 'Sei Morto'.
With the second death, it spawna to redcounty but start to fall.
How do I set that when I die, does the writing and the typical animation of when it dies come out?
And the spawn teleports to random in any hospital?
Reply


Messages In This Thread
Help with Pawno - by DarkWorldJack - 11.10.2018, 17:13
Re: Help with Pawno - by KinderClans - 11.10.2018, 18:50
Re: Help with Pawno - by v1k1nG - 11.10.2018, 19:13
Re: Help with Pawno - by DarkWorldJack - 11.10.2018, 19:24
Re: Help with Pawno - by DarkWorldJack - 11.10.2018, 19:33
Re: Help with Pawno - by solstice_ - 11.10.2018, 20:05
Re: Help with Pawno - by KinderClans - 11.10.2018, 21:01
Re: Help with Pawno - by DaniceMcHarley - 12.10.2018, 09:58

Forum Jump:


Users browsing this thread: 1 Guest(s)