This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shiro
Junior Member
Join Date: Nov 2010
Old 11-13-2010 , 06:12   model
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "model"
#define VERSION "1.0"
#define AUTHOR "Shiro"
#define is_user_tt(%1) (get_user_team(%1)==1) 
#define is_user_ct(%1) (get_user_team(%1)==2)


new const g_ModelSuperKnife[] = "models/ModelSuperKnife.mdl"

public plugin_precache()
{
 
precache_model(g_ModelSuperKnife)
}
   
   public 
ham_ItemDeploy_Post(weapon_ent)
   
{
 if (
is_user_tt(%1))
 {
  
set_pev(ownerpev_viewmodel2g_ModelSuperKnife)
 }
 if ( 
get_user_weapon(owner) == CSW_KNIFE )
 {    
  
set_pev(ownerpev_viewmodel2g_ModelSuperKnife)
 }

Quote:
// E:\Games\scripting\mdl.sma(22) : error 029: invalid expression, assumed zero
// E:\Games\scripting\mdl.sma(22) : error 029: invalid expression, assumed zero
// E:\Games\scripting\mdl.sma(22) : warning 215: expression has no effect
// E:\Games\scripting\mdl.sma(22) : error 001: expected token: ";", but found ")
"
// E:\Games\scripting\mdl.sma(22) : fatal error 107: too many error messages on
one line
//Hi all, i have problem..
I want, that only terrorists had other model. Please help.
thanks.
Shiro 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 21:05.


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