hotwire problem +rep
#9

Quote:
Originally Posted by Tee
Посмотреть сообщение
Post your "/engine" command.
Код:
}
CMD:engine(playerid, params[])
{
    new
        giveplayerid,
        string[128],
        engine,
        lights,
        alarm,
        doors,
        bonnet,
        boot,
        objective,
        vehicleid = GetPlayerVehicleID(playerid);
					    
	vehicleid = GetPlayerVehicleID(playerid);
	if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510) return SendClientMessageEx(playerid,COLOR_WHITE,"This command can't be used in this vehicle.");
	GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(engine == VEHICLE_PARAMS_ON)
    {
        SetVehicleEngine(vehicleid, playerid);
        format(string, sizeof(string), "* %s spins a key and turn the vehicle engine off", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else if((engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET))
    {
        SetTimerEx("SetVehicleEngine", 3500, 0, "dd",  vehicleid, playerid);
        format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    return 1;
i want so when ppl type /engine i say you need too hotwire this vehicle here is the hotwire vehicle in sirpct

Код:
IsASateCar(carid)
{
	for(new v = 0; v < sizeof(Statecar); v++)
	{
	    if(carid == Statecar[v]) return 1;
	}
	return 0;
Reply


Messages In This Thread
hotwire problem +rep - by PRototype-RP - 22.12.2011, 01:13
Re: hotwire problem +rep - by coole210 - 22.12.2011, 01:14
Re: hotwire problem +rep - by PRototype-RP - 22.12.2011, 01:16
Re: hotwire problem +rep - by Steven82 - 22.12.2011, 01:19
Re: hotwire problem +rep - by PRototype-RP - 22.12.2011, 01:23
Re: hotwire problem +rep - by Tee - 22.12.2011, 02:01
Re: hotwire problem +rep - by Definition - 22.12.2011, 02:03
Re: hotwire problem +rep - by Thresholdold - 22.12.2011, 05:59
Re: hotwire problem +rep - by PRototype-RP - 22.12.2011, 13:00
Re: hotwire problem +rep - by Tee - 22.12.2011, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)