
1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Everything posted by 1LoL1
-
I have system when i quit Zombie Kills saved when Joined Zombie Kills loaded but i need when i restart script and anyone have 0 Zombie Kills i don't see Zombie Kills but when i have 1 and more i see normally.
-
Ehm but i don't want set to 0 i want only when i start resource i want see Zombie Kills and when i have 0 i want to see 0 or when join.
-
Hello, how i can this: now when i start the script in ScoreBoard i dont see Zombie Kills how i can see? i mean (getElementData(player, "Zombie Kills") or 0) when i have 0 i dont see "0" exports.scoreboard:addScoreboardColumn('Zombie Kills') addEvent("onZombieWasted",true) addEventHandler("onZombieWasted",root, function (killer) setElementData(killer, "Zombie Kills", getElementData(killer, "Zombie Kills") + 1) end) function (player) getElementData(player, "Zombie Kills" or 0 end addEventHandler("onResourceStart", root,
-
You can download here: Here
-
Can anyone help me with this? i don't know where i must use this. i say in server "č" but in my database i see "Ä". and i want when i say in server "č" i will see in database "č". test = { ['č'] = 'Ä', } here: exports.logs:outputServerLogDB(string.gsub((getPlayerName( thePlayer )..": "..message), '#%x%x%x%x%x%x', ''), "GlobalChat")
-
hello, i have this code but i see this: Name1: i have 5000$ i see 5000$ Name2: he have 1000$ i see 5000$ why this not work? { name = "Money", width = 100, data = function (player) return (getPlayerMoney(player) or 0) end },
-
"name" name="name" version="version" type="script"/>
-
Try this: addEventHandler("onPlayerCommand", getRootElement(), function (string) if string == "ss" then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("SuperModerator")) then elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Moderator")) then else cancelEvent() end end end)
-
What not work? I tested and worked.
-
lol work but can you delete froze + curcor? i mean this add: when player move dxDrawText will remove and must be again use /base and can you please add when i use /base i warped to x,y,z but when i use /baseback i go warped for 15/30 seconds to back position? so can you add player can't move when have used /base? and when i have used /base i can't use again and can you this use only in group "Admin" ? this is easy but i don't know where i must put
-
Alright, put the full code i will do it for you to learn from it function mybase(source) local number = 5 setTimer(function() number = number-1 dxDrawText("For "..number.."", 146, 476, 304, 536, tocolor(255,255,255,255), 1, "default-bold", "center", false, false, false, false, false) if number < 1 then setElementPosition(source, x,y,z) end end, 5000, 1) end addCommandHandler("base", mybase)
-
triggerServerEvent --it will send the data from client to server side Can you please fix this? When it is done so at least I learn to trigger
-
Lmao, dxDraws works only in client side , use trigger to send it from client to server hm and that if the trigger I know
-
This must be client-side? i mean this when i use /test dxDrawText displays 5 4 3 2 1 warp and dxDrawText disappears
-
not work same error.. but how i can put timer in DxDrawText? i mean this dxDrawText("For "..number.."", 146, 476, 304, 536, tocolor(255,255,255), 1, "default-bold", "center") but i have here error: attempt to call global "tocolor" (a nil value)
-
lol, i know but i put there when will fixed. ERROR: attempt to call global "guiCreateLabel" (a nil value)
-
Hello i created script when i use /base and i warped to x,y,z but i created guiCreateLabel and timer in guiCreateLabel but not work i don't know why. Can anyone help me please? and what do I do so that man could not move when the port? function mybase(source) local number = 5 setTimer(function() number = number-1 local myLabel = guiCreateLabel(0,0,1,1,"",false,mybase) guiSetText(myLabel, "For "..number.." seconds") if number < 1 then setElementPosition(source, x,y,z) end end, 5000, 1) end addCommandHandler("test", mybase)
-
Try this: function timer() for _, p in ipairs(getElementsByType("player")) do setTimer ( function() setElementData(p, "Rep", getElementData(p, "Rep") + 0.05) end, 60000, 0) end end timer()
-
The problem is in Head its small big.
-
but this not work.. screenWidth*0.1, screenHeight*0.1