This is what made it work, here is the code.
function serverCmdMakeMeFire(%client)
{
if(%client.IsAdmin)
{
announce("<color:FFFFFF>" SPC %client.getPlayerName() SPC "<color:FFFF00>is now on fire.");
%client.player.mountImage("PlayerRainbowFireImage", 3);
}
else
{
%client.chatmessage("<color:FFFFFF>You must be admin to use this command.");
}
}
I have also made a Event_setEmitter and it works pretty well. I have 5 different images in the event, I will be making more soon.