31.07.2017, 23:39
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."));
}
}
}
}
PHP код:
new vehicleid = GetPlayerVehicleID(playerid);