Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerText(playerid, text[])
- {
- if(text[0] == '!')
- {
- if(IsPlayerAdmin(playerid))
- {
- new chat[256], pname[24], string[256];
- GetPlayerName(playerid, pname, sizeof pname);
- strmid(chat, text, 1, strlen(text));
- format(string, sizeof string, "%s: %s", pname, chat);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerAdmin(i))
- SendClientMessage(i, 0xFFF000AA, string);
- }
- }
- return 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment