This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Players Models 1.3.1 ( 13 nov 2010 )


Post New Thread Reply   
 
Thread Tools Display Modes
Colex
Senior Member
Join Date: Feb 2014
Old 10-16-2014 , 15:11   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #581

Still has bug

Someone could properly fix the plugin?

He has to download:

models/player/name/name.mdl
and
models/player/name/nameT.mdl

Last edited by Colex; 10-16-2014 at 15:17.
Colex is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2014 , 02:44   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #582

Plugin should do that already:

PHP Code:
    formatex(szFileToPrecachecm(szFileToPrecache), "models/player/%s/%sT.mdl"szModelszModel);
    if( 
file_existsszFileToPrecache ) )
    {
        
precache_model(szFileToPrecache);
        return 
1;
    }
    
formatex(szFileToPrecachecm(szFileToPrecache), "models/player/%s/%st.mdl"szModelszModel);
    if( 
file_existsszFileToPrecache ) )
    {
        
precache_model(szFileToPrecache);
        return 
1;
    } 
As you can see, it check for t or T model.
If that doesn't work, you can try to change precache_model by precache_generic for these 2, which should be more appropriate.
__________________

Last edited by Arkshine; 10-17-2014 at 02:45.
Arkshine is offline
Colex
Senior Member
Join Date: Feb 2014
Old 10-17-2014 , 07:48   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #583

Quote:
Originally Posted by Arkshine View Post
Plugin should do that already:

PHP Code:
    formatex(szFileToPrecachecm(szFileToPrecache), "models/player/%s/%sT.mdl"szModelszModel);
    if( 
file_existsszFileToPrecache ) )
    {
        
precache_model(szFileToPrecache);
        return 
1;
    }
    
formatex(szFileToPrecachecm(szFileToPrecache), "models/player/%s/%st.mdl"szModelszModel);
    if( 
file_existsszFileToPrecache ) )
    {
        
precache_model(szFileToPrecache);
        return 
1;
    } 
As you can see, it check for t or T model.
If that doesn't work, you can try to change precache_model by precache_generic for these 2, which should be more appropriate.

Still not working ...

He has to download the two files in the folder models / player / my_model:

my_model.mdl
my_modelT.mdl

Example model:

http://cs.gamebanana.com/skins/122982 (He has two .mdl files)
Colex is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 10-17-2014 , 07:55   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #584

Quote:
Originally Posted by Colex View Post
Still not working ...

He has to download the two files in the folder models / player / my_model:

my_model.mdl
my_modelT.mdl

Example model:

http://cs.gamebanana.com/skins/122982 (He has two .mdl files)
and whats the issue of having to download the 2 files?...
Syturi0 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2014 , 08:02   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #585

Quote:
Originally Posted by Colex View Post
Still not working ...

He has to download the two files in the folder models / player / my_model:

my_model.mdl
my_modelT.mdl

Example model:

http://cs.gamebanana.com/skins/122982 (He has two .mdl files)
Code does already that and I don't see any problem with the code.
If it doesn't download, this can mean only such file doesn't exist on the server.
__________________
Arkshine is offline
Colex
Senior Member
Join Date: Feb 2014
Old 10-17-2014 , 08:03   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #586

This plugin is only by downloading one file!

It does not download the two files! He has to download the two files if it exists!

You must download .mdl and T.mdl

Last edited by Colex; 10-17-2014 at 08:05. Reason: my bad english
Colex is offline
Colex
Senior Member
Join Date: Feb 2014
Old 10-17-2014 , 08:04   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #587

Quote:
Originally Posted by Arkshine View Post
Code does already that and I don't see any problem with the code.
If it doesn't download, this can mean only such file doesn't exist on the server.
The code does not do this, you must understand!
The code only downloads one file!
Colex is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 10-17-2014 , 08:13   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #588

Quote:
Originally Posted by Colex View Post
.. you must understand!
and you must understand (too) that:
  • this plugin is working correctly for models requiring a Texture file.
  • I have already told you what to do.
  • will test right now and edit this main post with proofs.
edit:
I made some tests in a local stand-alone server:
your problem !
__________________

Last edited by ANTICHRISTUS; 10-17-2014 at 10:31. Reason: problerms with screenshots.
ANTICHRISTUS is offline
Old 10-17-2014, 08:46
Bwsyd2ton
This message has been deleted by Arkshine. Reason: Spambot
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2014 , 09:33   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #589

Quote:
Originally Posted by Colex View Post
The code does not do this, you must understand!
The code only downloads one file!
The code I extracted from this plugin and showed you in preview post, does exactly that. I know how to code so I can tell.
__________________

Last edited by Arkshine; 10-17-2014 at 09:34.
Arkshine is offline
Meep69
Member
Join Date: Jan 2014
Old 10-24-2014 , 08:45   Re: Players Models 1.3.1 ( 13 nov 2010 )
Reply With Quote #590

umm, the plugin doesnt change the player models to my custom, it is precaching and downloading when people join the server, but it doesnt change from the default models.

I had this plugin running on a server for about half year ago and it worked fine :s
This is for Condition Zero.

Theres no errors in the plugin or/ any of the plugins. Everything working except it wont change from default.

Anyone with a clue why? Possible solutions?
Meep69 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 19:32.


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