[FilterScript] Announce Command [by mgd first work]
#1

Announce Command [by mgd first work]
Hey guys thats my first work
What is that fs ?
It can let you /announce <text>

First of all you that you need in your pawno
pawn Код:
#include <a_samp>
#include <zcmd>
Add Below
pawn Код:
CMD:announce(playerid, params[])
{
    new
        string[152],
        pName[MAX_PLAYER_NAME]
    ;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFF, "You are not admin");
    if (isnull(params)) return SendClientMessage(playerid, 0xFF0000, "Usage:/announce [text]");
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "{F2240D}[Admin] %s:{09F7C7} %s", pName, params);
    SendClientMessageToAll(0xFFFFFFF, string);
    return 1;
}
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "{F2240D}[Admin] %s:{09F7C7} %s", pName, params);
    SendClientMessageToAll(0xFFFFFFF, string);
    return 1;
}
Or
http://pastebin.com/ZdEGCzY4

Download link
MediaFire Link!
Reply
#2

This is not a FS, this is a snippet. Wrong section...
Reply
#3

1. You don't need sscanf
2. You need a command processor

Why do people who have no idea how to code release stuff?
Reply
#4

That ^ Also where's a_samp ?
Reply
#5

You don't need #include <sscanf> you need #include <zcmd> instead then
Reply
#6

Good job
Reply
#7

Thanks guys
i recoded it , now its work
thanks all
Reply
#8

lrn2edit
Reply
#9

Quote:
Originally Posted by king_hual
Посмотреть сообщение
lrn2edit
stop giving fucking excuses, "lear2edit" better you tell him how to edit.
alwayz insulting a new player on samp motherfuker what about when someone do with you? do u got fucking feelings? or u fucking stoneheart?
Reply
#10

Quote:
Originally Posted by sscarface
Посмотреть сообщение
stop giving fucking excuses, "lear2edit" better you tell him how to edit.
alwayz insulting a new player on samp motherfuker what about when someone do with you? do u got fucking feelings? or u fucking stoneheart?
/agree with that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)