Jump to content

golanu21

Members
  • Posts

    650
  • Joined

  • Last visited

Everything posted by golanu21

  1. golanu21

    help

    exports.scoreboard:scoreboardAddColumn( "WantedLv" ) function getwan() local players = getElementsByType ( "player" ) for theKey,source in ipairs(players) do local wanted = getPlayerWantedLevel(source) local zero = "Inofensiv" local one = "*" local two = "**" local three = "***" local four = "****" local five = "*****" local six = "******" if (wanted) == 0 then setElementData ( source, "WantedLv", zero ) else if (wanted) == 1 then setElementData ( source, "WantedLv", one ) else if (wanted) == 2 then setElementData ( source, "WantedLv", two ) else if (wanted) == 3 then setElementData ( source, "WantedLv", three ) else if (wanted) == 4 then setElementData ( source, "WantedLv", four ) else if (wanted) == 5 then setElementData ( source, "WantedLv", five ) else if (wanted) == 6 then setElementData ( source, "WantedLv", six ) end end end end end end end end end setTimer(getwan,100,0) addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), getwan ) admin/server/admin_server.lua:1436: Admin security - Client/player mismatch from IP <onElementDataChange WantedLv>
  2. man ... i have a gamemode... in all script where i have a gui . whit markers , command etc.. the gui become visible to everyone
  3. but in any script ..where exist a gui... "command, or marker", the gui is visbile for all
  4. in ... very far from the map...
  5. WTF... all what id do with gui .. has visibile for all players... in any script ,
  6. GUIEditor = { label = {}, } fereastra = guiCreateWindow(684, 359, 449, 424, "Ls/Sf/Lv", false) guiWindowSetSizable(fereastra, false) guiSetAlpha(fereastra, 0.89) GUIEditor.label[1] = guiCreateLabel(8, 33, 353, 54, "Incotro sefule?", false, fereastra) guiSetFont(GUIEditor.label[1], "sa-header") LS = guiCreateButton(9, 129, 431, 99, "Los Santos", false, fereastra) guiSetProperty(LS, "NormalTextColour", "FFAAAAAA") SF = guiCreateButton(10, 228, 430, 104, "San Fierro", false, fereastra) guiSetProperty(SF, "NormalTextColour", "FFAAAAAA") LV = guiCreateButton(9, 332, 431, 83, "Las Venturas", false, fereastra) guiSetProperty(LV, "NormalTextColour", "FFAAAAAA") X = guiCreateButton(397, 23, 42, 33, "X", false, fereastra) guiSetProperty(X, "NormalTextColour", "FFAAAAAA") PI = guiCreateButton(9, 84, 431, 44, "Pirate Island", false, fereastra) guiSetProperty(PI, "NormalTextColour", "FFAAAAAA") guiSetVisible(fereastra, false) --script-- --GUI VISIBILE --*Marker1 addEventHandler("onClientMarkerHit", Marker1, function () guiSetVisible(fereastra, true) showCursor(true) end) i make that, and a player enter in marker .. the gui has visibile for all players
  7. Yes that worked, thx! I only tested with source.. You're are welcome
  8. golanu21

    Help

    Aha, thanx very mutch man
  9. You're welcome.
  10. function skin () local player = getLocalPlayer() setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin )
  11. you need to definte the "player" or you can put setElementModel (source, 286)
  12. golanu21

    Help

    i want to : when i am in the pickup and i press F THEN etc... ,, this i dont know
  13. no, the script is this --gui Window2 = guiCreateWindow(20,20,200,200,"Window",false) guiSetVisible(Window2, false) --script bindKey("F2", "down", function () guiSetVisible(Window2, true) showCursor(true) end)
  14. golanu21

    Help

    Hi how i make when i enter in a createPickup to show me a outputChatBox("Press F", source, 255, 255, 0) and when i press F ... THEN etc i know the commands are bindKey, createPickup, "onPickupHit",outputChatBox but idk how to join him ...
  15. golanu21

    ports

    which modem you use? i using a router TP-LINK
  16. why players can't connect to my server, "All ports oppen : 22005 TCP;22003 UDP;22126 UDP"
  17. golanu21

    ports

    hey, i know this section is for scripting but i want to know :D why players can't connect to my server, "All ports oppen : 22005 TCP;22003 UDP;22126 UDP"
  18. golanu21

    help

    okey
  19. golanu21

    help

    i want to make a createColRectangle and when player want to enter in Col Shape ( "onColShapeHit" ) to push him back
  20. Your code is wrong. Line 6, "moveObjct"? yea .. LOL
  21. I've said it. sorry, you need to use a setTimer
  22. and ? , what is your problem ?
×
×
  • Create New...