Jump to content
  • 0

pomoc Kapota


Stellet

Dotaz

Ahoj prosím o pomoc, udělal jsem si příkaz na otvírání kapoty.. Ale musím sedět v autě, A potřebuju aby nebyl v autě ale před ním.. prostě třeba budu stát před autem dám /kapota a otevře se kapota Děkuji předem.

Zde code:

 

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kapota", cmdtext, true, 10) == 0)
    {
        new vid = GetPlayerVehicleID(playerid);
        new engine, lights, alarm, doors, bonnet, boot, objective;
        if(vid != INVALID_VEHICLE_ID)
         {
        GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
        }
        return 1;
    }
    return 0;
}
Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...