AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set Model only for T. (https://forums.alliedmods.net/showthread.php?t=222854)

MrKiller2010 08-07-2013 09:25

Set Model only for T.
 
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 


YamiKaitou 08-07-2013 09:36

Re: Set Model only for T.
 
change fm_set_user_model to cs_set_user_model

MrKiller2010 08-07-2013 09:46

Re: Set Model only for T.
 
Quote:

Originally Posted by YamiKaitou (Post 2007659)
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 ) )



YamiKaitou 08-07-2013 09:53

Re: Set Model only for T.
 
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

MrKiller2010 08-07-2013 09:54

Re: Set Model only for T.
 
Quote:

Originally Posted by YamiKaitou (Post 2007659)
change fm_set_user_model to cs_set_user_model

Quote:

Originally Posted by YamiKaitou (Post 2007666)
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 ) )



MrKiller2010 08-07-2013 14:30

Re: Set Model only for T.
 
Tried to remove this:
PHP Code:

stock fm_reset_user_modelplayer )
{
    
    
dllfuncDLLFunc_ClientUserInfoChangedplayerengfuncEngFunc_GetInfoKeyBufferplayer ) )


still not working :S

YamiKaitou 08-07-2013 16:32

Re: Set Model only for T.
 
What is not working?

MrKiller2010 08-07-2013 16:34

Re: Set Model only for T.
 
Quote:

Originally Posted by YamiKaitou (Post 2007976)
What is not working?

What should i exactly do?
Remove the code at the end to get cs_set_user working?

YamiKaitou 08-07-2013 16:36

Re: Set Model only for T.
 
Remove the false part

DWIGHTpN 08-07-2013 19:18

Re: Set Model only for T.
 
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" )
            
        } 



All times are GMT -4. The time now is 15:45.

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