02.06.2013, 13:46
(
Последний раз редактировалось MichelScripter; 02.06.2013 в 15:13.
)
Tentei assim nгo funciona sou obrigado a aperta Caps para ligar igual :/
pawn Код:
if(IsPlayerInAnyVehicle(playerid) && newkeys == 1)
{
if(motor[playerid] == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 509 || GetPlayerVehicleID(playerid) == 510 || GetPlayerVehicleID(playerid)) == 481)
{
new car = GetPlayerVehicleID(playerid), wi, ll, ia, n, dlc, dmais, he;
GetVehicleParamsEx(car, wi, ll, ia, n, dlc, dmais, he);
SetVehicleParamsEx(car, VEHICLE_PARAMS_ON, ll, ia, n, dlc, dmais, he);
motor[playerid] = 1;
return 1;
}
new car = GetPlayerVehicleID(playerid), wi, ll, ia, n, dlc, dmais, he;
GetVehicleParamsEx(car, wi, ll, ia, n, dlc, dmais, he);
SetVehicleParamsEx(car, VEHICLE_PARAMS_ON, ll, ia, n, dlc, dmais, he);
motor[playerid] = 1;
SendClientMessage(playerid, 0x40C1FFAA, "Vocк ligou o veiculo!");
return 1;
}
else if(motor[playerid] == 1)
{
new car = GetPlayerVehicleID(playerid), wi, ll, ia, n, dlc, dmais, he;
GetVehicleParamsEx(car, wi, ll, ia, n, dlc, dmais, he);
SetVehicleParamsEx(car, VEHICLE_PARAMS_OFF, ll, ia, n, dlc, dmais, he);
motor[playerid] = 0;
return 1;
}
return 1;
}