
1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Everything posted by 1LoL1
-
You can change skins only that you have given. And you have that the skin is used.
-
its added.. i mean /setvip test and player test will see "outputChatBox" when i added to me i will see outputChatBox and when i'am in "VIP" i can't give next VIP, money
-
your admin group name "Admin" or "admin" ? "Admin" and i mean when i setvip to player only player will see outputChatBox not i.
-
Hello i created VIP code and i want to /setvip but player must be in the server and this can only "Admin". function vip(thePlayer, command) local VIP = aclGetGroup("VIP") local player = getAccountName(getPlayerAccount(thePlayer)) aclGroupAddObject (VIP, "user."..player) givePlayerMoney(thePlayer, 1) outputChatBox("test", thePlayer, 255, 255, 255, true) end addCommandHandler("setvip", vip) please can anyone help me or get me example or functions?
-
not work if getElementData(localPlayer, "lang") == "EN" then outputChatBox("#0044FF[PAY] #FFFFFFtest "..getPlayerName(player).." #FFFFFFtest #FF0000["..tostring(amount).."] #FFFFFFtest test test "..getPlayerName(targetplayer), 255, 255, 255, true) else outputChatBox("#0044FF[PAY] #FFFFFFTEST "..getPlayerName(player).." #FFFFFFtest #FF0000["..tostring(amount).."] #FFFFFFtest test "..getPlayerName(targetplayer), 255, 255, 255, true) end
-
and must be client-side?? or what i must use? player localPlayer getLocalPlayer() source or what?
-
Hello, can anyone please fix this? i don´t know why this not work. i see only text EN but when i have lang else i see text EN. function test(Player) if getElementData(localPlayer, "lang") == "EN" then outputChatBox("TEST1", root, 255, 255, 255, true) else outputChatBox("TEST2", root, 255, 255, 255, true) end end setTimer(test, 2000, 0)
-
function giveSomeoneMoney(player, cmd, target, amount) if target then if amount then local money = getPlayerMoney(player) local targetplayer = getPlayerFromParticalName(target) local r,g,b = getPlayerNametagColor(player) amount = tonumber(amount) if targetplayer then if not (targetplayer == player) then if money >= amount and amount > 0 then givePlayerMoney(targetplayer, amount) takePlayerMoney(player, amount) if getElementData(player, "lang") == "EN" then outputChatBox("#0044FF[PAY] #FFFFFFPlayer "..getPlayerName(player).." #FFFFFFsent #FF0000["..tostring(amount).."] #FFFFFFPoints to player "..getPlayerName(targetplayer), getRootElement(), 255, 255, 255, true) else outputChatBox("#0044FF[PAY] #FFFFFFTEST "..getPlayerName(player).." #FFFFFFtest #FF0000["..tostring(amount).."] #FFFFFFtest test "..getPlayerName(targetplayer), getRootElement(), 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FFFFFFIncorrectly entered amount", player, 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FFFFFFYou cannot Points yourself!", player, 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FF0000Player not found", player, 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FFFFFFUsage: /pay [Name] [Points]", player, 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FFFFFFUsage: /pay [Name] [Points]", player, 255, 255, 255, true) end end addCommandHandler("pay", giveSomeoneMoney) function getPlayerFromParticalName(thePlayerName) local thePlayer = getPlayerFromName(thePlayerName) if thePlayer then return thePlayer end for _,thePlayer in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), thePlayerName:lower(), 1, true) then return thePlayer end end return false end show code that set the data "en" function TEST (button, state) if button == "left" and state == "up" then setElementData(getLocalPlayer(), "lang", "EN") guiSetInputEnabled(false) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) outputChatBox("TEST", 255, 255, 255, true) end end
-
what with this? function unconvertNumber ( number ) local result = number:gsub ( ",", "" ); return tonumber ( result ); end i need to use here local money = getPlayerMoney ( source ) -- save 99,999,999$ setPlayerMoney ( source, poll[1]["Money"] ) -- load 99999999$ or 99,999,999$
-
function giveSomeoneMoney(player, cmd, target, amount) if target then if amount then local money = getPlayerMoney(player) local targetplayer = getPlayerFromParticalName(target) local r,g,b = getPlayerNametagColor(player) amount = tonumber(amount) if targetplayer then if not (targetplayer == player) then if money >= amount and amount > 0 then givePlayerMoney(targetplayer, amount) takePlayerMoney(player, amount) if getElementData(player, "lang") == "EN" then outputChatBox("#0044FF[PAY] #FFFFFFPlayer "..getPlayerName(player).." #FFFFFFsent #FF0000["..tostring(amount).."] #FFFFFFPoints to player "..getPlayerName(targetplayer), getRootElement(), 255, 255, 255, true) else outputChatBox("#0044FF[PAY] #FFFFFFTEST "..getPlayerName(player).." #FFFFFFtest #FF0000["..tostring(amount).."] #FFFFFFtest test "..getPlayerName(targetplayer), getRootElement(), 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FFFFFFIncorrectly entered amount", player, 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FFFFFFYou cannot Points yourself!", player, 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FF0000Player not found", player, 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FFFFFFUsage: /pay [Name] [Points]", player, 255, 255, 255, true) end else outputChatBox("#0044FF[PAY] #FFFFFFUsage: /pay [Name] [Points]", player, 255, 255, 255, true) end end addCommandHandler("pay", giveSomeoneMoney) function getPlayerFromParticalName(thePlayerName) local thePlayer = getPlayerFromName(thePlayerName) if thePlayer then return thePlayer end for _,thePlayer in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), thePlayerName:lower(), 1, true) then return thePlayer end end return false end
-
Please can anyone help? i have lang EN and my friend CZ but i see text in EN and my friend too he must see text CZ when have lang CZ if getElementData(player, "lang") == "EN" then outputChatBox("#0044FF[PAY] #FFFFFFPlayer "..getPlayerName(player).." #FFFFFFsent #FF0000["..tostring(amount).."] #FFFFFFPoints to player "..getPlayerName(targetplayer), getRootElement(), 255, 255, 255, true) else outputChatBox("#0044FF[PAY] #FFFFFFTEST "..getPlayerName(player).." #FFFFFFtest #FF0000["..tostring(amount).."] #FFFFFFtest test "..getPlayerName(targetplayer), getRootElement(), 255, 255, 255, true) end
-
I didn't get your point, explain more better Why does text change when I change my lang? my friend wrote me that now there is a Create Hide GUI and has to be about Create and Destroy GUI.
-
ok this work but when i change language text is not changed i think problem is in GUI. When i want change text i must restart resource. Now its GUI: F2 = Open F2 = Close i think must be: F2 = CreateWindow F2 = DestroyWindow or i dont know function ShowGUI ( ) guiSetVisible ( VipWindow, not guiGetVisible ( VipWindow ) ) showCursor ( not isCursorShowing( ) ) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(VipWindow,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(VipWindow,x,y,false) end bindKey ( "F2","down", ShowGUI )