hlmod.hu
https://hlmod.hu/

VIP plugin beleírás,Rendezés.
https://hlmod.hu/viewtopic.php?f=9&t=19090
Oldal: 1 / 1

Szerző:  Levii [2015.01.24. 16:20 ]
Hozzászólás témája:  VIP plugin beleírás,Rendezés.

Sziasztok! valaki a VIP PLUGINOMBA beleírná hogy +10%sebesség , +20%gravitáció a vipnek :S Probálkoztam a gravityvel de nem hiszem h jó! SMA:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fun>
  4. #include <cstrike>
  5. #include <hamsandwich>
  6.  
  7. #define PLUGIN "Plugin"
  8. #define VERSION "1.0"
  9. #define AUTHOR "Author"
  10.  
  11. #define VIP_JOGA ADMIN_LEVEL_B
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_message( get_user_msgid( "SayText" ), "VipTag" );
  16. RegisterHam(Ham_Spawn, "player", "fw_player_spawn_post", 1)
  17. }
  18. public plugin_precache() {
  19. precache_model("models/vip/vip.mdl")
  20. }
  21. public VipTag( msgId, msgDest, msgEnt )
  22. {
  23. new id = get_msg_arg_int( 1 );
  24.  
  25. if( is_user_connected( id ) && get_user_flags( id ) & VIP_JOGA )
  26. {
  27. new szTmp[ 256 ],
  28. szTmp2[ 256 ];
  29.  
  30. get_msg_arg_string( 2, szTmp, charsmax( szTmp ) );
  31.  
  32. new szPrefix[ 64 ] = "^x04[V.I.P]";
  33.  
  34.  
  35. if( !equal( szTmp, "#Cstrike_Chat_All" ) )
  36. {
  37. add( szTmp2, charsmax( szTmp2 ), szPrefix );
  38. add( szTmp2, charsmax( szTmp2 ), " " );
  39. add( szTmp2, charsmax( szTmp2 ), szTmp );
  40. }
  41. else
  42. {
  43. add( szTmp2, charsmax( szTmp2 ), szPrefix );
  44. add( szTmp2, charsmax( szTmp2 ), "^x03 %s1^x01 : %s2" );
  45. }
  46. set_msg_arg_string( 2, szTmp2 );
  47. }
  48. return PLUGIN_CONTINUE;
  49. }
  50.  
  51. public fw_player_spawn_post(id)
  52. {
  53. if( is_user_connected( id ) && get_user_flags( id ) & VIP_JOGA ) {
  54. set_user_health(id, 120)
  55. cs_set_user_model(id, "vip")
  56. give_item(id, "weapon_hegrenade")
  57. give_item(id, "weapon_smokegrenade")
  58. give_item(id, "weapon_flashbang")
  59. give_item(id, "weapon_flashbang")
  60. give_item(id, "set_user_gravity(id, 0.7)")
  61. }
  62. }

Szerző:  CrB [2015.01.24. 21:25 ]
Hozzászólás témája:  Re: VIP plugin beleírás,Rendezés.

SMA Forráskód: [ Mindet kijelol ] 
set_user_gravity(id, get_user_gravity(id)*1.20)
 
SMA Forráskód: [ Mindet kijelol ] 
set_user_maxspeed(id, get_user_maxspeed(id)*1.10)
 

Szerző:  levo00 [2015.01.25. 08:23 ]
Hozzászólás témája:  Re: VIP plugin beleírás,Rendezés.

crazyboy írta:
SMA Forráskód: [ Mindet kijelol ] 
set_user_gravity(id, get_user_gravity(id)*1.20)
 
SMA Forráskód: [ Mindet kijelol ] 
set_user_maxspeed(id, get_user_maxspeed(id)*1.10)
 

nyem jo :( :c
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fun>
  4. #include <cstrike>
  5. #include <hamsandwich>
  6.  
  7. #define PLUGIN "Plugin"
  8. #define VERSION "1.0"
  9. #define AUTHOR "Author"
  10.  
  11. #define VIP_JOGA ADMIN_LEVEL_B
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_message( get_user_msgid( "SayText" ), "VipTag" );
  16. RegisterHam(Ham_Spawn, "player", "fw_player_spawn_post", 1)
  17. }
  18. public plugin_precache() {
  19. precache_model("models/vip/vip.mdl")
  20. }
  21. public VipTag( msgId, msgDest, msgEnt )
  22. {
  23. new id = get_msg_arg_int( 1 );
  24.  
  25. if( is_user_connected( id ) && get_user_flags( id ) & VIP_JOGA )
  26. {
  27. new szTmp[ 256 ],
  28. szTmp2[ 256 ];
  29.  
  30. get_msg_arg_string( 2, szTmp, charsmax( szTmp ) );
  31.  
  32. new szPrefix[ 64 ] = "^x04[V.I.P]";
  33.  
  34.  
  35. if( !equal( szTmp, "#Cstrike_Chat_All" ) )
  36. {
  37. add( szTmp2, charsmax( szTmp2 ), szPrefix );
  38. add( szTmp2, charsmax( szTmp2 ), " " );
  39. add( szTmp2, charsmax( szTmp2 ), szTmp );
  40. }
  41. else
  42. {
  43. add( szTmp2, charsmax( szTmp2 ), szPrefix );
  44. add( szTmp2, charsmax( szTmp2 ), "^x03 %s1^x01 : %s2" );
  45. }
  46. set_msg_arg_string( 2, szTmp2 );
  47. }
  48. return PLUGIN_CONTINUE;
  49. }
  50.  
  51. public fw_player_spawn_post(id)
  52. {
  53. if( is_user_connected( id ) && get_user_flags( id ) & VIP_JOGA ) {
  54. set_user_health(id, 120)
  55. cs_set_user_model(id, "vip")
  56. give_item(id, "weapon_hegrenade")
  57. give_item(id, "weapon_smokegrenade")
  58. give_item(id, "weapon_flashbang")
  59. give_item(id, "weapon_flashbang")
  60. set_user_gravity(id, get_user_gravity(id)*1.20)
  61. set_user_maxspeed(id, get_user_maxspeed(id)*1.10)
  62. }
  63. }

Szerző:  xXlederXxHUN [2015.01.25. 09:29 ]
Hozzászólás témája:  Re: VIP plugin beleírás,Rendezés.

akkor esetleg nincs joga az emberünknek? :D

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