Raised This Month: $51 Target: $400
 12% 

Model by SteamID


Post New Thread Reply   
 
Thread Tools Display Modes
joka69
Senior Member
Join Date: Apr 2005
Old 10-17-2005 , 12:32  
Reply With Quote #61

I was thinking the same thing
__________________
joka69 is offline
Send a message via MSN to joka69
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-18-2005 , 12:24  
Reply With Quote #62

can someone try this for me??
I think it should work...im not sure...like i said im a pretty noobie scriptor...

Code:
#include <amxmodx>        #include <amxmisc>        #include <cstrike>        #define MAX_STUFF  64        /* / How it works        g_szInfo[i][0] = AuthID        g_szInfo[i][1] = Model        / */        new g_szInfo[MAX_STUFF][2][65]        new g_iCount = 0        public plugin_init()        {            register_plugin("playermodel", "0.2", "scriptyboy")              register_event("ResetHUD", "resetModel", "b")        }        public ReadFile()        {            new szFile[66]            get_configsdir( szFile , 65 )            format(szFile , 65 , "%s/models.ini",szFile)            if(!file_exists(szFile))          {                  log_amx("[ChickenSuit] File ^"%s^" does not exist.",szFile)                return PLUGIN_HANDLED          }            new szLine[101] , line = 0, len = 0            while(read_file(szFile, line++ , szLine , 100 , len) && (g_iCount < MAX_STUFF) )            {                if(szLine[0] == ';' || !len) continue                strbreak(szLine, g_szInfo[g_iCount][0] , 63 , g_szInfo[g_iCount][1] , 63)                g_iCount++              }              return PLUGIN_CONTINUE        }        public plugin_precache() {              ReadFile()      for(new i = 0; i < g_iCount; i++)            {               precache_model(g_szInfo[i][1])      }        }            public resetModel(id, level, cid) {                  new authid[50]                    get_user_authid(id,authid,49)                    for(new i = 0; i < g_iCount; i++)                {                     if(equali(authid,g_szInfo[i][0])) {                               new CsTeams:userTeam = cs_get_user_team(id)                             if (userTeam == CS_TEAM_T) {                                     cs_set_user_model(id, g_szInfo[id][0] )                       }                             else if(userTeam == CS_TEAM_CT) {                                     cs_set_user_model(id, g_szInfo[id][0] )                       }                             else {                                     cs_reset_user_model(id)                             }                        }                }                  return PLUGIN_CONTINUE          }
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 10-29-2005 , 12:02  
Reply With Quote #63

doesnt work.
Plz make a working script
Mulan is offline
Send a message via ICQ to Mulan
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-31-2005 , 13:00  
Reply With Quote #64

i am stuck on this one guys...maybe v3x or hawk can come and take this over?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 11-17-2005 , 11:58  
Reply With Quote #65

plz someone like v3x fix this lol
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 11-18-2005 , 08:00  
Reply With Quote #66

BUMP

F
I
X
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 11-18-2005 , 08:07  
Reply With Quote #67

Yeah I wait too...
plz fix it
Mulan is offline
Send a message via ICQ to Mulan
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 11-18-2005 , 18:24  
Reply With Quote #68

WILL someone please come and fix the plugin?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
commonbullet
Veteran Member
Join Date: Oct 2005
Old 11-18-2005 , 22:16  
Reply With Quote #69

I guess I've managed to make it work, but since it's a plugin that's under development by boadmin, I suppose it wouldn't be neat to run over his script by posting yet another attempt. Also I'm too newbie in here.

So I'd suggest this:

- plugin_precache seems to be called before ReadFile and plugin_init, so it won't cache anything because the variables hadn't been set - move the "readfile" settings to plugin_precache function
- this seems to have no effect:
Code:
 if (userTeam == CS_TEAM_T) {       
                           cs_set_user_model(id, "model" )
                   }       
                   else if(userTeam == CS_TEAM_CT) {       
                           cs_set_user_model(id, "model" )
                   }       
                   else {       
                           cs_reset_user_model(id)       
                   }       
              }
- replace "model" string in cs_set_user_model with the correct variable
- use game default directory structure to make things easier.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 11-19-2005 , 17:35  
Reply With Quote #70

Quote:
Originally Posted by commonbullet
I guess I've managed to make it work, but since it's a plugin that's under development by Suicid3, I suppose it wouldn't be neat to run over his script by posting yet another attempt. Also I'm too newbie in here.
Ahem....Suicid3 helped scriptyboy AKA boadmin make this plugin...even though Suicid3 put alot into this plugin, it still remains the "property" of boadmin(scriptyboy)

Thanks for the help.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
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 17:48.


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