Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. Not really something to release, that's an easy script.
  2. Then there is NO cops vs robbers RELEASED. -____-
  3. Done, but now it doesn't find it, and give me the message that it's missing. EDIT: I just checked MTA - Paradise, there it's not added to mtaserver.conf as a module. And if I do that, it says it's missing.
  4. JR10

    Countdown audio

    Download it, and replace the one in the resource.
  5. https://community.multitheftauto.com/index.php?p=resources Search here.
  6. Here is what happens: I downloaded ml_mysql.dll I run the server a window appears saying libmysql.dll is missing. Downloaded it, and when I run the server says unable to find libmysql.dll, but ml_mysql runs this time successfully. Next I made a test script whenever I use mysqlOpen My server crashes. Even used the exact same example on wiki, but changed the username and pass. function onMySQLOpen ( result ) if ( result ) then outputServerLog ( "MySQL connection established." ) else outputServerLog ( "MySQL connection failed." ) end end db = mysqlCreate () mysqlOpen ( db, "onMySQLOpen", "localhost", "test", "test", "jr10test", 3306 ) First time I use mysql. Windows 7. EDIT: there is not problems with the arguments, I used xamp, made a full Privileges user name: test password: test. I made a database with the name jr10test. EDIT: i found libmysql.dll in mabako mta paradise, just took it.
  7. http://anoclan.zxy.me/rhbk/bazy.zip
  8. I might release a new version for 1.1, I will add new features, and of course Encode in UTF-8
  9. You will have to make a "getPlayerFromPartialName" here: function getPlayerFromName( partialName ) if partialName then local matches = {} for i, player in ipairs ( getElementsByType ( "player" ) ) do if getPlayerName ( player ) == partialName then return player end if getPlayerName ( player ) : gsub ( "#%x%x%x%x%x%x" , "" ) : lower ( ) : find ( partialName : lower ( ) ) then table.insert ( matches , player ) end end if #matches == 1 then return matches [ 1 ] end end return false end Now just put it anywhere, and don't change anything.
  10. Start to learn: https://wiki.multitheftauto.com/wiki/Main_Page
  11. function hideJack(player,command,who,...) local targetPlayer = getPlayerFromName ( who ) if targetPlayer then local message = table.concat({...}, " ") outputChatBox(getPlayerName(who).."#EBDDB2: "..message ,root,255,255,255,true) end end addCommandHandler("yaziasda",hideJack)
  12. You didn't post any script so we can help you.
  13. The base map file doesn't exist. -.-
  14. messages = { "Hi", "How are u", "Whats up?" } serials = { ["2F79CDD46FA67EB6006A1C1E24BD3583"] = true } function onJoin() local serial = getPlayerSerial(source) if serials[serial] then setElementData(source,"LP",true) end end addEventHandler("onPlayerJoin",root,onJoin) function chat(message,messageType) if getElementData(source,"LP") then cancelEvent() local randm = messages[math.random(#messages)] outputChatBox(getPlayerName(source).."#FFFFFF:"..randm ,root,0,0,0,true) end end addEventHandler("onPlayerChat",root,chat) Tested, don't forget to give the resource admin.
  15. Yea, there is a problem when warping yourself inside a vehicle, I suggest you check if the player is inside a vehicle, remove him from it, setElementPosition(vehicle) warp the vehicle, and then warpPedIntoVehicle. if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) removePedFromVehicle(player) setElementPosition(vehicle, 0, 0, 0) setTimer(warpPedIntoVehicle, 300, 1, player, vehicle)
  16. g_R = getRootElement() messages{ "Hi" "How are u" "Whats up?" } serials { ["2F79CDD46FA67EB6006A1C1E24BD3583"] = true } function onJoin() local serial = getPlayerSerial(source) if serials[serial] then setElementData(source,"LP",true) end end addEventHandler("onPlayerJoin",g_R,onJoin) function chat(message,messageType) if getElementData(source,"LP") then cancelEvent() local randm = messages[math.random(1,3)] outputChatBox(getPlayerName(source).."#FFFFFF:"..randm ,g_R,0,0,0,true) end end addEventHandler("onPlayerChat",g_R,chat)
  17. Center window should work, if you are using the guieditor, which you are, show your GUI, load it to the guieditor, settings >> tick relative. Then print code again, if you don't want to do that, here: local sX, sY = guiGetScreenSize() local left = sX / 2 - windowWidth / 2 local top = sY / 2 - windowHeight / 2 And use left top, as x y for the window.
  18. Can you say what's wrong, what happens?
  19. Ah, my bad then, sorry.
  20. I haven't test creating anything outside the boundaries, but I still think it's not possible.
  21. Search for it: viewforum.php?f=116/
×
×
  • Create New...