Raised This Month: $ Target: $400
 0% 

[ReQ] Block Model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Linkin Hisoka
Senior Member
Join Date: Sep 2014
Location: Morocco, Marrakesh
Old 05-04-2015 , 18:24   Re: [ReQ] Block Model
Reply With Quote #8

i put this plugin in server and i see model in the plugin and normal original models GiGn - Urban - ...


Code :
PHP Code:
#include <amxmodx>
#include <cstrike>

public plugin_init() {
    
register_plugin("Players Models""1.0""Medox*")
    
register_event("ResetHUD""Reset_Model""b")
    
}

public 
plugin_precache(){
    
    
precache_model "models/player/ng_furien/ng_furien.mdl";
    
precache_model "models/player/ng_antifurien/ng_antifurien.mdl";
    
precache_model "models/player/ng_antifurien_admin/ng_antifurien_admin.mdl";      
}

public 
Reset_Model(id)
{
    if (
cs_get_user_team(id) == CS_TEAM_T){
        
cs_set_user_model(id"ng_furien");
    }
    else     
        if(
cs_get_user_team(id) == CS_TEAM_CT){
        
cs_set_user_model(id"ng_antifurien");
    }
    
    if(
get_user_flags(id) & ADMIN_KICK){
        if (
cs_get_user_team(id) == CS_TEAM_CT){
            
cs_set_user_model(id"ng_antifurien_admin");
        }
    }

__________________
Moroccan and proud
Linkin Hisoka 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 20:09.


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