17.03.2012, 14:36
with this script, players will still need to press the NOS key, whenever they need to "update" it...
pawn Код:
forward OnPlayerKeyStateChange(playerid, newkeys, oldkeys); public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
//...your code...
if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
{
new vehicle=GetPlayerVehicleID(playerid);
if (vehicle>0)
{
AddVehicleComponent(vehicle,1010);
return 1;
}
}
//...your code...
return 1;
}