11.10.2018, 19:24
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?
{
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?