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. WTF... all what id do with gui .. has visibile for all players... in any script ,
  5. 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
  6. Yes that worked, thx! I only tested with source.. You're are welcome
  7. golanu21

    Help

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

    Help

    i want to : when i am in the pickup and i press F THEN etc... ,, this i dont know
  11. 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)
  12. 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 ...
  13. golanu21

    ports

    which modem you use? i using a router TP-LINK
  14. why players can't connect to my server, "All ports oppen : 22005 TCP;22003 UDP;22126 UDP"
  15. 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"
  16. golanu21

    help

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