Raised This Month: $ Target: $400
 0% 

Any svc_bad / plugin optimization ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 10-28-2009 , 12:49   Any svc_bad / plugin optimization ?
Reply With Quote #1

Does this plugin need any svc_bad / plugin optimization ?

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

public plugin_init() {
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1);
}

public 
plugin_precache() {
    
precache_model("models/player/vip/vip.mdl");
    
precache_model("models/player/vip/vip.mdl");
}

public 
fwHamPlayerSpawnPostid ) {
    if ( 
get_user_flags(id) & ADMIN_KICK ) {
        switch ( 
get_user_team(id) ) {
            case 
1cs_set_user_model(id"vip");
            case 
2cs_set_user_model(id"vip");
            default: 
cs_reset_user_model(id);
        }
    }

KadiR 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 17:38.


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