-
Posts
2,947 -
Joined
-
Last visited
Everything posted by JR10
-
Putting the MTA Server in the background/Notification area
JR10 replied to Jaysds1's topic in Suggestions
He means that they can just close MTA server.exe. -
Lol, teach? Dude, if you are too lazy, then don't script at all. Learn: https://wiki.multitheftauto.com/wiki/Main_Page
-
That function is not attached to anything. here: function bulletexplosion (hitX, hitY, hitZ) createExplosion ( hitX, hitY, hitZ, 2 ) end addEventHandler("onPlayerLogin", root, function ( _, acc ) local accName = getAccountName ( acc ) if isObjectInACLGroup ( "user." .. getPlayerName(source), aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) addEventHandler("bulletboom",getRootElement(),bulletexplosion) end end ) Of course client is needed. Now the player must log in, and it will check if he's in FGMembers.
-
Try this: function bulletexplosion (hitX, hitY, hitZ) createExplosion ( hitX, hitY, hitZ, 2 ) end function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) addEventHandler("bulletboom",getRootElement(),bulletexplosion) end end )
-
No one will give you something like that, you will have to learn and make it yourself. https://wiki.multitheftauto.com/wiki/Main_Page
-
This won't work, won't give all the players. Make it server side. addCommandHandler ( "sendall", function ( player, cmd, amount ) if hasObjectPermissionTo ( player, "function.banPlayer" ) then if tonumber ( amount ) ~= nil then for id, player in ipairs ( getElementsByType ( "player" ) ) do givePlayerMoney ( player, tonumber ( amount ) ) outputChatBox("#FF0000 *** ADMIN HAS GIVEN MONEY: #00FF00" .. amount .. "$ #FF0000 TO ALL PLAYERS *** ", root, 255,0,0,true) end)
-
Make that yourself, start learning: https://wiki.multitheftauto.com/wiki/Main_Page
-
A:A:A:A:A:A:A:A:A:A:A:A: . Q: Do they have the word "dictionary" in the dictionary?
-
So? A lot of ppl have vG scripts, and sell it or use it one their own server.
-
Post the meta and the script.
-
To change any thing happens in the chat, you need to cancel the event, and outputChatBox your own message.
-
Thanks. Our forums are down due to technical issues. They should be back up in the next day. Due to immature behavior and a few other things, 272 emails were sent for our account in less than 5 minutes. Meaning our account has been suspended for a while, Will is talking to the hosts now, And it will be back on soon. Thanks.
-
They made it then.
-
That's is not the problem, the server doesn't crash any more. The example I posted just don't work.
-
Now I know where to put it, MTA Directory\server\libmysql.dll handler = mysql_connect("localhost", "test", "test", "jr10test") -- Establish the connection if ( not handler ) then -- The connection failed outputDebugString("Unable to connect to the MySQL server") else local result = mysql_query(handler, "CREATE TABLE IF NOT EXISTS Test (TEST NUMBER,NAME TEXT)") if (not result) then outputDebugString("Error executing the query: (" .. mysql_errno(handler) .. ") " .. mysql_error(handler)) else mysql_free_result(result) -- Freeing the result is IMPORTANT result = mysql_query(handler, "SELECT * FROM Test") end end I tried this, and it gives me syntax error.
-
The sound of the race, isn't a file, it's with playSoundFrontEnd, which will play a sound in GTA. To replace it you will need scripting knowledge, and replace playSoundFrontEnd with playSound.
-
Lol, the basemode right?, search for basemode and replace the count down in it.
-
https://community.multitheftauto.com/index.php?p= ... ils&id=222 Scroll down you will find maps for this game mode.
