[FilterScript] Easy AFK/BRB
#7

Quote:
Originally Posted by x96664
View Post
It will be nice if you make it, something as [AFK].
Here is the CMD with label "I'm afk/brb" enjoy it, Before you include it,,,
Add this line by your other "NEW" or what else


new Text3D:afkbrb[MAX_PLAYERS];

pawn Code:
CMD:afk(playerid, params[], help)
{
        new reason[64];
        if(sscanf(params,"s[64]", reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /afk [reason]");
        TogglePlayerControllable(playerid, 0);
        new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s is now AFK Reason: %s.",pName, reason);
        LabelOn[playerid] = Create3DTextLabel("I'm AFK (Away From Keyboard)",0xCCCC00FF,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(afkbrb[playerid], playerid, 0.0, 0.0, 0.3);
        SendClientMessageToAll(0xFF0000AA,string);
        return 1;
}

CMD:brb(playerid, params[], help)
{
        new reason[64];
        if(sscanf(params,"s[64]", reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /brb [reason]");
        TogglePlayerControllable(playerid, 0);
        new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s is now BRB Reason: %s.",pName, reason);
        LabelOn[playerid] = Create3DTextLabel("I'm BRB (Be Right Back)",0xCCCC00FF,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(afkbrb[playerid], playerid, 0.0, 0.0, 0.3);
        SendClientMessageToAll(0xFF0000AA,string);
        return 1;
}

CMD:back(playerid, params [])
{
    new string[129], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    SendClientMessage(playerid, COLOR_WHITE, "You are no longer AFK/BRB.");
    format(string,sizeof string, "%s is no longer AFK/BACK.",pName);
    SendClientMessageToAll(0xFF0000AA,string);
    Delete3DTextLabel(afkbrb[playerid]);
    TogglePlayerControllable(playerid, 1);
    return 1;
}
Reply


Messages In This Thread
Easy AFK/BRB - by Kathleen - 25.05.2012, 21:13
Re: Easy AFK/BRB - by irfu - 26.05.2012, 04:40
Re: Easy AFK/BRB - by Kathleen - 26.05.2012, 08:22
Re: Easy AFK/BRB - by Tuntun - 26.05.2012, 08:29
Re: Easy AFK/BRB - by Kathleen - 26.05.2012, 10:21
Re: Easy AFK/BRB - by x96664 - 26.05.2012, 12:34
Re: Easy AFK/BRB - by Kathleen - 26.05.2012, 13:27
Re: Easy AFK/BRB - by Tuntun - 26.05.2012, 17:25
Re: Easy AFK/BRB - by Kathleen - 26.05.2012, 19:10
Re: Easy AFK/BRB - by KINGINA - 26.05.2012, 19:37
Re: Easy AFK/BRB - by Kathleen - 26.05.2012, 20:46
Re: Easy AFK/BRB - by Kathleen - 27.05.2012, 09:54
Re: Easy AFK/BRB - by Private200 - 27.05.2012, 19:57
Re: Easy AFK/BRB - by S_ILYa™ - 28.05.2012, 03:36
Re: Easy AFK/BRB - by sienal - 28.05.2012, 06:35
Re: Easy AFK/BRB - by FearLe$$ - 28.05.2012, 06:52
Re: Easy AFK/BRB - by Kathleen - 28.05.2012, 12:32
Re: Easy AFK/BRB - by faff - 28.05.2012, 16:58
Re: Easy AFK/BRB - by Tuntun - 14.06.2012, 14:23
Re: Easy AFK/BRB - by Robert West - 16.07.2012, 09:38
Re: Easy AFK/BRB - by XStormiest - 16.07.2012, 10:26
Re: Easy AFK/BRB - by Kathleen - 17.07.2012, 18:53
Re: Easy AFK/BRB - by Dasharkishanjan5 - 28.07.2012, 18:24
Re: Easy AFK/BRB - by McMuffin - 17.03.2013, 11:07

Forum Jump:


Users browsing this thread: 3 Guest(s)