02.06.2013, 15:45
(
Последний раз редактировалось VivendoVirtual; 02.06.2013 в 19:04.
)
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 510 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 509 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 481)
{
if(motor[playerid] == 0)
{
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] = 0;
}
return 1;
}
}
if(IsPlayerInAnyVehicle(playerid) && newkeys == 1)
{
if(motor[playerid] == 0)
{
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;
}