SA-MP Forums Archive
[GM ADD]/Hotwire vehicles Command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [GM ADD]/Hotwire vehicles Command (/showthread.php?tid=113101)



[GM ADD]/Hotwire vehicles Command - Lotusmp - 12.12.2009

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;



	}



Re: [GM ADD]/Hotwire vehicles Command - Matthew_Murdoch - 12.12.2009

This will not work for majority gm's, this code is from LS-RP.


Re: [GM ADD]/Hotwire vehicles Command - Lotusmp - 12.12.2009

Ye this is From LS-RP Coz i like this command i post it here to other servers use it to!


Re: [GM ADD]/Hotwire vehicles Command - notime - 12.12.2009

EngineOn[MAX_VEHICLES]; is not defined if you copy and paste it like this.


Re: [GM ADD]/Hotwire vehicles Command - Adam199 - 13.12.2009

Nice i will try it.


Re: [GM ADD]/Hotwire vehicles Command - Mike Garber - 13.12.2009

Like no other gamemodes have this command?
Like noone else would be able to do this?

Sorry to say It, but you're stupid.


Re: [GM ADD]/Hotwire vehicles Command - Doppeyy - 13.12.2009

Ooooooooooh bitch got told :P,

/Artix


Re: [GM ADD]/Hotwire vehicles Command - Correlli - 13.12.2009

You should post this at "Useful commands" topic (even if it's not useful for other GMs except LS-RP).


Re: [GM ADD]/Hotwire vehicles Command - Lotusmp - 13.12.2009

I Just don't g1ve a f*** what u will say [i post u enjoy]Thats all


Re: [GM ADD]/Hotwire vehicles Command - -_-Mido-_- - 14.12.2009

thanks