Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sdktools>
- public Plugin:myinfo =
- {
- name = "say admin",
- description = "Tag Admin say",
- author = "Slayzer",
- version = "1.0.0",
- url = "http://magnetik.verygames.net/forum"
- };
- public OnPluginStart()
- {
- AddCommandListener(OnSay, "say");
- }
- public Action:OnSay(client, const String:command[], args)
- {
- if (IsClientInGame(client))
- {
- if (client)
- {
- decl String:text[128];
- GetCmdArg(1, text, sizeof(text));
- if (GetUserFlagBits(client) & ADMFLAG_BAN)
- {
- if (IsPlayerAlive(client))
- {
- PrintToChatAll("\x04[ADMIN] \x01 %N : %s", client, text);
- return Plugin_Handled;
- }
- else
- {
- PrintToChatAll("\x04[ADMIN] \x01 %N : %s", client, text);
- return Plugin_Handled;
- }
- }
- }
- }
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement