cmds problem help rep+
#4

I like how all your help threads have the same title. Creative

Here's a fixed version:

pawn Код:
CMD:eon(playerid, params[])
{
    new
        giveplayerid,
        string[128],
        engine,
        lights,
        alarm,
        doors,
        bonnet,
        boot,
        objective,
        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 to %s.", 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))
    {
        format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SendClientMessageEx(playerid, TEAM_GROVE_COLOR, "Vehicle engine starting");
        SetTimerEx("SetVehicleEngine", 1000, 0, "dd",  vehicleid, playerid);
    }
    return 1;
}
Reply


Messages In This Thread
cmds problem help rep+ - by N0FeaR - 13.12.2011, 20:16
Re: cmds problem help rep+ - by jueix - 13.12.2011, 20:18
Re: cmds problem help rep+ - by Rob_Maate - 13.12.2011, 20:21
Re: cmds problem help rep+ - by Emmet_ - 13.12.2011, 20:25
Re: cmds problem help rep+ - by N0FeaR - 13.12.2011, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)