1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Everything posted by 1LoL1
-
not work dxDrawImage ( (screenWidth / 800) * 753, (screenHeight / 600) * 295, screenWidth*0.1, screenHeight*0.1, "images/dayzicons/bandit.png",0,0,0,tocolor(r,g,b))
-
Can you wrote here how to calculation?
-
its added and not work this work normally and when i have 800/600 and screenWidth - 47, screenHeight - 235: this not work when i have 800/600 and screenWidth - 47, screenHeight - 305: this not work when i have 1300+ and screenWidth - 47, screenHeight - 305:
-
Hello, can anyone help me with this? i have this: dxDrawImage ( screenWidth*0.940 , screenHeight*0.610, screenHeight*0.1, screenHeight*0.1 but when i added guiGetScreenSize() not work dxDrawImage ( screenWidth - 47, screenHeight - 305, screenHeight*0.1, screenHeight*0.1
-
all work but i dont know why not work "Player has been unmuted by "Console" function aAction ( type, action, admin, player, data, more ) if ( aLogMessages[type] ) then function aStripString ( string ) local adminNick = string.gsub(getPlayerName ( admin ), "#%x%x%x%x%x%x","") -- Line (541) local playerNick = string.gsub(getPlayerName ( player ), "#%x%x%x%x%x%x","") string = tostring ( string ) string = string.gsub ( string, "$admin", adminNick ) string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin ) and "" or " " .. adminNick ) string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " " .. adminNick ) string = string.gsub ( string, "$data2", more or "" ) if ( player ) then string = string.gsub ( string, "$player", playerNick ) end return tostring ( string.gsub ( string, "$data", data or "" ) ) end local node = aLogMessages[type][action] if ( node ) then local r, g, b = node["r"], node["g"], node["b"] if ( node["all"] ) then outputChatBox ( aStripString ( node["all"] ), _root, r, g, b, true ) end if ( node["admin"] ) and ( admin ~= player ) then outputChatBox ( aStripString ( node["admin"] ), admin, r, g, b, true ) end if ( node["player"] ) then outputChatBox ( aStripString ( node["player"] ), player, r, g, b, true ) end if ( node["log"] ) then outputServerLog ( aStripString ( node["log"] ) ) end end end end ERROR: 541: bad argument #1 to "gsub" (string expected, got nil)
-
Solved i fixed but now i have here warnings : WARNING: 42: Bad argument @ "guiCheckBoxGetSelected" [Expected gui-element at argument 1, got nil] WARNING: 355: Bad argument @ "guiCheckBoxGetSelected" [Expected gui-element at argument 1, got nil] Line (42): if ( ( destroy ) or ( guiCheckBoxGetSelected ( aPerformanceInput ) ) ) then Line (355): if ( ( destroy ) or ( guiCheckBoxGetSelected ( aPerformanceInput ) ) ) then Please can anyone fix this?
-
When i want to set "setgamespeed" or other functions i have this error i don't know how to fix. Please can anyone fix this?: _getPlayerName = getPlayerName function getPlayerName(player) if get("hexRemove") == "true" then if string.find(_getPlayerName(player), "#%x%x%x%x%x%x") then return string.gsub(_getPlayerName(player), "#%x%x%x%x%x%x", "") else return _getPlayerName(player) end else return _getPlayerName(player) end end ERROR: 61: bad argument #1 to "find" (string expected, got boolean) WARNING: 61: Bad argument @ "getPlayerName" [Expected element at argument 1, got boolean]
-
Yes. or when i killed 50 zombies i give bonus.
-
You mean this?: "Author" version="Version" type="script" name="Name" />
-
Yes i know but how i can when i killed 2 zombies of 4 i will give bonus?.
-
so this? but this not work i killed 4 zombies and i dont have bonus addEvent("onZombieGetsKilled",true) addEventHandler("onZombieGetsKilled",getRootElement(), function (killer) chance = math.random(0,4) if (chance == 2) then setElementData(killer, "F", getElementData(killer, "F") + 1) local killer = getPlayerName(killer) outputChatBox("F", getRootElement(), 255, 0, 0, true) end end)
-
this work but i have given always bonus. And when i want this: (10) == 5 then give bonus 10 = zombies 5 = give bonus
-
Decide what you want, random chance, or percentage of some value to be a bonus. 10% i find or get bonus. Now its 100%
-
what? this is random so luck.. i want to percent
-
10% chance will get bonus
-
Hello how i can fix this when i want to 10% = give 1 bonus please can anyone help me? function math.percent(percent,maxvalue) if tonumber(percent) and tonumber(maxvalue) then local x = (maxvalue*percent)/100 return x end return false end addEvent("onZombieGetsKilled",true) addEventHandler("onZombieGetsKilled",getRootElement(), function (killer) if math.percent(10,100) then setElementData(killer, "F", getElementData(killer, "F") + 1) local killer = getPlayerName(killer) outputChatBox("+1 F", getRootElement(), 255, 0, 0, true) end end)
-
Try this: function blablabla () GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} Text = [[ Rule 1 Follow all public communication standards. Rule 1.1 No speaking non-english in public chat. Rule 1.2 No posting junk in public chat. Following all public communication standards is a main and most broken rule. Any non-english language should not be spoken into the global chat. Posting junk in public chat refers to non-sense posts, or which may make the chat look ugly, for example ajjajajaja or something slang. Rule 2 No hacking or abusing. Rule 2.1 No hacking. Rule 2.2 No abusing. Rule 2.3 No abusing no dm to disturb players. Any kind of trainers or illegal hacking tricks or hacking programs should not be used for own benefits. Any FGF or MTA bug should not be abused or may lead to a ban or kick. Abusing no dm refers when you are using no dm just to disturb or irritate someone. Rule 3 No annoying or trolling. Rule 3.1 No annoying. Rule 3.2 No trolling. Rule 3.3 No provoking. Any annoying, trolling, or provoking behavior to any staff member or player will not be tolerated and may lead to long-time mutes. Rule 4 No advertising other servers. Rule 5 No disturbing neutral staff. Disturbing neutral staff means staying near them, hijacking their vehicles, or killing them without any reason. Please be noted that when any staff member is not shooting you, you must not shoot him, otherwise this rule applies. (Ban/kick) Rule 6 No leeching from the server. nLeeching from the server refers to any activity unbeneficial for FGF and its players, may lead to long duration bans and accounts being deleted. ]] GUIEditor_Window[1] = guiCreateWindow(323,178,709,429, "FGF Rules", false) GUIEditor_Memo[1] = guiCreateMemo(12,35,681,341,Text,false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(620,386,73,28,"Close",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick", GUIEditor_Button[1], closeForm) showCursor(true) guiSetInputEnabled(true) end addEvent("onClientResourceStart", true) addEventHandler("onClientResourceStart", getRootElement(), blablabla) function closeForm (button, state) if state == "up" then showCursor(false) guiSetInputEnabled(false) guiSetVisible(GUIEditor_Window[1], false) end end
-
Hello please how i can this change to all resolutions or how to change text of image. This work normally when i have 600 or 800 resolution: and this not work when i have 1000+ : and i want this: 600 or 800: 1000+: please anyone help.