AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cs_set_user_model (https://forums.alliedmods.net/showthread.php?t=85503)

One 02-11-2009 17:11

cs_set_user_model
 
Hi,

PHP Code:

public plugin_precache()
{
        
precache_model("models/player/god/islave.mdl")
}

public 
startround(id)

CODE:CODE

}
    
    if(
isGod[id]==1){
        
cs_set_user_model(id,"islave")
        
pauseregen[id] = 1
XXXXX
}


IDK why my model will not be showd? anyone any idea?

Exolent[jNr] 02-11-2009 17:49

Re: cs_set_user_model
 
Whenever setting a player's model, the filename must be this format:
Code:

models/player/modelname/modelname.mdl
Your folder and file must have the same name.

One 02-11-2009 17:56

Re: cs_set_user_model
 
Quote:

Originally Posted by Exolent[jNr] (Post 760105)
Whenever setting a player's model, the filename must be this format:
Code:

models/player/modelname/modelname.mdl
Your folder and file must have the same name.

Hi,

Thanks, tried, but cant see the model.

models/player/islave/islave.mdl
models/player/god/god.mdl

i worked on this plugin around 1 year ago. i couldnt get it done....idk why this will never function. first i thinked i have anything on my server.cfg that the model will not be showed.i tried on dedicated server...same problem..on another server...tried model replacer...

for this i would be run an extra plugin to replace the T model to that what i wannt. :-(

Exolent[jNr] 02-11-2009 18:08

Re: cs_set_user_model
 
Show your full code.
It may be caused by the variables in your if() statements.

One 02-11-2009 18:15

Re: cs_set_user_model
 
Quote:

Originally Posted by Exolent[jNr] (Post 760111)
Show your full code.
It may be caused by the variables in your if() statements.

Hello,

Ill send u a PM. i dont wannt to release ma code :-( its a private plug

One 02-12-2009 09:25

Re: cs_set_user_model
 
http://bllabla.ampaste.net/m632d518e Here ma code #:-(

xPaw 02-12-2009 10:07

Re: cs_set_user_model
 
its not your plugin, and its need total rewrite :D

One 02-12-2009 11:05

Re: cs_set_user_model
 
Quote:

Originally Posted by xPaw (Post 760394)
its not your plugin, and its need total rewrite :D

Hi,

i dont said thats ma plugin. i just said im trying around 1 year on this.yea what do u think why im trying to rewrite it?

xPaw 02-12-2009 11:08

Re: cs_set_user_model
 
Quote:

i dont wannt to release ma code :-( its a private plug
PHP Code:

#define AUTHOR "One" 


One 02-12-2009 12:44

Re: cs_set_user_model
 
Quote:

Originally Posted by xPaw (Post 760424)
PHP Code:

#define AUTHOR "One" 


Hi,

I just changed the author, cuz i edited & fixed many things in original code.

i dont think that we have to discussion about this,i need just help with the model. anyone know where is the problem?


All times are GMT -4. The time now is 16:53.

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