-
Posts
78 -
Joined
-
Last visited
Everything posted by Kors
-
addEvent( "onZombieWasted" ); addEventHandler( "onZombieWasted", getRootElement(), function( killer ) givePlayerMoney( killer, 100 ); end ) How to make it randomly reward , not only 100, random 50, 100 , 78 ....
-
How to create Safe Zone for team, only players with skin 24 can enter to the base and not die, and automatic Gates for thet skin
-
А кординаты Данной сейфзоны как поставить , скажи если не трудно
-
Допустим база для клана,создание конкретной зоны в которую если буду заходить простые игроки будут умерать если у них нет допустим скина
-
Как создать базу с паролем или с защитой скинами
-
local localPlayer = getLocalPlayer () local theTimer2 = nil local color1 = tocolor( 0, 0, 0, 255 ) local color2 = tocolor( 255, 0, 0, 150 ) local color3 = tocolor( 255, 200, 0, 150 ) local color4 = tocolor( 2, 59, 242, 150 ) local font = dxCreateFont ("myriadproregular.ttf",14) local megjelenit = true rot = 0 unbindKey ( "home" ) setElementData(localPlayer,"hud:main",true,false) function funkcio() setElementHealth(getLocalPlayer(), getElementHealth(getLocalPlayer()) - 1) end function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end function hudStatusz(statusz) megjelenit = statusz end function getHudStatusz() return megjelenit end function hud() local hp = tonumber(getElementHealth(getLocalPlayer())) local armor = tonumber(getPedArmor(getLocalPlayer())) local money = getPlayerMoney(localPlayer) local scx, scy = guiGetScreenSize() local svx, svy = guiGetScreenSize() local x, y = scx-193 - 47, 10 local xx = svx - 200 local xxx = scx + 50 img = dxDrawImage(xx-190, 20, 374, 91, "bg.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText(math.round(hp,0).."%", xxx-360, 47.5, 7, 22.5, tocolor ( 200, 200, 200 ), 0.8, font, "left","top",false,false,true,true) dxDrawText(math.round(armor,0).."%", xxx-140, 47.5, 7, 22.5, tocolor ( 200, 200, 200 ), 0.8, font, "left","top",false,false,true,true) dxDrawText(math.round(money,0).."$", xxx-270, 47.5, 7, 22.5, tocolor ( 200, 200, 200 ), 0.8, font, "left","top",false,false,true,true) end addEventHandler("onClientRender", getRootElement(), hud) function penz_darabolas(amount) local formatted = amount while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1 %2') if (k==0) then break end end return formatted end function onClientRenderR() local theVehicle = getPedOccupiedVehicle ( getLocalPlayer() ) if theVehicle then local vehmodel = getElementModel(theVehicle) if vehmodel == 481 or vehmodel == 509 or vehmodel == 510 then speed = exports.rp_core:getVehicleVelocity(theVehicle) if speed > 40 then toggleControl ( "accelerate", false ) elseif not isControlEnabled("accelerate") then toggleControl ( "accelerate", true ) end end end end addEventHandler("onClientRender", getRootElement(), onClientRenderR) How change position to left , bot to all sreensize
-
local localPlayer = getLocalPlayer () local theTimer2 = nil local color1 = tocolor( 0, 0, 0, 255 ) local color2 = tocolor( 255, 0, 0, 150 ) local color3 = tocolor( 255, 200, 0, 150 ) local color4 = tocolor( 2, 59, 242, 150 ) local font = dxCreateFont ("myriadproregular.ttf",14) local megjelenit = true rot = 0 unbindKey ( "home" ) setElementData(localPlayer,"hud:main",true,false) function funkcio() setElementHealth(getLocalPlayer(), getElementHealth(getLocalPlayer()) - 1) end function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end function hudStatusz(statusz) megjelenit = statusz end function getHudStatusz() return megjelenit end How to change position to left, bot
-
Can anyone help me fix this code ? Set position left bot , multi screen
-
How fix , I need show hp/armor/money on left,bot, screen
-
Why dont work this resource for other players, only work on my pc local localPlayer = getLocalPlayer () local theTimer2 = nil local color1 = tocolor( 0, 0, 0, 255 ) local color2 = tocolor( 255, 0, 0, 150 ) local color3 = tocolor( 255, 200, 0, 150 ) local color4 = tocolor( 2, 59, 242, 150 ) local font = dxCreateFont ("myriadproregular.ttf",14) local megjelenit = true rot = 0 unbindKey ( "home" ) setElementData(localPlayer,"hud:main",true,false) function funkcio() setElementHealth(getLocalPlayer(), getElementHealth(getLocalPlayer()) - 1) end function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end function hudStatusz(statusz) megjelenit = statusz end function getHudStatusz() return megjelenit end function hud() local hp = tonumber(getElementHealth(getLocalPlayer())) local armor = tonumber(getPedArmor(getLocalPlayer())) local money = getPlayerMoney(localPlayer) local scx, scy = guiGetScreenSize() local svx, svy = guiGetScreenSize() local x, y = scx-193 - 47, 10 local xx = svx - 200 local xxx = scx + 50 img = dxDrawImage(40, 799, 374, 91, "bg.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText(math.round(hp,0).."%", 110, 827, 7, 22.5, tocolor ( 200, 200, 200 ), 0.8, font, "left","top",false,false,true,true) dxDrawText(math.round(armor,0).."%", 330, 827, 7, 22.5, tocolor ( 200, 200, 200 ), 0.8, font, "left","top",false,false,true,true) dxDrawText(math.round(money,0).."$", 217, 827, 7, 22.5, tocolor ( 200, 200, 200 ), 0.8, font, "left","top",false,false,true,true) end addEventHandler("onClientRender", getRootElement(), hud) function penz_darabolas(amount) local formatted = amount while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1 %2') if (k==0) then break end end return formatted end function onClientRenderR() local theVehicle = getPedOccupiedVehicle ( getLocalPlayer() ) if theVehicle then local vehmodel = getElementModel(theVehicle) if vehmodel == 481 or vehmodel == 509 or vehmodel == 510 then speed = exports.rp_core:getVehicleVelocity(theVehicle) if speed > 40 then toggleControl ( "accelerate", false ) elseif not isControlEnabled("accelerate") then toggleControl ( "accelerate", true ) end end end end addEventHandler("onClientRender", getRootElement(), onClientRenderR) My gta, others
-
К сожалению не знаю, статьи есть? Или киньте видео-урока или наподобие. Допустим скачал любой логин панель и вот мне надо поставить выбор пола и что бы с выбором пола автоматом выдавало подходящий скин.
-
I need when players connect to the server, that they could choose a gender male or female and to automatically set on player female or male skin
-
Как добавить в панель регистрации функцию выбора пола и что бы автоматически выдавалось для женского пола , женский скин и для мужского , мужской
-
only players who in team, can enter to base with skin, yea?
-
How to create private base for clan, and entry to clan can only with team skin or password
-
Как сделать так же что бы показывало , Ник, бронь и хп?