How do i do this:
#10

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/startengine",true) == 0)
    {
        new engine,lights,alarm,doors,bonnet,boot,objective;
        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(cmdtext, "/stopengine",true) == 0)
    {
        new engine,lights,alarm,doors,bonnet,boot,objective;
        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;
    }


    if(strcmp(cmdtext, "/Teleport", true) == 0)
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teleport Menu", "Unity Station \n Los Santos Police Department", "Select", "Cancel");
        return 1;
    }
    return 0;
}
Well, you're right Schurman, didn`t really payed attention. Here`s the fixed code. If this doesn`t work, I`ll give up scripting =)

Sorry about my wrong codes earlier ... don`t know what happend.
Reply


Messages In This Thread
How do i do this: - by kickflipdude - 29.03.2011, 19:54
Re: How do i do this: - by antonio112 - 29.03.2011, 20:10
Re: How do i do this: - by kickflipdude - 29.03.2011, 20:16
Re: How do i do this: - by kickflipdude - 29.03.2011, 20:20
Re: How do i do this: - by Serbish - 29.03.2011, 20:23
Re: How do i do this: - by kickflipdude - 29.03.2011, 20:55
Re: How do i do this: - by SchurmanCQC - 29.03.2011, 20:59
Re: How do i do this: - by kickflipdude - 29.03.2011, 21:30
Re: How do i do this: - by antonio112 - 29.03.2011, 21:32
Re: How do i do this: - by antonio112 - 29.03.2011, 23:53

Forum Jump:


Users browsing this thread: 2 Guest(s)