Jump to content

rBcollo

Membru
  • Posts

    58
  • Joined

  • Last visited

    Never

Posts posted by rBcollo

  1. salutari am si eu comanda /fixveh si cand o folosesc,in loc sa repare masina cu zgarieturi etc,mi-o da la 1000 health,dar tot are usi zgariate etc...va rog sa ma ajutati si pe mine

    Comanda fixveh este aceasta:

    	if(strcmp(cmd, "/fixveh", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    	        if(PlayerInfo[playerid][pAdmin] < 4)
    			{
    			    SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
    			    return 1;
    			}
    			if(IsPlayerInAnyVehicle(playerid))
    			{
    			    SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
    			    SendClientMessage(playerid, COLOR_GREY, "   Vehicle Fixed !");
    			    GetPlayerName(playerid, sendername, sizeof(sendername));
       			    format(string, sizeof(string), "AdmWarning: Admin %s has fixveh Vehicle.",sendername);
          		    ABroadCast(COLOR_YELLOW, string, 1);
    			}
    		}
    		return 1;
    	}

  2. /************************************|
    |          Vehicle control           |
    |              By XpLoR              |
    *************************************/
    
    #include <a_samp>
    #include < zcmd >
    
    new EngineStatus[MAX_PLAYERS], LightsStatus[MAX_PLAYERS], AlarmStatus[MAX_PLAYERS], DoorsStatus[MAX_PLAYERS], BonnetStatus[MAX_PLAYERS], BootStatus[MAX_PLAYERS], ObjectiveStatus[MAX_PLAYERS];
    
    public OnFilterScriptInit()
    {
    	print("-------------------");
    	print("- Vehicle Control -");
    	print("-------------------");
    	ManualVehicleEngineAndLights();
    	return 1;
    }
    
    CMD:veh(playerid, params[])
    {
    	new engine,lights,alarm,doors,bonnet,boot,objective;
        new veh = GetPlayerVehicleID(playerid);
    	if(strcmp(params, "Engine", true) == 0)
    	{
    		if(IsPlayerInAnyVehicle(playerid))
    		{
    	 		if(2 != INVALID_VEHICLE_ID)
    			{
    				if(EngineStatus[playerid] == 0)
    				{
    					GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
    					SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    					EngineStatus[playerid] = 1;
    					SendClientMessage(playerid, 0xFFFFFFAA, "{FFFFFF}Ai {6EF83C}pornit {FFFFFF} motorul {C3C3C3}");
    				}
    				else if(EngineStatus[playerid] == 1)
    				{
    					GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
    					SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    					EngineStatus[playerid] = 0;
    					SendClientMessage(playerid, 0xFFFFFFAA, "{FFFFFF}Ai {F81414}oprit {FFFFFF}motorul {C3C3C3}!");
    				}
    			}
    		}
    		else {
    		SendClientMessage(playerid, 0x00FF00FF, "{F81414}Nu esti intr-o masina!");
    		}

    asta este /veh engine tot nu prea am inteles te rog sa ma ajuti!

  3. salut,as vrea sa ma ajutati si pe mine...am comanda /veh engine si de fiecare data cand intri intr-o masina trebuie sa o folosesti.As vrea totusi ca in loc sa o scri sa fie blindata pe 2(cand apas 2 sa se porteasca singur motorul).Ma puteti ajuta?

    Multumesc anticipat

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.