Advertisement
v0VExxx

Rules

Dec 4th, 2012
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. #include < amxmodx >
  2. #include < amxmisc >
  3. #include < hamsandwich >
  4.  
  5. #define PLUGIN "Multirules"
  6. #define VERSION "1.0"
  7. #define AUTHOR "anderseN"
  8.  
  9. const gHudRed = 75;
  10. const gHudGreen = 75;
  11. const gHudBlue = 75;
  12. const Float:gfTextX = 0.02;
  13. const Float:gfTextY = 0.25;
  14. const gHudEffects = 0;
  15. const Float:gfHudFxTime = 0.0;
  16. const Float:gfHudHoldTime = 20.5;
  17. const Float:gfHudFadeInTime = 0.25;
  18. const Float:gfHudFadeOutTime = 0.25;
  19. const gHudChannel = 1;
  20.  
  21. new name[33][32]
  22.  
  23.  
  24. public plugin_init ( )
  25. {
  26. register_plugin ( PLUGIN, VERSION, AUTHOR )
  27.  
  28. register_clcmd ( "say /rules", "CmdRules" )
  29. register_clcmd ( "say /server", "CmdServer" )
  30. register_clcmd ( "say /servers", "CmdServer" )
  31. RegisterHam ( Ham_Spawn,"player","FwdPlayerSpawn",1 )
  32.  
  33. }
  34.  
  35. public client_authorized ( id )
  36. {
  37. {
  38. set_task(1.0, "asd")
  39. }
  40.  
  41. return PLUGIN_HANDLED
  42. }
  43.  
  44. public FwdPlayerSpawn ( id )
  45. {
  46. if(get_user_team(id) == 2)
  47. {
  48. CmdRules ( id )
  49. }
  50.  
  51. return PLUGIN_HANDLED;
  52. }
  53.  
  54. public asd ( id )
  55. {
  56. CmdRules ( id )
  57. }
  58.  
  59. public CmdRules ( id )
  60. {
  61. get_user_name(id, name[id], 31);
  62. set_hudmessage ( gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel )
  63. show_hudmessage ( id, "Welcome back, %s^nPlease read our rules:^n^n1. No Understab^n2. No Underblock^n3. No Teamblock^n4. No Bodyblock^n5. No Use of buggs^n6. No Advertising^n7. No Funjumping (FJ)^n8. No Winning team join (WTJ)^n9. No bhop, gstrafe script etc^n10. No Screaming in your michrophone^n^n**** Report cheaters to support@restless-gaming.com ****^nType /rules if you want to se the rules again",name[id])
  64. }
  65.  
  66. public CmdServer ( id )
  67. {
  68. set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
  69. show_hudmessage ( id, "Server 1 - HideNseek [EasyBlocks]^nIP: srv1.restless-gaming.com^n^nServer 2 - Superhero Mod^nIP: srv2.restless-gaming.com" )
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement