26.07.2012, 08:31
Код:
if(PRESSED(KEY_FIRE)) { if(IsPlayerInAnyVehicle(playerid)) { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); } } else if(RELEASED(KEY_FIRE)) { if(IsPlayerInAnyVehicle(playerid)) { RemoveVehicleComponent(0,1010); } }
I see in samp wiki and this RemoveVehicleComponent(1,1010); // 1 is vehicleid