hlmod.hu
https://hlmod.hu/

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

Szerző:  MISU1998 [2014.02.01. 20:40 ]
Hozzászólás témája:  Vip

Sziasztok, egy olyan vip plugint szeretnek ami:
-egyedi modelle van: /cstrike/models/player/vipmodel
-egyedi kes skin: /cstrike/models/vipkes
-alapból 200hp
-ha nagyot szur a kessel, akkor egybol ol, nem csak 65hp-t vesz le. (ez nem kell, ha nehez)

Köszönöm

Szerző:  Super Nova [2014.02.24. 14:25 ]
Hozzászólás témája:  Re: Vip

Teszt nem volt.
(Meglehet hogy nem működik,mert valami eventet elrontottam,ugyanis már elfelejtettem mindent :) )

SMA Forráskód: [ Mindet kijelol ]
  1. #include < amxmodx >
  2. #include < fun >
  3. #include < cstrike >
  4. #include < engine >
  5. #include < hamsandwich >
  6.  
  7. #define VIP_FLAG ADMIN_LEVEL_A
  8.  
  9. new const pmodel[] = "models/player/vipmodel/vipmodel.mdl"
  10. new const kmodel[] = "models/vipkes/v_knife.mdl"
  11.  
  12. public plugin_init() {
  13. register_plugin("Vip plugin", "1.0.0", "SN")
  14. register_event("ResetHUD","reseth","b")
  15. register_event("CurWeapon","curwep","be","1=1")
  16.  
  17. RegisterHam(Ham_TakeDamage,"player","edamage")
  18. }
  19. public edamage(victim, inflictor, attacker, Float:damage) {
  20. if(get_user_flags( attacker ) == VIP_FLAG ) {
  21. new clip,ammo,weap=get_user_weapon( attacker , clip , ammo )
  22. if( weap == CSW_KNIFE ) {
  23. SetHamParamFloat( attacker , damage*2)
  24. }
  25. }
  26. }
  27. public client_pawn( id ) {
  28. if(get_user_flags( id ) == VIP_FLAG ) {
  29. set_user_health( id , 200 )
  30. }
  31. }
  32. public reseth( id ) {
  33. if(get_user_flags( id ) == VIP_FLAG ) {
  34. cs_set_user_model( id , pmodel )
  35. }
  36. }
  37. public curwep( id ) {
  38. if(get_user_flags( id ) == VIP_FLAG ) {
  39. new clip,ammo,weap=get_user_weapon( id , clip , ammo)
  40. if(weap == CSW_KNIFE ) {
  41. entity_set_string(id, EV_SZ_viewmodel,kmodel);
  42. }
  43. }
  44. }

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