Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement