DetachTrailerFromVehicle Sk

From SA-MP Wiki

Jump to: navigation, search



Description:

Odpojí vozík od auta, ak je nejaký pripojený.


Parameters:
(vehicleid)
vehicleidID vozidla, od ktorého chcete odpojiť vozík.


Return Values:

This function does not return any specific values.


public OnPlayerCommandText(playerid, cmdtext[])
{ 
     // Nasledujúci script spôsobí, že ak zadáte príkaz /odpoj, z auta v ktorom sedíte sa odpojí vozík.
     if(strcmp(cmdtext, "/odpoj", true) == 0)
     {
          DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
          return 1;
     }
 
     return 0;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.