-
Posts
216 -
Joined
-
Last visited
Everything posted by Gallagher
-
how to make a gun only one shot per click?
-
You can simply check that if player have 5 or less as you're doing and check if the player have 12 and less . function createTest1 ( ) if getElementData(getLocalPlayer(), "Pizza") >= 5 then dxDrawText("PIZZA " a,screenWidth*0.248, screenHeight*0.955, screenWidth*0.0, screenHeight*0.0, tocolor(230, 252, 250, 255), 0.45, "bankgothic", "left", "top", false, false, false, false, false) end end function HandleTheRendering11 ( ) addEventHandler ( "onClientRender", root, createTest1 ) end if getElementData(getLocalPlayer(), "Pizza") >= 11 then dxDrawText("PIZZA 11" a,screenWidth*0.248, screenHeight*0.955, screenWidth*0.0, screenHeight*0.0, tocolor(230, 252, 250, 255), 0.45, "bankgothic", "left", "top", false, false, false, false, false) end end function HandleTheRendering11 ( ) addEventHandler ( "onClientRender", root, createTest1 ) end if getElementData(getLocalPlayer(), "Pizza") >= 16 then dxDrawText("PIZZA 16" a,screenWidth*0.248, screenHeight*0.955, screenWidth*0.0, screenHeight*0.0, tocolor(230, 252, 250, 255), 0.45, "bankgothic", "left", "top", false, false, false, false, false) end end function HandleTheRendering11 ( ) addEventHandler ( "onClientRender", root, createTest1 ) end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering11 ) Understand now? If I have 16 Pizzas will appear dxDrawText all, but I want to appear only the last
-
"Pizza" is an element of the dayz I want this dxDrawText be created only when I have 5-10 pizzas currently appears if I have the DrawText 5,6,7,8,9,10,11,12 ... Pizzas. I want that if I have 12 or more pizzas to the DrawText not appear. Understand? function createTest1 ( ) if getElementData(getLocalPlayer(), "Pizza") >= 5 then dxDrawText("PIZZA " a,screenWidth*0.248, screenHeight*0.955, screenWidth*0.0, screenHeight*0.0, tocolor(230, 252, 250, 255), 0.45, "bankgothic", "left", "top", false, false, false, false, false) end end function HandleTheRendering11 ( ) addEventHandler ( "onClientRender", root, createTest1 ) end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering11 )
-
hello! I have this script but it does not work as I expected. if getElementData(getLocalPlayer(), "Pizza") > 5 then dxDrawText("PIZZA " a,screenWidth*0.248, screenHeight*0.955, screenWidth*0.0, screenHeight*0.0, tocolor(230, 252, 250, 255), 0.45, "bankgothic", "left", "top", false, false, false, false, false) end I want the setElementData (source, "Pizza", 1) is activated if "Pizza") = 5 to 10 how to do it? "Pizza" is an element of the dayz I want this dxDrawText be created only when I have 5-10 pizzas currently appears if I have the DrawText 5,6,7,8,9,10,11,12 ... Pizzas. I want that if I have 12 or more pizzas to the DrawText not appear. Understand?
-
Rather Camera + terribly buggy why?
-
hi guys I want to make a bind when I press "f5" the createText1 disappear if I hit f5 again to reappear. or is it not possible to do this with dx? local screenWidth,screenHeight = guiGetScreenSize() function createText1 ( ) if getElementData(getLocalPlayer(), "stamine") >= 6000 then elementblood2 = dxDrawImage(screenWidth * 0.84, screenHeight * 0.85, screenHeight * 0.070, screenHeight * 0.070, "s8.png", 0, 0, 0, tocolor(250, 150,150)) end if getElementData(getLocalPlayer(), "stamine") >= 8000 then elementblood1 = dxDrawImage(screenWidth * 0.84, screenHeight * 0.85, screenHeight * 0.070, screenHeight * 0.070, "s10.png", 0, 0, 0, tocolor(255, 255, 255)) end end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText1 ) end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering )
-
some of these flags is the sniper's crosshairs? https://wiki.multitheftauto.com/wiki/Weapon_Flags
-
why not work? I want to change the maximum_clip_ammo https://wiki.multitheftauto.com/wiki/SetWeaponProperty function clip() setWeaponProperty("minigun", "poor", "maximum_clip_ammo", 1000) setWeaponProperty("minigun", "pro", "maximum_clip_ammo", 20) end addEventHandler("onClientResourceStart", root, clip)
-
and how do I zoom out?
-
Hello friends is possible to place the crosshairs of the sniper m4?
-
I will test
-
how to do it?
-
I made a script on the client side and would not want someone to steal, how do I get it to the server side? Or he needs something from the server side to work? thank you! function createText1 ( ) clip = getPedAmmoInClip ( getLocalPlayer() ) arma = getPedWeapon( getLocalPlayer() ) dxDrawText(""..clip.." | "..bala,screenWidth*0.248, screenHeight*0.955, screenWidth*0.0, screenHeight*0.0, tocolor(230, 252, 250, 255), 0.45, "bankgothic", "left", "top", false, false, false, false, false) if ( arma==34 ) then dxDrawText(" DMR ",screenWidth*0.77, screenHeight*0.02012, screenWidth*0.0, screenHeight*0.0, tocolor(50, 200, 31, 255), 1, "bankgothic", "left", "top", false, false, false, false, false) elseif ( arma==31 ) then dxDrawText(" M4A1 ",screenWidth*0.77, screenHeight*0.02012, screenWidth*0.0, screenHeight*0.0, tocolor(50, 200, 31, 255), 1, "bankgothic", "left", "top", false, false, false, false, false) elseif ( arma==28 ) then dxDrawText(" PWD ",screenWidth*0.80, screenHeight*0.020, screenWidth*0.0, screenHeight*0.0, tocolor(50, 50, 31, 205), 1.05, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText(" PWD ",screenWidth*0.8015, screenHeight*0.02012, screenWidth*0.0, screenHeight*0.0, tocolor(50, 200, 31, 255), 1, "bankgothic", "left", "top", false, false, false, false, false) elseif ( arma==33 ) then dxDrawText(" winchester ",screenWidth*0.1, screenHeight*0.6, screenWidth*0.0, screenHeight*0.0, tocolor(203, 112, 31, 255), 1, "bankgothic", "left", "top", false, false, false, false, false) end end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText1 ) end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering )
-
How to get GTA's night using setSkyGradient()
Gallagher replied to Stanley Sathler's topic in Scripting
setSkyGradient (15,15,20,18,18,25) -
this script makes it the green hud the right corner. https://fbcdn-sphotos-e-a.akamaihd.net/ ... 0772_n.jpg but it causes fps drop - lag how to make it not lag? function updateIcons() if getElementData(getLocalPlayer(), "logedin") then if fading >= 0 and fading2 == "up" then fading = fading + 5 elseif fading <= 255 and fading2 == "down" then fading = fading - 5 end if fading == 0 then fading2 = "up" elseif fading == 255 then fading2 = "down" end dxDrawImage(screenWidth * 0.9325, screenHeight * 0.41, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/sound.png", 0, 0, 0, tocolor(0, 255, 0)) local sound = getElementData(getLocalPlayer(), "volume") / 20 if sound > 1 then dxDrawImage(screenWidth * 0.9075, screenHeight * 0.41, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/level_" .. sound .. ".png", 0, 0, 0, tocolor(0, 255, 0)) end dxDrawImage(screenWidth * 0.9325, screenHeight * 0.475, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/eye.png", 0, 0, 0, tocolor(0, 255, 0)) local sound = getElementData(getLocalPlayer(), "visibly") / 20 if sound > 1 then dxDrawImage(screenWidth * 0.9075, screenHeight * 0.475, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/level_" .. sound .. ".png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "") then dxDrawImage(screenWidth * 0.9375, screenHbrokenboneeight * 0.55, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/brokenbone.png", 0, 0, 0, tocolor(255, 255, 255)) end ------------------------------- HUMANIDADE if getElementData(getLocalPlayer(), "humanity") <= 5000 then destroyElement(maconha2) destroyElement(maconha1) maconha3 = dxDrawImage(screenWidth * 0.925, screenHeight * 0.6, screenHeight * 0.1, screenHeight * 0.1, "images/dayzicons/5000.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "humanity") > 500 then destroyElement(maconha2) destroyElement(maconha3) maconha1 = dxDrawImage(screenWidth * 0.925, screenHeight * 0.6, screenHeight * 0.1, screenHeight * 0.1, "images/dayzicons/bandit.png", 0, 0, 0, tocolor(0, 255, 0)) else destroyElement(maconha1) destroyElement(maconha3) maconha2 = dxDrawImage(screenWidth * 0.925, screenHeight * 0.6, screenHeight * 0.1, screenHeight * 0.1, "images/hud/human/n2500.png", 0, 0, 0, tocolor(0, 255, 0)) end ------------------------------- HUMANIDADE ------------------------------- TEMPERATURA dxDrawImage(screenWidth * 0.94, screenHeight * 0.7, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/temperature.png", 0, 0, 0, tocolor(0, 255, 0)) if getElementData(getLocalPlayer(), "temperature") > 37 then destroyElement(elementtemp4) destroyElement(elementtemp3) destroyElement(elementtemp1) destroyElement(elementtemp2) destroyElement(elementtemp) elementtemp1 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.7, screenHeight * 0.065, screenHeight * 0.065, "images/hud/temp/37.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "temperature") > 36 then destroyElement(elementtemp4) destroyElement(elementtemp3) destroyElement(elementtemp1) destroyElement(elementtemp2) destroyElement(elementtemp) elementtemp2 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.7, screenHeight * 0.065, screenHeight * 0.065, "images/hud/temp/36.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "temperature") > 35 then destroyElement(elementtemp4) destroyElement(elementtemp3) destroyElement(elementtemp1) destroyElement(elementtemp2) destroyElement(elementtemp) elementtemp4 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.7, screenHeight * 0.065, screenHeight * 0.065, "images/hud/temp/35.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "temperature") > 34 then destroyElement(elementtemp4) destroyElement(elementtemp3) destroyElement(elementtemp1) destroyElement(elementtemp2) destroyElement(elementtemp) elementtemp = dxDrawImage(screenWidth * 0.94, screenHeight * 0.7, screenHeight * 0.065, screenHeight * 0.065, "images/hud/temp/34.png", 0, 0, 0, tocolor(0, 255, 0)) end ------------------------------- TEMPERATURA ------------------------------- SEDE dxDrawImage(screenWidth * 0.94, screenHeight * 0.775, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/thirsty.png", 0, 0, 0, tocolor(0, 255, 0)) if getElementData(getLocalPlayer(), "thirst") > 80 then destroyElement(elementdrink4) destroyElement(elementdrink3) destroyElement(elementdrink1) destroyElement(elementdrink2) destroyElement(elementdrink) elementdrink1 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.775, screenHeight * 0.065, screenHeight * 0.065, "images/hud/drink/100.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "thirst") > 60 then destroyElement(elementdrink4) destroyElement(elementdrink3) destroyElement(elementdrink1) destroyElement(elementdrink2) destroyElement(elementdrink) elementdrink2 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.775, screenHeight * 0.065, screenHeight * 0.065, "images/hud/drink/60.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "thirst") > 40 then destroyElement(elementdrink4) destroyElement(elementdrink3) destroyElement(elementdrink1) destroyElement(elementdrink2) destroyElement(elementdrink) elementdrink4 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.775, screenHeight * 0.065, screenHeight * 0.065, "images/hud/drink/40.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "thirst") > 15 then destroyElement(elementdrink4) destroyElement(elementdrink3) destroyElement(elementdrink1) destroyElement(elementdrink2) destroyElement(elementdrink) elementdrink = dxDrawImage(screenWidth * 0.94, screenHeight * 0.775, screenHeight * 0.065, screenHeight * 0.065, "images/hud/drink/15.png", 0, 0, 0, tocolor(0, 255, 0)) end ------------------------------- SEDE ------------------------------- FOME dxDrawImage(screenWidth * 0.94, screenHeight * 0.925, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/food.png", 0, 0, 0, tocolor(0, 255, 0)) if getElementData(getLocalPlayer(), "food") > 70 then destroyElement(elementfood4) destroyElement(elementfood3) destroyElement(elementfood1) destroyElement(elementfood2) destroyElement(elementfood) elementfood1 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.925, screenHeight * 0.065, screenHeight * 0.065, "images/hud/food/100.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "food") > 50 then destroyElement(elementfood4) destroyElement(elementfood3) destroyElement(elementfood1) destroyElement(elementfood2) destroyElement(elementfood) elementfood2 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.925, screenHeight * 0.065, screenHeight * 0.065, "images/hud/food/50.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "food") > 25 then destroyElement(elementfood4) destroyElement(elementfood3) destroyElement(elementfood1) destroyElement(elementfood2) destroyElement(elementfood) elementfood4 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.925, screenHeight * 0.065, screenHeight * 0.065, "images/hud/food/25.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "food") > 10 then destroyElement(elementfood4) destroyElement(elementfood3) destroyElement(elementfood1) destroyElement(elementfood2) destroyElement(elementfood) elementfood = dxDrawImage(screenWidth * 0.94, screenHeight * 0.925, screenHeight * 0.065, screenHeight * 0.065, "images/hud/food/10.png", 0, 0, 0, tocolor(0, 255, 0)) end ------------------------------- FOME ------------------------------- BLOOD dxDrawImage(screenWidth * 0.94, screenHeight * 0.85, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/blood.png", 0, 0, 0, tocolor(0, 255, 0)) if getElementData(getLocalPlayer(), "blood") > 8000 then destroyElement(elementblood4) destroyElement(elementblood3) destroyElement(elementblood1) destroyElement(elementblood2) destroyElement(elementblood) elementblood1 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.85, screenHeight * 0.065, screenHeight * 0.065, "images/hud/blood/100.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "blood") > 5000 then destroyElement(elementblood4) destroyElement(elementblood3) destroyElement(elementblood1) destroyElement(elementblood2) destroyElement(elementblood) elementblood2 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.85, screenHeight * 0.065, screenHeight * 0.065, "images/hud/blood/80.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "blood") > 3000 then destroyElement(elementblood4) destroyElement(elementblood3) destroyElement(elementblood1) destroyElement(elementblood2) destroyElement(elementblood) elementblood3 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.85, screenHeight * 0.065, screenHeight * 0.065, "images/hud/blood/50.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "blood") > 2000 then destroyElement(elementblood4) destroyElement(elementblood3) destroyElement(elementblood1) destroyElement(elementblood2) destroyElement(elementblood) elementblood4 = dxDrawImage(screenWidth * 0.94, screenHeight * 0.85, screenHeight * 0.065, screenHeight * 0.065, "images/hud/blood/30.png", 0, 0, 0, tocolor(0, 255, 0)) end if getElementData(getLocalPlayer(), "blood") > 1000 then destroyElement(elementblood4) destroyElement(elementblood3) destroyElement(elementblood1) destroyElement(elementblood2) destroyElement(elementblood) elementblood = dxDrawImage(screenWidth * 0.94, screenHeight * 0.85, screenHeight * 0.065, screenHeight * 0.065, "images/hud/blood/10.png", 0, 0, 0, tocolor(0, 255, 0)) end ------------------------------- local x, y, z = getElementPosition(getLocalPlayer()) for i, player in ipairs(getElementsByType("player")) do setPlayerNametagShowing(player, false) if player ~= getLocalPlayer() then local vehicle = getPedOccupiedVehicle(player) local px, py, pz = getElementPosition(player) local pdistance = getDistanceBetweenPoints3D(x, y, z, px, py, pz) if pdistance <= 2 then local sx, sy = getScreenFromWorldPosition(px, py, pz + 0.95, 0.06) if sx and sy then if getElementData(player, "bandit") then text = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " (Bandit)" else text = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") end local w = dxGetTextWidth(text, 1.02, "default-bold") dxDrawText(text, sx - w / 2, sy, sx - w / 2, sy, tocolor(100, 255, 100, 200), 1.02, "default-bold") end end end end local x, y, z = getElementPosition(getLocalPlayer()) for i, veh in ipairs(getElementsByType("vehicle")) do local px, py, pz = getElementPosition(veh) local vehID = getElementModel(veh) local vehicle = getPedOccupiedVehicle(getLocalPlayer()) if veh ~= vehicle and vehID ~= 548 then local pdistance = getDistanceBetweenPoints3D(x, y, z, px, py, pz) if pdistance <= 6 then local sx, sy = getScreenFromWorldPosition(px, py, pz + 0.95, 0.06) if sx and sy then local w = dxGetTextWidth(getVehicleName(veh), 1.02, "default-bold") dxDrawText(getVehicleName(veh), sx - w / 2, sy, sx - w / 2, sy, tocolor(100, 255, 100, 200), 1.02, "default-bold") end end end end local veh = getPedOccupiedVehicle(getLocalPlayer()) if veh then local maxfuel = getElementData(veh, "maxfuel") local fuel = getElementData(getElementData(veh, "parent"), "fuel") local needengine = getElementData(veh, "needengines") local needtires = getElementData(veh, "needtires") local engine = getElementData(getElementData(veh, "parent"), "Engine_inVehicle") or 0 local tires = getElementData(getElementData(veh, "parent"), "Tire_inVehicle") or 0 local offset = dxGetFontHeight(1.02, "default-bold") local w = dxGetTextWidth(engine .. "/" .. needengine .. " Engine(s)", 1.02, "default-bold") if engine == needengine then r, g, b = 0, 255, 0 else r, g, b = 255, 0, 0 end dxDrawText(engine .. "/" .. needengine .. " Engine(s)", screenWidth * 0.5 - w / 2, screenHeight * 0, screenWidth * 0.5 - w / 2, screenHeight * 0, tocolor(r, g, b, 220), 1.02, "default-bold")
-
how to do it? an example?
-
then how does it work?
-
because DestroyElement cause lag? Is there any way to replace DestroyElement by alpha?
-
leveraging the topic, how to put rims or contour in DxDrawRectangle?
-
addon_vsc
-
what error? These texts are not appearing local screenWidth,screenHeight = guiGetScreenSize() function updateHUD () arma = getPedWeapon( getLocalPlayer() ) clip = getPedAmmoInClip ( getLocalPlayer() ) bala = getPedTotalAmmo ( getLocalPlayer() ) showPlayerHudComponent ("weapon", false ) showPlayerHudComponent ("ammo", false) showPlayerHudComponent ("clock", false) if getElementData(getLocalPlayer(),"Watch") >= 1 then local hour, minutes = getTime() dxDrawText(" "..hour..":"..minutes, screenWidth*0.887, screenHeight*0.157, screenWidth*0.988, screenHeight*0.194, tocolor(35, 98, 36, 255), 1.70, "sans", "left", "top", false, false, false, false, false) end dxDrawText(""..clip.." | "..bala,screenWidth*0.896, screenHeight*0.059, screenWidth*0.988, screenHeight*0.089, tocolor(23, 112, 31, 255), 1.50, "default-bold", "left", "top", false, false, false, false, false) if ( arma==31 ) then element1 = dxDrawText(" M4 ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==30 ) then destroyElement(element1)element1 = dxDrawText(" AK-47 ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==27 ) then destroyElement(element1)element1 = dxDrawText(" Combat Shotgun ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==28 ) then destroyElement(element1)element1 = dxDrawText(" TEC ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==29 ) then destroyElement(element1)element1 = dxDrawText(" MP5 ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==26 ) then destroyElement(element1)element1 = dxDrawText(" SAWN-OFF ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==25 ) then destroyElement(element1)element1 = dxDrawText(" Shotgun ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==24 ) then destroyElement(element1)element1 = dxDrawText(" Desert Eagle ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==23 ) then destroyElement(element1)element1 = dxDrawText(" Silencer ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==22 ) then destroyElement(element1)element1 = dxDrawText(" Pistol ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==8 ) then destroyElement(element1)element1 = dxDrawText(" Katana ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==6 ) then destroyElement(element1)element1 = dxDrawText(" Shovel ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==4 ) then destroyElement(element1)element1 = dxDrawText(" Knife ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==5 ) then destroyElement(element1)element1 = dxDrawText(" Baseball Bat ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==2 ) then destroyElement(element1)element1 = dxDrawText(" Golf Club ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==33 ) then destroyElement(element1)element1 = dxDrawText(" Rifle ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==34 ) then destroyElement(element1)element1 = dxDrawText(" Sniper ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==16 ) then destroyElement(element1)element1 = dxDrawText(" Grenade ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false)end if ( arma==17 ) then destroyElement(element1)element1 = dxDrawText(" Tear Gas ", screenWidth*0.845, screenHeight*0.024, screenWidth*0.978, screenHeight*0.59, tocolor(23, 112, 31, 255), 1.50, "sans", "left", "top", false, false, false, false, false) end end addEventHandler ( "onClientRender", getRootElement(), updateHUD )
-
But as you can see the message as often as you click the weapon, is to make it appear only 2 or 3 times?
-
looks like he's gorgeous * - * http://prntscr.com/2i5srl But as you can see the message as often as you clikar the gun, is to make it appear only 2 or 3 times? Or show a message in the console for me to see who this flooding
