Raised This Month: $ Target: $400
 0% 

get user team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-08-2010 , 10:05   get user team
Reply With Quote #1

Hi,

I would like to ask ... Which is the best way to get user team ?

I used cs_get_user_team ... but i would like to know if there is a better one .
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-08-2010 , 10:15   Re: get user team
Reply With Quote #2

If you are using CStrike/CZero, cs_get_user_team is best
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 10-08-2010 , 10:16   Re: get user team
Reply With Quote #3

There isn't better way.Alternative :
PHP Code:
get_user_team(index) == // for T
                              
== //for CT 
SpeeDeeR is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-08-2010 , 10:20   Re: get user team
Reply With Quote #4

Quote:
Originally Posted by SpeeDeeR View Post
Alternative :
PHP Code:
get_user_team(index) == // for T
                              
== //for CT 
Be careful with this one on CS/CZ as it is known to return false positives sometimes. There is a plugin that helps fix it though.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-08-2010 , 10:26   Re: get user team
Reply With Quote #5

example ... i wanna get a users team ... his model is gign

cs_get_user_team(id, "gign" , 32)

is this how i am supposed to do it? and can you tell me what len is , i tried to search for it , all i reached to was nothing
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-08-2010 , 10:40   Re: get user team
Reply With Quote #6

Model's do not determine the team, therefore you can not use cs_get_user_team in that fashion. You have to use cs_get_user_model to get the model of a player.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-08-2010 , 15:33   Re: get user team
Reply With Quote #7

well then can you gimme an example of cs_get_user_team? ... and i still did not understand what Len is for and what it does
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-08-2010 , 15:46   Re: get user team
Reply With Quote #8

http://www.amxmodx.org/funcwiki.php?...team&go=search

I have no idea where you are getting Len from
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 10-08-2010 , 16:08   Re: get user team
Reply With Quote #9

Quote:
Originally Posted by YamiKaitou View Post
http://www.amxmodx.org/funcwiki.php?...team&go=search

I have no idea where you are getting Len from
cs_get_user_model ( index, model[], len )
matsi is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-08-2010 , 16:17   Re: get user team
Reply With Quote #10

Quote:
Originally Posted by matsi View Post
cs_get_user_model ( index, model[], len )
He is referring to len in cs get user team (which doesn't exist). Obviously there is a len param when retrieving a string in cs get user model.
__________________
Bugsy 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 10:20.


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