Raised This Month: $ Target: $400
 0% 

Simspon Models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vikke
New Member
Join Date: May 2005
Old 05-08-2005 , 06:00   Simspon Models
Reply With Quote #1

I don't see the problem. Im new to small.
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> public plugin_init() {         register_plugin("Simspon Models", "1.0", "vikke")         register_event("ResetHUD", "resetModel", "b")         return PLUGIN_CONTINUE } public plugin_precache() {         precache_model("models/player/simpson/terror.mdl")         precache_model("models/player/simpson/counter.mdl")         return PLUGIN_CONTINUE } public resetModel(id, level, cid) {                 if (userTeam == CS_TEAM_T) {                         cs_set_user_model(id, "terror")                 }                 else if(userTeam == CS_TEAM_CT) {                         cs_set_user_model(id, "counter")                 }         return PLUGIN_CONTINUE }
[/small]
vikke is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-08-2005 , 06:07  
Reply With Quote #2

Try renaming stuff like this, and you need to get their team first:
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> public plugin_init() {     register_plugin("Simspon Models", "1.0", "vikke")     register_event("ResetHUD", "resetModel", "b")     return PLUGIN_CONTINUE } public plugin_precache() {     precache_model("models/player/simpson_t/simpson_t.mdl")     precache_model("models/player/simpson_ct/simpson_ct.mdl")     return PLUGIN_CONTINUE } public resetModel(id) {     new CsTeams:userTeam = cs_get_user_team(id)     if (userTeam == CS_TEAM_T) {         cs_set_user_model(id, "simpson_t")     }     else if(userTeam == CS_TEAM_CT) {         cs_set_user_model(id, "simpson_ct")     }     return PLUGIN_CONTINUE }
__________________
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
ZiP*
Senior Member
Join Date: Jul 2004
Old 05-08-2005 , 06:10  
Reply With Quote #3

You don't need the return PLUGIN_CONTINUE in the plugin_init...

do you?
ZiP* is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-08-2005 , 06:12  
Reply With Quote #4

No, you don't really need it in your precache function either. I think you really only need it for hooked events.
__________________
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
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 16:49.


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