[Pedido] Me ajudem aki galera pf
#1

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
Reply
#2

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.
Reply
#3

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).
Reply
#4

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.
Reply
#5

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.
Reply
#6

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

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

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); 
Reply
#9

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));

Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)