Engine.
#2

pawn Код:
command(eon, playerid, params[])
{
    #pragma unused params
    if(GetPlayerState(playerid) == 2)
    {
        new string[128], engine, lights, alarm, doors, bonnet, boot, veh, objective;
        GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
        if(engine == 1) return SendClientMessage(playerid,WHITE,"blahblahblah");
        format(string, sizeof(string), "%s has turned their engine on.", RemoveUnderScore(playerid));
        NearByMessage(playerid, PINK, string);
        veh = GetPlayerVehicleID(playerid);
        SetVehicleParamsEx(veh, 1, lights, alarm, doors, bonnet, boot, 0);
        }
    }
    else
    {
        SendClientMessage(playerid, WHITE, "You are not driving a vehicle!");
    }
    return 1;
}
Reply


Messages In This Thread
Engine. - by iGetty - 05.08.2011, 02:38
Re: Engine. - by =WoR=Varth - 05.08.2011, 02:41
Re: Engine. - by iGetty - 05.08.2011, 02:43
Re: Engine. - by =WoR=Varth - 05.08.2011, 02:47

Forum Jump:


Users browsing this thread: 2 Guest(s)