How..
#1

How to open Trunk and hood


I made this:

Код:
if(strcmp(cmd, "/startengine",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID) {
            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
            SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
        }
        return 1;
    }
    if(strcmp(cmd, "/stopengine",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID) {
            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
            SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
        }
        return 1;
    }
But when I type the command tells me "Server Unknown Command" and nothing happens
Reply


Messages In This Thread
How.. - by ZmaXy - 28.11.2010, 14:39
Re: How.. - by WillyP - 28.11.2010, 14:39
Re: How.. - by Grim_ - 28.11.2010, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)