Quote:
Originally Posted by Carlos001
PHP код:
if(!strcmp(ItemName,"Engine",true))
{
new Float:x, Float:y, Float:z;
for(new i = 0, m = GetVehiclePoolSize()+1; i < m; i++)
{
if(GetVehicleModel(i) != 0)
{
GetVehiclePos(i, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z))
{
vInfo[i][vTemMotor] = true;
SendClientMessage(playerid, 0xFF0000, Translate(Player[playerid][pIdioma], "[INFO]: Motor Colocado No Veiculo.", "[INFO]: Engine placed in the vehicle."));
}
}
}
}
Usando:
PHP код:
new vehicleid = GetPlayerVehicleID(playerid);
sу iria funcionar se estivesse dentro do Veiculo
|
aah, tendi kk muito obrigado!
vou tentar colocar os pneus agora