Raised This Month: $ Target: $400
 0% 

cs_set_user_team and TeamInfo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 05-07-2011 , 16:08   cs_set_user_team and TeamInfo
Reply With Quote #1

What's the difference between using cs_set_user_team() and this (except that cs_set_user_team only works witch counter-strike):
PHP Code:
public changeTeamInfo (playerteam[])
{
    
message_begin (MSG_ONEget_user_msgid ("TeamInfo"), _player)    // Tells to to modify teamInfo (Which is responsable for which time player is)
    
write_byte (player)                // Write byte needed
    
write_string (team)                // Changes player's team
    
message_end()                    // Also Needed

__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-07-2011 , 16:13   Re: cs_set_user_team and TeamInfo
Reply With Quote #2

This doesn't change your team, only team info. You'd have to use set_pdata_int() with team offset to actually change the team.

cs_get_user_team() is more efficient.
__________________
hleV 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 04:19.


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