AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Say only in spec (https://forums.alliedmods.net/showthread.php?t=74999)

AntiBots 07-28-2008 19:57

Say only in spec
 
Hi, friends,

I have a problem. How I can do to only acept /somethink only if the players is specting?

scrtxxcaz 07-28-2008 23:14

Re: Say only in spec
 
PHP Code:

#define CS_TEAM_SPEC 3
public function(id) {
     if(
get_user_team(id) == CS_TEAM_SPEC)
     {
          
//player is specting do this
     
}



AntiBots 07-28-2008 23:39

Re: Say only in spec
 
Thank. Sorry.


All times are GMT -4. The time now is 05:41.

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