Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. You can check here: http://www.mtadayz.com/
  2. Cool, but do you have a link to give us? :3
  3. Also, this: https://forum.multitheftauto.com/viewtopic.php?f=108&t=64860
  4. That code sucks. Timer will keep on running on... You should just use a timer with 10000 instead of 1000 and then just trigger It's on client side, the timer would stop when the player gets redirected, please, use common since. I was just setting it up for how Malig wanted it, not how I think it should be.
  5. ((Not Tested)) You can try this. local s = 10 function timer2 ( ) s = s - 1 if ( s <= 0 ) then triggerServerEvent ( "redirection", localPlayer ) end end setTimer ( timer2, 1000, 0 )
  6. You are only checking "vis" for onClientClick when the resource starts...
  7. Well, sounds like the players weapon stat's arn't set. When they are set to the max, then player can have the gun at solder fire rather than just hip fire. You could try something like: setPedStat ( thePlayer, 78, 999 )
  8. You should use the default MTA database functions. https://wiki.multitheftauto.com/wiki/Se ... _functions Really the only reason people now use the MySQL module is for vG scripts. (As far as I know, the MySQL Module only works on a 32-bit operating system.)
  9. It doesn't really have anything to do with the code, and the file does exit or it'd give a debug error.. The .dff file is most likely to be corrupted.
  10. Vehicle health is on a scale of 0-1000, not 0-100
  11. that's because "source" isn't defined. use: setTimer ( milks, 5000, 1, source )
  12. xXMADEXx

    zday script

    It'd take a lot of extra coding to set the entire game mode to only work in a defined dimension.
  13. Side: client. Event: onClientGUIClick/onClientClick Function: playSound
  14. just needs to be the following code, unless you need other arguments, which in this case you don't. executeCommandHandler ( "jump" )
  15. xXMADEXx

    Question

    I'm not 100% sure, but I don't think that you can replace the marker... I don't think that it has a model.
  16. You are trying to get the length of a table with string.len... Use: if ( #BigArrayForSave > #lastBigArray ) then Not sure, but that could be the problem.
  17. SQL Doesn't use functions like mta, they are all in strings. You can try this link: http://www.w3schools.com/sql/
  18. xXMADEXx

    SQLServer

    You can SQLite or MySQL.
  19. xXMADEXx

    SQLServer

    You mean dbConnect?
  20. I've never tried doing an event like that, but I guess you could try, although I don't think that it'll work.
  21. All you need to do is create a new edit box, when the user clicks "Place Speaker" make a new argument in the triggerServerEvent with the sound level. In the server side, you need to place the sound argument in triggerClientEvent and then for setSoundMaxDistance, replace "reach" with the distance.. Sounds complicated, I know but it's very simple.
  22. When the player dies, you an loop through their weapons, insert them into a table and then when the player spawns, check to see if the index exists and if it does give them their weapons backs.
×
×
  • Create New...