Advertisement
Chaoz

SA-MP Wiki Example (AddStaticVehicle ES)

Jul 26th, 2013
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. {{Scripting ES}}
  2. {{Title}}
  3.  
  4. {{Description|Agrega un vehiculo a tu servidor.}}
  5.  
  6. {{Note ES|Esta funcion solo funciona en [[OnGameModeInitES|OnGameModeInit]] o bien en [[OnFilterScriptInit ES|OnFilterScriptInit]]. Para crear vehiculos durante el juego mira [[CreateVehicle ES|CreateVehicle]]}}
  7.  
  8. {{Parameters ES|modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2}}
  9. {{Param|modelid|ID del [[Vehicle_Models|modelo]]}}
  10. {{Param|Float:spawn_X|La coordenada X donde spawneara el vehiculo.}}
  11. {{Param|Float:spawn_Y|La coordenada Y donde spawneara el vehiculo.}}
  12. {{Param|Float:spawn_Z|La coordenada Z donde spawneara el vehiculo.}}
  13. {{Param|Float:angle|El Angulo en el que spawneara el vehiculo.}}
  14. {{Param|color1|ID del [[color ID|color]] principal.}}
  15. {{Param|color2|ID del [[color ID|color]] secundario.}}
  16.  
  17. {{Returns|ID del vehiculo creado.}}
  18.  
  19. '''Ejemplo:'''
  20. <pawn>
  21. public OnGameModeInit( )
  22. {
  23. //Agregar un hydra al servidor.
  24. AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
  25. return 1;
  26. }
  27. </pawn>
  28.  
  29. {{RelatedFunctions ES}}
  30. {{AddStaticVehicleEx ES}}
  31. {{CreateVehicle ES}}
  32. {{DestroyVehicle ES}}
  33.  
  34. [[Category:Scripting Functions ES]]
  35.  
  36. [[en:AddStaticVehicle]]
  37. [[nl:AddStaticVehicle]]
  38. [[ru:AddStaticVehicle]]
  39. [[zh:AddStaticVehicle函数]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement