Raised This Month: $ Target: $400
 0% 

Help with my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-29-2006 , 23:16  
#2

It's not going to work.

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)     loadSettings(configsDir) // this function doesn't exist!     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 } // You need to delay this slightly with a task and such public modelreset(id, level, cid) {     new t_arg[16]     read_argv(4, t_arg, 15) // what the hell is this? jibberish, eh?     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) // it's CsTeams, not CSTEAMS         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 needs some major work.

Moving this to "Scripting Help".
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
 



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