Problem with /lights command
#9

Give that a try
pawn Код:
if(strcmp(cmd, "/lights", true) == 0)
{
    new vehicleid, engine,lights,alarm,doors,bonnet,boot,objective;
    vehicleid = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(!IsPlayerInAnyVehicle(playerid))
        return SendClientMessage(playerid, COLOR_SKYBLUE, "Error: You are not in a vehicle.");
    if(GetPlayerVehicleSeat(playerid) != 0)
        return SendClientMessage(playerid, COLOR_SKYBLUE, "Error: You are not in the drivers seat.");
    if(lights == 1)
    {
        SetVehicleParamsEx(vehicleid,engine,0,alarm,doors,bonnet,boot,objective);
    }
    else
    {
        SetVehicleParamsEx(vehicleid,engine,1,alarm,doors,bonnet,boot,objective);
    }
    return 1;
}
Reply


Messages In This Thread
Problem with /lights command - by benjaminjones - 19.04.2013, 12:50
Re: Problem with /lights command - by lean1337 - 19.04.2013, 13:02
Re: Problem with /lights command - by benjaminjones - 19.04.2013, 13:16
Re: Problem with /lights command - by benjaminjones - 19.04.2013, 14:49
Re: Problem with /lights command - by lean1337 - 19.04.2013, 14:51
Re: Problem with /lights command - by benjaminjones - 19.04.2013, 15:00
Re: Problem with /lights command - by ryanhawk31 - 19.04.2013, 15:18
Re: Problem with /lights command - by benjaminjones - 19.04.2013, 15:19
Re: Problem with /lights command - by DobbysGamertag - 19.04.2013, 15:39
Re: Problem with /lights command - by benjaminjones - 19.04.2013, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)