Jump to content

كود تسجيل الخروج من الحساب


nony

Recommended Posts

السلام عليكم ورحمه الله وبركاته

يا شباب وش الخطأ في الكود ذا

addEvent("Out", true) 
addEventHandler("Out",getRootElement(), 
function () 
        account = getPlayerAccount ( player ) 
            if ( not isGuestAccount ( account ) ) then  
                logOut ( player ) 
            else 
                outputChatBox ( "You Not Logged in !", player, 255, 0, 0 ) 
            end 
end 
) 

Link to comment

\

السلام عليكم ورحمه الله وبركاته

يا شباب وش الخطأ في الكود ذا

addEvent("Out", true) 
addEventHandler("Out",getRootElement(), 
function () 
        account = getPlayerAccount ( player ) 
            if ( not isGuestAccount ( account ) ) then  
                logOut ( player ) 
            else 
                outputChatBox ( "You Not Logged in !", player, 255, 0, 0 ) 
            end 
end 
) 

  
addEvent("Out", true) 
addEventHandler("Out",getRootElement(), 
       function ( player, account , ...) 
       account = getPlayerAccount ( player ) 
            if ( not isGuestAccount ( account ) ) then  
                logOut ( player ) 
            else 
                outputChatBox ( "You Are Not Logged in !", player, 255, 0, 0 ) 
            end 
         end 
) 

Link to comment

جرب هذا

addEvent("Out", true) 
addEventHandler("Out",getRootElement(), 
function ( player, account , ...) 
        account = getPlayerAccount ( player ) 
           if ( not isGuestAccount ( account ) ) then  
                logOut ( player ) 
            else 
                outputChatBox ( "You Not Logged in !", player, 255, 0, 0 ) 
            end 
end 
) 

Link to comment
جرب هذا
addEvent("Out", true) 
addEventHandler("Out",getRootElement(), 
function ( player, account , ...) 
        account = getPlayerAccount ( player ) 
           if ( not isGuestAccount ( account ) ) then  
                logOut ( player ) 
            else 
                outputChatBox ( "You Not Logged in !", player, 255, 0, 0 ) 
            end 
end 
) 

خخخخخخ تكرر حقي :lol:

Link to comment
جرب هذا
addEvent("Out", true) 
addEventHandler("Out",getRootElement(), 
function ( player, account , ...) 
        account = getPlayerAccount ( player ) 
           if ( not isGuestAccount ( account ) ) then  
                logOut ( player ) 
            else 
                outputChatBox ( "You Not Logged in !", player, 255, 0, 0 ) 
            end 
end 
) 

خخخخخخ تكرر حقي :lol:

خخخ

انا رديت قبل لا اشوف ردك

ومدري من وين طلع ردك :mrgreen:

شوف وقت ردي :lol:

Link to comment
-- Client Side 
triggerServerEvent ( "Out", localPlayer ) 
  

-- Server Side 
addEvent ( "Out", true ) 
addEventHandler ( "Out", root, 
    function ( ) 
        if not isGuestAccount ( getPlayerAccount ( source ) ) then 
            logOut ( source ) 
            outputChatBox ( "* You Have Been Logged Out !", source, 255, 255, 0, true ) 
        else 
            outputChatBox ( "* You Not Logged in !", source, 255, 0, 0, true ) 
        end 
    end 
) 
  

Link to comment
function ( player, account , ...) -- ?? 

اطرح التريقر اللي بالكلنت

function onGuiClick (button, state, absoluteX, absoluteY) 
    if (source == GUIEditor_Button[6]) then 
        triggerServerEvent ( "onlogin", getRootElement(), getLocalPlayer(), guiGetText(GUIEditor_Edit[1]), guiGetText(GUIEditor_Edit[2]) ) 
    elseif (source == GUIEditor_Button[8]) then 
        triggerServerEvent ( "onreg", getRootElement(), getLocalPlayer(), guiGetText(GUIEditor_Edit[1]), guiGetText(GUIEditor_Edit[2]) ) 
    elseif (source == GUIEditor_Button[7]) then 
        triggerServerEvent("onOut",getLocalPlayer())  
    end  
end  
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...