AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Stripping weapons and restricting buy (https://forums.alliedmods.net/showthread.php?t=55328)

topnotch 05-19-2007 16:48

Stripping weapons and restricting buy
 
I'm making a script to grant everyone a para and duals. They could buy their own rifle before I exec the script. I'm guessing I can use uaio_strip @ALL to strip (I think that's the command) but how can I use either AMX or UAIO to temporarily restrict purchasing weapons? Our buytime now is at 90 sec. Here's what I have so far.

Code:

alias wait5 "wait;wait;wait;wait;wait"
alias wait10 "wait5;wait5"

say @@gPARA TIME
wait5
say @@gPARA TIME
wait5
say @@gPARA TIME
wait5
say @@gPARA TIME
wait10

wait10
uaio_strip @ALL
wait10
uaio_weapon @ALL 51
wait10
uaio_weapon @ALL 61
wait10
uaio_weapon @ALL 72
wait10
uaio_weapon @ALL 15
wait10
uaio_weapon @ALL 62
wait10
uaio_weapon @ALL 94
wait10

I'm hoping the weapon codes are right. They're para, primary ammo, kevlar, duals, secondary ammo, and nade set (at least that's what I'm wanting). Thanks.


All times are GMT -4. The time now is 10:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.