[INFO]Convert Command
#3

Next time use SUPER DUPER MAGIC search function!

pawn Код:
YCMD:me(playerid, params[], help)
{
    if (help)
    {
        SendClientMessage(playerid, 0xFF0000AA, "Sends an action to other players.");
    }
    else
    {
        new
            str[128];
        if (isnull(params))
        {
            format(str, sizeof (str), "Usage: \"/%s [action]\"", Command_GetDisplayNamed("me", playerid));
            SendClientMessage(playerid, 0xFF0000AA, str);
        }
        else
        {
            GetPlayerName(playerid, str, sizeof (str));
            format(str, sizeof (str), "* %s %s", str, params);
            SendClientMessageToAll(0xFF0000AA, str);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[INFO]Convert Command - by TheBluec0de - 13.08.2011, 08:51
Re: [INFO]Convert Command - by Tigerkiller - 13.08.2011, 09:02
Re: [INFO]Convert Command - by Raimis_R - 13.08.2011, 09:03
Re: [INFO]Convert Command - by TheBluec0de - 13.08.2011, 09:04

Forum Jump:


Users browsing this thread: 1 Guest(s)