How do i do this:
#2

pawn Код:
public OnPlayerCommandText(...)
{
if(strcmp(cmd, "/startengine",true) == 0)
{
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID)
        {
              GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
              SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,al arm,doors,bonnet,boot,objective);
        }
        return 1;
}
if(strcmp(cmd, "/stopengine",true) == 0)
{
       new vid = GetPlayerVehicleID(playerid);
       if(vid != INVALID_VEHICLE_ID)
       {
                GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
                SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,a larm,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;
}
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: 3 Guest(s)