AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Setting team specified variables (https://forums.alliedmods.net/showthread.php?t=54377)

bwgrubbs1 04-24-2007 02:33

Setting team specified variables
 
Lets say I have a function defined so that if checks what team everyone is on and gives them weapons accordingly...how do you set it so that if someone is on this specified team it will set their footsteps = 0...i.e. silent running?

Samurai [/] 04-24-2007 08:56

Re: Setting team specified variables
 
Quote:

Originally Posted by bwgrubbs1 (Post 468991)
Lets say I have a function defined so that if checks what team everyone is on and gives them weapons accordingly...how do you set it so that if someone is on this specified team it will set their footsteps = 0...i.e. silent running?

If you need this for hide n seek use ->

PHP Code:

public HiderItems(id) {
strip_user_weapons(id)
give_item(id"weapon_flashbang")
give_item(id"weapon_flashbang")
set_user_footsteps (id1)
give_item(id"weapon_smokegrenade")


Replace that ..

bwgrubbs1 04-24-2007 11:30

Re: Setting team specified variables
 
no its for a gungame server i have...so that when you reach certain levels in the game you run silent and are invisible...hehe its kinda evil

bwgrubbs1 04-24-2007 12:31

Re: Setting team specified variables
 
btw i tried your thing

Code:
set_user_footsteps (id,1)

this does nothing...I thought maybe it needs to be

Code:
set_user_footsteps (id,0)

but again Nothing....plz help

Howdy! 04-24-2007 14:01

Re: Setting team specified variables
 
Quote:

Originally Posted by bwgrubbs1 (Post 469109)
btw i tried your thing


Code:
</p><p>set_user_footsteps (id,1)</p><p>



this does nothing...I thought maybe it needs to be


Code:
</p><p>set_user_footsteps (id,0)</p><p>



but again Nothing....plz help

Heh.. 0 means that you can hear footsteps.


All times are GMT -4. The time now is 06:35.

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