FANDOM


AddStaticVehicle Edit

Ova funkcija se koristi za dodavanje vozila u u GameMode. Funkcija se koristi pod OnGameModeInit.


Parametri:

(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2)

modelid ID od modela vozila.
Float:spawn_X X koordinata vozila.
Float:spawn_Y Y koordinata vozila.
Float:spawn_Z Z koordinata vozila.
Float:spawn_angle Pravac vozila - ugao.
color1 ID primarne boje.
color2 ID sekundarne boje.


Return-a: ID kreiranog vozila (1 - MAX_VEHICLES).


public OnGameModeInit( )
{ 
   // Dodajemo vozilo
   AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); 
   return 1;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.