How can I change that key ?
#1

How can I make also u can type in the command : /engine and only type on "2"

Код:
CMD:engine(playerid, params[])
	{
	    new string[128];
		new engine,lights,alarm,doors,bonnet,boot,objective,vehicleid;
		vehicleid = GetPlayerVehicleID(playerid);
		if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510) return SendClientMessageEx(playerid,COLOR_WHITE,"This command can't be used in this vehicle.");
		GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
		if(engine == VEHICLE_PARAMS_ON)
		{
			SetVehicleEngine(vehicleid, playerid);
		}
		else if((engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET))
		{
			SendClientMessageEx(playerid, COLOR_WHITE, "Vehicle engine starting, please wait...");
	        format(string, sizeof(string), "%s is attempting to turn the car on.", GetPlayerNameEx(playerid));
     		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			SetTimerEx("SetVehicleEngine", 1000, 0, "dd",  vehicleid, playerid);
			return 1;
		}
	}
Reply


Messages In This Thread
How can I change that key ? - by yaron0600 - 05.05.2013, 13:37
Re: How can I change that key ? - by SimpalK - 05.05.2013, 13:44
Re: How can I change that key ? - by RajatPawar - 05.05.2013, 13:47
Re: How can I change that key ? - by yaron0600 - 05.05.2013, 13:48
Re: How can I change that key ? - by SimpalK - 05.05.2013, 13:49
Re: How can I change that key ? - by RajatPawar - 05.05.2013, 13:49
Re: How can I change that key ? - by yaron0600 - 05.05.2013, 14:41
Re: How can I change that key ? - by RajatPawar - 05.05.2013, 15:30
Re: How can I change that key ? - by RevolutionaryGaming - 05.05.2013, 15:44
Re: How can I change that key ? - by RajatPawar - 05.05.2013, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)