Raised This Month: $12 Target: $400
 3% 

Doubt, pick up names times


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FeehSK
Junior Member
Join Date: Jul 2019
Location: MT - BRAZIL.
Old 07-20-2019 , 14:51   Doubt, pick up names times
Reply With Quote #1

I wanted to know if this code is correct to get a player's name from each team.

if (cs_get_user_team (ibestplayerT) == CS_TEAM_T)
{
get_user_name (ibestplayerT, xPlayerNameT, 31)
}

if (cs_get_user_team (ibestplayerCT) == CS_TEAM_CT)
{
get_user_name (ibestplayerCT, xPlayerNameCT, 31)
}
FeehSK is offline
Send a message via Skype™ to FeehSK
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-20-2019 , 14:55   Re: Doubt, pick up names times
Reply With Quote #2

Judging from variable name 'ibestplayerT', you know that he is a Terrorist, so why are you still checking his team? Same goes for ibestplayerCT.
__________________
edon1337 is offline
FeehSK
Junior Member
Join Date: Jul 2019
Location: MT - BRAZIL.
Old 07-20-2019 , 15:01   Re: Doubt, pick up names times
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
Judging from variable name 'ibestplayerT', you know that he is a Terrorist, so why are you still checking his team? Same goes for ibestplayerCT.
So I asked if it's correct, what would be the correct code?
FeehSK is offline
Send a message via Skype™ to FeehSK
thEsp
BANNED
Join Date: Aug 2017
Old 07-20-2019 , 15:06   Re: Doubt, pick up names times
Reply With Quote #4

It does not matter what team player is, you can still get his name in "universal" way.
thEsp is offline
FeehSK
Junior Member
Join Date: Jul 2019
Location: MT - BRAZIL.
Old 07-20-2019 , 15:07   Re: Doubt, pick up names times
Reply With Quote #5

Quote:
Originally Posted by thEsp View Post
It does not matter what team player is, you can still get his name in "universal" way.
Yes, but in case I want to get better from each team

Last edited by FeehSK; 07-20-2019 at 15:07.
FeehSK is offline
Send a message via Skype™ to FeehSK
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-20-2019 , 15:09   Re: Doubt, pick up names times
Reply With Quote #6

You need to tell me what the purpose of the plugin is so I can judge the correctness.
__________________
edon1337 is offline
FeehSK
Junior Member
Join Date: Jul 2019
Location: MT - BRAZIL.
Old 07-20-2019 , 15:11   Re: Doubt, pick up names times
Reply With Quote #7

Quote:
Originally Posted by edon1337 View Post
You need to tell me what the purpose of the plugin is so I can judge the correctness.
It is when to give x round, to show the best player of each team
FeehSK is offline
Send a message via Skype™ to FeehSK
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-20-2019 , 15:27   Re: Doubt, pick up names times
Reply With Quote #8

Send the full code.
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-20-2019 , 16:47   Re: Doubt, pick up names times
Reply With Quote #9

There is an entire section related for help about scripting. Why did you post in the plugin requests one?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
FeehSK
Junior Member
Join Date: Jul 2019
Location: MT - BRAZIL.
Old 07-20-2019 , 17:36   Re: Doubt, pick up names times
Reply With Quote #10

Quote:
Originally Posted by OciXCrom View Post
There is an entire section related for help about scripting. Why did you post in the plugin requests one?
Sorry, I'm new to the forum.
FeehSK is offline
Send a message via Skype™ to FeehSK
Reply


Thread Tools
Display Modes

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 16:32.


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