Jump to content

Problem onPlayerLogin


abu5lf

Recommended Posts

addEventHandler("onPlayerLogin", root, 
function (Player)  
     if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( Player ) ), aclGetGroup ( "Admin" ) ) then  
     outputChatBox("Admin"..getPlayerName(source).." has logged in!", root) 
end  
end  
) 

Edited by Guest
Link to comment
  • Moderators
addEventHandler("onPlayerLogin", root, 
function () 
     if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Admin" ) ) then 
     outputChatBox("Admin"..getPlayerName(source).." has logged in!", root) 
end 
end 
) 

Link to comment
addEventHandler("onPlayerLogin", root, 
function () 
    local accName =  getAccountName ( getPlayerAccount ( source ) ) 
    if isObjectInACLGroup ( "user." .. tostring( accName ), aclGetGroup( "Admin" ) ) then 
        outputChatBox("Admin"..getPlayerName(source).." has logged in!", root,255,255,255) 
    else 
        outputChatBox("Player"..getPlayerName(source).." has logged in!", root,255,255,255) 
    end 
end 
) 

Server-Side only

Edited by Guest
Link to comment
  • Moderators
addEventHandler("onPlayerLogin", root, 
function () 
    local accName =  getAccountName ( getPlayerAccount ( source ) ) 
    if isObjectInACLGroup ( "user." .. tostring( accName ), aclGetGroup( "Admin" ) ) then 
        outputChatBox("Admin"..getPlayerName(source).." has logged in!", root,255,255,255) 
    else 
        outputChatBox("Player"..getPlayerName(source).." has logged in!", root,255,255,255) 
    end 
end 

Server-Side only

) 

After the end.

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...