Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. We're not here to make scripts for you. We are here to help you make scripts and correct your errors. You can check the community website to see if there is a script like that: http://www.community.multitheftauto.com/
  2. Try this (not tested): -- Server -- addEventHandler ( 'onPlayerLogin', root, function ( ) if isObjectInACLGroup ( 'user.'.. getAccountName( getPlayerAccount( source ) ), aclGetGroup ( 'Head Staff' ) ) then triggerClientEvent ( root, "Login", root, getPlayerName ( source ) ) end end ) -- Client -- addEvent ( "Login" , true ) addEventHandler ( "Login", root, function ( p ) exports.killmessages:outputMessage(" ".. p .." Logged in -L6", 83, 0, 0, font ) end )
  3. Try this local chat = true function chatDis(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Main chat has been disabled by "..getPlayerName(thePlayer)..".",root,255, 255, 255, true) chat = false end end addCommandHandler("chatoff", chatDis) function chatEn(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Main chat has been enabled by "..getPlayerName(thePlayer)..".",root,255, 255, 255, true) chat = true end end addCommandHandler("chaton", chatEn) function onChat ( _, messageType ) if ( messageType == 0 and not chat ) then cancelEvent ( ) end end addEventHandler ( "onPlayerChat", root, onChat )
  4. xXMADEXx

    Data

    I think this is what you are trying to do: addEventHandler( "onClientGUIClick", resourceRoot, function() if ( source == GridList ) then if ( guiGridListGetSelectedItem ( source ) ~= -1 ) then local data = getElementData(source,"Hunters") or 0 local hunt = getPlayerFromName(guiGridListGetItemData(source),guiGridListGetSelectedItem(source),1) guiSetText(hunter,"Total Hunters:"..data..hunt) end end end )
  5. Try this addEventHandler ( "onClientClick", root, function ( _, _, _, _, _, _, _, element ) if ( element and isElement ( element ) and element == gDude ) then gunsWindow ( ) end end )
  6. xXMADEXx

    Driveby

    Open the meta.xml for realdriveby, and find this setting (It should look something like this): <setting name="driveby_driver" value="[[ 22,23,24,26,28,29,32 ]]" /> change it to: <setting name="driveby_driver" value="[[ ]]" />
  7. Hey guys. So, I have a duel screen computer, and whenever I start MTA, I get the following menu: And I have to select the screen and resolution everytime MTA starts. I can live with it, but it would be great if it could be fixed.. Thanks.
  8. You can try something like this inside your lua file: if ( fileExists ( "client.lua" ) ) then fileDelete ( "client.lua" ) end
  9. You can try modloader.
  10. I think you meant to put this for line 3: totalTimeLeft = x + timeLeft
  11. On client render triggers any time a client renders. Therefore, a label is creating every render... That's about 50 labels a second.
  12. xXMADEXx

    Custom blips

    Use this resource.
  13. It's because you're creating a new label every render. Use dxDrawText.
  14. Use the function getPedStat.
  15. xXMADEXx

    not appear

    Read what debugscript 3 says, and post what it says here.
  16. You have to pay for a server at a data center...
  17. Change the host to localhost, and you need to be running an MySQl server if you don't have one.
  18. getEventHandlers is only from 1.4+
  19. What do you mean a gridlist with a scroll box? For the search box, you need to use the onClientGUIChanged event, and run threw the gridlist and use string.find to check if the string has the text.
  20. You can message him on this forum, he has an account (I'm not sure if he's active though.)
  21. Also, we're not your request slaves, we're here to help you make stuff, not do it for you.
  22. You have to make a script to make the cars into a tank.
  23. you can use something like: if ( getPlayerFromName ( "xXMADEXx" ) ) then -- Code end
×
×
  • Create New...