Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. a: EVERYTHING should be orange.. excepting samp, which should be.. hmm.. invisible q: free orange juice for everyone?
  2. https://community.multitheftauto.com/?p=resources ... ils&id=883 oh, and somebody - look at this: https://community.multitheftauto.com/?p=resources ... nts&id=884 he agreed that he stolen it
  3. dzek (varez)

    MySQL

    try to download with IE maybe? I know sometimes (extrelmy rare, but i know why) firefox dont want to download something. I assume you are using firefox. temporary mirror: http://upload.dzek.metal.info/pliki/mta_mysql.so.tar.gz
  4. creating it with same password as username is at least stupid.. creating accounts based on nickname too.. autologin is based on serial, your script on nickname.. i dont know much about autologin but.. isnt it creating accounts automatically? I'll upload my auto-registering and auto-logging script to community.
  5. a: me! and my dog too! q: wtf is on WallMart avatar?
  6. MaddDogg notice he is running this funcion also on onPlayerJoin handler o_O
  7. btw: are you sure you blocked "register" "login" and "logout" in ACL? if not - your script is extremly easy to hack and login as other user... oh well.. its still easy - just changing nickname.. whatever.. only script fix, not logical fix, cause your logic is totally broken function triggerTimer() setTimer(makeAccount, 2000, 1. source) end addEventHandler("onPlayerJoin", getRootElement(), triggerTimer) function makeAccount(playerSource) local account = getPlayerAccount(playerSource) if (account) then if isGuestAccount(account) then addAccount(getPlayerName(playerSource), getPlayerName(playerSource)) outputChatBox("Your account has been created!", source, 0, 255, 0) end else addAccount(getPlayerName(playerSource), getPlayerName(playerSource)) outputChatBox("Your account has been created!", source, 0, 255, 0) end end addCommandHandler("makeaccountforme", makeAccount) and suggestion: spend some time on reading wiki, and learning lua, not just merging random code snippets from somewhere - this will bring you nowhere.. https://wiki.multitheftauto.com/wiki/Scripting_Introduction https://wiki.multitheftauto.com/wiki/Debugging https://wiki.multitheftauto.com/wiki/Resources https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions https://wiki.multitheftauto.com/wiki/Client_Scripting_Events https://wiki.multitheftauto.com/wiki/Server_Scripting_Events or just https://wiki.multitheftauto.com/
  8. dzek (varez)

    Problems

    WHAT? you installed map mod (IPL files are changed) and want to play MTA with people with original map? omg omg omg,,
  9. a: find swimming stickman and you have my vote! q: me for king of whole Earth?
  10. post full script dude! all i can say seeing these lines: - you are giving bad argument when using getPlayerAccount (source == bad argument) - you are giving bad argument when using isGuestAccount (account == bad argument) but.. its same as: Bad argument @ getPlayerAccount Bad argument @ isGuestAccount isnt it?
  11. its already made, search on forums or on community.multitheftauto.com
  12. you are passing TEAM as last value.. it needs to be player element..
  13. i dont think anybody really needs it better way than checking all of possibilities it to do something like: local mystring = "IamGOD" local yourstring = "IAmgOd" local result = compareNonCaseSensitive(mystring, yourstring) if (result) then outputChatBox("yes, strings are the same!") else outputChatBox("no, strings are different") end function compareNonCaseSensetive(str1, str2) if (str1==nil or str2==nil) then return false end if (string.lower(tostring(str1)) == string.lower(tostring(str2))) then return true else return false end end this will output yes, strings are the same!
  14. what a weird methods.. maybe this? pressingA=false pressingB=false pressingC=false function checkCombo() if (pressingA and pressingB and pressingC) then -- our action outputChatBox("magic!") end end bindKey("a", "down", function() pressingA=true checkCombo() end) bindKey("a", "up", function() pressingA=false end) bindKey("b", "down", function() pressingB=true checkCombo() end) bindKey("b", "up", function() pressingB=false end) bindKey("c", "down", function() pressingC=true checkCombo() end) bindKey("c", "up", function() pressingC=false end) this is the best way i think, give it a try.
  15. did he or me say anything about server side? this also sounds good..
  16. i found something like that in my server logs: i said i dont know anything about xfire, but ..
  17. i think so.. good idea is not to giving random advices when you dont know how to solve problem nope, but i can write a generator for it
  18. The diplomacy... it buurrrnnssssssss.. Why not just say SA-MP. MTA and SA-MP are pretty much the only two online mods for GTA:SA that are worth mentioning anyway. One of those isn't worth mentioning. i know which one ;>
  19. a: no q: robhol, DarkDragon, Scarface, or all of them?
  20. what is this? afaik this will be true you mean table maybe? anyway 'te' was an example.. wanna do the same for: iamveryluckyman ? ;p
  21. afaik - not possible.. in normal way.. when i needed that i just made handler of onClientRender event and in that handler i was checking pressed keys, and when both was pressed then .. something
  22. afair Kart is on the list by default o_O
×
×
  • Create New...