Jump to content

ChoTax

Members
  • Posts

    17
  • Joined

  • Last visited

ChoTax's Achievements

Square

Square (6/54)

0

Reputation

  1. thanks what's the problem ? GUIEditor = { gridlist = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(550, 224, 422, 308, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(28, 108, 377, 176, false, GUIEditor.window[1]) col2 = guiGridListAddColumn(GUIEditor.gridlist[1], "admin", 0.9) end ) addEvent ("Login" , true ) addEventHandler ( "Login", getRootElement(), function ( ) local row2 = guiGridListAddRow ( GUIEditor.gridlist[2] ) guiGridListSetItemText ( GUIEditor.gridlist[2], row2, col2, getPlayerName ( source ), false, false ) end) adugn dEventHandler ( "onPlayerLogin", getRootElement(), function () local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( source, "Login", source ) end end )
  2. Hi guys, i created a grid lest , when any player join it's create a row for player's name , but i want any player quit from the server i want to remove this row this my script : function PlayerJoin() for id, player in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, col, getPlayerName ( player ), false, false ) end end addEventHandler("onClientPlayerJoin", getRootElement(), PlayerJoin) i know i can use this function : guiGridListRemoveRow but if i use it it's remove all the rows .
  3. try this .. function onClientColShapeHit() bindKey(localPlayer, "mouse2", "up" ) end addEventHandler("onClientColShapeHit",getRootElement(),onClientColShapeHit) function onClientColShapeLeave() unbindKey(localPlayer, "mouse2", "up") end addEventHandler("onClientColShapeLeave",getRootElement(),onClientColShapeLeave)
  4. getElementPosition setElementPosition getVehicleColor setVehicleColor setAccountData getAccountData
  5. hello Community.. i have problem in my script pls help me ! server addEvent ("text", true ) addEventHandler( "text", getRootElement(), function () local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then else cancelEvent () end end ) client GUIEditor_Label = {} GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Label[1] = guiCreateLabel(218,558,387,41,"",false) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Window[1] = guiCreateWindow(221,83,310,341,"",false) guiSetVisible ( GUIEditor_Window[1] , false ) GUIEditor_Edit[1] = guiCreateEdit(10,25,287,47,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(9,295,126,35,"Send Text",false,GUIEditor_Window[1]) close = guiCreateButton(173,294,126,35,"Close",false,GUIEditor_Window[1]) addCommandHandler ( "text", function () guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) end ) -------------------- addEventHandler ( "onClientGUIClick", root, function () local send = guiGetText(GUIEditor_Edit[1]) if ( source == GUIEditor_Button[1] ) then guiSetText ( GUIEditor_Label[1], " admin : "..send) guiSetFont(GUIEditor_Label[1], guiCreateFont("font.ttf", 12)) guiLabelSetColor ( GUIEditor_Label[1], 255, 0, 0 ) triggerServerEvent("text", localPlayer, accName ) end end ) ----------------- addEventHandler ( "onClientGUIClick", root, function () if ( source == close ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end ) i want only admin can use it !
  6. ChoTax

    HElp

    isElementWithinColShape
  7. ChoTax

    CreatTeam

    i mean , i want destroy team on player left team !
  8. ChoTax

    CreatTeam

    how can i delete the team on player click ? addEventHandler("onClientGUIClick", lea, function () if ( source == lea ) then if getPlayerTeam ( localPlayer ) then triggerServerEvent("exit", localPlayer) guiSetText ( GUIEditor_Label[1], " You're Group : noun ") outputChatBox ( "#FF0000* You're left the group !", 255, 0, 0, true ) else outputChatBox ( "#FF0000* You're not in group !", 255, 0, 0, true ) end end end ) how can i do it ?
×
×
  • Create New...