Poll

How are you today?

Good
Ok
Bad

Author Topic: Status Help  (Read 996 times)

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:
Code: [Select]
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:
Code: [Select]
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.
« Last Edit: March 07, 2009, 08:07:27 PM by massa900 »

It would be a good idea to tell us what brought you to the conclusion that its not working. I think it probably is working, just not in the way you intended it to.

Im just trying to make it say that you are AFK above your head and also tell everyone that you are AFK.
It would be a good idea to tell us what brought you to the conclusion that its not working. I think it probably is working, just not in the way you intended it to.

IF YOU DON'T GET WHAT I AM SAYING:
Explain how it doesn't work.

Is there a syntax in the console? What does it do that you don't want it to?

Is there a syntax in the console? What does it do that you don't want it to?
It just doesnt do anything

I used your code and it worked flawlessly for me, here are my steps:

1. copy pasted your code into notepad
2. Saved the code as server.cs
3.packaged the server.cs into a .zip file
4. Put a description.txt in the .zip file with the server.cs file
5. Put the .zip into my add ons folder
6. Used it inside and out of a minigame
7. Posted this here

Here is the code again:

Code: [Select]
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");
}
Now I don't know why yours doesn't work, did you package it wrong?

I know why it doesnt work. V11 removed setShapeName("name")

I know why it doesnt work. V11 removed setShapeName("name")

So somehow we were getting a coding help topic from the future? Look when it was posted. That was before V11 was released.


Well even if someone told you the solution now it wouldn't matter.

Well even if someone told you the solution now it wouldn't matter.
Yes, well, I could just edit the clan tags instead of the setshapename because I know how to do the clan tags. ANYWAY, LOCK. This is a very long thing in the past. I don't really care about it anymore.