Quote:
Originally Posted by darkxdll
Poste sua public OnPlayerDeath aqui para eu analisar \o/
#GOOOL o//
|
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
GameTextForPlayer(playerid,"~r~Se fodeu...", 2500, 5);
SeMorreu[playerid] = true;
#if defined LoopsUser
if(gPlayerUsingLoopingAnim[playerid])
{
gPlayerUsingLoopingAnim[playerid] = 0;
SendClientMessage(playerid, Azul, "Para sair do anime tecle 'Espaзo'.");
}
#endif
if(GetClosestHospital(playerid) == 0)
{
SetSpawnInfo(playerid,1, DOF2::GetInt(PegarConta(playerid), "SkinAtual"),-2651.6501, 634.4510, 14.4531, 180.0000, 0, 0, 0, 0, 0, 0);
}
else if(GetClosestHospital(playerid) == 1)
{
SetSpawnInfo(playerid,1, DOF2::GetInt(PegarConta(playerid), "SkinAtual"),1173.5842,-1324.5615,15.1953,278.4624,0,0,0,0,0,0);
}
else if(GetClosestHospital(playerid) == 2)
{
SetSpawnInfo(playerid,1, DOF2::GetInt(PegarConta(playerid), "SkinAtual"),2031.9415,-1404.3578,17.2614,165.8180,0,0,0,0,0,0);
}
else if(GetClosestHospital(playerid) == 3)
{
SetSpawnInfo(playerid,1, DOF2::GetInt(PegarConta(playerid), "SkinAtual"),1582.5615,1768.7921,10.8203,93.7454,0 ,0,0,0,0,0);
}
return 1;
}