Raised This Month: $ Target: $400
 0% 

How to use cs_get_user_team() and what is the name of a player entity?(ALMOST SOLVED)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 08-05-2008 , 17:44   How to use cs_get_user_team() and what is the name of a player entity?(ALMOST SOLVED)
Reply With Quote #1

1. How can I use the cs_get_user_team() function?(SOLVED)
I have tried doing the following:
PHP Code:
new CsInternalModel:PlrModel;
 
public 
my_func(id)
{
        new 
Team cs_get_user_team(idPlrModel);
        
// My code here...
        // bla bla bla....

But when I try to compile it says:
Code:
Warning: Tag mismatch on line 1080
(SOLVED)

2. What is the name of the player entitiy?(SOLVED)
For example, if I wanna use the FM_SetModel() function, that its parameters are:
Code:
FM_SetModel(ent, const szModel[])
What do I need to type in the "ent" parameter to get a player? (Problem solved, thanks to Peoples Army)

3. I am working on a basic plugin, and there are WAY too many lines in it for a plugin that does something that basic (setting up player's health, money and armor) and I just wanted to know the ways to make less lines and save memory... and causing less laggs... etc.

Thanks alot for any helpers! (+karma of course)
__________________
O o
/¯________________________
| IMMA FIRIN' MAH LAZOR!!!
\_¯¯¯

Last edited by Dores; 08-06-2008 at 22:14. Reason: solved but more questions
Dores is offline
 


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 05:40.


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