SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/08/2017, 08:51 PM   #1
Ilaibens
Little Clucker
 
Join Date: Jul 2017
Posts: 12
Reputation: 0
Default Dont't check if the engine on

Hey, I do check in OnPlayerEnterVehicle if the engine off he send msg to player, but the engine on and he send the msg.
Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
 	GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
 	if(engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET)
 	{
		SendClientMessage(playerid, COLOR_WHITE, "The engine of this vehicle is off. Use /engine to start it.");
	}
	return 1;
}
Thanks !

Edit:
I'm fix it.
Ilaibens is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WOW! Engine problem - Engine starts with Forward(W) KEY! SkiT'aZ Scripting Help 3 22/02/2015 05:28 PM
No error come but script dont work please check Harry_Sandhu Help Archive 8 16/07/2011 10:37 AM
No error come but script dont work please check Harry_Sandhu Help Archive 2 16/07/2011 10:26 AM
[HELP]I just edited my /engine system and when i do /engine it says "unknown Lilcuete Help Archive 2 25/04/2010 01:31 PM
string check dont work Headshot1108 Help Archive 16 17/03/2010 03:45 PM


All times are GMT. The time now is 11:50 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.