File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ public override void Fun(FunMatchPlugin plugin)
50
50
if ( cur_weapon . DesignerName == "weapon_c4" || cur_weapon . DesignerName == "weapon_knife" || cur_weapon . DesignerName == "weapon_knife_t" )
51
51
return HookResult . Continue ;
52
52
53
- @event . Userid ! . DropActiveWeapon ( ) ;
53
+ player ! . DropActiveWeapon ( ) ;
54
54
55
- @event . Userid ! . GiveNamedItem ( csItem ) ;
55
+ player ! . GiveNamedItem ( csItem ) ;
56
56
Server . NextFrame ( ( ) => {
57
57
cur_weapon ! . Remove ( ) ;
58
58
if ( pawn ! . WeaponServices ! . ActiveWeapon . Get ( ) is null )
59
59
{
60
- @event . Userid ! . GiveNamedItem ( CsItem . Knife ) ;
60
+ player ! . GiveNamedItem ( CsItem . Knife ) ;
61
61
}
62
62
} ) ;
63
63
return HookResult . Continue ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public override void Fun(FunMatchPlugin plugin)
28
28
Server . NextFrame ( ( ) => {
29
29
if ( pawn ! . WeaponServices ! . ActiveWeapon . Get ( ) is null )
30
30
{
31
- @event . Userid ! . GiveNamedItem ( CsItem . Knife ) ;
31
+ player ! . GiveNamedItem ( CsItem . Knife ) ;
32
32
}
33
33
} ) ;
34
34
return HookResult . Continue ;
You can’t perform that action at this time.
0 commit comments