[GM ADD]/Hotwire vehicles Command
#1

New Command For Roleplay Servers::/hotwire vehicles

Add this Command to your gamemode to:OnPlayerCommandText

Code from LS-RP
Well i thinked i will give this cmd to the other servers!Coz i like whene the servers have this Nice cmd!

Код:
if(!strcmp(cmd, "/hotwire", true))
	{
		if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine already started!");
		if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Your key Please");
		if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!");
		if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car");
		if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!");
		if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!");
		if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!");
		if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car");

		            new playerveh = GetPlayerVehicleID(playerid);
					PutPlayerInVehicle(playerid, playerveh, 0);
					GetPlayerName(playerid, sendername, sizeof(sendername));
					format(string, sizeof(string), "* %s tries to hotwire the car", sendername);
					ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					SetTimerEx("StartingTheVehicle",7000,0,"i",playerid);
					GameTextForPlayer(playerid, "~w~Hotwiring The Vehicle...",3500,3);
					gEngine[playerid] = 1;
					return 1;



	}
Reply


Messages In This Thread
[GM ADD]/Hotwire vehicles Command - by Lotusmp - 12.12.2009, 10:11
Re: [GM ADD]/Hotwire vehicles Command - by Matthew_Murdoch - 12.12.2009, 10:17
Re: [GM ADD]/Hotwire vehicles Command - by Lotusmp - 12.12.2009, 10:21
Re: [GM ADD]/Hotwire vehicles Command - by notime - 12.12.2009, 10:23
Re: [GM ADD]/Hotwire vehicles Command - by Adam199 - 13.12.2009, 10:41
Re: [GM ADD]/Hotwire vehicles Command - by Mike Garber - 13.12.2009, 13:41
Re: [GM ADD]/Hotwire vehicles Command - by Doppeyy - 13.12.2009, 14:00
Re: [GM ADD]/Hotwire vehicles Command - by Correlli - 13.12.2009, 14:07
Re: [GM ADD]/Hotwire vehicles Command - by Lotusmp - 13.12.2009, 15:07
Re: [GM ADD]/Hotwire vehicles Command - by -_-Mido-_- - 14.12.2009, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)