[help] vehicle pramas
#3

Quote:
Originally Posted by Chrillzen
Посмотреть сообщение
If the engine is off you can't drive, and if it's on you can.
No shit



I want to know like if i do /engine and the VEHICLE_PARAMS are on it wil set them to VEHICLE_PARAMS_OFF

so something like this but i want it for maxplayers right now it just chages a number 1 on any one.
Код:
		    if(strcmp(x_nr,"engine",true) == 0)
			{
				new vid = GetPlayerVehicleID(playerid);
				if(IsPlayerInAnyVehicle(playerid))
				if(vid != INVALID_VEHICLE_ID)
				if(carruning == 0)
		 		{
		 	    	carruning = 1;
					SendClientMessage(playerid,WHITE,"Vehicle {D10000}Engine {11A803}starting,{FFFFFF}please wait.");
					GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    				SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
				}
				else
				{
	    			carruning = 0;
					GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    				SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
				}
Reply


Messages In This Thread
[help] vehicle pramas - by yarrum3 - 06.01.2011, 00:52
Re: [help] vehicle pramas - by Chrillzen - 06.01.2011, 01:09
Re: [help] vehicle pramas - by yarrum3 - 06.01.2011, 01:53
Re: [help] vehicle pramas - by Infamous - 06.01.2011, 02:13
Re: [help] vehicle pramas - by yarrum3 - 06.01.2011, 02:36
Re: [help] vehicle pramas - by Infamous - 06.01.2011, 02:41
Re: [help] vehicle pramas - by yarrum3 - 06.01.2011, 02:50
Re: [help] vehicle pramas - by Dj_maryo1993 - 06.01.2011, 03:00
Re: [help] vehicle pramas - by Infamous - 06.01.2011, 03:02

Forum Jump:


Users browsing this thread: 1 Guest(s)