bind tasta 2
#1

Salut.. cum as putea pune din gamemode bind pe tasta 2 pentru /engine ... ( tasta 2 unde e si arondu, @ )

Atentie nu as vrea sa fie cu timmer din ala .. asteapta 2 sec pana se porneste morotul si chesti ....
vreau direct cum dai 2 sa se porneasca la fel si oprirea motorului..

dau rep + raman dator celui care imi face comanda

Uitati aici comanda:

Код:
	if(strcmp(cmd, "/engine",true) == 0)
	{
        new vid = GetPlayerVehicleID(playerid);
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
        {
            SendClientMessage(playerid, COLOR_GREY, "Server: Doar soferul poate porni masina!");
            return 1;
        }
        if(vid != INVALID_VEHICLE_ID)
		{
 			if(Refueling[playerid] == 1)
			{
			    SendClientMessage(playerid, COLOR_LIGHTBLUE, "{DBED15}Angajat peco:{15D4ED} Domnule asteptati sa umplu rezervorul.");
				return 1;
			}
		    if(Gas[vid] < 1)
		    {
		        GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Numai ai benzina",1500,3);
		        return 1;
		    }
	   	    new Float:Valoarea;
			GetVehicleHealth(vid,Valoarea);
			if(vid > PreVehicle)
			{
	            if(CarData[vid-PreVehicle][cOwned] == 0 && CarData[vid-PreVehicle][cModel] != 0 && PlayerData[playerid][pAdmin] < 6)
	            {
	                GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
	                SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
	                SendClientMessage(playerid, COLOR_GREY, "Server: Nu ai key pentru aceasta masina (/cumparvehicul)!");
	                return 1;
	            }
	            if(Valoarea < 302 && CarData[vid-PreVehicle][cOwned] == 1)
			    {
			        return 1;
			    }
				if(CarData[vid-PreVehicle][cExploded] == 1 || CarData[vid-PreVehicle][cExploded] == 2)
	            {
	                SendClientMessage(playerid, COLOR_GREY, "Nu poti porni masina inainte de achita reparatiile!");
	                return 1;
	            }
			}
   			if(vid >= 215 && vid <= 222 && HireCar[playerid] != vid)
            {
                GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
                SendClientMessage(playerid, COLOR_GREY, "Server: Nu ai key pentru aceasta masina (/rentcar)!");
                return 1;
            }
            if(IsABmx(vid))
			{
			    return 1;
			}
            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
			if(engine == VEHICLE_PARAMS_OFF)
			{
  				SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
  				if(Disguise[playerid] == 0)
             {
  				format(string, sizeof(string), "* %s a pornit motorul la %s.", PlayerData[playerid][pNume],ArIsim[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				}
			}
   else
			{
			   	SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
			   	if(Disguise[playerid] == 0)
	            {
			   	format(string, sizeof(string), "* %s a oprit motorul la %s.", PlayerData[playerid][pNume],ArIsim[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				}
			}
        }
        return 1;
    }
Reply


Messages In This Thread
bind tasta 2 - by qwerty97 - 02.12.2012, 00:46
Re: bind tasta 2 - by ShikamaruSama - 02.12.2012, 05:07
Re: bind tasta 2 - by myhaitza97 - 02.12.2012, 06:37
Re: bind tasta 2 - by qwerty97 - 02.12.2012, 10:15
Re: bind tasta 2 - by InfiniTy. - 02.12.2012, 10:22
Re: bind tasta 2 - by qwerty97 - 02.12.2012, 10:24
Re: bind tasta 2 - by Seba97 - 02.12.2012, 10:25
Re: bind tasta 2 - by qwerty97 - 02.12.2012, 11:18
Re: bind tasta 2 - by Comy - 08.12.2012, 20:13
Re: bind tasta 2 - by Andrew81003 - 25.06.2016, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)