Jump to content

myyusuf

Members
  • Posts

    120
  • Joined

  • Last visited

Everything posted by myyusuf

  1. server addEvent("GUIwins",true) addEventHandler("GUIwins",root,function() wins = getElementData(source,"wins") triggerClientEvent(source,"GUIwins",source,wins) end ) addEvent("GUIpoints",true) addEventHandler("GUIpoints",root,function() points = getElementData(source,"points") triggerClientEvent(source,"GUIpoints",source,points) end ) addEvent("GUIsecond",true) addEventHandler("GUIsecond",root,function() second = getElementData(source,"second") triggerClientEvent(source,"GUIsecond",source,second) end ) addEvent("GUIthird",true) addEventHandler("GUIthird",root,function() third = getElementData(source,"third") triggerClientEvent(source,"GUIthird",source,third) end ) addEvent("GUIrank",true) addEventHandler("GUIrank",root,function() rank = getElementData(source,"rank") triggerClientEvent(source,"GUIrank",source,rank) end ) client triggerServerEvent("GUIwins",getLocalPlayer()) triggerServerEvent("GUIpoints",getLocalPlayer()) triggerServerEvent("GUIsecond",getLocalPlayer()) triggerServerEvent("GUIthird",getLocalPlayer()) triggerServerEvent("GUIrank",getLocalPlayer()) addEvent ( "GUIwins", true ) addEventHandler ( "GUIwins", root, function ( wins ) if ( wins ) then GUIEditor_Label[10] = guiCreateLabel ( 49,72,246,21,"" ..wins.. "",false,GUIEditor_Tab[1]) end end ) addEvent ( "GUIpoints", true ) addEventHandler ( "GUIpoints" ,root, function ( points ) if ( points ) then GUIEditor_Label[11] = guiCreateLabel ( 54,101,246,21,"" ..points.. "",false,GUIEditor_Tab[1]) end end ) addEvent ( "GUIsecond", true ) addEventHandler ( "GUIsecond",root, function ( second ) if ( second ) then GUIEditor_Label[12] = guiCreateLabel ( 98,131,246,21,"" ..second.. "",false,GUIEditor_Tab[1]) end end ) addEvent ( "GUIthird", true ) addEventHandler ( "GUIthird", root, function ( third ) if ( third ) then GUIEditor_Label[13] = guiCreateLabel ( 88,160,246,21,"" ..third.. "",false,GUIEditor_Tab[1]) end end ) addEvent ( "GUIrank", true ) addEventHandler ( "GUIrank", root, function ( rank ) if ( rank ) then GUIEditor_Label[14] = guiCreateLabel ( 49,188,246,21,"" ..rank.. "",false,GUIEditor_Tab[1]) end end ) how can i make trigger in every 10 second? when data changes it doenst seen on gui.
  2. myyusuf

    Tag

    -- server!!! function stafftag(text, msgtype) local root = getRootElement() local account = getPlayerAccount ( source ) local name = getPlayerName(source) if (msgtype == 0) then if isGuestAccount ( source ) then outputChatBox("#000000[GUEST] #0066FF" .. name .. ":#0066FF " .. text, root, 255, 255, 255, true) else outputChatBox(name .. ":#0066FF " .. text, root, 255, 255, 255, true) end end end addEventHandler("onPlayerChat", root, stafftag) is this code is right?
  3. so it will be saved on server files. if i move the server files to another hosting, the datas will be moved too? no, u need move rigistry.db too okay now i get it. thank you for answering.
  4. so it will be saved on server files. if i move the server files to another hosting, the datas will be moved too?
  5. thanks for answering. so where will the data saved? also can i will edit the data by handler?
  6. you may forgot the give admin rights to scoreboard.
  7. thanks for the answers guys thank you Sniper, but i am wondering when i restart script data will be losed?
  8. you are right but i dont know to use SQL.
  9. hello scripters, i have a stats script that worked on XML system. so i wanted to make top list. like a top wins, 2nd, 3th, points. if anyone can make that for fair price, pm me!
  10. myyusuf

    Few maps

    i like the last video. nice maps
  11. Pm it to him... i was talking with you.
  12. i need something. i have a stats system that worked on XML. i want make a top commands like top wins, top 2nd, top 3th, top points, top wins on this map etc... if you can make it, pm me.
  13. myyusuf

    Scripter.

    just visit the server. i will show you how works.
  14. myyusuf

    Scripter.

    http://tinyurl.com/6mwqgpj if you like it pm me. there more than picture in F*ckN server. i can sell it to you.
  15. myyusuf

    GUI

    http://pastebin.com/Bdr7hzLp WARNING: gui.lua:78: Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] WARNING: gui.lua:82: Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] WARNING: gui.lua:86: Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] WARNING: gui.lua:90: Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] WARNING: gui.lua:94: Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] i dont know mean of these edit: code updated
  16. myyusuf

    GUI

    http://pastebin.com/Bdr7hzLp i have problem with graphic tab. when i choose the some shader it isnt running. what is wrong can you help me please?
  17. thanks but dont work at map starting. i know i have to use setTimer. but how can i make worked that without setTimer? Add this : addEvent("onMapStarting",true) Type : addEvent("onMapStarting",true) function zaa() for index, player in ipairs ( getElementsByType ( "player" ) ) do if getPlayerTeam (player) then local r, b, g = getTeamColor ( getPlayerTeam ( player) ) -- Lua is case sensetive. local araba = getPedOccupiedVehicle ( player ) if araba then setVehicleColor ( araba, r,g,b,r,g,b) end end end end addEventHandler("onMapStarting",getRootElement(),zaa) not worked and non errors on /debugscript 3
  18. thanks but dont work at map starting. i know i have to use setTimer. but how can i make worked that without setTimer?
  19. function zaa() for index , player in ipairs ( getElementsByType ( "player" ) ) do if getPlayerTeam (player) then local r,b,g = getTeamColor ( getplayerteam ( player) ) local araba = getPedOccupiedVehicle ( player ) if araba then setVehicleColor ( araba, r,g,b,r,g,b) addEventHandler("onMapStarting",getRootElement(),zaa) what is wrong with this code? can somebody help me please?
  20. http://tinyurl.com/6mwqgpj if you like it pm me
  21. myyusuf

    about GUİ

    yeah really bad idea. i solved the problem. thanks for helping
  22. myyusuf

    about GUİ

    I not understand what you mean. You need trigger this event each 100 mms? yes that what im trying.
  23. myyusuf

    about GUİ

    last question. where am i wrong on this code? setTimer ( triggerServerEvent, 100, 1, "GUIwins",getLocalPlayer()) setTimer ( triggerServerEvent, 100, 1, "GUIpoints",getLocalPlayer()) setTimer ( triggerServerEvent, 100, 1, "GUIsecond",getLocalPlayer()) setTimer ( triggerServerEvent, 100, 1, "GUIthird",getLocalPlayer()) setTimer ( triggerServerEvent, 100, 1, "GUIrank",getLocalPlayer()) it doesnt trigger in every 100 ms.
×
×
  • Create New...