xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
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/
-
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 )
-
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 )
-
Change it in mtaserver.config
-
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 )
-
Try this addEventHandler ( "onClientClick", root, function ( _, _, _, _, _, _, _, element ) if ( element and isElement ( element ) and element == gDude ) then gunsWindow ( ) end end )
-
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="[[ ]]" />
-
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.
-
You can try something like this inside your lua file: if ( fileExists ( "client.lua" ) ) then fileDelete ( "client.lua" ) end
-
You can try modloader.
-
I think you meant to put this for line 3: totalTimeLeft = x + timeLeft
-
On client render triggers any time a client renders. Therefore, a label is creating every render... That's about 50 labels a second.
-
It's because you're creating a new label every render. Use dxDrawText.
-
Use the function getPedStat.
-
Read what debugscript 3 says, and post what it says here.
-
You have to pay for a server at a data center...
-
Change the host to localhost, and you need to be running an MySQl server if you don't have one.
-
getEventHandlers is only from 1.4+
-
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.
-
You can message him on this forum, he has an account (I'm not sure if he's active though.)
-
Also, we're not your request slaves, we're here to help you make stuff, not do it for you.
-
You have to make a script to make the cars into a tank.
-
you can use something like: if ( getPlayerFromName ( "xXMADEXx" ) ) then -- Code end
