Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. its going a bit offtopic, but.. i think there should be at least warning system.. for stealing scripts, acting like 11yo, flaming, going too deep OT (like this one ;>) etc
  2. well, i wasn't about stickies - everyone knows that nobody reads them.. it was about: and i'm pretty sure that Metalhero didnt read that sticky anyway
  3. bad answer. good answer: I opened MTA WIKI. Then i looked into Client side functions, checked Audio functions and found 3 functions that could help me: playSoundFrontEnd playSound playSound3D after i read all descriptions i know that playSoundFrontEnd isn't what i need, but i can use playSound to play fire sound, but it would be better to place the sound in san andreas world, so anybody can hear me shooting with different sound, so i choosed playSound3D Should i finish this little tutorial of thinking by yourself?
  4. a: no, according to: https://forum.multitheftauto.com/viewtop ... 02&t=28283 it's robhol q: another stupid question?
  5. blind? https://wiki.multitheftauto.com/wiki/AddCommandHandler example 4..
  6. a .. list??? you don't need that "end"
  7. STOP !!! ACTING !!! LIKE !!! A !!! DAMN !!! KID !!! OKAY ? answer for your PROBLEMS: (unrelated to main topic) https://forum.multitheftauto.com/viewtop ... 91&t=27027
  8. edit: there WAS topics with full script. search them.
  9. and i think it was just another "great idea" ..
  10. debug, debug, debug local row = executeSQLQuery("SELECT deaths FROM playerstbl WHERE accountname = '"..getAccountName(acc).."'") -- WTF is that? i didnt see its here -> ["deaths"] if not row then outputDebugString("there was no row") deaths = 1 else outputDebugString("there was one row with deaths "..row['deaths'].." now its "..row['deaths']+1) deaths = row['deaths'] +1 end executeSQLUpdate("playerstbl", "deaths = '"..deaths.."'", "accountname = '"..getAccountName(acc).."'") and btw, your script is unsafe, read about SQL Injections
  11. local row = executeSQLQuery("SELECT deaths FROM playerstbl WHERE accountname = '"..getAccountName(acc).."'")["deaths"] if not row then deaths = 1 else deaths = row['deaths'] +1 end executeSQLUpdate("playerstbl", "deaths = '"..deaths.."'", "accountname = '"..getAccountName(acc).."'")
  12. when he's starting a dedi he dont have gui..
  13. im not talking about modding it, just decompile and check events list.. then you will be using these events in own resource - which is not modding this gamemode
  14. yes, with sqlite browser (there was such resource, to manage it ingame, but theres also a windows applications for doing it)
  15. rly.. when i was scriptign peds for 1st time i tried to use setPedControllState - but it failed (as descripted above) - then i changed to animations - then i saw that zombies resource is also using this method - and somewhere on forums somebody was complaing about setPedControlState on peds too..
  16. you have static or dynamic ip btw? maybe these sities will help you to check ports: http://portforward.com/help/portcheck.htm http://www.yougetsignal.com/tools/open-ports/
  17. it's extremely popular problem - blocking/enabling something for specified time for each player by a command - and using only one variable as a "lock".. isnt it logical?
  18. do not use "setPedControlState" for making peds walk! they will not walk in right direction - it depends some way on local player rotation and keypress i think.. anyway - its buggy you have to use setPedAnimation
  19. just replace line 5 in 50p's script with team you want to send message to..
  20. you can not attach to bones afaik, but you can onClientRender get bone position, and setElementPosition.. there was topic about same problem like week ago?
  21. do not use translator, we can't understand you..
  22. look at my post again.. i forgot to disable bb code.. oh.. so we've got a problem in this one ;p
×
×
  • Create New...