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(id, PlrModel);
// 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)
__________________