Jump to content

1LoL1

Members
  • Posts

    944
  • Joined

  • Last visited

Everything posted by 1LoL1

  1. Not work. Now i must use /gift [name] "." [text] but i can use name IDIOT but idiot it's not online on my server. i want: /gift [name] [text]
  2. Try this without your RGBToHex etc.. server: addEvent("onClientMinimize", true) addEventHandler("onClientMinimize", getRootElement(), function () outputChatBox("#00FFFF[iNFO] "..getPlayerName(source):gsub("#%x%x%x%x%x%x","").." #ffffffminimized game", getRootElement(), 255, 96, 96, true) end) client: addEventHandler("onClientMinimize", getRootElement(), function () triggerServerEvent("onClientMinimize", getLocalPlayer()) end)
  3. why else wtf? /gift name or number or i dont know Now: /gift name . text or: /gift Dealman . 454545www55411 i can use name dealman but he is not online i want: /gift [name] [text] not /gift [name] . [text]
  4. Hello, i created script but not work i don't know why i don't see first letter ? please can anyone help me or fix this? And i can get in the script names.. example /gift SHIT text but SHIT is not online function Gift (thePlayer,command,who,text,...) if text then local text = table.concat ( { ... }, " " ) outputChatBox("Admin "..string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "").." --> "..who.." [Reason: "..text.."]", root, 255, 0, 0, true) end end addCommandHandler("gift", Gift)
  5. If you have decompiled version --> Open all resources in DayZ and search this "MTA:DayZ 0.9.6a".
  6. Search in MTA DayZ Resources. I think --> inventory.lua or survivor_system.lua
  7. I know so my question is how i can fix this?
  8. server: test = createElement("TEST") function Money (source) local money = (getElementData(test, "Data") or 0) outputChatBox("Money: "..convertNumber(money).."$!", source, 255, 255, 255, true) end addCommandHandler("money", Money) client: function CreateShopWindow() Window = guiCreateWindow(350,225,200,200,"TEST",false) guiSetAlpha ( Window, 5.00 ) guiWindowSetMovable ( Window, false ) local money = (getElementData(test, "Data") or 0) local C1 = guiCreateLabel(10,100,500,500,"",false,Window) guiSetText (C1, "TEST: "..convertNumber(money).."$") guiSetFont(C1, "default-bold-small") guiWindowSetSizable(Window,false) end function convertNumber ( number ) local formatted = number 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 ShowGUI ( ) CreateShopWindow () showCursor (true) local screenW,screenH = guiGetScreenSize() local windowW,windowH = guiGetSize(Window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(Window,x,y,false) end function window () if isElement(Window) then HideGUI() else ShowGUI() end end bindKey ( "F5","down", window) function HideGUI () destroyElement (Window) showCursor(false) end And in server side works normally but how i can show money of server-side to client-side in label.
  9. 1LoL1

    [HELP] ACC

    Hello, i created script but i don't know really how i can get accname of server-side to client-side so triggerServerEvent Please can anyone help me? client function www () Window = guiCreateWindow(350,225,200,200,"Account",false) guiSetAlpha ( Window, 5.00 ) guiWindowSetMovable ( Window, false ) local C1 = guiCreateLabel(10,95,500,500,"",false,Window) guiSetText (C1, "Account: "..acc.."") guiSetFont(C1, "default-bold-small") guiWindowSetSizable(Window,false) end function convertNumber ( number ) local formatted = number 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 ShowGUI ( ) www () showCursor (true) local screenW,screenH = guiGetScreenSize() local windowW,windowH = guiGetSize(Window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(Window,x,y,false) end function window () if isElement(Window) then HideGUI() else ShowGUI() end end bindKey("F5","down",window) function HideGUI () destroyElement (Window) showCursor(false) end server addEvent("ACC", true) addEventHandler("ACC", root, function (source) acc = getAccountName(getPlayerAccount(source)) end)
  10. Your forgot 2x ")" local iHelp = false function infoHelp() iHelp = true outputchatbox("/spam /insult /caps ..") end addcommandhandler("infohelp", infoHelp) function Caps() if infoAllow == true then outputchatbox("Info: Please turn off your caps") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addcommandhandler("caps", Caps) function Spam() if infoAllow == true then outputchatbox("Info: Please stop spamming chat") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addcommandhandler("spam", Spam) function Insult() if infoAllow == true then outputchatbox("Info: Please don't insult BITCH !") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addcommandhandler("insult", Insult)
  11. 1LoL1

    GiveWeapon

    My code work normally. I tested and worked. It's server-side.
  12. 1LoL1

    GiveWeapon

    function giveWeaponsOnSpawn () giveWeapon(source,31,200) end addEventHandler("onPlayerJoin", getRootElement(), giveWeaponsOnSpawn)
  13. 1LoL1

    Vote!

    Wrong section.
  14. But there is not in one column and yes it's possible but you must edit scoreboard.
  15. 1LoL1

    string.format

    Ok i fixed. So it's solved.
  16. 1LoL1

    string.format

    Thanks but i don't know how i can use in my code..
  17. 1LoL1

    string.format

    Hello, can anyone help me how i can use in this code string.format? i mean 01:01:01 not 1:1:1 please can anyone help me? dbExec( database, "INSERT INTO TEST ( Data, Data2, Data3, Data4 ) VALUES ( ?, ?, ?, ?)", data, data2, "["..day.."/"..month.."/"..year.."]", "["..hour..":"..min..":"..sec.."]")
  18. Why hard?.. i said server-side work normally i want only client-side fix.
  19. Wtf? i want only of SERVER-SIDE Money to show in Client-Side [WINDOW]..... Server-Side: test = createElement("TEST") function Money (source) local money = (getElementData(test, "Data") or 0) outputChatBox("Money: "..convertNumber(money).."$!", source, 255, 255, 255, true) end addCommandHandler("money", Money) Client-Side: function CreateShopWindow() Window = guiCreateWindow(350,225,200,200,"TEST",false) guiSetAlpha ( Window, 5.00 ) guiWindowSetMovable ( Window, false ) local money = (getElementData(test, "Data") or 0) local C1 = guiCreateLabel(10,100,500,500,"",false,Window) guiSetText (C1, "TEST: "..convertNumber(money).."$") guiSetFont(C1, "default-bold-small") guiWindowSetSizable(Window,false) end function convertNumber ( number ) local formatted = number 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 ShowGUI ( ) CreateShopWindow () showCursor (true) local screenW,screenH = guiGetScreenSize() local windowW,windowH = guiGetSize(Window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(Window,x,y,false) end function window () if isElement(Window) then HideGUI() else ShowGUI() end end bindKey ( "F5","down", window) function HideGUI () destroyElement (Window) showCursor(false) end
  20. yourResolutionSizeX = Your resolution Settings --> Video --> Resolution: yourResolutionSizeY = Your resolution Settings --> Video --> Resolution:
×
×
  • Create New...