Advertisement
IdoGame

FOGG

Oct 23rd, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. enum _:clr
  5. {
  6. ColorName[16],
  7. R,
  8. G,
  9. B
  10.  
  11.  
  12. }
  13. new const Fogg[][clr] = {
  14. {"Blue",0,0,255}
  15.  
  16. }
  17.  
  18. public plugin_init() {
  19. register_plugin("Fogg", "v1.0", "xFlane")
  20. register_clcmd("say /fog","Fog")
  21. }
  22. public Fog( id )
  23. {
  24. if(get_user_flags( id ) & ADMIN_KICK)
  25. {
  26. new Temp[65];
  27. formatex(Temp, charsmax(Temp), "\d[ \yAMXX \d]\w Fogg!")
  28. new Menu = menu_create(Temp, "Fog_Handler")
  29. for( new i; i < sizeof Fogg; i++)
  30. {
  31. formatex(Temp, charsmax(Temp), "%s",Fogg[ i ][ ColorName ])
  32. menu_additem(Menu, Temp)
  33. }
  34. menu_display( id, Menu, 0 );
  35. return PLUGIN_HANDLED;
  36. }
  37. else return client_print(id,print_chat,"You Dont Have Access to do this command")
  38. return 0;
  39. }
  40.  
  41. public Fog_Handler( id, Menu, key )
  42. {
  43. if( key == MENU_EXIT )
  44. {
  45. menu_destroy( Menu );
  46. return 1;
  47. }
  48. else
  49. {
  50. message_begin(MSG_ALL,get_user_msgid("Fog"),{0,0,0},0);
  51. write_byte(Fogg[ key ][ R ]);
  52. write_byte(Fogg[ key ][ G ]);
  53. write_byte(Fogg[ key ][ B ]);
  54. write_byte(10);
  55. write_byte(40);
  56. write_byte(95);
  57. write_byte(59);
  58. message_end();
  59. }
  60. return 0;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement