SA-MP Forums Archive
[Pedido] Create3DTextLabel + dinheiro ao passar - 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] Create3DTextLabel + dinheiro ao passar (/showthread.php?tid=618984)



Create3DTextLabel + dinheiro ao passar - iName - 12.10.2016

um servidor tem o Create3DTextLabel que a pessoa passa encima e ganha dinheiro, alguem tem o codigo pra isso?


Re: Create3DTextLabel + dinheiro ao passar - Casttiel - 12.10.2016

PS: Nгo testei.
PHP Code:
new A_XM[MAX_PLAYERS];
public 
OnGameModeInit()
{
      
SetTimer("AC"5000true);// coloquei 5s
     
return true;
}
forward AC();
public 
AC()
{
      for(new 
=0i<MAX_PLAYERSi++)
      {
            if(
IsPlayerInRangeOfPoint(i1x,y,z)//cordenadas x y z, e o 1 й o range
            
{
                   if(
A_XM[i] == 1) return SendClientMessage(i, -1"Vocк jб pegou o dinheiro!");
                   
GivePlayerMoney(iGetPlayerMoney(i)+3000);
                   
A_XM[i]++;
            }
      }
      return 
true;




Re: Create3DTextLabel + dinheiro ao passar - iName - 12.10.2016

Quote:
Originally Posted by Castiell
View Post
PS: Nгo testei.
PHP Code:
new A_XM[MAX_PLAYERS];
public 
OnGameModeInit()
{
      
SetTimer("AC"5000true);// coloquei 5s
     
return true;
}
forward AC();
public 
AC()
{
      for(new 
=0i<MAX_PLAYERSi++)
      {
            if(
IsPlayerInRangeOfPoint(i1x,y,z)//cordenadas x y z, e o 1 й o range
            
{
                   if(
A_XM[i] == 1) return SendClientMessage(i, -1"Vocк jб pegou o dinheiro!");
                   
GivePlayerMoney(iGetPlayerMoney(i)+3000);
                   
A_XM[i]++;
            }
      }
      return 
true;

vlw, ai man pode me ajudar em mais uma coisa?

queria por speed boost + car jump + cmd /flip sem bug, sabe algum?

pois, oque eu coloquei no meu server, quem ta de carona tmb consegue usar o speed boost e car jump :c


Re: Create3DTextLabel + dinheiro ao passar - Hyrkul - 12.10.2016

Estude:

SetVehicleVelocity para Speed Boost e Car Jump,
SetVehicleZAngle para dar um FLIP em seu veнculo.


Re: Create3DTextLabel + dinheiro ao passar - viniciuship - 12.10.2016

PLAYER_STATE_DRIVER

https://sampwiki.blast.hk/wiki/Playerstates


Re: Create3DTextLabel + dinheiro ao passar - iName - 12.10.2016

Quote:
Originally Posted by Castiell
View Post
PS: Nгo testei.
PHP Code:
new A_XM[MAX_PLAYERS];
public 
OnGameModeInit()
{
      
SetTimer("AC"5000true);// coloquei 5s
     
return true;
}
forward AC();
public 
AC()
{
      for(new 
=0i<MAX_PLAYERSi++)
      {
            if(
IsPlayerInRangeOfPoint(i1x,y,z)//cordenadas x y z, e o 1 й o range
            
{
                   if(
A_XM[i] == 1) return SendClientMessage(i, -1"Vocк jб pegou o dinheiro!");
                   
GivePlayerMoney(iGetPlayerMoney(i)+3000);
                   
A_XM[i]++;
            }
      }
      return 
true;

nao pegou man, ta dando error

nesse server: 142.4.204.48:7782 la no /ammu tem la o local que dб dinheiro, queria isso -'


Re: Create3DTextLabel + dinheiro ao passar - FalcaoNC - 12.10.2016

Quote:
Originally Posted by Hyrkul
View Post
Estude:

SetVehicleVelocity para Speed Boost e Car Jump,
SetVehicleZAngle para dar um FLIP em seu veнculo.
PEDIDO

PEDIDO

PEDIDO


Re: Create3DTextLabel + dinheiro ao passar - Casttiel - 12.10.2016

Qual erro?


Re: Create3DTextLabel + dinheiro ao passar - ipsLuan - 12.10.2016

Quote:
Originally Posted by FalcaoNC
View Post
PEDIDO

PEDIDO

PEDIDO
Porque nгo faz entгo?


Re: Create3DTextLabel + dinheiro ao passar - PedroEduardo - 12.10.2016

Poxa cara.. jб ta ficando chato isso .. Flood de pedidos seus cara
Tem que estudar as funзхes cara.. nгo tem jeito..
Serб que vocк realmente ta tentando ? pois nгo parece.