-Doc- Posted May 14, 2015 Posted May 14, 2015 (edited) Nothing here Edited May 21, 2015 by Guest My scripting skills
Mr-M3AND Posted May 16, 2015 Posted May 16, 2015 try function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end GUIEditor = { checkbox = {}, staticimage = {}, label = {}, button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(542, 254, 348, 92, "No Deathmatch Mode", false) centerWindow ( GUIEditor.window[1] ) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(10, 25, 283, 15, "You can enable or disable 'No Deathmatch' mode.", false, GUIEditor.window[1]) GUIEditor.staticimage[1] = guiCreateStaticImage(10, 50, 34, 26, "icon.png", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(49, 52, 234, 24, "Enable / Disable No Deathmatch Mode", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(303, 52, 31, 25, "X", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1], false) addEventHandler("onClientGUIClick", GUIEditor.button[1], onGuiClick,false) addEventHandler("onClientGUIClick",GUIEditor.checkbox[1], checkBox, false) end ) addCommandHandler("nodm", function() guiSetVisible(GUIEditor.window[1], true) showCursor(true) end ) function onGuiClick() guiSetVisible(GUIEditor.window[1], false) showCursor(false) end function checkBox() if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1])) then setElementData(localPlayer, "invincible", true) addEventHandler("onClientRender", root, dxRectangle) else setElementData(localPlayer, "invincible", false) removeEventHandler( "onClientRender", root, dxRectangle ) end end addEventHandler ( "onClientPlayerDamage",localPlayer, function () if getElementData(source,"invincible") then cancelEvent() end end ) function dxRectangle() dxDrawRectangle(84, 475, 220, 32, tocolor(0, 0, 0, 153), false) dxDrawImage(90, 479, 27, 24, "icon.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("No Deathmatch Mode Enabled", 123, 485, 294, 497, tocolor(255, 255, 255, 255), 1.00, "arial", "left", "top", false, false, false, false, false) end function disableWeaponOnGodMod (prev,new) if getElementData(localPlayer, "invincible") then setPedWeaponSlot(localPlayer, 0) toggleControl ( "aim_weapon", false) toggleControl ( "vehicle_fire", false) toggleControl ( "fire", false) else toggleControl ( "aim_weapon", true) toggleControl ( "vehicle_fire", true) toggleControl ( "fire", true) end end addEventHandler ( "onClientRender", root, disableWeaponOnGodMod ) Skype: mohammed.altamimi77
xeon17 Posted May 16, 2015 Posted May 16, 2015 viewtopic.php?f=91&t=87886&p=793000&hilit=+invincible+#p793000 You didn't made anything , this code was copied from the topic above. Do you even have the permission of Bilal to use his scripts? A unique GangWar gamemode waiting for you!Click here for more information.
Walid Posted May 16, 2015 Posted May 16, 2015 the owner already asked me to stop helping you , so stop using leacked scripts. locked Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
-Doc- Posted May 16, 2015 Author Posted May 16, 2015 Aaaaaaaaaaaaand i dooont caare! My scripting skills
John Smith Posted May 16, 2015 Posted May 16, 2015 Aaaaaaaaaaaaand i dooont caare! Then go back to your cloned server and don't come here. If you find my post useful or if it helped you, please like my post Ingame name: ZoeN
-Doc- Posted May 17, 2015 Author Posted May 17, 2015 Aaaaaaaaaaaaand i dooont caare! Then go back to your cloned server and don't come here. And, who are you? My scripting skills
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now