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", 5000, true);// coloquei 5s
return true;
}
forward AC();
public AC()
{
for(new i =0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 1, x,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(i, GetPlayerMoney(i)+3000);
A_XM[i]++;
}
}
return true;
}
Re: Create3DTextLabel + dinheiro ao passar -
iName - 12.10.2016
Quote:
Originally Posted by Castiell
PS: Nгo testei.
PHP Code:
new A_XM[MAX_PLAYERS];
public OnGameModeInit()
{
SetTimer("AC", 5000, true);// coloquei 5s
return true;
}
forward AC();
public AC()
{
for(new i =0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 1, x,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(i, GetPlayerMoney(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
PS: Nгo testei.
PHP Code:
new A_XM[MAX_PLAYERS];
public OnGameModeInit()
{
SetTimer("AC", 5000, true);// coloquei 5s
return true;
}
forward AC();
public AC()
{
for(new i =0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 1, x,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(i, GetPlayerMoney(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
|
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
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.