To make one command
#3

And so it is possible?
Код:
if (strcmp("/bonnet", cmdtext, true, 10) == 0)
    {
        if(GetPVarInt(playerid, "bonnet") == 0)
        {
        GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
       	SetVehicleParamsEx(carid,engine,lights,alarm,doors,true,boot,objective);
        SetPVarInt(playerid, "bonnet", 1);
        }
        else if(GetPVarInt(playerid, "bonnet") == 1)
        {
        GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
       	SetVehicleParamsEx(carid,engine,lights,alarm,doors,false,boot,objective);
        SetPVarInt(playerid, "bonnet", 0);
        }
        return 1;
    }
Reply


Messages In This Thread
To make one command - by Roma555 - 11.01.2011, 22:42
Re: To make one command - by Haydz - 11.01.2011, 23:22
Re: To make one command - by Roma555 - 11.01.2011, 23:29
Re: To make one command - by Haydz - 11.01.2011, 23:31
Re: To make one command - by Steven82 - 12.01.2011, 01:08

Forum Jump:


Users browsing this thread: 2 Guest(s)