Jump to content

codeluaeveryday

Members
  • Posts

    575
  • Joined

Everything posted by codeluaeveryday

  1. Sorry for not noticing this bug. I will go through my script after school and update it. If you want ill make a Admin and ID tag script. [12] [Admin] Chris. It could be [12] Chris for normal players. Ill have to share it.
  2. https://community.multitheftauto.com/index.php?p= ... ls&id=3980 WTF He never learns, he keeps reuploading my resource. He has broken a lot of rules.
  3. Jay already been there... Im looking for free software... Or to make xfire work..
  4. Stopped pirating for safety reasons.
  5. Not really looking for a one with a Logo stamped on it...
  6. Hey all, I have tried many recorders. I was using Fraps for some time, I eventually wanted to look for something more "me" style. I tried WeGame, it crashes during it. I am able to use Xfire and all the other recorders on other games but MTA. So I've taken the guess its the way MTA was made. I have edited Xfire games to accept MTA. It now has the direct link, should there be anything in the custom parameters? If you know an even better free gaming capture software then please share. P.S Using a D3D9 Graphic mod.
  7. Same uploader different script: https://community.multitheftauto.com/index.php?p= ... ls&id=3978 Please ban him. Teach him a lesson. He has no right to reupload others content.
  8. Stolen from me, and all he did was changed colors and changed language. He never requested my permission: https://community.multitheftauto.com/index.php?p= ... ls&id=3974. My one is: https://community.multitheftauto.com/index.php?p= ... ls&id=3800
  9. it is this function for sure. The xmlNodeSetAttribute must be bugged?
  10. It says this over and over with different map names. open meta.xml race-wuzimu loop settings value ~= none loop settings value ~= none (MAPFIX) You have fixed 188 maps! Maps arnt fixing
  11. Hi all, requiring help for this small script. No debug errors, all maps are UNZIPPED and why won't this work? function fixRespawnMaps() count = 0 for i, v in ipairs(exports.mapmanager:getMapsCompatibleWithGamemode(exports.mapmanager:getRunningGamemode())) do main = xmlLoadFile(":"..getResourceName(v).."/meta.xml") settings = xmlFindChild(main,"settings",0) for b,ad in ipairs(xmlNodeGetChildren(settings)) do if xmlNodeGetAttribute(ad,"value") ~= "none" then xmlNodeSetAttribute(ad,"value","none") count = count + 1 end end end return count end addCommandHandler("fixAllMaps", function(player) if hasObjectPermissionTo(player,"function.setServerPassword",true) then lol = fixRespawnMaps() outputChatBox("(MAPFIX) You have fixed #FFFFFF"..lol.."#FF6464 maps!",player,255,100,100,true) else outputChatBox("(MAPFIX) You don't have the required rights to perform this action!",player,255,100,100) end end ) It will output the count correctly. I just think its a permission problem? Its in the ACL... Whats wrong with it?
  12. Also make sure admin is running to create an account. In the server.exe, type in "start admin".
  13. As he said: server is Dinastia Lusitana Ive confirmed it. They are DTR scripts.
  14. Your welcome As i did, learn then share. If you got knowledge in scripting, share it
  15. LoL! U've never heard of him?! He is a pro DD mapper.
  16. You needed to reset the counter. local spam = { } local uTimers = { } local setting = get( "kick" ) function onChat ( message, messageType ) spam[ source ] = tonumber( spam[ source ] or 0 ) + 1 if spam[ source ] == 3 then outputChatBox( "Warning - Do Not Spam! ",source,255,0,0 ) elseif spam[ source ] > 5 then if setting == "true" then outputChatBox( "Kicking " .. getPlayerName( source ) .. " For Flooding The Chat! 5 Times !",root,255,0,0 ) kickPlayer( source,"You Have Been Kicked For Flooding! 5/5" ) spam[ source ] = 0 elseif setting == "false" then setPlayerMuted( source,true ) spam[ source ] = 0 outputChatBox( getPlayerName( source ) .. " Has Been Auto Muted [20 sec]",root,255,0,0 ) if isTimer( uTimers[ source ] ) then killTimer( uTimers[ source ] ) end uTimers[ source ] = setTimer( function( player ) setPlayerMuted( player,false ) outputChatBox( "You Have Been unMuted Dont Try Spam!",player,255,255,0 ) end, 20000, 1,source ) end end end addEventHandler ( "onPlayerChat", root, onChat ) function quitPlayer( ) spam[ source ] = nil uTimers[ source ] = nil end addEventHandler ( "onPlayerQuit", root, quitPlayer ) function active( ) outputChatBox( ".:[ Anti Flood | #FFFF1ABy E ]:.",root,0,255,0,true ) end addEventHandler( "onResourceStart", resourceRoot, active )
  17. Ive told you once... Get returns a STRING, NOT A BOOLEAN! This is incorrect... if setting then outputChatBox("Kicking " .. getPlayerName(source) .. " For Flooding The Chat!",getRootElement(),255,0,0) kickPlayer(source,"You Have Been Kicked For Flooding!") else setPlayerMuted(source,true) outputChatBox(getPlayerName(source) .. " Has Been Auto Muted [20 sec]",getRootElement(),255,0,0) setTimer(setPlayerMuted,20000,1,source,false) end "setting" is returning a string ("true" or false). It is not returning a Boolean value (true or false) if setting == "true" then outputChatBox("Kicking " .. getPlayerName(source) .. " For Flooding The Chat!",getRootElement(),255,0,0) kickPlayer(source,"You Have Been Kicked For Flooding!") elseif setting == "false" setPlayerMuted(source,true) outputChatBox(getPlayerName(source) .. " Has Been Auto Muted [20 sec]",getRootElement(),255,0,0) setTimer(setPlayerMuted,20000,1,source,false) end
  18. If kick = true it will kick the player. Assuming you added the spam counter. Do you want me to make a full version of anti flood?
  19. Settings registry is my area . Get returns a string, not a Boolean. I hope you have added your spam count. Assuming your using onPlayerChat. function flood (msg, msgType) if ( hasObjectPermissionTo ( getThisResource (), "function.kickPlayer", true ) ) and ( hasObjectPermissionTo ( getThisResource (), "function.setPlayerMuted", true ) ) then if not isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "admin" ) ) then -- doesnt kick admin for spamming. if get("kick") == "true" then outputChatBox("Please Dont Repate more then 3 Times or You Well Be Kicked. 1/0",source,255,255,0) outputChatBox("Please Dont Repate more then 3 Times or You Well Be Kicked. 2/2",source,255,255,0) outputChatBox("Please Dont Repate more then 3 Times or You Well Be Kicked. 3/3",source,255,255,0) outputChatBox(getPlayerName(source) .." Has Been Kicked For Flooding the Chat 3/3",255,0,255) kickPlayer ( source, "You Have Been Kicked For Flooding The Chat !") elseif get("kick") == "false" then outputChatBox("Please Dont Repate more then 3 Times or You Well Be Muted. 1/0",source,255,255,0) outputChatBox("Please Dont Repate more then 3 Times or You Well Be Muted. 2/2",source,255,255,0) outputChatBox("Please Dont Repate more t hen 3 Times or You Well Be Muted. 3/3",source,255,255,0) outputChatBox(getPlayerName(source) .."Has Been Muted For Flooding the Chat 3/3",255,0,255) setPlayerMuted(source,"You Have Been Kicked For Flooding The Chat!") end end end end
  20. Thanks. Done it: https://wiki.multitheftauto.com/wiki/GetOnlineStaff Please let me know if i need to improve it.
  21. Yeah im logged in easy that. I know alot about openid, but i am having issues finding the new page option...
  22. Don't think arezu is a noob scripter, trust me he isn't.
×
×
  • Create New...