Advertisement
Guest User

Untitled

a guest
May 30th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #include <sdktools>
  2.  
  3. public Plugin:myinfo =
  4. {
  5. name = "say admin",
  6. description = "Tag Admin say",
  7. author = "Slayzer",
  8. version = "1.0.0",
  9. url = "http://magnetik.verygames.net/forum"
  10. };
  11.  
  12.  
  13. public OnPluginStart()
  14. {
  15. AddCommandListener(OnSay, "say");
  16. }
  17.  
  18.  
  19. public Action:OnSay(client, const String:command[], args)
  20. {
  21. if (IsClientInGame(client))
  22. {
  23. if (client)
  24. {
  25. decl String:text[128];
  26.  
  27.  
  28. GetCmdArg(1, text, sizeof(text));
  29.  
  30. if (GetUserFlagBits(client) & ADMFLAG_BAN)
  31. {
  32. if (IsPlayerAlive(client))
  33. {
  34. PrintToChatAll("\x04[ADMIN] \x01 %N : %s", client, text);
  35. return Plugin_Handled;
  36. }
  37. else
  38. {
  39. PrintToChatAll("\x04[ADMIN] \x01 %N : %s", client, text);
  40. return Plugin_Handled;
  41. }
  42. }
  43. }
  44. }
  45. return Plugin_Continue;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement