Jump to content

isGuestAccount


Recommended Posts

--server
function checkguest (playerSource)
sourceAccount = getPlayerAccount ( playerSource )
if isGuestAccount ( sourceAccount ) then
CancelEvent()
end
end
addEvent("checkguest",true)
addEventHandler("checkguest",root,checkguest)

--client
function menuactivate ()
triggerServerEvent( "checkguest", getLocalPlayer())
DGS:dgsSetVisible(menuokno,true) 
end
end
addCommandHandler("menu",menuactivate)

If you enter a command /menu then window appear. So...

How to make a check on a guest? I mean the function will not work if player is guest.

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