/me command issue
#3

pawn Код:
CMD:me(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        new message[128];
        if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, CYAN, "[USAGE]: /me [text]. This command will display a local message, used for showing actions.");
        else
        {
            new string[128];
            format(string, sizeof(string), "*[ACTION]* %s: %s", ReturnPlayerName(playerid), message);
            ProxDetector(30.0, playerid, string, PURPLE,PURPLE,PURPLE,PURPLE,PURPLE);
        }
    }
    return 1;
}
Reply


Messages In This Thread
/me command issue - by TKZ227 - 15.07.2010, 17:48
Re: /me command issue - by ikey07 - 15.07.2010, 17:53
Re: /me command issue - by bigcomfycouch - 15.07.2010, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)