[Ajuda] Como tirar um bug do OnPlayerDeath
#3

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;
}
Reply


Messages In This Thread
Como tirar um bug do OnPlayerDeath - by Marlon307 - 04.07.2014, 11:39
Re: Como tirar um bug do OnPlayerDeath - by darkxdll - 04.07.2014, 19:42
Re: Como tirar um bug do OnPlayerDeath - by Marlon307 - 05.07.2014, 10:17
Re: Como tirar um bug do OnPlayerDeath - by 4G4M3N0M - 05.07.2014, 12:31

Forum Jump:


Users browsing this thread: 1 Guest(s)