Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. Simple Surf Vip v1.1
  2.  
  3.  
  4.  
  5. -Description-
  6.  
  7. This is a Surf Vip plugin made for surf servers. In this plugin i made 2 different codes, one mainly made for a Surf SpeedRun server and the other is for any Surf Server. There is no menu for weapons, there's no restrictions and etc...But on spawn or round start, this plugin gives you 3 nades all kind. This plugin got a VIP tag before your name to make you feel as a VIP and be a cool guy.
  8.  
  9. I did 2 plugins. One is the Surf Vip and the other one is Surf Vip but for SpeedRun servers wich mostly the basic stuff for a vip on a speedrun server. It got VIP on score board and a VIP skin.
  10.  
  11.  
  12. -Cvars-
  13.  
  14. Main:
  15. Code:
  16. surfvip_hp_per_hs "30" - Health added with a head shot kill from vip. Default 30.
  17. surfvip_hp_per_kill "15" - Health added with a normal kill from vip. Default 15.
  18. surfvip_money_per_hs "500" - Money added for headshot kill from vip. Default 500.
  19. surfvip_money_per_kill "200" - Money added for normal kill from vip. Default 200.
  20. -Commands-
  21.  
  22. For the 2 VIP Plugins:
  23. Code:
  24. /vip - To show from chat all vips online separated by a ','
  25. /vips - To show from chat all vips online separated by a ','
  26.  
  27. /wantvip - To let an MOTD come up with all the information needed to get VIP.
  28. /viphelp - To let an MOTD come up with all the information needed to get VIP.
  29. -Installation-
  30.  
  31. Put the .amxx in cstrike/addons/amxmodx/plugins
  32. -Then in cstrike/addons/amxmodx/configs/plugins.ini
  33. You will type:
  34. PHP Code:
  35. ; Custom - Add 3rd party plugins here.
  36.  
  37. SurfVip.amxx
  38. or
  39. SurfSpeedRunVip.amxx
  40. Then put the .txt file in cstrike/addons
  41.  
  42. -Requirements-
  43.  
  44. Main:
  45. PHP Code:
  46. #include < amxmodx >
  47. #include < amxmisc >
  48. #include < fakemeta >
  49. #include < fun >
  50. #include < geoip >
  51. #include < cstrike >
  52. #include < colorchat >
  53. #include < hamsandwich >
  54. SpeedRun VIP:
  55. PHP Code:
  56. #include < amxmodx >
  57. #include < amxmisc >
  58. #include < geoip >
  59. #include < cstrike >
  60. #include < colorchat >
  61. -ScreenShots-
  62. ---
  63. ---
  64. ---
  65.  
  66. -Notes-
  67.  
  68. Note that if you are getting the Surf Vip that you can change the VIPs spawn health by changing the following line or number from the line:
  69. PHP Code:
  70. /* Here you can edit the '100' to w/e you want the VIP to have at spawn or round start. It's his health */
  71. #define VIP_HEALTH ( 100 )
  72. If you don't like the default VIP skin in the SpeedRun vip plugin. You can change it by following the steps i will tell you now.
  73.  
  74. Step 1:
  75. Open the .sma and edit it by following the next step.
  76.  
  77. Step 2:
  78. Once you have opened the .sma go to these lines of it:
  79. PHP Code:
  80. public plugin_precache( )
  81. {
  82. precache_model( "models/player/vip/vip.mdl" )
  83.  
  84. return PLUGIN_CONTINUE
  85. }
  86.  
  87. public VipModel( id, level, cid )
  88. {
  89. if ( get_user_flags( id ) & VIP_ACCESS )
  90. {
  91. new CsTeams:userTeam = cs_get_user_team( id )
  92. if( userTeam == CS_TEAM_CT )
  93. {
  94. cs_set_user_model( id, "vip" )
  95. }
  96. else
  97. {
  98. cs_reset_user_model( id )
  99. }
  100. }
  101. return PLUGIN_CONTINUE
  102. }
  103. Step 3:
  104. Once you have went to those lines, you will see first the plugin_precache. Once you see it, you have to change the file to the file name your model in. Example:
  105. PHP Code:
  106. public plugin_precache( )
  107. {
  108. precache_model( "models/player/yourmodel/yourmodel.mdl" )
  109.  
  110. return PLUGIN_CONTINUE
  111. }
  112. Step 4:
  113. Once you have changed what i told you in Step 3 well we are almost done. Now we will go to VipModel. You have to change the "vip" to the model file you have. Example:
  114. PHP Code:
  115. public VipModel( id, level, cid )
  116. {
  117. if ( get_user_flags( id ) & VIP_ACCESS )
  118. {
  119. new CsTeams:userTeam = cs_get_user_team( id )
  120. if( userTeam == CS_TEAM_CT )
  121. {
  122. cs_set_user_model( id, "yourmodel" )
  123. }
  124. else
  125. {
  126. cs_reset_user_model( id )
  127. }
  128. }
  129. return PLUGIN_CONTINUE
  130. }
  131. The name has to be the same as the name you puted in the plugin_precache.
  132.  
  133. -Credits-
  134. - Allied-Gamers people for testing the plugins.
  135. zz
  136. Nguyan
  137. Smurfff
  138. [Ian-kun³]
  139. GENiX714
  140. MrShakuRR
  141. TeddyBear
  142. Octavia
  143. Player 2
  144. - Kamelot & MrShakuRR for helping with MoneyBonus.
  145.  
  146. Servers using this plugin!
  147.  
  148. -ChangeLog-
  149.  
  150. Main:
  151. Code:
  152. v1.0
  153. * Released.
  154. v1.1
  155. * Fixed the crash.
  156. * Fixed the message bonus.
  157. * Fixed little of the code.
  158. * Added a nice intro in the code.
  159. SpeedRun VIP:
  160. Code:
  161. v1.0
  162. * Released.
  163. v1.1
  164. * Added a nice intro in the code.
  165. -Thank you, Baws.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement