Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. vehicle1 = createVehicle ( 602 , 2014.77124, 2250.16650, 17.36250, 0, 0, 95.29736328125 ) vehicle = createVehicle ( modelID, x, y, z, rotX, rotY, rotZ ) state = setVehicleDoorState ( vehicle, 1, 1 ) setVehicleDamageProof ( vehicle, true ) function lockPrivate( player, seat, jacked ) local accName = getAccountName ( getPlayerAccount ( player ) ) if ( not isObjectInACLGroup ( "user."..accName, aclGetGroup ( "Admin" ) ) ) then cancelEvent ( ) outputChatBox ( "Cette voiture appartient au joueurs: Admin", player, 0, 245, 82, false ) else outputChatBox ( "Bienvenue dans ta voiture Bonne route!", player, 0, 255, 0, false ) end end addEventHandler ( "onVehicleStartEnter", vehicle1, lockPrivate )
  2. Well, to start with, this is SQLite not MySQL. Second, I really don't get what are you trying to do.
  3. Castillo

    Timer

    onZombieWasted is a server side event.
  4. Yes, but do you get any errors coming from the server side script? use "/debugscript 3".
  5. The meta.xml is correct, maybe the server side script has a script error, check the debugscript.
  6. You are showing the cursor, then hidding it after. Also, did you add the server side to the meta.xml and set it as a server side script?
  7. Me pregunto como lo limitaron, ya que el script esta compilado.
  8. local accName = getAccountName(accName) Should be: local accName = getAccountName ( accPlayer )
  9. And where's addCommandHandler?
  10. Mi script no tiene ninguna restriccion de miembros.
  11. Castillo

    DxDrawImage

    I already know that.
  12. So, is not saving the team? what does it output to the chatbox?
  13. If you want it to work for every vehicle, you must remove it.
  14. outputChatBox("Team: " .. theTeam) Remove that line or change it to: outputChatBox("Team: " .. getTeamName ( theTeam ) )
  15. You can't store a team element, you must store the team name instead. Saving: function saveAccountData(source) local theTeam = getPlayerTeam ( source ) setAccountData ( playeraccount, "tg.team", getTeamName ( theTeam ) ) end Loading: function loadAccountData() local playerTeam = getAccountData ( playeraccount, "tg.team" ) -- Spawning Player local gx, gy, gz = 2500.9230957031, -1671.9180908203, 13.787899971008 spawnPlayer (source, gx, gy, gz, 0, playerSkin, 0, 0, getTeamFromName ( playerTeam) ) setCameraTarget ( source, source) end
  16. Save them when exactly? You can use these functions to get all the player weapons: getPedWeapon getPedTotalAmmo
  17. Well, you restricted it to the vehicle model 470, have you removed this restriction?
  18. https://wiki.multitheftauto.com/wiki/Se ... spawnDelay With that function you can set how much time ( in milliseconds ) the vehicle will remain wrecked until respawn.
  19. Castillo

    DxDrawImage

    Instead of using dxDrawImage, you should use guiCreateStaticImage, I'm not sure how will you do it though, since the way the freeroam was scripted is different ( it uses OOP and a auto-positioning system for the buttons/labels ).
  20. No es posible poner videos en MTA.
  21. No puede haber nada despues del 'return'.
×
×
  • Create New...