%client.player.setShapeName(%client.name SPC "[AFK]");%client.player.setShapeNameColor("1 0 0 1");
if(isObject(%client.minigame))
To reset it you'll need to check if they are in a minigame and do stuff with %minigame.colorIdx to get the correct colour, but that might break different mods that change name colour.
The default non-minigame colour is white, "1 1 1 1".
Code: [Select]if(isObject(%client.minigame))
if(!isObject(%client.minigame))
if(isObject(%client.minigame)){ //You're in a minigame}else{ //You aren't in a minigame}