My chat commands don't work..
#1

When I type in /b, or /d or any other channel on the server it just tells me the command and how to use it, for example if I type "/b Hey!" it would appear as "/B [OOC CHAT]" in the chat box.

Here's the script..

pawn Код:
CMD:b(playerid, text[])
{
    if(PlayerMuteInfo[playerid][AllMuted])
    {
        SendClientMessage(playerid, TEAM_CYAN_COLOR, "   You can't speak, you have been silenced from all chats!");
        return 1;
    }
    new result[81];
    if(!sscanf(text, "s[81]", result))
    {
        new string3[128];
        if(AdminDuty[playerid])
        {
            if(PlayerInfo[playerid][pAdmin] == 1)
            {
                format(string3, sizeof(string3), "<Mod>%s%s says: (( %s ))", Accent[playerid], PlayerNameEx(playerid), result);
            }
            else
            {
                format(string3, sizeof(string3), "<%d Admin>%s%s says: (( %s ))", PlayerInfo[playerid][pAdmin], Accent[playerid], PlayerNameEx(playerid), result);
            }
        }
        else
        {
            format(string3, sizeof(string3), "%s%s says: (( %s ))", Accent[playerid], PlayerNameEx(playerid), result);
        }
        ProxDetector(20.0, playerid, string3,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        printf("%s", string3);
        return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /B [OOC chat]");
    }
    return 1;
}
Reply


Messages In This Thread
My chat commands don't work.. - by Luke_James - 08.08.2012, 23:15
Re: My chat commands don't work.. - by shitbird - 08.08.2012, 23:22
Respuesta: Re: My chat commands don't work.. - by [DOG]irinel1996 - 08.08.2012, 23:26
Re: My chat commands don't work.. - by Luke_James - 08.08.2012, 23:33
Re: My chat commands don't work.. - by shitbird - 08.08.2012, 23:37
Re: My chat commands don't work.. - by Emmet_ - 08.08.2012, 23:41
Re: My chat commands don't work.. - by Luke_James - 08.08.2012, 23:45

Forum Jump:


Users browsing this thread: 1 Guest(s)