i'm attempting to make a add-on where when you join a server it displays a message box and says what you are to the server, and when you join and it won't work.
function GameConnection::autoadmincheck(%client)
{
if(%client.isSuperAdmin)
{
commandtoclient(%client,'messageboxOK',"What are you?","You are a super admin!");
}
else if(%client.isadmin)
{
commandtoclient(%client,'messageboxOK',"What are you?","You are an admin!");
}
else
{
commandtoclient(%client,'messageboxOK',"What are you?","you ain't nothing.");
}
}
thanks.