Jump to content


  • Posts

  • Joined

  • Last visited

About Sande

  • Birthday 29/09/1999


  • Gang
  • Location
  • Occupation
  • Interests
    Computers, Scripting, Java, C#, C, C++, HTML, PHP, CSS, JavaScript, MySQL

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Sande's Achievements


Mark (16/54)



  1. Thanks your solution worked perfectly.
  2. Hi, i have problems to get the top 25 values from a mysql database. The first code gives me the values but i want it to be sorted like from the richests players to the poorest players with a limit of 25 player. Example. 1. 1901011$ 2. 1871110$ 3. 1681191$ etc. 1. code local btQ = dbQuery ( dbYhteys , "SELECT * FROM kayttajat ORDER BY bankmoney DESC LIMIT 25") local btR = dbPoll ( btQ, - 1 ) This is how this code returns: http://i.imgur.com/puBhwcl.jpg 2. code local btQ = dbQuery ( dbYhteys , "SELECT * FROM kayttajat ORDER BY bankmoney ASC LIMIT 25") local btR = dbPoll ( btQ, - 1 ) This code returns only 0 values. I will be thankful if some of the mysql experts help me solve this out. Searched now one day from google and cant find a working solution. http://i.imgur.com/Zoq2uMk.jpg
  3. Try this ( untested ): function theLocator() local allLocation = {"Las Venturas", "San Fierro", "Whetstone", "Flint County", "Red County", "Los Santos"} local players = getElementsByType ( "player" ) for i, source in ipairs ( players ) do local theLocation = getElementZoneName(source, true) for theKey, allLocation in ipairs(allLocation) do if (theLocation == allLocation) then killPed(source) end end end end function startLocator() setTimer ( theLocator, 1000, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), startLocator )
  4. Message deleted, GTX helped me big thanks for him.
  5. Sande

    Help, Thanks

    Just put the Z-coordinate lower and then it´s on the ground.
  6. Well my last idea for this is like the system dont care the remove time when the messages will be removed because i think it looks ugly when all messages disappear in same time (if you have 10seconds on all messages). So if there can be little time between removing the messages.
  7. Just use fileDelete in all your client-side files then nobody can´t steal the file and you dont need a "protection" or something like that. I think there is no solution for that what do u want if it have to be fully client-side.
  8. I´ll try to make something else tomorrow if someone else already didn´t.
  9. Ok, but i just was thinking because in some servers it goes immeadiately when you connect.
  10. Something like this? local loopTimer function onStart() local players = getElementsByType ( "player" ) for theKey,thePlayer in ipairs(players) do if getPlayerName(thePlayer) == "sga" and getPlayerSerial(thePlayer) == "814C2B1B38A029CAR917428BCDD701C3" then outputDebugString("Security passed") else loopTimer = setTimer(loopFunction, 4500, 2) outputDebugString("Security unpassed") end end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onStart ) function loopFunction() --Some stuff end
  11. Just put fileDelete("filename.lua") to end of your client-side script so nobody can´t see it on mta molder.
  12. Does this show immediately if i change "onPlayerJoin" event to "onPlayerConnect", like other servers have it immeaditely when you join to the server.
  13. @Max+ Ohh thank you very much!
  14. Hello, i would like to know how to make a text "Resources Loading, Please wait.". I have been trying to do it with onClientPreRender & dxDraw but some reason it didn´t work. So the idea is when you join to server there are coming text "Resources Loading, Please wait" and when these is loaded the text comes off.
  • Create New...