how to add this
#8

I made a script:

pawn Код:
CMD:announce(playerid, params[])
{
    new playername[MAX_PLAYER_NAME], string[128], message[128];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLORHERE, "You Need To Be An Admin To Use This Command"); //replace COLORHERE with one of your implemented colors from your script
    if(sscanf(params, "s", message))
    {
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "Announcement by %s: %s", playername, message);
    }
    else return SendClientMessage(playerid, COLORHERE, "Usage: /announce [Message]"); //replace COLORHERE with one of your implemented colors from your script
    return 1;
}
Reply


Messages In This Thread
how to add this - by [FoR]EveR - 17.03.2012, 08:51
Re: how to add this - by GNGification - 17.03.2012, 08:58
Re: how to add this - by [FoR]EveR - 17.03.2012, 08:59
Re: how to add this - by GNGification - 17.03.2012, 09:02
Re: how to add this - by Ronaldo_raul™ - 17.03.2012, 09:02
Re: how to add this - by [FoR]EveR - 17.03.2012, 09:06
Re: how to add this - by [FoR]EveR - 17.03.2012, 09:08
Re: how to add this - by JJB562 - 17.03.2012, 09:11
Re: how to add this - by [FoR]EveR - 17.03.2012, 09:13
Re: how to add this - by tyler12 - 17.03.2012, 09:17

Forum Jump:


Users browsing this thread: 2 Guest(s)