Jump to content

Furious^ONE!

Members
  • Posts

    171
  • Joined

  • Last visited

Everything posted by Furious^ONE!

  1. Hello, i want add ban player if he say ip MTA, but this script don't work.. can you help me please ? local insults = { "mtasa://" } local replace_sentence = { "#ff0000ยก#@!" } local max_insult = 3; local uebereinstimmungsrate = 4; local handle_type = 1; -- handle_type 1 = replaces the offense with a gay word -- handle_type 2 = kicks a user searches for "max_insult" from the server. -- handle_type 3 = recursively also sets up terms (not being completed) -- handle_type 4 = undertakes nothing addEventHandler("onPlayerChat", root, function(message, _type) for index, val in pairs(insults) do local new_val = val:lower(); local message = message:lower(); local match = false; local laufwert = 0; if message:len() > new_val:len() then laufwert = new_val:len(); elseif message:len() < new_val:len() then laufwert = message:len(); elseif message:len() == new_val:len() then laufwert = new_val:len(); end if ( handle_type == 3 ) then local currentLaufwert = 1; local match = false; local break_schleife = false; laufwert = message:len(); local inte_laufwert = 1; local search_in_text_match = false while ( inte_laufwert < laufwert+1 and search_in_text_match == false ) do if ( string.byte(tostring(message), inte_laufwert) == string.byte(new_val) ) then search_in_text_match = true if inte_laufwert == 1 then outputDebugString("A"); end end inte_laufwert = inte_laufwert+1 end if search_in_text_match then while ( (currentLaufwert < laufwert+1) and ( break_schleife == false ) ) do if ( string.byte(tostring(message), currentLaufwert+inte_laufwert) ) then if ( string.byte(tostring(message), currentLaufwert+inte_laufwert) ~= string.byte(tostring(new_val), currentLaufwert) ) then break_schleife = true else if ( currentLaufwert >= uebereinstimmungsrate ) then match = true break_schleife = true end end currentLaufwert = currentLaufwert+1 end end end elseif ( handle_type == 2 ) then local currentLaufwert = 1; local break_schleife = false; while ( (currentLaufwert < laufwert+1) and ( break_schleife == false ) ) do if ( string.byte(tostring(message), currentLaufwert) ~= string.byte(tostring(new_val), currentLaufwert) ) then break_schleife = true else if ( currentLaufwert >= uebereinstimmungsrate ) then match = true break_schleife = true end end currentLaufwert = currentLaufwert+1 end if ( match ) then cancelEvent(); handle_match(1); break; end elseif ( handle_type == 1 ) then local currentLaufwert = 1; local break_schleife = false; while ( (currentLaufwert < laufwert+1) and ( break_schleife == false ) ) do if ( string.byte(tostring(message), currentLaufwert) ~= string.byte(tostring(new_val), currentLaufwert) ) then break_schleife = true else if ( currentLaufwert >= uebereinstimmungsrate ) then match = true break_schleife = true end end currentLaufwert = currentLaufwert+1 end if ( match ) then cancelEvent(); handle_match(2); break; end end end end) function handle_match(_type) if ( _type == 1 ) then local oriVal = getElementData(source, "b_count") if ( oriVal == false ) then setElementData(source, "b_count", 1); oriVal = 1; else oriVal = oriVal+1 setElementData(source, "b_count", oriVal) end if ( oriVal > max_insult ) then kickPlayer(source, source, "") else outputChatBox(string.format("", oriVal, val), source, 255, 0, 0) end elseif ( _type == 2 ) then local rand = math.random(1, #replace_sentence); outputChatBox(string.format("", replace_sentence[rand]), root, 255, 255, 255, true); end outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true ) outputChatBox (" ",getRootElement(), 255, 255, 0,true )
  2. after /crun setAmbientSoundEnabled( "gunfire", false) i listen already the weapon sounds can you help me
  3. i'have a problem, he don't work NoNaaame executed command: setAmbientSoundEnabled( "gunfire", false) Error: [string "return setAmbientSoundEnabled( "gunfire", f..."]:1: attempt to call global 'setAmbientSoundEnabled' (a nil value)
  4. Hello guys, how to remove original weapon sounds pls ? do you have a script for this ? thank
  5. Hello, i want made a script for no admin kick for high ping, how to made this script pls ?,
  6. Salut à tous, Vous êtes joueurs de TOP-GTA ? Besoin de vous entraînez au pvp ? Venez sur ce tactics, dégâts des armes adapté a top gta, le fast run est activé, ainsi que le headshot également, le sniper one shot mais vous n'avez que 5 balles (soit un chargeur). Nouveau skins Nouveau skins d'arme 100% fun IP: mtasa://178.33.54.30:20188
  7. Hello, i want add fast run, but i don't know how to active this, pls can you help me ?
  8. Hi guys, i want made a tactics server but i don't know how to add map in LVPD for pvp pls help me
  9. Je te remercie énormement pour cette aide très précise, cela faisait un bon moment je cherchais a quoi désignez toutes ces valeurs, mise à part x y z.
  10. Bonjour a tous, Je fais ce poste afin d'essayer de comprendre le fonctionnement de la Safe Zone (Green Zone). J'ai trouvé une ressource sur la communauté, puis par ailleurs j'ai voulu modifié la position de ce rectangle vert, pour pouvoir le mettre au spawn que j'ai modifié, après plusieurs essaie, je n'arrive toujours pas a comprendre, comment relever la position d'un rectangle parfait, convenant a mon spawn (Grandeur, largeur, longueur, profondeur). Voici le code que j'ai trouvé: Server: -- By default it adds greenzone to the Freeroam/play standard spawnpoints to prevent spawnkills, you can add greenzone areas to it using the coordinate format -- Format is: {x = 0, y = 0, z = 0, width = 0, depth = 0, height = 0}, local greenzones = { {x = 1611.72229 , y = -1721.5144, z = 15, width = 20, depth = 15, height = 30}, -- New spawn } -- initialize all zones on resource start local z = {} function initGreenzones() if greenzones and #greenzones ~= 0 then for _,v in ipairs (greenzones) do if v then if v.x and v.y and v.z and v.width and v.depth and v.height then local c = createColCuboid (v.x, v.y, v.z, v.width, v.depth, v.height) local rarea = createRadarArea (v.x, v.y, v.width, v.depth, 0, 255, 0, 150) setElementParent (rarea, c) if c then z[c] = true for _,p in ipairs (getElementsWithinColShape(c, "player")) do setElementData (p, "greenzone", true) end addEventHandler ("onElementDestroy", c, function() if z[source] then z[source] = nil end end ) addEventHandler ("onColShapeHit", c, function (h, d) if h and d and isElement(h) and getElementType (h) == "player" then setElementData (h, "greenzone", true) outputChatBox ("* Greenzone * You have entered the greenzone", h, 0, 220, 0) end end ) addEventHandler ("onColShapeLeave", c, function (h, d) if h and d and isElement(h) and getElementType (h) == "player" then removeElementData (h, "greenzone") outputChatBox ("* Greenzone * You have left the greenzone", h, 220, 220, 0) end end ) end end end end end end addEventHandler ("onResourceStart", resourceRoot, initGreenzones) function resetGreenzoneData() for _,p in ipairs (getElementsByType("player")) do if isElement(p) then removeElementData (p, "greenzone") end end end addEventHandler ("onResourceStop", resourceRoot, resetGreenzoneData) Client: function onPDamage() if getElementData (source, "greenzone") then cancelEvent() end end addEventHandler ("onClientPlayerDamage", localPlayer, onPDamage) function onPSKill(target) if getElementData (target, "greenzone") then cancelEvent() end end addEventHandler ("onClientPlayerStealthKill", localPlayer, onPSKill) function renderGreenzoneTag() local streamedPlayers = getElementsByType ("player", root, true) if streamedPlayers and #streamedPlayers ~= 0 then local lpos = {getElementPosition(localPlayer)} for _,p in ipairs (streamedPlayers) do if p and isElement (p) then if getElementData (p, "greenzone") then local ppos = {getElementPosition(p)} if getDistanceBetweenPoints3D (lpos[1], lpos[2], lpos[3], ppos[1], ppos[2], ppos[3]) <= 20 then local x, y = getScreenFromWorldPosition (ppos[1], ppos[2], ppos[3]+1.2) if x and y then dxDrawText ("Greenzone protected", x+1, y+1, x, y, tocolor (0, 0, 0), 0.5, "bankgothic", "center") dxDrawText ("Greenzone protected", x, y, x, y, tocolor (0, 220, 0), 0.5, "bankgothic", "center") end end end end end end end addEventHandler ("onClientRender", root, renderGreenzoneTag) J'ai relever la position x et y de mon rectangle en les prenants sur les largue puis longueur, mais visiblement cela n'a pas fonctionné, puis ça m'a ensuite spawn un mini rectangle a côté de mes positions choisit. Si une personne pourras d'avantage prendre son temps pour m'expliqué ceci, j'en serai très reconnaissant. Merci d'avance.
  11. Hello guys, i want change the damage weapon, how can i change that please ?
  12. thank, but how to fix a spawn point on the new map please ?
  13. Voici le lien du Gamemode: c'est le r20, https://code.google.com/archive/p/mtasa ... /downloads ensuite pour la map la voici: http://www.mediafire.com/download/tkq1n ... _mapv1.zip
  14. Bonjour à tous et a toutes, Je viens de créer un serveur pour joué entre amis, j'ai installé le gamemode tactics-12-r20, mais les map fournissent son pas terrible, donc j'ai mappé une map simple pour pouvoir faire du TDM dans celle ci, mais je n'arrive pas a l'associé avec le gamemode, c'est-à-dire que le panel de contrôle est F1 et dans celui ci on y trouve les paramétre a régler, des choix de map etc.. Je me demandais également, comment sur cette map vais-je pouvoir paramétré les spawn également. J'aimerai de l'aide sur ça afin d'en savoir plus, merci d'avance.
  15. Hello, i want to add a new map for the Deathmatch tactics, but I do not know how to do it.. rsomeone to explain me please ?
  16. Hi guys, i have made a script for Open and close the gate, but i want this gate it closes by itself. My code: local gate = createObject ( 969, 209.69999694824, 1875.3000488281, 12.10000038147, 0, 0, 0 ) local state = false addCommandHandler ( "op", function ( thePlayer ) if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Everyone" ) ) then if ( not state ) then outputChatBox("Portail de protection DESACTIVER !",thePlayer, 255,0,0,false) moveObject ( gate, 3000, 218, 1875.3000488281, 12.10000038147, 0, 0, 0 ) else moveObject ( gate, 3000, 209.69999694824, 1875.3000488281, 12.10000038147, 0, 0, 0 ) outputChatBox("Portail de protection ACTIVER !",thePlayer, 17,251,0,false) end state = ( not state ) else outputChatBox("Vous n'êtes pas un membres enregistré du serveur !",thePlayer,235,0,0,true) end end ) Sorry for my english, i'm french.
  17. Merci a toi Citizen, effectivement j'ai essayé de m'attaqué a un script type MoveObject, pour un de mes premier code, je me suis bien sûr aidé du Wiki, et quelques conseil sur les parti forum Anglais, je te remercie encore une fois de ton aide.
  18. Bonjour, Ayant fait un script basé sur un MoveObject, donc pour ouvrir un portail, j'ai remarqué que la commande pouvait être effectué n'importe ou, par exemple la grille est a SF et le joueur tappant la commande a LS, il pourras l'ouvrir quand même. Donc j'aimerai savoir comment pourrai-je faire pour que le joueur puissent l'ouvrir que lorsqu'il est devait le portail a tel et tel zones. Et lorsque qu'il soit a LS, sa lui envoie un message outPutChatBox, vous n'êtes pas devant le portail. Voici mon script: local gate = createObject ( 980, -1364.5552978516, -517.26147460938, 15.5, 0, 0, 298.96350097656 ) local state = false addCommandHandler ( "gr", function ( thePlayer ) if ( not state ) then outputChatBox("Gate open",thePlayer, 0,166,237,true) moveObject ( gate, 2500, -1364.5552978516, -517.26147460938, 22, 0, 0, 0 ) else moveObject ( gate, 2500, -1364.5552978516, -517.26147460938, 15.5, 0, 0, 0 ) outputChatBox("Gate close",thePlayer, 143,0,0,true) end state = ( not state ) end end )
  19. Hi, i need help for the script Damage Weapon on player, help me please
×
×
  • Create New...