hlmod.hu
https://hlmod.hu/

hook
https://hlmod.hu/viewtopic.php?f=29&t=7886
Oldal: 1 / 1

Szerző:  makker17 [2013.03.26. 19:08 ]
Hozzászólás témája:  hook

Hello!
Van ez az adminhook, átkéne alakítani,hogy mindeki tudja használni.
( Plusz , ha lehet a színét akkor fehérre allnak. )
SMA Forráskód: [ Mindet kijelol ]
  1. AMXX.TRY.HU Forrás Megtekintés - www.amxx.try.hu - Plugin Megtekintése
  2.  
  3. /**************************************************************************************************
  4.  
  5.   **** CVARS (FEATURES) ****
  6.   sv_adminhook = Turn Plugin On/off
  7.   **** ADMIN COMMANDS ****
  8.   ADMIN_LEVEL_A (flag="m")
  9.   Granting Hook/Rope = amx_granthook <authid, nick, @team, @all or #userid> <on/off>
  10.  
  11.   ADMIN_LEVEL_E (flag="q") || Granted by admin
  12.   Ninja Rope by Spacedude (slightly modified) & Hook thingy
  13.   Attaching Rope = +rope
  14.   Deattaching Rope = -rope
  15.   Attaching Hook = +hook
  16.   Deattaching Hook = -hook
  17.  
  18.   **************************************************************************************************/
  19. #define USING_AMX 0 // 1 = Using AMX \ 0 = Useing AMXX
  20.  
  21. #if USING_AMX
  22. #include <amxmod>
  23. #include <amxmisc>
  24. #include <VexdUM>
  25. #include <fun>
  26. new gModName[32] = "AMX"
  27. #else
  28. #include <amxmodx>
  29. #include <amxmisc>
  30. #include <fun>
  31. #include <engine>
  32. new gModName[32] = "AMXX"
  33. #endif
  34.  
  35. #define TE_BEAMENTPOINT 1
  36. #define TE_KILLBEAM 99
  37. #define DELTA_T 0.1 // seconds
  38. #define BEAMLIFE 100 // deciseconds
  39. #define MOVEACCELERATION 150 // units per second^2
  40. #define REELSPEED 300 // units per second
  41.  
  42. /* Hook Stuff */
  43. new gHookLocation[33][3]
  44. new gHookLenght[33]
  45. new bool:gIsHooked[33]
  46. new gAllowedHook[33]
  47. new Float:gBeamIsCreated[33]
  48. new global_gravity
  49. new beam
  50.  
  51. /************************************************************************************************************************/
  52. public plugin_init() //Called on plugin start
  53. {
  54. // Plugin Info
  55. register_plugin("Admin Hook","1.0","AssKicR")
  56.  
  57. //CVARS
  58. register_cvar("sv_adminhook", "1" )
  59.  
  60. //ADMIN CMDS
  61. register_concmd("amx_granthook","AdminGrantHook",ADMIN_LEVEL_A,"<authid, nick, @team, @all or #userid> <on/off>")
  62.  
  63. //USER COMMANDS
  64. register_clcmd("+rope", "hook_on",ADMIN_LEVEL_E)
  65. register_clcmd("-rope", "hook_off",ADMIN_LEVEL_E)
  66. register_clcmd("+hook", "hook_on",ADMIN_LEVEL_E)
  67. register_clcmd("-hook", "hook_off",ADMIN_LEVEL_E)
  68.  
  69. //HOOKED EVENTS
  70. register_event("ResetHUD", "ResetHUD", "b")
  71. }
  72. /************************************************************************************************************************/
  73. public plugin_precache()
  74. {
  75. beam = precache_model("sprites/zbeam4.spr")
  76. precache_sound("weapons/xbow_hit2.wav")
  77. }
  78. /*************************************************************************************************************************/
  79. /************************************************** USP/SCOUT REMOVE *****************************************************/
  80. /*************************************************************************************************************************/
  81.  
  82. /*************************************************************************************************************************/
  83. /**************************************************** HOOKED EVENTS ******************************************************/
  84. /*************************************************************************************************************************/
  85. public ResetHUD(id) {
  86. //Check if he is hooked to something
  87. if (gIsHooked[id]) RopeRelease(id)
  88. }
  89. /************************************************************************************************************************/
  90. stock kz_velocity_set(id,vel[3]) {
  91. //Set Their Velocity to 0 so that they they fall straight down from
  92. new Float:Ivel[3]
  93. Ivel[0]=float(vel[0])
  94. Ivel[1]=float(vel[1])
  95. Ivel[2]=float(vel[2])
  96. entity_set_vector(id, EV_VEC_velocity, Ivel)
  97. }
  98.  
  99. stock kz_velocity_get(id,vel[3]) {
  100. //Set Their Velocity to 0 so that they they fall straight down from
  101. new Float:Ivel[3]
  102.  
  103. entity_get_vector(id, EV_VEC_velocity, Ivel)
  104. vel[0]=floatround(Ivel[0])
  105. vel[1]=floatround(Ivel[1])
  106. vel[2]=floatround(Ivel[2])
  107. }
  108.  
  109. /************************************************************************************************************************/
  110. /**************************************************** ADMIN COMMANDS ****************************************************/
  111. /************************************************************************************************************************/
  112. public AdminGrantHook(id,level,cid)
  113. {
  114. if ( !cmd_access(id,level,cid,1) )
  115. return PLUGIN_HANDLED
  116.  
  117. new arg1[32],arg2[32]
  118. read_argv(1,arg1,31)
  119. read_argv(2,arg2,31)
  120. new onoff = str_to_num(arg2)
  121.  
  122. if ( equali(arg1,"@all") )
  123. {
  124. new plist[32],pnum
  125. get_players(plist,pnum,"a")
  126. if (pnum==0)
  127. {
  128. console_print(id,"[%s] There are no clients",gModName)
  129. return PLUGIN_HANDLED
  130. }
  131. for (new i=0; i<pnum; i++) {
  132. gAllowedHook[plist[i]]=onoff
  133. if (gIsHooked[plist[i]]==true && onoff==0)
  134. {
  135. RopeRelease(plist[i])
  136. }
  137. }
  138.  
  139. console_print(id,"[%s] %s all players access to hook/rope",gModName,onoff ? "Gave":"Removed")
  140. }
  141. else if ( arg1[0]=='@' )
  142. {
  143. new plist[32],pnum
  144. get_players(plist,pnum,"ae",arg1[1])
  145. if ( pnum==0 )
  146. {
  147. console_print(id,"[%s] No clients in such team",gModName)
  148. return PLUGIN_HANDLED
  149. }
  150. for (new i=0; i<pnum; i++) {
  151. gAllowedHook[plist[i]]=onoff
  152. if (gIsHooked[plist[i]]==true && onoff==0)
  153. {
  154. RopeRelease(plist[i])
  155. }
  156. }
  157. console_print(id,"[%s] %s all %ss access to hook/rope",onoff ? "Gave":"Removed",arg1[1])
  158. }
  159. else
  160. {
  161. new pName[32]
  162. new player = cmd_target(id,arg1,6)
  163. if (!player) return PLUGIN_HANDLED
  164.  
  165. gAllowedHook[player]=onoff
  166. if (gAllowedHook[player]==0 && onoff==0)
  167. {
  168. RopeRelease(player)
  169. }
  170.  
  171.  
  172. get_user_name(player,pName,31)
  173. console_print(id,"[%s] %s ^"%s^" access to hook/rope",onoff ? "Gave":"Removed",pName)
  174. }
  175.  
  176. return PLUGIN_HANDLED
  177. }
  178.  
  179. /************************************************************************************************************************/
  180. /****************************************************** NINJAROPE *******************************************************/
  181. /************************************************************************************************************************/
  182.  
  183. public ropetask(parm[])
  184. {
  185. new id = parm[0]
  186. new user_origin[3], user_look[3], user_direction[3], move_direction[3]
  187. new A[3], D[3], buttonadjust[3]
  188. new acceleration, velocity_towards_A, desired_velocity_towards_A
  189. new velocity[3], null[3]
  190.  
  191. if (!is_user_alive(id))
  192. {
  193. RopeRelease(id)
  194. return
  195. }
  196.  
  197. if (gBeamIsCreated[id] + BEAMLIFE/10 <= get_gametime())
  198. {
  199. beamentpoint(id)
  200. }
  201.  
  202. null[0] = 0
  203. null[1] = 0
  204. null[2] = 0
  205.  
  206. get_user_origin(id, user_origin)
  207. get_user_origin(id, user_look,2)
  208. kz_velocity_get(id, velocity)
  209.  
  210. buttonadjust[0]=0
  211. buttonadjust[1]=0
  212.  
  213. if (get_user_button(id)&IN_FORWARD) buttonadjust[0]+=1
  214. if (get_user_button(id)&IN_BACK) buttonadjust[0]-=1
  215. if (get_user_button(id)&IN_MOVERIGHT) buttonadjust[1]+=1
  216. if (get_user_button(id)&IN_MOVELEFT) buttonadjust[1]-=1
  217. if (get_user_button(id)&IN_JUMP) buttonadjust[2]+=1
  218. if (get_user_button(id)&IN_DUCK) buttonadjust[2]-=1
  219.  
  220. if (buttonadjust[0] || buttonadjust[1])
  221. {
  222. user_direction[0] = user_look[0] - user_origin[0]
  223. user_direction[1] = user_look[1] - user_origin[1]
  224.  
  225. move_direction[0] = buttonadjust[0]*user_direction[0] + user_direction[1]*buttonadjust[1]
  226. move_direction[1] = buttonadjust[0]*user_direction[1] - user_direction[0]*buttonadjust[1]
  227. move_direction[2] = 0
  228.  
  229. velocity[0] += floatround(move_direction[0] * MOVEACCELERATION * DELTA_T / get_distance(null,move_direction))
  230. velocity[1] += floatround(move_direction[1] * MOVEACCELERATION * DELTA_T / get_distance(null,move_direction))
  231. }
  232.  
  233. if (buttonadjust[2]) gHookLenght[id] -= floatround(buttonadjust[2] * REELSPEED * DELTA_T)
  234. if (gHookLenght[id] < 100) gHookLenght[id] = 100
  235.  
  236. A[0] = gHookLocation[id][0] - user_origin[0]
  237. A[1] = gHookLocation[id][1] - user_origin[1]
  238. A[2] = gHookLocation[id][2] - user_origin[2]
  239.  
  240. D[0] = A[0]*A[2] / get_distance(null,A)
  241. D[1] = A[1]*A[2] / get_distance(null,A)
  242. D[2] = -(A[1]*A[1] + A[0]*A[0]) / get_distance(null,A)
  243.  
  244. acceleration = - global_gravity * D[2] / get_distance(null,D)
  245.  
  246. velocity_towards_A = (velocity[0] * A[0] + velocity[1] * A[1] + velocity[2] * A[2]) / get_distance(null,A)
  247. desired_velocity_towards_A = (get_distance(user_origin,gHookLocation[id]) - gHookLenght[id] /*- 10*/) * 4
  248.  
  249. if (get_distance(null,D)>10)
  250. {
  251. velocity[0] += floatround((acceleration * DELTA_T * D[0]) / get_distance(null,D))
  252. velocity[1] += floatround((acceleration * DELTA_T * D[1]) / get_distance(null,D))
  253. velocity[2] += floatround((acceleration * DELTA_T * D[2]) / get_distance(null,D))
  254. }
  255.  
  256. velocity[0] += ((desired_velocity_towards_A - velocity_towards_A) * A[0]) / get_distance(null,A)
  257. velocity[1] += ((desired_velocity_towards_A - velocity_towards_A) * A[1]) / get_distance(null,A)
  258. velocity[2] += ((desired_velocity_towards_A - velocity_towards_A) * A[2]) / get_distance(null,A)
  259.  
  260. kz_velocity_set(id, velocity)
  261. }
  262.  
  263. public hooktask(parm[])
  264. {
  265. new id = parm[0]
  266. new velocity[3]
  267.  
  268. if ( !gIsHooked[id] ) return
  269.  
  270. new user_origin[3],oldvelocity[3]
  271. parm[0] = id
  272.  
  273. if (!is_user_alive(id))
  274. {
  275. RopeRelease(id)
  276. return
  277. }
  278.  
  279. if (gBeamIsCreated[id] + BEAMLIFE/10 <= get_gametime())
  280. {
  281. beamentpoint(id)
  282. }
  283.  
  284. get_user_origin(id, user_origin)
  285. kz_velocity_get(id, oldvelocity)
  286. new distance=get_distance( gHookLocation[id], user_origin )
  287. if ( distance > 10 )
  288. {
  289. velocity[0] = floatround( (gHookLocation[id][0] - user_origin[0]) * ( 2.0 * REELSPEED / distance ) )
  290. velocity[1] = floatround( (gHookLocation[id][1] - user_origin[1]) * ( 2.0 * REELSPEED / distance ) )
  291. velocity[2] = floatround( (gHookLocation[id][2] - user_origin[2]) * ( 2.0 * REELSPEED / distance ) )
  292. }
  293. else
  294. {
  295. velocity[0]=0
  296. velocity[1]=0
  297. velocity[2]=0
  298. }
  299.  
  300. kz_velocity_set(id, velocity)
  301.  
  302. }
  303.  
  304. public hook_on(id)
  305. {
  306. if (get_cvar_num("sv_adminhook")==1)
  307. {
  308. if (gAllowedHook[id] || (get_user_flags(id)&ADMIN_LEVEL_E)) {
  309. if (!gIsHooked[id] && is_user_alive(id))
  310. {
  311. new cmd[32]
  312. read_argv(0,cmd,31)
  313. if(equal(cmd,"+rope")) RopeAttach(id,0)
  314. if(equal(cmd,"+hook")) RopeAttach(id,1)
  315. }
  316. }else{
  317. client_print(id,print_chat,"[%s] Nincs elerhetoseged hozza",gModName)
  318. return PLUGIN_HANDLED
  319. }
  320. }else{
  321. client_print(id,print_chat,"[%s] Ez a parancs ki van kapcsolva",gModName)
  322. }
  323. return PLUGIN_HANDLED
  324. }
  325.  
  326. public hook_off(id)
  327. {
  328. if (gAllowedHook[id] || (get_user_flags(id)&ADMIN_LEVEL_E)) {
  329. if (gIsHooked[id])
  330. {
  331. RopeRelease(id)
  332. }
  333. }else{
  334. client_print(id,print_chat,"[%s] Nincs elerhetoseged hozza",gModName)
  335. return PLUGIN_HANDLED
  336. }
  337. return PLUGIN_HANDLED
  338. }
  339.  
  340. public RopeAttach(id,hook)
  341. {
  342. new parm[1], user_origin[3]
  343. parm[0] = id
  344. gIsHooked[id] = true
  345. get_user_origin(id,user_origin)
  346. get_user_origin(id,gHookLocation[id], 3)
  347. gHookLenght[id] = get_distance(gHookLocation[id],user_origin)
  348. global_gravity = get_cvar_num("sv_gravity")
  349. set_user_gravity(id,0.001)
  350. beamentpoint(id)
  351. emit_sound(id, CHAN_STATIC, "weapons/xbow_hit2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  352. if (hook) set_task(DELTA_T, "hooktask", 200+id, parm, 1, "b")
  353. else set_task(DELTA_T, "ropetask", 200+id, parm, 1, "b")
  354. }
  355.  
  356. public RopeRelease(id)
  357. {
  358. gIsHooked[id] = false
  359. killbeam(id)
  360. set_user_gravity(id)
  361. remove_task(200+id)
  362. }
  363.  
  364. public beamentpoint(id)
  365. {
  366. message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
  367. write_byte( TE_BEAMENTPOINT )
  368. write_short( id )
  369. write_coord( gHookLocation[id][0] )
  370. write_coord( gHookLocation[id][1] )
  371. write_coord( gHookLocation[id][2] )
  372. write_short( beam ) // sprite index
  373. write_byte( 0 ) // start frame
  374. write_byte( 0 ) // framerate
  375. write_byte( BEAMLIFE ) // life
  376. write_byte( 10 ) // width
  377. write_byte( 0 ) // noise
  378. if (get_user_team(id)==1) // Terrorist
  379. {
  380. write_byte( 255 ) // r, g, b
  381. write_byte( 0 ) // r, g, b
  382. write_byte( 0 ) // r, g, b
  383. }
  384. else // Counter-Terrorist
  385. {
  386. write_byte( 0 ) // r, g, b
  387. write_byte( 0 ) // r, g, b
  388. write_byte( 255 ) // r, g, b
  389. }
  390. write_byte( 150 ) // brightness
  391. write_byte( 0 ) // speed
  392. message_end( )
  393. gBeamIsCreated[id] = get_gametime()
  394. }
  395.  
  396. public killbeam(id)
  397. {
  398. message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
  399. write_byte( TE_KILLBEAM )
  400. write_short( id )
  401. message_end()
  402. }
  403.  
  404. /************************************************************************************************************************/
  405. /******************************************************* FORWARDS *******************************************************/
  406. /************************************************************************************************************************/
  407.  
  408. public client_disconnect(id) {
  409. gAllowedHook[id]=0
  410. }
  411.  
  412. /************************************************************************************************************************/
  413. /************************************************** AMXX -> AMX funcs ***************************************************/
  414. /************************************************************************************************************************/
  415. #if USING_AMX
  416. stock get_user_button(id) return entity_get_int(id, EV_INT_button)
  417. #endif

Szerző:  ultraibolya [2013.03.26. 19:48 ]
Hozzászólás témája:  Re: hook

Csak azt nem írtad hogy ct-nek illetve t-nek is egyaránt fehér legyen a színe,úgy hogy mindenkinek fehér lett :)


SMA Forráskód: [ Mindet kijelol ]
  1. /**************************************************************************************************
  2.  
  3. **** CVARS (FEATURES) ****
  4. sv_adminhook = Turn Plugin On/off
  5. **** ADMIN COMMANDS ****
  6. ADMIN_LEVEL_A (flag="m")
  7. Granting Hook/Rope = amx_granthook <authid, nick, @team, @all or #userid> <on/off>
  8.  
  9. ADMIN_LEVEL_E (flag="q") || Granted by admin
  10. Ninja Rope by Spacedude (slightly modified) & Hook thingy
  11. Attaching Rope = +rope
  12. Deattaching Rope = -rope
  13. Attaching Hook = +hook
  14. Deattaching Hook = -hook
  15.  
  16. **************************************************************************************************/
  17. #define USING_AMX 0 // 1 = Using AMX \ 0 = Useing AMXX
  18.  
  19. #if USING_AMX
  20. #include <amxmod>
  21. #include <amxmisc>
  22. #include <VexdUM>
  23. #include <fun>
  24. new gModName[32] = "AMX"
  25. #else
  26. #include <amxmodx>
  27. #include <amxmisc>
  28. #include <fun>
  29. #include <engine>
  30. new gModName[32] = "AMXX"
  31. #endif
  32.  
  33. #define TE_BEAMENTPOINT 1
  34. #define TE_KILLBEAM 99
  35. #define DELTA_T 0.1 // seconds
  36. #define BEAMLIFE 100 // deciseconds
  37. #define MOVEACCELERATION 150 // units per second^2
  38. #define REELSPEED 300 // units per second
  39.  
  40. /* Hook Stuff */
  41. new gHookLocation[33][3]
  42. new gHookLenght[33]
  43. new bool:gIsHooked[33]
  44. new gAllowedHook[33]
  45. new Float:gBeamIsCreated[33]
  46. new global_gravity
  47. new beam
  48.  
  49. /************************************************************************************************************************/
  50. public plugin_init() //Called on plugin start
  51. {
  52. // Plugin Info
  53. register_plugin("Admin Hook","1.0","AssKicR")
  54.  
  55. //CVARS
  56. register_cvar("sv_adminhook", "1" )
  57.  
  58. //ADMIN CMDS
  59. register_concmd("amx_granthook","AdminGrantHook",ADMIN_LEVEL_A,"<authid, nick, @team, @all or #userid> <on/off>")
  60.  
  61. //USER COMMANDS
  62. register_clcmd("+rope", "hook_on",ADMIN_LEVEL_E)
  63. register_clcmd("-rope", "hook_off",ADMIN_LEVEL_E)
  64. register_clcmd("+hook", "hook_on",ADMIN_LEVEL_E)
  65. register_clcmd("-hook", "hook_off",ADMIN_LEVEL_E)
  66.  
  67. //HOOKED EVENTS
  68. register_event("ResetHUD", "ResetHUD", "b")
  69. }
  70. /************************************************************************************************************************/
  71. public plugin_precache()
  72. {
  73. beam = precache_model("sprites/zbeam4.spr")
  74. precache_sound("weapons/xbow_hit2.wav")
  75. }
  76. /*************************************************************************************************************************/
  77. /************************************************** USP/SCOUT REMOVE *****************************************************/
  78. /*************************************************************************************************************************/
  79.  
  80. /*************************************************************************************************************************/
  81. /**************************************************** HOOKED EVENTS ******************************************************/
  82. /*************************************************************************************************************************/
  83. public ResetHUD(id) {
  84. //Check if he is hooked to something
  85. if (gIsHooked[id]) RopeRelease(id)
  86. }
  87. /************************************************************************************************************************/
  88. stock kz_velocity_set(id,vel[3]) {
  89. //Set Their Velocity to 0 so that they they fall straight down from
  90. new Float:Ivel[3]
  91. Ivel[0]=float(vel[0])
  92. Ivel[1]=float(vel[1])
  93. Ivel[2]=float(vel[2])
  94. entity_set_vector(id, EV_VEC_velocity, Ivel)
  95. }
  96.  
  97. stock kz_velocity_get(id,vel[3]) {
  98. //Set Their Velocity to 0 so that they they fall straight down from
  99. new Float:Ivel[3]
  100.  
  101. entity_get_vector(id, EV_VEC_velocity, Ivel)
  102. vel[0]=floatround(Ivel[0])
  103. vel[1]=floatround(Ivel[1])
  104. vel[2]=floatround(Ivel[2])
  105. }
  106.  
  107. /************************************************************************************************************************/
  108. /**************************************************** ADMIN COMMANDS ****************************************************/
  109. /************************************************************************************************************************/
  110. public AdminGrantHook(id,level,cid)
  111. {
  112. if ( !cmd_access(id,level,cid,1) )
  113. return PLUGIN_HANDLED
  114.  
  115. new arg1[32],arg2[32]
  116. read_argv(1,arg1,31)
  117. read_argv(2,arg2,31)
  118. new onoff = str_to_num(arg2)
  119.  
  120. if ( equali(arg1,"@all") )
  121. {
  122. new plist[32],pnum
  123. get_players(plist,pnum,"a")
  124. if (pnum==0)
  125. {
  126. console_print(id,"[%s] There are no clients",gModName)
  127. return PLUGIN_HANDLED
  128. }
  129. for (new i=0; i<pnum; i++) {
  130. gAllowedHook[plist[i]]=onoff
  131. if (gIsHooked[plist[i]]==true && onoff==0)
  132. {
  133. RopeRelease(plist[i])
  134. }
  135. }
  136.  
  137. console_print(id,"[%s] %s all players access to hook/rope",gModName,onoff ? "Gave":"Removed")
  138. }
  139. else if ( arg1[0]=='@' )
  140. {
  141. new plist[32],pnum
  142. get_players(plist,pnum,"ae",arg1[1])
  143. if ( pnum==0 )
  144. {
  145. console_print(id,"[%s] No clients in such team",gModName)
  146. return PLUGIN_HANDLED
  147. }
  148. for (new i=0; i<pnum; i++) {
  149. gAllowedHook[plist[i]]=onoff
  150. if (gIsHooked[plist[i]]==true && onoff==0)
  151. {
  152. RopeRelease(plist[i])
  153. }
  154. }
  155. console_print(id,"[%s] %s all %ss access to hook/rope",onoff ? "Gave":"Removed",arg1[1])
  156. }
  157. else
  158. {
  159. new pName[32]
  160. new player = cmd_target(id,arg1,6)
  161. if (!player) return PLUGIN_HANDLED
  162.  
  163. gAllowedHook[player]=onoff
  164. if (gAllowedHook[player]==0 && onoff==0)
  165. {
  166. RopeRelease(player)
  167. }
  168.  
  169.  
  170. get_user_name(player,pName,31)
  171. console_print(id,"[%s] %s ^"%s^" access to hook/rope",onoff ? "Gave":"Removed",pName)
  172. }
  173.  
  174. return PLUGIN_HANDLED
  175. }
  176.  
  177. /************************************************************************************************************************/
  178. /****************************************************** NINJAROPE *******************************************************/
  179. /************************************************************************************************************************/
  180.  
  181. public ropetask(parm[])
  182. {
  183. new id = parm[0]
  184. new user_origin[3], user_look[3], user_direction[3], move_direction[3]
  185. new A[3], D[3], buttonadjust[3]
  186. new acceleration, velocity_towards_A, desired_velocity_towards_A
  187. new velocity[3], null[3]
  188.  
  189. if (!is_user_alive(id))
  190. {
  191. RopeRelease(id)
  192. return
  193. }
  194.  
  195. if (gBeamIsCreated[id] + BEAMLIFE/10 <= get_gametime())
  196. {
  197. beamentpoint(id)
  198. }
  199.  
  200. null[0] = 0
  201. null[1] = 0
  202. null[2] = 0
  203.  
  204. get_user_origin(id, user_origin)
  205. get_user_origin(id, user_look,2)
  206. kz_velocity_get(id, velocity)
  207.  
  208. buttonadjust[0]=0
  209. buttonadjust[1]=0
  210.  
  211. if (get_user_button(id)&IN_FORWARD) buttonadjust[0]+=1
  212. if (get_user_button(id)&IN_BACK) buttonadjust[0]-=1
  213. if (get_user_button(id)&IN_MOVERIGHT) buttonadjust[1]+=1
  214. if (get_user_button(id)&IN_MOVELEFT) buttonadjust[1]-=1
  215. if (get_user_button(id)&IN_JUMP) buttonadjust[2]+=1
  216. if (get_user_button(id)&IN_DUCK) buttonadjust[2]-=1
  217.  
  218. if (buttonadjust[0] || buttonadjust[1])
  219. {
  220. user_direction[0] = user_look[0] - user_origin[0]
  221. user_direction[1] = user_look[1] - user_origin[1]
  222.  
  223. move_direction[0] = buttonadjust[0]*user_direction[0] + user_direction[1]*buttonadjust[1]
  224. move_direction[1] = buttonadjust[0]*user_direction[1] - user_direction[0]*buttonadjust[1]
  225. move_direction[2] = 0
  226.  
  227. velocity[0] += floatround(move_direction[0] * MOVEACCELERATION * DELTA_T / get_distance(null,move_direction))
  228. velocity[1] += floatround(move_direction[1] * MOVEACCELERATION * DELTA_T / get_distance(null,move_direction))
  229. }
  230.  
  231. if (buttonadjust[2]) gHookLenght[id] -= floatround(buttonadjust[2] * REELSPEED * DELTA_T)
  232. if (gHookLenght[id] < 100) gHookLenght[id] = 100
  233.  
  234. A[0] = gHookLocation[id][0] - user_origin[0]
  235. A[1] = gHookLocation[id][1] - user_origin[1]
  236. A[2] = gHookLocation[id][2] - user_origin[2]
  237.  
  238. D[0] = A[0]*A[2] / get_distance(null,A)
  239. D[1] = A[1]*A[2] / get_distance(null,A)
  240. D[2] = -(A[1]*A[1] + A[0]*A[0]) / get_distance(null,A)
  241.  
  242. acceleration = - global_gravity * D[2] / get_distance(null,D)
  243.  
  244. velocity_towards_A = (velocity[0] * A[0] + velocity[1] * A[1] + velocity[2] * A[2]) / get_distance(null,A)
  245. desired_velocity_towards_A = (get_distance(user_origin,gHookLocation[id]) - gHookLenght[id] /*- 10*/) * 4
  246.  
  247. if (get_distance(null,D)>10)
  248. {
  249. velocity[0] += floatround((acceleration * DELTA_T * D[0]) / get_distance(null,D))
  250. velocity[1] += floatround((acceleration * DELTA_T * D[1]) / get_distance(null,D))
  251. velocity[2] += floatround((acceleration * DELTA_T * D[2]) / get_distance(null,D))
  252. }
  253.  
  254. velocity[0] += ((desired_velocity_towards_A - velocity_towards_A) * A[0]) / get_distance(null,A)
  255. velocity[1] += ((desired_velocity_towards_A - velocity_towards_A) * A[1]) / get_distance(null,A)
  256. velocity[2] += ((desired_velocity_towards_A - velocity_towards_A) * A[2]) / get_distance(null,A)
  257.  
  258. kz_velocity_set(id, velocity)
  259. }
  260.  
  261. public hooktask(parm[])
  262. {
  263. new id = parm[0]
  264. new velocity[3]
  265.  
  266. if ( !gIsHooked[id] ) return
  267.  
  268. new user_origin[3],oldvelocity[3]
  269. parm[0] = id
  270.  
  271. if (!is_user_alive(id))
  272. {
  273. RopeRelease(id)
  274. return
  275. }
  276.  
  277. if (gBeamIsCreated[id] + BEAMLIFE/10 <= get_gametime())
  278. {
  279. beamentpoint(id)
  280. }
  281.  
  282. get_user_origin(id, user_origin)
  283. kz_velocity_get(id, oldvelocity)
  284. new distance=get_distance( gHookLocation[id], user_origin )
  285. if ( distance > 10 )
  286. {
  287. velocity[0] = floatround( (gHookLocation[id][0] - user_origin[0]) * ( 2.0 * REELSPEED / distance ) )
  288. velocity[1] = floatround( (gHookLocation[id][1] - user_origin[1]) * ( 2.0 * REELSPEED / distance ) )
  289. velocity[2] = floatround( (gHookLocation[id][2] - user_origin[2]) * ( 2.0 * REELSPEED / distance ) )
  290. }
  291. else
  292. {
  293. velocity[0]=0
  294. velocity[1]=0
  295. velocity[2]=0
  296. }
  297.  
  298. kz_velocity_set(id, velocity)
  299.  
  300. }
  301.  
  302. public hook_on(id)
  303. {
  304. if (get_cvar_num("sv_adminhook")==1)
  305. {
  306. if (!gIsHooked[id] && is_user_alive(id))
  307. {
  308. new cmd[32]
  309. read_argv(0,cmd,31)
  310. if(equal(cmd,"+rope")) RopeAttach(id,0)
  311. if(equal(cmd,"+hook")) RopeAttach(id,1)
  312. }else{
  313. client_print(id,print_chat,"[%s] Ez a parancs ki van kapcsolva",gModName)
  314. }
  315. }
  316. return PLUGIN_HANDLED
  317. }
  318.  
  319. public hook_off(id)
  320. {
  321. if (gIsHooked[id])
  322. {
  323. RopeRelease(id)
  324. }
  325. return PLUGIN_HANDLED
  326. }
  327.  
  328. public RopeAttach(id,hook)
  329. {
  330. new parm[1], user_origin[3]
  331. parm[0] = id
  332. gIsHooked[id] = true
  333. get_user_origin(id,user_origin)
  334. get_user_origin(id,gHookLocation[id], 3)
  335. gHookLenght[id] = get_distance(gHookLocation[id],user_origin)
  336. global_gravity = get_cvar_num("sv_gravity")
  337. set_user_gravity(id,0.001)
  338. beamentpoint(id)
  339. emit_sound(id, CHAN_STATIC, "weapons/xbow_hit2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  340. if (hook) set_task(DELTA_T, "hooktask", 200+id, parm, 1, "b")
  341. else set_task(DELTA_T, "ropetask", 200+id, parm, 1, "b")
  342. }
  343.  
  344. public RopeRelease(id)
  345. {
  346. gIsHooked[id] = false
  347. killbeam(id)
  348. set_user_gravity(id)
  349. remove_task(200+id)
  350. }
  351.  
  352. public beamentpoint(id)
  353. {
  354. message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
  355. write_byte( TE_BEAMENTPOINT )
  356. write_short( id )
  357. write_coord( gHookLocation[id][0] )
  358. write_coord( gHookLocation[id][1] )
  359. write_coord( gHookLocation[id][2] )
  360. write_short( beam ) // sprite index
  361. write_byte( 0 ) // start frame
  362. write_byte( 0 ) // framerate
  363. write_byte( BEAMLIFE ) // life
  364. write_byte( 10 ) // width
  365. write_byte( 0 ) // noise
  366. if (get_user_team(id)==1) // Terrorist
  367. {
  368. write_byte( 0 ) // r, g, b
  369. write_byte( 0 ) // r, g, b
  370. write_byte( 0 ) // r, g, b
  371. }
  372. else // Counter-Terrorist
  373. {
  374. write_byte( 0 ) // r, g, b
  375. write_byte( 0 ) // r, g, b
  376. write_byte( 0 ) // r, g, b
  377. }
  378. write_byte( 150 ) // brightness
  379. write_byte( 0 ) // speed
  380. message_end( )
  381. gBeamIsCreated[id] = get_gametime()
  382. }
  383.  
  384. public killbeam(id)
  385. {
  386. message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
  387. write_byte( TE_KILLBEAM )
  388. write_short( id )
  389. message_end()
  390. }

Szerző:  makker17 [2013.03.27. 15:27 ]
Hozzászólás témája:  Re: hook

hello! valami hibádzik mivel, nem látszik a hook!! akkro vissza tudod állítani .,h ctnek kék tnek piros?

Szerző:  IrOn [2013.03.27. 15:35 ]
Hozzászólás témája:  Re: hook

ultra: 000 000 000 az mióta fehér rgb kód?

itt a fehér:
SMA Forráskód: [ Mindet kijelol ]
  1. /**************************************************************************************************
  2.  
  3. **** CVARS (FEATURES) ****
  4. sv_adminhook = Turn Plugin On/off
  5. **** ADMIN COMMANDS ****
  6. ADMIN_LEVEL_A (flag="m")
  7. Granting Hook/Rope = amx_granthook <authid, nick, @team, @all or #userid> <on/off>
  8.  
  9. ADMIN_LEVEL_E (flag="q") || Granted by admin
  10. Ninja Rope by Spacedude (slightly modified) & Hook thingy
  11. Attaching Rope = +rope
  12. Deattaching Rope = -rope
  13. Attaching Hook = +hook
  14. Deattaching Hook = -hook
  15.  
  16. **************************************************************************************************/
  17. #define USING_AMX 0 // 1 = Using AMX \ 0 = Useing AMXX
  18.  
  19. #if USING_AMX
  20. #include <amxmod>
  21. #include <amxmisc>
  22. #include <VexdUM>
  23. #include <fun>
  24. new gModName[32] = "AMX"
  25. #else
  26. #include <amxmodx>
  27. #include <amxmisc>
  28. #include <fun>
  29. #include <engine>
  30. new gModName[32] = "AMXX"
  31. #endif
  32.  
  33. #define TE_BEAMENTPOINT 1
  34. #define TE_KILLBEAM 99
  35. #define DELTA_T 0.1 // seconds
  36. #define BEAMLIFE 100 // deciseconds
  37. #define MOVEACCELERATION 150 // units per second^2
  38. #define REELSPEED 300 // units per second
  39.  
  40. /* Hook Stuff */
  41. new gHookLocation[33][3]
  42. new gHookLenght[33]
  43. new bool:gIsHooked[33]
  44. new gAllowedHook[33]
  45. new Float:gBeamIsCreated[33]
  46. new global_gravity
  47. new beam
  48.  
  49. /************************************************************************************************************************/
  50. public plugin_init() //Called on plugin start
  51. {
  52. // Plugin Info
  53. register_plugin("Admin Hook","1.0","AssKicR")
  54.  
  55. //CVARS
  56. register_cvar("sv_adminhook", "1" )
  57.  
  58. //ADMIN CMDS
  59. register_concmd("amx_granthook","AdminGrantHook",ADMIN_LEVEL_A,"<authid, nick, @team, @all or #userid> <on/off>")
  60.  
  61. //USER COMMANDS
  62. register_clcmd("+rope", "hook_on",ADMIN_LEVEL_E)
  63. register_clcmd("-rope", "hook_off",ADMIN_LEVEL_E)
  64. register_clcmd("+hook", "hook_on",ADMIN_LEVEL_E)
  65. register_clcmd("-hook", "hook_off",ADMIN_LEVEL_E)
  66.  
  67. //HOOKED EVENTS
  68. register_event("ResetHUD", "ResetHUD", "b")
  69. }
  70. /************************************************************************************************************************/
  71. public plugin_precache()
  72. {
  73. beam = precache_model("sprites/zbeam4.spr")
  74. precache_sound("weapons/xbow_hit2.wav")
  75. }
  76. /*************************************************************************************************************************/
  77. /************************************************** USP/SCOUT REMOVE *****************************************************/
  78. /*************************************************************************************************************************/
  79.  
  80. /*************************************************************************************************************************/
  81. /**************************************************** HOOKED EVENTS ******************************************************/
  82. /*************************************************************************************************************************/
  83. public ResetHUD(id) {
  84. //Check if he is hooked to something
  85. if (gIsHooked[id]) RopeRelease(id)
  86. }
  87. /************************************************************************************************************************/
  88. stock kz_velocity_set(id,vel[3]) {
  89. //Set Their Velocity to 0 so that they they fall straight down from
  90. new Float:Ivel[3]
  91. Ivel[0]=float(vel[0])
  92. Ivel[1]=float(vel[1])
  93. Ivel[2]=float(vel[2])
  94. entity_set_vector(id, EV_VEC_velocity, Ivel)
  95. }
  96.  
  97. stock kz_velocity_get(id,vel[3]) {
  98. //Set Their Velocity to 0 so that they they fall straight down from
  99. new Float:Ivel[3]
  100.  
  101. entity_get_vector(id, EV_VEC_velocity, Ivel)
  102. vel[0]=floatround(Ivel[0])
  103. vel[1]=floatround(Ivel[1])
  104. vel[2]=floatround(Ivel[2])
  105. }
  106.  
  107. /************************************************************************************************************************/
  108. /**************************************************** ADMIN COMMANDS ****************************************************/
  109. /************************************************************************************************************************/
  110. public AdminGrantHook(id,level,cid)
  111. {
  112. if ( !cmd_access(id,level,cid,1) )
  113. return PLUGIN_HANDLED
  114.  
  115. new arg1[32],arg2[32]
  116. read_argv(1,arg1,31)
  117. read_argv(2,arg2,31)
  118. new onoff = str_to_num(arg2)
  119.  
  120. if ( equali(arg1,"@all") )
  121. {
  122. new plist[32],pnum
  123. get_players(plist,pnum,"a")
  124. if (pnum==0)
  125. {
  126. console_print(id,"[%s] There are no clients",gModName)
  127. return PLUGIN_HANDLED
  128. }
  129. for (new i=0; i<pnum; i++) {
  130. gAllowedHook[plist[i]]=onoff
  131. if (gIsHooked[plist[i]]==true && onoff==0)
  132. {
  133. RopeRelease(plist[i])
  134. }
  135. }
  136.  
  137. console_print(id,"[%s] %s all players access to hook/rope",gModName,onoff ? "Gave":"Removed")
  138. }
  139. else if ( arg1[0]=='@' )
  140. {
  141. new plist[32],pnum
  142. get_players(plist,pnum,"ae",arg1[1])
  143. if ( pnum==0 )
  144. {
  145. console_print(id,"[%s] No clients in such team",gModName)
  146. return PLUGIN_HANDLED
  147. }
  148. for (new i=0; i<pnum; i++) {
  149. gAllowedHook[plist[i]]=onoff
  150. if (gIsHooked[plist[i]]==true && onoff==0)
  151. {
  152. RopeRelease(plist[i])
  153. }
  154. }
  155. console_print(id,"[%s] %s all %ss access to hook/rope",onoff ? "Gave":"Removed",arg1[1])
  156. }
  157. else
  158. {
  159. new pName[32]
  160. new player = cmd_target(id,arg1,6)
  161. if (!player) return PLUGIN_HANDLED
  162.  
  163. gAllowedHook[player]=onoff
  164. if (gAllowedHook[player]==0 && onoff==0)
  165. {
  166. RopeRelease(player)
  167. }
  168.  
  169.  
  170. get_user_name(player,pName,31)
  171. console_print(id,"[%s] %s ^"%s^" access to hook/rope",onoff ? "Gave":"Removed",pName)
  172. }
  173.  
  174. return PLUGIN_HANDLED
  175. }
  176.  
  177. /************************************************************************************************************************/
  178. /****************************************************** NINJAROPE *******************************************************/
  179. /************************************************************************************************************************/
  180.  
  181. public ropetask(parm[])
  182. {
  183. new id = parm[0]
  184. new user_origin[3], user_look[3], user_direction[3], move_direction[3]
  185. new A[3], D[3], buttonadjust[3]
  186. new acceleration, velocity_towards_A, desired_velocity_towards_A
  187. new velocity[3], null[3]
  188.  
  189. if (!is_user_alive(id))
  190. {
  191. RopeRelease(id)
  192. return
  193. }
  194.  
  195. if (gBeamIsCreated[id] + BEAMLIFE/10 <= get_gametime())
  196. {
  197. beamentpoint(id)
  198. }
  199.  
  200. null[0] = 0
  201. null[1] = 0
  202. null[2] = 0
  203.  
  204. get_user_origin(id, user_origin)
  205. get_user_origin(id, user_look,2)
  206. kz_velocity_get(id, velocity)
  207.  
  208. buttonadjust[0]=0
  209. buttonadjust[1]=0
  210.  
  211. if (get_user_button(id)&IN_FORWARD) buttonadjust[0]+=1
  212. if (get_user_button(id)&IN_BACK) buttonadjust[0]-=1
  213. if (get_user_button(id)&IN_MOVERIGHT) buttonadjust[1]+=1
  214. if (get_user_button(id)&IN_MOVELEFT) buttonadjust[1]-=1
  215. if (get_user_button(id)&IN_JUMP) buttonadjust[2]+=1
  216. if (get_user_button(id)&IN_DUCK) buttonadjust[2]-=1
  217.  
  218. if (buttonadjust[0] || buttonadjust[1])
  219. {
  220. user_direction[0] = user_look[0] - user_origin[0]
  221. user_direction[1] = user_look[1] - user_origin[1]
  222.  
  223. move_direction[0] = buttonadjust[0]*user_direction[0] + user_direction[1]*buttonadjust[1]
  224. move_direction[1] = buttonadjust[0]*user_direction[1] - user_direction[0]*buttonadjust[1]
  225. move_direction[2] = 0
  226.  
  227. velocity[0] += floatround(move_direction[0] * MOVEACCELERATION * DELTA_T / get_distance(null,move_direction))
  228. velocity[1] += floatround(move_direction[1] * MOVEACCELERATION * DELTA_T / get_distance(null,move_direction))
  229. }
  230.  
  231. if (buttonadjust[2]) gHookLenght[id] -= floatround(buttonadjust[2] * REELSPEED * DELTA_T)
  232. if (gHookLenght[id] < 100) gHookLenght[id] = 100
  233.  
  234. A[0] = gHookLocation[id][0] - user_origin[0]
  235. A[1] = gHookLocation[id][1] - user_origin[1]
  236. A[2] = gHookLocation[id][2] - user_origin[2]
  237.  
  238. D[0] = A[0]*A[2] / get_distance(null,A)
  239. D[1] = A[1]*A[2] / get_distance(null,A)
  240. D[2] = -(A[1]*A[1] + A[0]*A[0]) / get_distance(null,A)
  241.  
  242. acceleration = - global_gravity * D[2] / get_distance(null,D)
  243.  
  244. velocity_towards_A = (velocity[0] * A[0] + velocity[1] * A[1] + velocity[2] * A[2]) / get_distance(null,A)
  245. desired_velocity_towards_A = (get_distance(user_origin,gHookLocation[id]) - gHookLenght[id] /*- 10*/) * 4
  246.  
  247. if (get_distance(null,D)>10)
  248. {
  249. velocity[0] += floatround((acceleration * DELTA_T * D[0]) / get_distance(null,D))
  250. velocity[1] += floatround((acceleration * DELTA_T * D[1]) / get_distance(null,D))
  251. velocity[2] += floatround((acceleration * DELTA_T * D[2]) / get_distance(null,D))
  252. }
  253.  
  254. velocity[0] += ((desired_velocity_towards_A - velocity_towards_A) * A[0]) / get_distance(null,A)
  255. velocity[1] += ((desired_velocity_towards_A - velocity_towards_A) * A[1]) / get_distance(null,A)
  256. velocity[2] += ((desired_velocity_towards_A - velocity_towards_A) * A[2]) / get_distance(null,A)
  257.  
  258. kz_velocity_set(id, velocity)
  259. }
  260.  
  261. public hooktask(parm[])
  262. {
  263. new id = parm[0]
  264. new velocity[3]
  265.  
  266. if ( !gIsHooked[id] ) return
  267.  
  268. new user_origin[3],oldvelocity[3]
  269. parm[0] = id
  270.  
  271. if (!is_user_alive(id))
  272. {
  273. RopeRelease(id)
  274. return
  275. }
  276.  
  277. if (gBeamIsCreated[id] + BEAMLIFE/10 <= get_gametime())
  278. {
  279. beamentpoint(id)
  280. }
  281.  
  282. get_user_origin(id, user_origin)
  283. kz_velocity_get(id, oldvelocity)
  284. new distance=get_distance( gHookLocation[id], user_origin )
  285. if ( distance > 10 )
  286. {
  287. velocity[0] = floatround( (gHookLocation[id][0] - user_origin[0]) * ( 2.0 * REELSPEED / distance ) )
  288. velocity[1] = floatround( (gHookLocation[id][1] - user_origin[1]) * ( 2.0 * REELSPEED / distance ) )
  289. velocity[2] = floatround( (gHookLocation[id][2] - user_origin[2]) * ( 2.0 * REELSPEED / distance ) )
  290. }
  291. else
  292. {
  293. velocity[0]=0
  294. velocity[1]=0
  295. velocity[2]=0
  296. }
  297.  
  298. kz_velocity_set(id, velocity)
  299.  
  300. }
  301.  
  302. public hook_on(id)
  303. {
  304. if (get_cvar_num("sv_adminhook")==1)
  305. {
  306. if (!gIsHooked[id] && is_user_alive(id))
  307. {
  308. new cmd[32]
  309. read_argv(0,cmd,31)
  310. if(equal(cmd,"+rope")) RopeAttach(id,0)
  311. if(equal(cmd,"+hook")) RopeAttach(id,1)
  312. }else{
  313. client_print(id,print_chat,"[%s] Ez a parancs ki van kapcsolva",gModName)
  314. }
  315. }
  316. return PLUGIN_HANDLED
  317. }
  318.  
  319. public hook_off(id)
  320. {
  321. if (gIsHooked[id])
  322. {
  323. RopeRelease(id)
  324. }
  325. return PLUGIN_HANDLED
  326. }
  327.  
  328. public RopeAttach(id,hook)
  329. {
  330. new parm[1], user_origin[3]
  331. parm[0] = id
  332. gIsHooked[id] = true
  333. get_user_origin(id,user_origin)
  334. get_user_origin(id,gHookLocation[id], 3)
  335. gHookLenght[id] = get_distance(gHookLocation[id],user_origin)
  336. global_gravity = get_cvar_num("sv_gravity")
  337. set_user_gravity(id,0.001)
  338. beamentpoint(id)
  339. emit_sound(id, CHAN_STATIC, "weapons/xbow_hit2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  340. if (hook) set_task(DELTA_T, "hooktask", 200+id, parm, 1, "b")
  341. else set_task(DELTA_T, "ropetask", 200+id, parm, 1, "b")
  342. }
  343.  
  344. public RopeRelease(id)
  345. {
  346. gIsHooked[id] = false
  347. killbeam(id)
  348. set_user_gravity(id)
  349. remove_task(200+id)
  350. }
  351.  
  352. public beamentpoint(id)
  353. {
  354. message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
  355. write_byte( TE_BEAMENTPOINT )
  356. write_short( id )
  357. write_coord( gHookLocation[id][0] )
  358. write_coord( gHookLocation[id][1] )
  359. write_coord( gHookLocation[id][2] )
  360. write_short( beam ) // sprite index
  361. write_byte( 0 ) // start frame
  362. write_byte( 0 ) // framerate
  363. write_byte( BEAMLIFE ) // life
  364. write_byte( 10 ) // width
  365. write_byte( 0 ) // noise
  366. if (get_user_team(id)==1) // Terrorist
  367. {
  368. write_byte( 255 ) // r, g, b
  369. write_byte( 255 ) // r, g, b
  370. write_byte( 255 ) // r, g, b
  371. }
  372. else // Counter-Terrorist
  373. {
  374. write_byte( 255 ) // r, g, b
  375. write_byte( 255 ) // r, g, b
  376. write_byte( 255 ) // r, g, b
  377. }
  378. write_byte( 150 ) // brightness
  379. write_byte( 0 ) // speed
  380. message_end( )
  381. gBeamIsCreated[id] = get_gametime()
  382. }
  383.  
  384. public killbeam(id)
  385. {
  386. message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
  387. write_byte( TE_KILLBEAM )
  388. write_short( id )
  389. message_end()
  390. }

Szerző:  fuck604 [2013.03.27. 15:39 ]
Hozzászólás témája:  Re: hook

a cs-ben a 0,0,0 is fehér legalább is az rgb

Szerző:  IrOn [2013.03.27. 15:52 ]
Hozzászólás témája:  Re: hook

az fekete = átlátszó(itt)

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/