Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. You can try using this, but I'm not entirely sure if it will work. -- save addEventHandler ( "onPlayerQuit", root, function ( ) local account = getPlayerAccount ( source ) if ( isGuestAccount( account ) ) then return end local clothes = { } for i=0, 17 do clothes[i] = { getPedClothes ( source, i ) } end clothes = toJSON ( clothes ) setAccountData ( account, "Clothes", clothes ) end ) addEventHandler ( "onPlayerLogin", root, function ( _, account ) local clothes = getAccountData ( account, "Clothes" ) if not clothes then return end for i, v in pairs ( fromJSON ( clothes ) do local text, id = unpack ( v ) addPedClothes ( source, text, id, i ) end end )
  2. Nobody's going to make you an in-game translator for free..
  3. I don't really know why you're trying to sell it, there are already clan systems that have complete GUI's and don't rely on any commands for free on the community, such as this one viewtopic.php?f=108&t=67832.
  4. dxDrawImage returns a boolean, not an element. And you must use it in a render event. But other than that, I think this is what you might've been trying to make local tick; local degree = 0; function dxDrawRotatingImages ( ) if ( not tick ) then tick = getTickCount ( ) end if ( getTickCount ( ) - tick >= 2000 ) then tick = getTickCount ( ) degree = degree + 10 if ( degree >= 360 ) then degree = degree - 360 end end dxDrawImage ( Disk_pos_X, Disk_pos_Y, 100, 100, "img.png", degree, 0, 0, tocolor ( 255, 255, 255, 255 ), true) dxDrawImage ( Disk_pos_X, Disk_pos_Y, 100, 100, "img.png", 0, 0, 0, tocolor ( 255, 255, 255, 255 ), true) end addEventHandler ( "onClientRender", root, dxDrawRotatingImages )
  5. What line is line 97?
  6. This is caused because the developer of the script didn't put in the cancelEvent( ) function when it outputs the chat message with the [Admin] tag.
  7. Try this: local setPlayerNewName = setPlayerName function getPlayerSuperNick( player ) local account = getPlayerAccount( player ) if ( account ) and ( not isGuestAccount( account ) ) then local accountSuperNick = getAccountData(account,"supernick") if ( accountSuperNick ) then local supernick = getElementData(player,"supernick") if ( supernick ) then setPlayerNewName(player,supernick) outputChatBox(supercolor.."[supernick]: #FFFFFFYour "..supercolor.."supernick #FFFFFFhas been set to "..supercolor..getElementData(player,"supernick"),player,255,255,255,true) end end end end addEventHandler("onPlayerLogin",getRootElement(),function() getPlayerSuperNick ( source ) end ) function savePlayerSuperNick( player ) if ( player == source ) then local account = getPlayerAccount( player ) if ( account ) and ( not isGuestAccount( account ) ) then local supernick = getElementData(player,"supernick") if ( supernick ) then setAccountData(account,"supernick",supernick) end end end end addEventHandler("onPlayerQuit",getRootElement(),savePlayerSuperNick)
  8. You can save all of the current players data in the event onResourceStop
  9. I think you were probably trying to get this: addEvent ( "table", true ) addEventHandler ( "table", root, function ( id, name ) if ( not pcars ) then pcars = { } end table.insert ( pcars, { id, name } ) end )
  10. xXMADEXx

    question

    Just use the database functions: dbConnect dbExec dbQuery dbPoll You'll need to learn updates and inserts for SQL. Insert: http://www.w3schools.com/sql/sql_insert.asp Update: http://www.w3schools.com/sql/sql_update.asp
  11. All you need to do is give all users access to the permission "general.http"
  12. Try using this --Client addEventHandler("onClientResourceStart", resourceRoot, function() if not isElement(window1) then shopInterface6() end triggerServerEvent ( "onClientRequestIsPlayerAdmin", localPlayer ) end ) function openGui(a) if (a) then if not isElement(window1) then shopInterface6() end if not guiGetVisible(window1) then --stats() guiSetVisible ( window1, true ) showCursor(true) else guiSetVisible ( window1, false ) showCursor(false) end end end addEvent ("onServerSendClientIsAdmin", true ) addEventHandler("onServerSendClientIsAdmin", root, function ( isAdmin ) if isAdmin then bindKey ( "f2", "down", openGui ) end end ) -- server addEvent ( "onClientRequestIsPlayerAdmin", true ) addEventHandler ( "onClientRequestIsPlayerAdmin", root, function ( ) local a = getPlerAccount ( source ) local admin = isObjectInACLGroup( "user"..getAccountName ( a ), aclGetGroup ( "Admin" ) ) triggerClientEvent ( source, "onServerSendClientIsAdmin", source, admin ) end )
  13. I doubt any scripters have time or are willing to teach people. You can start at viewtopic.php?f=148&t=75501
  14. Are you talking about deleting rows within a table? DELETE FROM tablename WHERE ColumanName=value
  15. It's not that hard to do a little bit of searching. http://crystalmv.net84.net/pages/scripts/drawtag.php https://community.multitheftauto.com/index.php?p= ... ls&id=2176 https://community.multitheftauto.com/index.php?p= ... ils&id=614
  16. xXMADEXx

    MTA Fail to load

    viewtopic.php?f=104&t=31668
  17. I'm guessing it's just not the texture being matched?
  18. Check /debugscript 3. It will display the error.
  19. Is your VPS a Windows or Linux Machine? x64 or x86?
  20. xXMADEXx

    postGui

    I don't think that there is, so you could keep the image as not having postGUI, or you could make the image into a gui element guiCreateStaticImage and have the edit field as a child of it.
  21. You could just use the downloadFile function...
  22. Download this file: https://mirror.multitheftauto.com/mtasa/resources ... -r1010.zip And put the admin resource on your server, type "refresh" in the mta console, then type "start admin"
×
×
  • Create New...