Well, I am trying to make a status thing like Jamesking56's, but I don't know how to make it work in a minigame.
Here is the regular code:
function ServerCMDAFK(%client)
{
// Update User
// Check if User is in Minigame
if(isObject(%client.minigame))
{
// Is in Minigame, Can't Change Status
messageClient(%client,'', "\c5You can't change status while in a minigame.");
}
else
{
// Is NOT in Minigame, Change Status
%client.player.setShapeName(%client.name SPC "[AFK]");
%client.player.setShapeNameColor("1 0 0");
// Notify All Users
messageAll('', "\c3" @ %client.name SPC "\c5has updated their status to: \c3AFK");
}
}
Then this is what I did, but can't figure out what the problem is:
function ServerCmdAFK(%client)
{
%client.player.setShapeName(%client.name SPC "[AFK]");
%client.player.setShapeNameColor("1 0 0");
messageClient(%client,'', "\c5You are now seen as \c3AFK");
messageAll('', "\c3" @ %client.name SPC "\c5has updated their status to: \c3AFK");
}
Jamesking56's works, but mine doesn't... Can someone please figure out what my problem is and post? Thanks.
IF YOU DON'T GET WHAT I AM SAYING:
I am trying to recreate Jamesking56's status script, but make it so that you don't have to be outside a minigame to change your status.
HERE IS WHAT DOESN'T WORK:
Im just trying to make it say that you are AFK above your head and also tell everyone that you are AFK, but when I go to try and change my status, it wont work.