SA-MP Forums Archive
[Ajuda] ao morrer buga - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ao morrer buga (/showthread.php?tid=610356)



ao morrer buga - logan1910 - 23.06.2016

Seguinte,quando o player morre ele buga e aparece so o tronco do corpo dele voando no limbo O.0
Alguem me ajuda com isso que parte eu tenho que mandar? onplayerspawn?


Respuesta: ao morrer buga - SammyJ - 23.06.2016

Nгo tenho certeza mais veja em OnPlayerRequestSpawn esta return 1;


Re: Respuesta: ao morrer buga - logan1910 - 23.06.2016

Quote:
Originally Posted by glederson
Посмотреть сообщение
Nгo tenho certeza mais veja em OnPlayerRequestSpawn esta return 1;
Tб sim
Quote:

public OnPlayerRequestSpawn(playerid)
{
return 1;
}




Re: ao morrer buga - zSuYaNw - 23.06.2016

Poste o OnPlayerDeath..


Re: ao morrer buga - logan1910 - 23.06.2016

Quote:
Originally Posted by zSuYaNw
Посмотреть сообщение
Poste o OnPlayerDeath..
Ae chefгo
Quote:

public OnPlayerDeath(playerid, killerid, reason)
{
totaldemortes[playerid]++;
if(totaldemortes[playerid] > 4)
{
new gstring[128];
format(gstring, sizeof gstring, "ANTI-CHEAT: %s[ID: %d] Foi Kickado por poder estar usando Flood Kill!", NomePlayer(playerid), playerid);
ABroadCast(COLOR_LIGHTRED,gstring, 1);
Kick(playerid);
return 1;
}
SetTimerEx("DesbugMorte", 1000, false, "i",playerid);
ColocarColete[playerid] = 0;
Cartola[playerid] = 0;
Natal[playerid] = 0;

if(pmorto[playerid])return true;

OnPlayerDeathEx(playerid, killerid, reason);

TextDrawShowForPlayer(playerid, textmorte[0]);
TextDrawShowForPlayer(playerid, textmorte[1]);

JoinedHay[playerid] = 0;

return 1;
}




Respuesta: ao morrer buga - XandyMello - 23.06.2016

Tem sim, ta vendo "SetPlayerSpawn(playerid);" nesse cуdigo que tu postou acima bem em baixo ? entгo, la que seta os players no spawn. Procure por 'public SetPlayerSpawn(playerid)' se nгo achar, coloque 'stock SetPlayerSpawn(playerid)', se nгo char procure por isso => '::SetPlayerSpawn(playerid);' que tu vai achar.


Re: Respuesta: ao morrer buga - logan1910 - 23.06.2016

Quote:
Originally Posted by XandyMello
Посмотреть сообщение
Tem sim, ta vendo "SetPlayerSpawn(playerid);" nesse cуdigo que tu postou acima bem em baixo ? entгo, la que seta os players no spawn. Procure por 'public SetPlayerSpawn(playerid)' se nгo achar, coloque 'stock SetPlayerSpawn(playerid)', se nгo char procure por isso => '::SetPlayerSpawn(playerid);' que tu vai achar.
ae..

Quote:

BDL::SetPlayerSpawn(playerid)
{
new string[128];
if(gPlayerLogged[playerid])
{

TextDrawShowForPlayer(playerid, avisoMochila);
SetTimerEx("hideAviso", 8000, 0, "d", playerid);

//entrou[playerid] = false;
pmorto[playerid] = false;
SetPVarInt(playerid,"roped",0);
SetPVarInt(playerid,"chop_id",-1);


if(PlayerInfo[playerid][pTut] == 0)
{
TogglePlayerSpectating(playerid, 1);
gNoticias[playerid] = 1;
gFam[playerid] = 1;
Controle(playerid, 0);
RegistrationStep[playerid] = 1;
ClearChatbox(playerid, ;
//SetPlayerCameraPos(playerid, 1742.9161, -1741.8186, 55.6075);
//SetPlayerCameraLookAt(playerid, 1742.0631, -1741.2983, 55.4125);
InterpolateCameraPos(playerid, 1371.8484, -936.9060, 55.4643, 1371.8484, -936.9060, 55.4643, 60000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1371.7151, -937.9019, 55.0643, 1302.9529, -1681.4709, 31.5217, 60000, CAMERA_MOVE);

SetPlayerPos(playerid, 1742.3235,-1740.9014,54.5687);
SetPlayerWeather(playerid, 1);
SetPlayerFacingAngle(playerid, 246.2422);
SetPlayerInterior(playerid, 0);
PlayerPlaySound(playerid,1039,0.0,0.0,0.0);
SetPlayerVirtualWorld(playerid,playerid+1);
ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,"E scolha seu sexo:","Seja Bem Vindo ao Brasil Dark Life!\n\nEscolha seu sexo corretamente!\n\n","Homem","Mulher");
PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/u/84351048/Musicas/If%20It%20Means%20A%20Lot%20To%20You%20-Michael%20Henry%20and%20Justin%20Robinett%20with%2 0Lyrics.mp3");
return true;
}




Respuesta: ao morrer buga - SammyJ - 23.06.2016

Se nгo me engano o erro estб em TogglePlayerSpectating(playerid, 1);

й sу retirar o TogglePlayerSpectating(playerid, 1);


Re: Respuesta: ao morrer buga - logan1910 - 23.06.2016

Quote:
Originally Posted by glederson
Посмотреть сообщение
Se nгo me engano o erro estб em TogglePlayerSpectating(playerid, 1);

й sу retirar o TogglePlayerSpectating(playerid, 1);
Continua do mesmo jeito


Re: ao morrer buga - logan1910 - 23.06.2016

Ninguйm mais? :/