File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ namespace CTF . Application . Players . GeneralCommands ;
2+
3+ public class VipCommands : ISystem
4+ {
5+ [ PlayerCommand ( "saw" ) ]
6+ public void Saw ( Player player )
7+ {
8+ if ( player . HasLowerRoleThan ( RoleId . VIP ) )
9+ return ;
10+
11+ player . GiveWeapon ( Weapon . Chainsaw , 1 ) ;
12+ }
13+
14+ [ PlayerCommand ( "spray" ) ]
15+ public void Spray ( Player player )
16+ {
17+ if ( player . HasLowerRoleThan ( RoleId . VIP ) )
18+ return ;
19+
20+ player . GiveWeapon ( Weapon . Spraycan , IWeapon . UnlimitedAmmo ) ;
21+ }
22+
23+ [ PlayerCommand ( "teargas" ) ]
24+ public void Teargas ( Player player )
25+ {
26+ if ( player . HasLowerRoleThan ( RoleId . VIP ) )
27+ return ;
28+
29+ player . GiveWeapon ( Weapon . Teargas , IWeapon . UnlimitedAmmo ) ;
30+ }
31+ }
Original file line number Diff line number Diff line change 2222global using CTF . Application . Players ;
2323global using CTF . Application . Players . Accounts ;
2424global using CTF . Application . Players . Accounts . Services ;
25+ global using CTF . Application . Players . Weapons ;
2526global using CTF . Application . Players . Ranks ;
2627global using CTF . Application . Players . Combos ;
2728global using CTF . Application . Players . Combos . Services ;
You can’t perform that action at this time.
0 commit comments