Raised This Month: $ Target: $400
 0% 

Help with my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 04-29-2006 , 22:04   Help with my plugin
#1

Alright, this isn't a plugin test anymore, I guess I need help

Well here is what I have,

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> new bool:idtype[id] public plugin_init() {     register_plugin("Clan Models","0.1","Dizzy")     register_event("ResetHUD", "modelreset", "b")     new configsDir[64]     get_configsdir(configsDir, 63)     format(configsDir, 63, "%s/clan.cfg", configsDir)     return PLUGIN_HANDLED } public client_connect(id) {     idtype[id] = false } public client_disconnect(id) {     idtype[id] = false } public plugin_precache() {         precache_model("models/clanmodels/clanter.mdl")         precache_model("models/clanmodels/clanct.mdl")         return PLUGIN_CONTINUE } public modelreset(id, level, cid) {     new t_arg[16]     read_argv(4, t_arg, 15)     if (equali(t_arg, "steam") || equali(t_arg, "steamid") || equali(t_arg, "auth"))     {         idtype[id] = true     }     if (idtype[id] = true)     {         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_CONTINUE }

It is suppose to change the model of a person who is in the clan.cfg file...

So basically, you put a user's steamid into "clan.cfg" and when the round resets, their model changes to either clanter.mdl or clanct.mdl depending on what team they are on.

Thanks in advance guys!
Dizzy is offline
Send a message via AIM to Dizzy
 


Thread Tools
Display Modes

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