i need ..
#1

i need a script to add on gm
when i press 2 to start engine !
the script can add under onplayerkeystatechange.
any help ?
Reply
#2

Dude Check This Thread https://sampforum.blast.hk/showthread.php?tid=306311 I Think It Will Help You
Reply
#3

i cant understand this tutorial :/ i need a script
Reply
#4

help me please
Reply
#5

Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys){
	if(newkeys == KEY_LOOK_BEHIND){
		if(IsPlayerInAnyVehicle(playerid)){
			new engine, lights, alarm, doors, bonnet, boot, objective, vehid;
			vehid = GetPlayerVehicleID(playerid);
			GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
			SetVehicleParamsEx(vehid, (engine>0?0:1), lights, alarm, doors, bonnet, boot, objective);
			if((engine>0?0:1) == 1){
				//Msg engine ON
			} else {
				//Msg engine OFF
			}
		}
	}
	return 1;
}
Reply
#6

Refer to this; https://sampforum.blast.hk/showthread.php?tid=447813.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)