Raised This Month: $ Target: $400
 0% 

Help with my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 05-01-2006 , 01:18  
#7

Alright, here's what I want, I want this plugin to check clanmodels.cfg for STEAM ID's and if your STEAM ID is in the clanmodels.cfg, it will change your CS model to either clanter.mdl or clanct.mdl depending on what Team you are on...

Here's what I have

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> public plugin_init() {     register_plugin("Clan Models","0.1","Dizzy")     register_event("ResetHUD", "modelreset", "b")     return PLUGIN_HANDLED } public plugin_precache() {     precache_model("models/clanmodels/clanter.mdl")     precache_model("models/clanmodels/clanct.mdl")     return PLUGIN_CONTINUE } public modelreset(id, level, cid) {     new filepath[64]     get_configsdir(filepath, 63)     format(filepath, 63, "%s/clanmodels.cfg", filepath)     if(file_exists(filepath))     {         new output[128]         new fHandle = fopen(filepath, "rt")             if(!fHandle)             return                 for(new a = 0; !feof(fHandle); a++)             {             fgets(fHandle, output, 511)             new CsTeams:userTeam = cs_get_user_team(id)             if (userTeam == CS_TEAM_T)             {                 cs_set_user_model(id, "clanter")             }             if(userTeam == CS_TEAM_CT)             {                 cs_set_user_model(id, "clanct")             }         }     } return PLUGIN_HANDLED }

Thanks in advance =)
Dizzy is offline
Send a message via AIM to Dizzy
 



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 05:08.


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