hlmod.hu
https://hlmod.hu/

Paintball [MOD]
https://hlmod.hu/viewtopic.php?f=29&t=27989
Oldal: 1 / 1

Szerző:  hopszegysor [2017.07.24. 08:35 ]
Hozzászólás témája:  Paintball [MOD]

Sziasztok, hogya tudom kivenni a c4-et a játék menetből?
Válaszokat előre is köszönöm!

Szerző:  Krisznitro [2017.07.24. 08:43 ]
Hozzászólás témája:  Re: Paintball [MOD]

hopszegysor írta:
Sziasztok, hogya tudom kivenni a c4-et a játék menetből?
Válaszokat előre is köszönöm!


  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. public plugin_init()
  5. {
  6.     register_plugin("Can't Plant C4", "0.1", "Exolent");
  7.     register_forward(FM_CmdStart, "FwdCmdStart", 0);
  8.      
  9.     return PLUGIN_CONTINUE;
  10. }
  11.  
  12. public FwdCmdStart(plr, uc_handle, seed)
  13. {
  14.     static clip, ammo;
  15.     if( !is_user_alive(plr)
  16.     || get_user_weapon(plr, clip, ammo) != CSW_C4 )
  17.     {
  18.         return FMRES_IGNORED;
  19.     }
  20.      
  21.     new buttons = get_uc(uc_handle, UC_Buttons);
  22.     if( buttons&IN_ATTACK )
  23.     {
  24.         buttons &= ~IN_ATTACK;
  25.         set_uc(uc_handle, UC_Buttons, buttons);
  26.          
  27.         return FMRES_SUPERCEDE;
  28.     }
  29.      
  30.     return FMRES_IGNORED;
  31. }

Szerző:  regener [2017.07.24. 17:01 ]
Hozzászólás témája:  Re: Paintball [MOD]

cs_set_user_plant(id,0,0)

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