Raised This Month: $ Target: $400
 0% 

Can't find a disable on team snippet or resource


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tww917
Member
Join Date: Mar 2014
Old 04-05-2014 , 15:25   Can't find a disable on team snippet or resource
Reply With Quote #1

I am not very skilled at coding, however sometimes I find easy snippets on the forums that I can implement with my limited knowledge.

Was wondering if anyone had a link or maybe perhaps can provide me an example on how to limit an action when on a certain team (spectator).

I am simply trying to disable hats when my players are in spec.
tww917 is offline
joac1144
Senior Member
Join Date: Dec 2012
Location: Copenhagen, Denmark
Old 04-06-2014 , 06:42   Re: Can't find a disable on team snippet or resource
Reply With Quote #2

GetClientTeam
?
__________________
joac1144 is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 04-06-2014 , 14:39   Re: Can't find a disable on team snippet or resource
Reply With Quote #3

Quote:
Originally Posted by joac1144 View Post
More like this:
PHP Code:
if(GetClientTeam(client) == 0)
{
          
// Code if player is in unassigned team
}
else if(
GetClientTeam(client) == 1)
{
          
// code if player is in spectator team
}
else
{
          
// if player is in other team than unassigned or spectator

__________________
...

Last edited by Oshizu; 04-06-2014 at 14:41.
Oshizu is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:23.


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