I am pretty new to scripting
I have never scripted before.
but would this work?
package Admin
{
if(player.isAdmin)
Then
{
GameConnection.clanSuffix = <color:00ffff>[<color:ff0000>ADMIN<color:00ffff>];
}
}
package Admin
{
// Hmm - Forgot a function.
if(player.isAdmin) //You're saying, that the client/object/thing called "Player" is checking for Admin?, if(%client.isAdmin)
Then //Err, no "Then"'s, also, what is that freaking space doing there?
//if(%client.isAdmin)
//{
//GameConnection.clanSuffix =[BEEP-FAIL]
{
GameConnection.clanSuffix = <color:00ffff>[<color:ff0000>ADMIN<color:00ffff>];
}
A bit messy, here it comes from my point of view.
package Admin
{
function GameConnection::AutoAdminCheck(%client)
{
if(%client.isAdmin)
{
GameConnection.clanSuffix="<color:00ffff>[<color:ff0000>ADMIN<color:00ffff>]";
}
}
};
Don't copy and paste cause i used space for TAB.
[Sorry for errors and mess]