- Documentation
- Server functions
- getAccountType
Function
getAccountType
Returns the account type: "guest" (not logged in) or "player".
Syntax
string getAccountType(account theAccount)Arguments
theAccountaccount- The account.
Returns
The type.
Example
if getAccountType(getPlayerAccount(player)) == "guest" then
outputChatBox("Zaloguj się, żeby zapisać postęp.", player)
end