Stunt Plane
#1

Hello! In vehicle ID 513, stunt plane, if you press key [2], a red smoke will come from your vehicle.Is it possible to activate this function of this vehicle from pawn? Because if I use somehow OnPlayerKeyStateChange, it won't detect 100% exactly if the key is pressed.
Reply
#2

hmm when I press the Key on stunt plane the smoke going out always .I don't know exacly what you trying to tell us
Reply
#3

For example, in my gamemode, at OnPlayerKeyStateChange, if you press KEY_FIRE in a vehicle, your engine will start.But you need to press very well and sometimes, even more times to press (2 or 3 times) to start the engine vehicle, it may be because of the lag?
Reply
#4

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if((newkeys & KEY_SUBMISSION) && !(oldkeys & KEY_SUBMISSION))
	{
		// Code to start engine here
	}
}
Reply
#5

wiki.sa-mp.com
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)