Raised This Month: $ Target: $400
 0% 

Set Model only for T.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 08-07-2013 , 09:25   Set Model only for T.
Reply With Quote #1

How can I set a player model only for T?

PHP Code:

        else if (
cs_get_user_team(id) == CS_TEAM_T)
        {
            
give_item(id"weapon_awp")
            
cs_set_user_bpammo(idCSW_AWP30)
            
fm_set_user_modelid"mw2-soldier",false )
            
        } 
I get this error:
Code:
Error: Number of arguments does not match definition on line 464
Error: Undefined symbol "fm_set_user_model" on line 464
Line 464:
PHP Code:
fm_set_user_modelid"mw2-soldier",false 

Last edited by MrKiller2010; 08-07-2013 at 09:29.
MrKiller2010 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-07-2013 , 09:36   Re: Set Model only for T.
Reply With Quote #2

change fm_set_user_model to cs_set_user_model
__________________
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
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 08-07-2013 , 09:46   Re: Set Model only for T.
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
change fm_set_user_model to cs_set_user_model
PHP Code:
    cs_set_user_modelid"mw2-soldier",false 
Code:
Error: Number of arguments does not match definition on line 476
I got this at the end of the code:
PHP Code:
stock fm_reset_user_modelplayer )
{
    
    
dllfuncDLLFunc_ClientUserInfoChangedplayerengfuncEngFunc_GetInfoKeyBufferplayer ) )

MrKiller2010 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-07-2013 , 09:53   Re: Set Model only for T.
Reply With Quote #4

fm_* functions are inefficient, don't use them.

There are only 2 parameters for cs_set_user_model, not sure where you got the third 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
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 08-07-2013 , 09:54   Re: Set Model only for T.
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
change fm_set_user_model to cs_set_user_model
Quote:
Originally Posted by YamiKaitou View Post
fm_* functions are inefficient, don't use them.

There are only 2 parameters for cs_set_user_model, not sure where you got the third from
So i should remove the code on the end of the plugin?

This:
PHP Code:
stock fm_reset_user_modelplayer )
{
    
    
dllfuncDLLFunc_ClientUserInfoChangedplayerengfuncEngFunc_GetInfoKeyBufferplayer ) )


Last edited by MrKiller2010; 08-07-2013 at 09:54.
MrKiller2010 is offline
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 08-07-2013 , 14:30   Re: Set Model only for T.
Reply With Quote #6

Tried to remove this:
PHP Code:
stock fm_reset_user_modelplayer )
{
    
    
dllfuncDLLFunc_ClientUserInfoChangedplayerengfuncEngFunc_GetInfoKeyBufferplayer ) )

still not working :S

Last edited by MrKiller2010; 08-07-2013 at 14:30.
MrKiller2010 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-07-2013 , 16:32   Re: Set Model only for T.
Reply With Quote #7

What is not working?
__________________
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
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 08-07-2013 , 16:34   Re: Set Model only for T.
Reply With Quote #8

Quote:
Originally Posted by YamiKaitou View Post
What is not working?
What should i exactly do?
Remove the code at the end to get cs_set_user working?
MrKiller2010 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-07-2013 , 16:36   Re: Set Model only for T.
Reply With Quote #9

Remove the false part
__________________
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
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 08-07-2013 , 19:18   Re: Set Model only for T.
Reply With Quote #10

Stock fm_* is most slowly than real natives .
PHP Code:

        else if (
cs_get_user_team(id) == CS_TEAM_T)
        {
            
give_item(id"weapon_awp")
            
cs_set_user_bpammo(idCSW_AWP30)
            
cs_reset_user_model(id)
            
cs_set_user_modelid"mw2-soldier" )
            
        } 

Last edited by DWIGHTpN; 08-07-2013 at 19:19.
DWIGHTpN 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 15:45.


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