SA-MP Forums Archive
[Pedido] Me ajudem aki galera pf - 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: [Pedido] Me ajudem aki galera pf (/showthread.php?tid=425501)



Me ajudem aki galera pf - Bl4ckN3w - 25.03.2013

Eu qero saber como que eu coloco pra quando o player morrer a tela fechar assim nele.Quem puder me ajuda ae pf.

sa-mp-004.jpg


Re: Me ajudem aki galera pf - Lуs - 25.03.2013

Crie 2 textdraws, uma em cima, outra em baixo, ative a box, e mude o texto para "_", lembre-se que cada jogador tem que ter sua textdraw, entгo use PlayerTextDraw, aн vocк mostra no OnPlayerDeath e esconde no OnPlayerSpawn.


Re: Me ajudem aki galera pf - Bl4ckN3w - 25.03.2013

kk falo ingles pra min eu entendo mt pouco de pawno teria como vc exemplifica mas como seria o certo a fazer.Ou ate postar um sistema que eu possa tentar entender para fazer. (As vezes eu fico com raiva de mim msm pq eu qero fazer as paradas pro meu server mas nao sei fazer й foda).


Re: Me ajudem aki galera pf - Lуs - 25.03.2013

Quote:
Originally Posted by Bl4ckN3w
Посмотреть сообщение
kk falo ingles pra min eu entendo mt pouco de pawno teria como vc exemplifica mas como seria o certo a fazer.Ou ate postar um sistema que eu possa tentar entender para fazer. (As vezes eu fico com raiva de mim msm pq eu qero fazer as paradas pro meu server mas nao sei fazer й foda).
Usa o Zamarohtґs TextDraw Editor - adri1 que jб salva como PlayerTextDraw.


Re: Me ajudem aki galera pf - Delete_ - 25.03.2013

in OnPlayerDeath

PHP код:
new Float:XFloat:YFloat:ZFloat:X2Float:Y2;
GetXYInFrontOfPlayer(playeridX2Y2, -4);
GetPlayerPos(playeridXYZ);
SetPlayerCameraPos(playeridX2Y2+3);
SetPlayerCameraLookAt(playeridXYZ); 
no final do gm

PHP код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance)
{
    new 
Float:a;
    
GetPlayerPos(playeridxya);
    if(
GetPlayerVehicleID(playerid)) { GetVehicleZAngle(GetPlayerVehicleID(playerid), a); }
    
GetPlayerFacingAngle(playerida);
    
+= (distance floatsin(-adegrees));
    
+= (distance floatcos(-adegrees));

Depois cria as textdraws e mostra logo abaixo desse code ai.


Re: Me ajudem aki galera pf - Bl4ckN3w - 25.03.2013

Й vou tentar ver se consigo principiante em pawn eu mas vamos la. Mano esse de baixo ae eu coloco em OnPlayerDeath ? ou em OnPlayerSpawn


Re: Me ajudem aki galera pf - Sky™ - 25.03.2013

Quote:
Originally Posted by Bl4ckN3w
Посмотреть сообщение
Й vou tentar ver se consigo principiante em pawno eu mas vamos la
iniciante em Pawn nгo em pawno


Re: Me ajudem aki galera pf - Bl4ckN3w - 25.03.2013

Ta foda eu segui um textdraw q tenho aki mas na verdade nao entendi nada olha que eu montei ta cheio de erro.


PHP код:
#include <a_samp>
public OnPlayerDeath(playeridkilleridreason)
{
new 
Float:XFloat:YFloat:ZFloat:X2Float:Y2;
GetXYInFrontOfPlayer(playeridX2Y2, -4);
GetPlayerPos(playeridXYZ);
SetPlayerCameraPos(playeridX2Y2+3);
SetPlayerCameraLookAt(playeridXYZ);
new 
Text:topblackText:bottomblack;
public 
OnGameModeInit()
{
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance)
{
    new 
Float:a;
    
GetPlayerPos(playeridxya);
    if(
GetPlayerVehicleID(playerid)) { GetVehicleZAngle(GetPlayerVehicleID(playerid), a); }
    
GetPlayerFacingAngle(playerida);
    
+= (distance floatsin(-adegrees));
    
+= (distance floatcos(-adegrees));
}
topblack TextDrawCreate(1.000000,-45.000000,"__");
bottomblack TextDrawCreate(-2.000000,371.000000,"__");
TextDrawUseBox(topblack,1);
TextDrawBoxColor(topblack,0x000000ff);
TextDrawTextSize(topblack,655.000000,80.000000);
TextDrawUseBox(bottomblack,1);
TextDrawBoxColor(bottomblack,0x000000ff);
TextDrawTextSize(bottomblack,840.000000,240.000000 );
TextDrawAlignment(topblack,0);
TextDrawAlignment(bottomblack,0);
TextDrawBackgroundColor(topblack,0x000000ff);
TextDrawBackgroundColor(bottomblack,0x000000ff);
TextDrawFont(topblack,3);
TextDrawLetterSize(topblack,1.000000,14.000000);
TextDrawFont(bottomblack,3);
TextDrawLetterSize(bottomblack,1.000000,24.000000) ;
TextDrawColor(topblack,0xffffffff);
TextDrawColor(bottomblack,0xffffffff);
TextDrawSetOutline(topblack,1);
TextDrawSetOutline(bottomblack,1);
TextDrawSetProportional(topblack,1);
TextDrawSetProportional(bottomblack,1);
TextDrawSetShadow(topblack,1);
TextDrawSetShadow(bottomblack,1); 



Re: Me ajudem aki galera pf - Delete_ - 25.03.2013

PHP код:
#include <a_samp>
new Text:topblackText:bottomblack;

public 
OnPlayerDeath(playeridkilleridreason)
{
    new 
Float:XFloat:YFloat:ZFloat:X2Float:Y2;
    
GetXYInFrontOfPlayer(playeridX2Y2, -4);
    
GetPlayerPos(playeridXYZ);
    
SetPlayerCameraPos(playeridX2Y2+3);
    
SetPlayerCameraLookAt(playeridXYZ);
    return 
1;
}

public 
OnGameModeInit()
{
    
topblack TextDrawCreate(1.000000,-45.000000,"__");
    
bottomblack TextDrawCreate(-2.000000,371.000000,"__");
    
TextDrawUseBox(topblack,1);
    
TextDrawBoxColor(topblack,0x000000ff);
    
TextDrawTextSize(topblack,655.000000,80.000000);
    
TextDrawUseBox(bottomblack,1);
    
TextDrawBoxColor(bottomblack,0x000000ff);
    
TextDrawTextSize(bottomblack,840.000000,240.000000 );
    
TextDrawAlignment(topblack,0);
    
TextDrawAlignment(bottomblack,0);
    
TextDrawBackgroundColor(topblack,0x000000ff);
    
TextDrawBackgroundColor(bottomblack,0x000000ff);
    
TextDrawFont(topblack,3);
    
TextDrawLetterSize(topblack,1.000000,14.000000);
    
TextDrawFont(bottomblack,3);
    
TextDrawLetterSize(bottomblack,1.000000,24.000000) ;
    
TextDrawColor(topblack,0xffffffff);
    
TextDrawColor(bottomblack,0xffffffff);
    
TextDrawSetOutline(topblack,1);
    
TextDrawSetOutline(bottomblack,1);
    
TextDrawSetProportional(topblack,1);
    
TextDrawSetProportional(bottomblack,1);
    
TextDrawSetShadow(topblack,1);
    
TextDrawSetShadow(bottomblack,1);
    return 
1;
}

stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance)
{
    new 
Float:a;
    
GetPlayerPos(playeridxya);

    if(
GetPlayerVehicleID(playerid)) { GetVehicleZAngle(GetPlayerVehicleID(playerid), a); }

    
GetPlayerFacingAngle(playerida);
    
+= (distance floatsin(-adegrees));
    
+= (distance floatcos(-adegrees));




Re: Me ajudem aki galera pf - Bl4ckN3w - 25.03.2013

Ae mano nao funciono alguem me fala ae oq to fazendo de errado eu nao sei mexer com pawn alguem ae me ajuda