13.10.2013, 05:36
@[uL]Pottus: its the server from my signature-Convoy Trucking.
@kurta999: I tried the way you told me,but still Num 6 and Num 9 are the keys which respond :S Here's how I done it
@kurta999: I tried the way you told me,but still Num 6 and Num 9 are the keys which respond :S Here's how I done it
Код:
GetPlayerKeys(playerid, Keys, ud, lr);
if(ud)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if (engine == 0)
{
if(AVehicleData[GetPlayerVehicleID(playerid)][Fuel] > 0)
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, 1, alarm, doors, bonnet, boot, objective);
}
else
GameTextForPlayer(playerid, "~r~Your vehicle doesn't have fuel ~n~to start the engine", 3000, 3);
}
}
}

