Jump to content

ManeXi

Members
  • Posts

    128
  • Joined

  • Last visited

Everything posted by ManeXi

  1. This is not only you, i've seen other servers with this bug, i know perfectly what you mean, you mean that by unknown reasons sometimes certain player doesn't display other players using weapon/shooting, then they see them puniching the air like retardeds, and they can't be damaged by the player who is begging displayed like punching the air. Is hard to explain using words, try to record a video of any guy who is "punching the air", this bug is happening all over MTA but it happens few times and by unknown reasons, then it would be hard to record a Video about it.
  2. I don't get what you mean with that about HUD, money is not showing in the HUD i don't get why.
  3. How can i create .zip files compatible with ubuntu? in windows.
  4. Finally i get it, i've put map file in the same resource of script file, and used this code: for _ , vehicles in ipairs ( getElementsByType ("vehicle"), resourceRoot) do toggleVehicleRespawn(vehicles, true) setVehicleIdleRespawnDelay(vehicles, 10000) end And it works perfectly thank you much for helping Walrus #Solved
  5. Anyway there is something i don't understand what i have to put in the second argument of getElementsByType? [ element startat=getRootElement() ] I don't get it...
  6. Actually i'm using this to create the element "money" This is on login local Money = getAccountData(acc,"Money" ) if not Money then setAccountData(acc,"Money",0) Money = 0 end setElementData(source,"Money",Money) This is on register local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then setAccountData(accountAdded,"Money",0) This is the unique way to get "money" (by killing) function giveKill ( player ) if getElementType(player) == "player" then setElementData(player,"Kills",getElementData(player,"Kills") + 1) local acc = getPlayerAccount(player) if not isGuestAccount(acc) then setAccountData(acc,"Kills",getElementData(player,"Kills") + 1) local mo = getElementData(player,"Money") setElementData(player,"Money",tonumber(mo) + 50) setAccountData(acc,"Money",tonumber(mo) + 50) end end end The script is working perfectly but i've got a big problem, the money is not shown in HUD and is not compatible with other scripts who uses money (Ammunation system, car shop systems...)
  7. Thank you much walrus for efforing in helping me but i still not get succesful If you could do it for me with this conditions: The resource containing vehicles will be known as "VehMap" Respawn each 10000 Really if you do it, i will thank you much. If you want i can make you any 3D model with Autodesk 3ds max(preferable for GTA San Andreas).
  8. Thank you much it worked, much love, i'll set this as solved.
  9. It's working but now i've got another problem, how to set vehicle color with createVehicle or Is there any way to choose all the vehicles of .map file, instead of setting all them manually?
  10. Luckily i've obtained free linux mta server, but i don't know commands to control the console of the remote server I use ./mta-server -d command to run the server 24h, but after all, i can't control the remote console to do things like: -Shutting down server -start/stop/restart/refresh resources If anyone could post here the commands i have to use to do the things before mentioned.
  11. Hello, i need a script that make aim sign showing all the time, except when you are inside of a vehicle. if you don't get what i mean, i mean like in GTA:Vice City If you still not getting it Click Here
  12. The debug script doesn't show any error, but what happens is that you start displaying the image since the begging and the image is not disabled while login panel is actived, and after clicking in a certain button, it should be disabled, but it stills there. Mainly i need a command like (guiSetVisible(insert GUI stuff name here,true/false)) but for the dxImage
  13. Basically i've got a script to show certain buttons after login, it works perfectly, but i wanted to add a dxImage and i didn't got succesful, this is everything i use to do this actions: login>show buttons This is to show the dxImage. local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() dxDrawImage(0, 0, screenW, screenH, ":tdm/pics/intro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end ) This is to hide login window and show the team selection buttons (guiSetVisible(TeamSlct_BTN[1],true)) function hideLoginWindow() --Show Team select panel after login guiSetInputEnabled(false) guiSetVisible(Login_TabPanel[1], false) destroyElement(Login_TabPanel[1]) Login_TabPanel[1] = nil guiSetVisible(TeamSlct_BTN[1],true) guiSetVisible(TeamSlct_BTN[2],true) guiSetVisible(TeamSlct_BTN[3],true) if blackLoginScreen == true then fadeCamera(true,blackScreenTime) end end addEvent("hideLoginWindow", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) This are buttons script: TeamSlct_BTN[3] = guiCreateButton(0, (screenH/2) - ((screenH/3)/2), screenW, screenH/3, "PLT", false) guiSetProperty(TeamSlct_BTN[3], "NormalTextColour", "FF0553B3") guiSetFont(TeamSlct_BTN[3], "sa-header") guiSetVisible(TeamSlct_BTN[3],false) If you need anything else to help me ask for it. Thanks for reading.
  14. It works, but, how can i add various vehicles for example this vehicles: ( 400, 1552.552734375, -1624.3525390625, 13.3828125 ) ( 400, 1577.2568359375, -1612.421875, 13.3828125 )
  15. Stupidly it worked... :fp: map editor CJ's house door removed Thanks for help.
  16. I would like to know the script to make a empty vehicle respawn, the conditions are that the vehicle should be empty during 60 seconds (60000 ms) this is the actual script i use to respawn exploted vehicles: function respawnexploredcrs() setTimer(respawnVehicle,15000,1,source) end addEventHandler("onVehicleExplode", getRootElement(), respawnexploredcrs)
  17. I can't remove CJ's house door, and there are another doors too i can't remove via map editor. Click in the image below if you don't get it what i mean: CJ's House Door If anyone can script to remove that object it would be great. This is object information: Name: Gen_doorEXT03 Model/ID: 1498 Dimension: 0 Radius (i think this thing is useless): 3.4582796 Coordinates: X: 2495.4907 Y: -1691.4904 Z: 14.868646
  18. Thanks you much it worked, it was annoying that stuff of quick-reload, but i managed to get it off by: setGlitchEnabled ( "quickreload", false ) This post can be locked
  19. I'm requesting an script that would allow players switching of weapon "freely", in other words, they will be able to move instantly after shooting if they switch of weapon. It's C-Bug like but instead of pressing C, switch the weapon with scroll.
  20. Thanks for helping this can be locked.
  21. I tried to add a command to show/hide blips, didn't work cuz i'm noob, help me please function showBaseBlips () createBlip ( 1972.5458984375, -1113.5166015625, 25.628751754761, 59,2,0,0,0, 255,0, 99999) end addCommandHandler(baseblips, showBaseBlips, false, true) if anyone could tell me the way to fix it.
  22. Worked perfectly, thanks to everyone, this post can be locked/archived
  23. It worked me perfectly thank you very much. but nobody answered my second question; and with random skins (for example skins 250,103 and 56)
  24. As title says, how can i set various spawnpoints and skins? Actually im using this script to spawn: function spawnAsGroveStreetTeam ( player) spawnPlayer (player, 2463.740234375, -1651.5595703125, 13.470365524292, 180, 0, 0, 0) setElementModel(player,math.random(105,107)) fadeCamera (player, true) setCameraTarget (player, player) setElementData(player,"isSpawned",true) setTimer(setElementData,5000,1,player,"isSpawned",false) giveWeapon(player,4,1) giveWeapon(player,16,5) giveWeapon(player,22,200) giveWeapon(player,26,52) giveWeapon(player,32,350) giveWeapon(player,30,250) giveWeapon(player,33,74) end This Stuff it just allows me spawning skins between 105-107 setElementModel(player,math.random(105,107)) and for example i can't add the skin 207 spawnPlayer (player, 2463.740234375, -1651.5595703125, 13.470365524292, 180, 0, 0, 0) And it happend me the same with the spawnpoints, i only can set 1 spawnpoint and i want to set various.
×
×
  • Create New...