/hotwire help need ..
#1

Hey i have command
Код:
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;



	}
How i can make this to Job id 5
i already tried
Код:
if(!strcmp(cmd, "/hotwire", true))
	{
        if(PlayerInfo[playerid][pJob] == 5)
        {
		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
/hotwire help need .. - by antsolen - 26.08.2011, 12:01
Re: /hotwire help need .. - by Gagi_Corleone - 26.08.2011, 16:33
Re: /hotwire help need .. - by antsolen - 26.08.2011, 16:50
Re: /hotwire help need .. - by =WoR=G4M3Ov3r - 26.08.2011, 17:09
Re: /hotwire help need .. - by antsolen - 26.08.2011, 17:15
Re: /hotwire help need .. - by antsolen - 26.08.2011, 17:20
Re: /hotwire help need .. - by Gagi_Corleone - 26.08.2011, 17:30

Forum Jump:


Users browsing this thread: 3 Guest(s)