Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    CreatTeam

    You mean, you want to destroy the team he wrote in the edit box? if so: getTeamFromName destroyElement
  2. Vas a tener que editar el script del freeroam y agregarle para que lo meta dentro del coche, usa la funcion: warpPedIntoVehicle
  3. What do you mean by "it respawn the previous car"?
  4. Castillo

    CreatTeam

    In this line: triggerServerEvent("creat", localPlayer) You should trigger the edit box text like this: triggerServerEvent("creat", localPlayer, cree) And in server side you should add the 'cree' argument. addEvent ("creat" , true ) addEventHandler("creat", root, function ( cree ) createTeam ( ""..cree, 0, 255 , 0 ) end )
  5. Castillo

    Happy New Year!

    Happy new year to you too
  6. That's because you put it all on one file, it should be two separate files: meta.xml, and the script that we can call it: script.lua, so it would look like this: meta.xml: "YourName" type="gamemode" name="My Server" description="My first MTA server" /> script.lua: local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox(" Welcome to My Server ", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
  7. I never used that function before, so I don't know what do they mean.
  8. I don't understand what do you mean.
  9. It shouldn't cause any trouble.
  10. The bot won't have 0 of health when he's created.
  11. Maybe "hobo"?: https://community.multitheftauto.com/ind ... ils&id=477
  12. Que agregaste a s_main?
  13. El script tiene una funcion, donde crea las clases que obtiene del archivo spawn_locations.map, ahi tendrias que agregar otro valor que seria la gang, luego al intentar spawnear, verificas ese valor con la gang del jugador que la obtenes con: getElementData ( client, "gang" )
  14. I don't understand what do you mean, the problem is with the custom font or what? you didn't really explain.
  15. No son solo funciones, es experiencia, necesitas saber como funciona el script de spawn para poder editarlo.
  16. Do you have the font on the meta.xml? is the font valid?
  17. Maybe if you edit this one: https://community.multitheftauto.com/ind ... ls&id=2730
  18. Usa la version ultima, esa funciona perfectamente, y la scoreboard debe llamarse: "scoreboard", si no no agregara las columnas.
  19. El gang system no require de ningun otro recurso, deberia funcionar bien.
  20. You can use this resource: https://community.multitheftauto.com/ind ... ils&id=381
×
×
  • Create New...