12.10.2016, 11:12
um servidor tem o Create3DTextLabel que a pessoa passa encima e ganha dinheiro, alguem tem o codigo pra isso?
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;
}
PS: Nгo testei.
PHP Code:
|
PS: Nгo testei.
PHP Code:
|
Estude:
SetVehicleVelocity para Speed Boost e Car Jump, SetVehicleZAngle para dar um FLIP em seu veнculo. |