Raised This Month: $ Target: $400
 0% 

DoD Set Model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
awpticaL
Member
Join Date: Jul 2004
Location: EAST US
Old 05-18-2007 , 04:32   DoD Set Model
Reply With Quote #1

Alright, I'm trying to determine if the user is on Axis(Bot or not) and then set their model to whatever I am using. If they aren't on Axis, it leaves their model to default.

Pretty simple, yet I'm a noob and it's 4AM

..

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <dodx> #define PLUGIN "DoD Models" #define VERSION "1.0" #define AUTHOR "awpticaL`" public plugin_init() {       register_plugin(PLUGIN, VERSION, AUTHOR)       register_event("ResetHUD", "setModel", "b")         }   public plugin_precache() {       precache_model("models/hat_axis.mdl")       precache_model("models/helmet_axis.mdl")     precache_model("models/player/axis-inf/axis-inf.mdl")     precache_model("models/player/axis-inf/axis-infT.mdl") }           public setModel(id) {         new dodteams:userTeam = get_user_team(id)     if userTeam == 1 {         dod_set_model(id,"axis-inf")     }     else {         dod_clear_model(id)     } }

Code:
Warning: Tag mismatch on line 26
Error: Expected token: "(", but found "-identifier-" on line 26

Any information on how to fix this would be great.
I could also use a pointer on how it happened so I can avoid it in the future.
__________________
[img]http://img247.**************/img247/1166/userbar414943lj2.gif[/img]
[img]http://img116.**************/img116/527/ownage39ch.jpg[/img]
awpticaL is offline
Send a message via AIM to awpticaL Send a message via MSN to awpticaL
 



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 10:34.


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