-
Posts
2,947 -
Joined
-
Last visited
Everything posted by JR10
-
Not really something to release, that's an easy script.
-
Then there is NO cops vs robbers RELEASED. -____-
-
Then it doesn't exist, no cops vs robbers is released.
-
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.
-
Download it, and replace the one in the resource.
-
https://community.multitheftauto.com/index.php?p=resources Search here.
-
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.
-
http://anoclan.zxy.me/rhbk/bazy.zip
-
I might release a new version for 1.1, I will add new features, and of course Encode in UTF-8
-
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.
-
Start to learn: https://wiki.multitheftauto.com/wiki/Main_Page
-
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)
-
You didn't post any script so we can help you.
-
The base map file doesn't exist. -.-
-
No problem.
-
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.
-
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)
-
Lol, why wouldn't it work.
-
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)
-
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.
-
Can you say what's wrong, what happens?
-
I haven't test creating anything outside the boundaries, but I still think it's not possible.
-
Log me on each visit not working and avatar problem.
JR10 replied to JR10's topic in Site/Forum/Discord/Mantis/Wiki related
Use forum.multitheftauto.com -
Search for it: viewforum.php?f=116/
