puffserver-rocks / puffdev

container for plugin issues and etc
0 stars 0 forks source link

sm_removeweapons #12

Closed thehonker closed 2 years ago

thehonker commented 2 years ago

sm_removeweapons

Example of usage

// temp ignore round win conditions
mp_ignore_round_win_conditions "1"

// Remove all weapons from everyone
sm_removeweapons @all
>> all weapons removed - 

// end the round
sm_endround_blockhook "0"
sm_endround

// re-enable win conditions
mp_ignore_round_win_conditions "0"

Example of per-slot emptying of a single player

sm_removeweapons "GOOS" slot1
tmick0 commented 2 years ago

https://github.com/tmick0/sm_removeweapons

cba to boot my server to test this tonight but here ya go

thehonker commented 2 years ago

working as intended, had to change from round_prestart to round_end in a few hooks for it to work properly