Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. JR10

    Explosive bullets

    Where is the event.
  2. He means that they can just close MTA server.exe.
  3. JR10

    help plz

    Lol, teach? Dude, if you are too lazy, then don't script at all. Learn: https://wiki.multitheftauto.com/wiki/Main_Page
  4. JR10

    Explosive bullets

    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.
  5. JR10

    Explosive bullets

    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 )
  6. No one will give you something like that, you will have to learn and make it yourself. https://wiki.multitheftauto.com/wiki/Main_Page
  7. 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)
  8. Make that yourself, start learning: https://wiki.multitheftauto.com/wiki/Main_Page
  9. A:A:A:A:A:A:A:A:A:A:A:A: . Q: Do they have the word "dictionary" in the dictionary?
  10. So? A lot of ppl have vG scripts, and sell it or use it one their own server.
  11. JR10

    Permissions

    Post the meta and the script.
  12. To change any thing happens in the chat, you need to cancel the event, and outputChatBox your own message.
  13. 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.
  14. JR10

    ComboBox

    New GUI element in 1.1, You can test it to see what is it.
  15. That's is not the problem, the server doesn't crash any more. The example I posted just don't work.
  16. 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.
  17. JR10

    Countdown audio

    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.
  18. JR10

    Countdown audio

    Lol, the basemode right?, search for basemode and replace the count down in it.
  19. https://community.multitheftauto.com/index.php?p= ... ils&id=222 Scroll down you will find maps for this game mode.
×
×
  • Create New...