مشكله لما اضغط 
nill 
اضلني بتيم شرطي 
المفروض لما اضغط 
انشال من تيم مو اضل فيه ! 
debugscript 
 
client 
 
GUIEditor = { 
    gridlist, 
    window, 
    label, 
    memo 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
                GUIEditor.window = guiCreateWindow(230, 155, 663, 440, "Teams System", false) 
                guiWindowSetSizable(GUIEditor.window, false) 
                guiSetAlpha(GUIEditor.window, 0.90) 
                 
                noteam = guiCreateButton(9, 21, 97, 123, "Go To NoTeam", false, GUIEditor.window) 
                guiSetProperty(noteam, "NormalTextColour", "FFF93905") 
                nill = guiCreateButton(9, 156, 93, 133, "nill", false, GUIEditor.window) 
                guiSetProperty(nill, "NormalTextColour", "33FAF9F9") 
                exit = guiCreateButton(9, 300, 120, 130, "Exit ", false, GUIEditor.window) 
                guiSetProperty(exit, "NormalTextColour", "B504C41A") 
                GUIEditor.gridlist = guiCreateGridList(454, 22, 199, 408, false, GUIEditor.window) 
                guiGridListAddColumn(GUIEditor.gridlist, "Teams System", 0.9) 
                for I = 1, 2 do 
                        guiGridListAddRow(GUIEditor.gridlist) 
                end 
                guiGridListSetItemText(GUIEditor.gridlist, 0, 1, "NoTeam", false, false) 
                guiGridListSetItemText(GUIEditor.gridlist, 1, 1, "nill", false, false) 
                GUIEditor.memo = guiCreateMemo(111, 23, 319, 127, "Mod V.1.0 \nCan To Go NoTeam\nOr nill Team\n\nAnd In Gridlist Click You Team \n\n#", false, GUIEditor.window) 
                guiMemoSetReadOnly(GUIEditor.memo, true) 
                GUIEditor.label = guiCreateLabel(115, 167, 300, 28, "Teams System V.1.0", false, GUIEditor.window) 
                guiSetFont(GUIEditor.label, "default-small") 
                guiLabelSetColor(GUIEditor.label, 247, 75, 127) 
                guiLabelSetHorizontalAlign(GUIEditor.label, "center", false)     
                guiSetVisible (GUIEditor.window,false) 
    end 
) 
  
addEventHandler("onClientRender", root, 
    function() 
                dxDrawText("Team System Started v.1", 966, 699, 1083, 731, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, true, true, true, false) 
                dxDrawText("Team System Started v.1", 965, 698, 1082, 730, tocolor(3, 54, 9, 32), 1.00, "pricedown", "left", "top", false, true, true, true, false) 
    end) 
  
  
addEventHandler( "onClientGUIClick", resourceRoot, function(  ) 
        if ( source == exit ) then 
                guiSetVisible (GUIEditor.window,false) 
                showCursor(false) 
        end 
end) 
  
addEventHandler( "onClientGUIClick",function(  ) 
        if ( source == noteam ) then 
                triggerServerEvent ( 'noteam', localPlayer ) 
        end 
end) 
  
addEventHandler( "onClientGUIClick",function(  ) 
        if ( source == nill ) then 
                triggerServerEvent ( 'nill', localPlayer ) 
        end 
end) 
  
  
  
bindKey ( "F2" , "down" , 
        function () 
                if guiGetVisible ( GUIEditor.window , true ) then 
                        guiSetVisible ( GUIEditor.window , false ) 
                        showCursor ( false ) 
                else 
                        guiSetVisible ( GUIEditor.window , true ) 
                        showCursor ( true ) 
                end 
        end) 
 
server 
 
addEvent( 'noteam', true ) 
addEventHandler( 'noteam', root,function() 
setPlayerTeam(source,nil) 
                outputChatBox ( "You Now No Team", source) 
    end) 
  
addEvent( 'exit', true ) 
addEventHandler( 'exit', root,function() 
setPlayerTeam(source,nil) 
    outputChatBox ( "Nill Team Done", source) 
    end)