How to create /asay [text]
#4

pawn Код:
COMMAND:asay(playerid,params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][AdminLevel] >= 1)
    {
        new text[128];
        if(sscanf(params, "s[128]", text))
        {
            SendClientMessage(playerid,RED,"Usage: /asay <message>");
            return 1;
        }
        new string[128];
        format(string, sizeof(string), "* Admin %s: %s", GetName(playerid), text);
        SendClientMessageToAll(RED,string);
    }
    else
    {
        SendClientMessage(playerid, RED,"You can't use this commands!");
    }
    return 1;
} // If you want it but with SendClientMessage
Reply


Messages In This Thread
How to create /asay [text] - by RiChArD_A - 29.03.2013, 23:56
Re: How to create /asay [text] - by SilverKiller - 30.03.2013, 00:13
Respuesta: Re: How to create /asay [text] - by RiChArD_A - 30.03.2013, 00:32
Re : How to create /asay [text] - by thegreathom - 30.03.2013, 00:32
Respuesta: Re : How to create /asay [text] - by RiChArD_A - 30.03.2013, 15:28
Re: Respuesta: Re : How to create /asay [text] - by SilverKiller - 30.03.2013, 15:36
Re: How to create /asay [text] - by Konstantinos - 30.03.2013, 15:49
Respuesta: Re: Respuesta: Re : How to create /asay [text] - by RiChArD_A - 30.03.2013, 15:52

Forum Jump:


Users browsing this thread: 2 Guest(s)