02.06.2013, 13:38
Galerinha do forum SA-MP gostaria que quando vc uma bike n precisa-se ligar o veiculo..
Agradeзo a ajuda de Vc's
Agradeзo a ajuda de Vc's
pawn Код:
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;
}