Raised This Month: $12 Target: $400
 3% 

HELP: Vip skins not working sometimes but without simon.amxx working :(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wizz
Member
Join Date: Mar 2010
Old 05-27-2013 , 07:46   HELP: Vip skins not working sometimes but without simon.amxx working :(
Reply With Quote #1

I have problem vip skin dont working correctly sometimes have vip skins and sometimes not..
but if i run without simon.amxx then working correctly :/
but i want both plugins..
Greetings from Estonian

Heres the VIP skins sma:
PHP Code:
/*########################################################################## 
## 
## -- www.SteamTools.net 
##      ___   _____       ___  ___   _   __   _            ___  ___   _____   _      
##     /   | |  _  \     /   |/   | | | |  \ | |          /   |/   | |  _  \ | |      
##    / /| | | | | |    / /|   /| | | | |   \| |         / /|   /| | | | | | | |      
##   / / | | | | | |   / / |__/ | | | | | |\   |        / / |__/ | | | | | | | |      
##  / /  | | | |_| |  / /       | | | | | | \  |       / /       | | | |_| | | |___  
## /_/   |_| |_____/ /_/        |_| |_| |_|  \_|      /_/        |_| |_____/ |_____| 
##                                                        
##          |__                   |__  o _|_   ___   __ __  o |__,  ___  
##      --  |__) (__|     (__(__( |  ) |  |_, (__/_ |  )  ) | |  \ (__/_ 
##                  |                                                    
## 
##   Originated as a simple idea back in 2004, it was forgotten due to 
## lack of my 'Small' coding skills. However I have progressed in recent 
## months and somehow crossed that old post with this concept in it. So 
## naturally I challenged myself to see if I could do it, and voila! I 
## could :) 
## 
##   Once you join, you play a normal person for the first round, and for 
## all remaining rounds your CT or TE models are custom. They now read 
## "ADMIN" on front and back, and also have small "A" patches on the arms. 
## I designed these models myself, it's very easy, just bring the textures 
## into photoshop, tweak out, and replace. 
## 
##   Enjoy! 
## 
## 
## CHANGELOG 
##------------------------------------------------------------------------ 
## 2) v1.1.1 - Fixed missing event 
## 1) v1.1.0 - Fixed VIP and other model bugs 
## 
## 
## INSTALLATION 
##------------------------------------------------------------------------ 
## 1) Unzip (which you may have done already) 
## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins' 
## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx' 
## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder 
## 5) -- Visit www.SteamTools.net and enjoy your new plugin! 
## 
## 
## 
## THE CVARs 
##------------------------------------------------------------------------ 
## 
## No CVARs for this plugin :) 
## 
## 
##########################################################################*/    


#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
        
register_plugin("AMX Admin Model""1.1.1""whitemike")
        
register_event("ResetHUD""resetModel""b")
        return 
PLUGIN_CONTINUE
}

public 
plugin_precache() {
        
precache_model("models/player/oika_v/oika_v.mdl")
        
precache_model("models/player/oika_te/oika_te.mdl")

        return 
PLUGIN_CONTINUE
}

public 
resetModel(idlevelcid) {
        if (
get_user_flags(id) & ADMIN_CHAT) {
                new 
CsTeams:userTeam cs_get_user_team(id)
                if (
userTeam == CS_TEAM_T) {
                        
cs_set_user_model(id"oika_te")
                }
                else if(
userTeam == CS_TEAM_CT) {
                        
cs_set_user_model(id"oika_v")
                }
                else {
                        
cs_reset_user_model(id)
                }
        }

        return 
PLUGIN_CONTINUE

Here is Simon.sma :
PHP Code:
#include < amxmodx >      
#include < cstrike >      
#include < colorchat >      
#include < fun >   
#include < hamsandwich > 

public g_iSimon;      

new const 
g_szPrefix[ ] = "^04[Jailbreak]:^01";      

public 
plugin_init()      
{      
    
register_plugin"Simon""1.0""wIzZ" );      
     
    
register_event"DeathMsg""Event_DeathMsg""a" );      
     
    
register_clcmd"say /simon""CmdSimon" );      
    
register_clcmd"say /vaheta""CmdChange" );      
     
    
register_logevent"Event_RoundEvent"3"1=Round_Start""2=Round_End" );      
    
RegisterHam(Ham_Spawn"player""player_spawn"1
     
    
set_task1.0"HudSimon", .flags="b" );    
}      

public 
plugin_precache()   
{   
    
precache_model("models/player/6ikss/6ikss.mdl")   
}   

public 
player_spawn(id

    
cs_reset_user_model(id
    
set_user_rendering(idkRenderFxNone000kRenderNormal0

public 
Event_RoundEvent()      
{        
    
g_iSimon 0;      
}      

public 
plugin_natives() register_native ("get_simon""_get_simon",0)      
public 
_get_simon(iPluginiParams) return g_iSimon;      
public 
CmdChangeid )      
{      
    if( 
id != g_iSimon )      
    {      
        
ColorChatidNORMAL"%s Sa pead olema ^03simon ^01"g_szPrefix );      
        return 
PLUGIN_HANDLED;      
    }      
     
    new 
hMenu menu_create"New Simon:""ChangeMenu_Handler" );      
     
    new 
szName32 ], szData];      
    new 
iPlayers32 ], iNum;      
    
get_playersiPlayersiNum"ae""CT" );      
     
    for( new 
0iPlayeriNumi++ )      
    {      
        
iPlayer iPlayers];      
         
        
get_user_nameiPlayerszNamecharsmaxszName ) );      
        
num_to_striPlayerszDatacharsmaxszData ) );      
         
        
menu_additemhMenuszNameszData );      
    }      
     
    
menu_displayidhMenu);      
     
    return 
PLUGIN_HANDLED;      
}      

public 
ChangeMenu_HandleridhMenuiItem )      
{      
    if( 
iItem == MENU_EXIT )      
    {      
        
menu_destroyhMenu );      
        return 
PLUGIN_HANDLED;      
    }      
     
    new 
iAccesshCallbackszData], szName32 ];      
    
menu_item_getinfohMenuiItemiAccessszDatacharsmaxszData ), szNamecharsmaxszName ), hCallback );      
     
    new 
iPlayer str_to_numszData );      
     
    if( !
is_user_aliveiPlayer ) )      
    {      
        
ColorChatidNORMAL"%s pole enam ^03simon^01."g_szPrefix );      
        return 
PLUGIN_HANDLED;      
    }      
     
    
set_user_rendering(idkRenderFxNone000kRenderNormal0
    
cs_reset_user_model(id
     
    
g_iSimon iPlayer;      
     
    
set_user_rendering(iPlayerkRenderFxGlowShell050200kRenderNormal16)    
    
cs_set_user_model(iPlayer"6ikss")   
     
    
ColorChat0NORMAL"%s ^03%s ^01on uus ^03simon^01."g_szPrefixszName );      
    return 
PLUGIN_HANDLED;      
}      


public 
CmdSimonid )      
{      
    if( 
cs_get_user_teamid ) != CS_TEAM_CT )      
    {      
        
ColorChatidNORMAL"%s ^01Sa pead olema ^03valvur ^01et olla simon."g_szPrefix );      
        return 
PLUGIN_HANDLED;      
    }      
     
    else if( 
g_iSimon == id )      
    {      
        
ColorChatidNORMAL"%s ^01Sa oled juba ^04Simon^01!"g_szPrefix );      
        return 
PLUGIN_HANDLED;      
    }      
     
    else if( 
is_user_aliveg_iSimon ) )      
    {      
        
ColorChatidNORMAL"%s ^01Keegi teine on juba simon."g_szPrefix );      
        return 
PLUGIN_HANDLED;      
    }      
     
    
g_iSimon id;    
     
    
set_user_rendering(idkRenderFxGlowShell050200kRenderNormal16)    
    
cs_set_user_model(id"6ikss")   
     
    new 
name[32];      
    
get_user_nameidname31 );      
     
    
ColorChat0NORMAL"%s ^03%s ^01 on simon."g_szPrefixname );      
    return 
PLUGIN_CONTINUE;      
     
}      


public 
HudSimon()      
{      
    
set_hudmessage01002551.00.0500.11.00.10.1);      
     
    if( !
is_user_aliveg_iSimon ) )      
    {      
        
g_iSimon 0;      
        
show_hudmessage0"" );      
        return 
PLUGIN_HANDLED;      
    }      
     
    new 
name[32];      
    
get_user_nameg_iSimonname31 );      
     
    
show_hudmessage0"%s on simon"name );      
     
    return 
PLUGIN_HANDLED;      
}      

public 
client_disconnectid )      
{      
    if( 
g_iSimon == id )      
    {      
        
g_iSimon 0;      
         
        
ColorChat0NORMAL"%s ^01praegune simon lahkus mängust."g_szPrefix );      
        return 
PLUGIN_HANDLED;      
    }      
     
    return 
PLUGIN_HANDLED;      
}      

public 
Event_DeathMsg()      
{      
    new 
victim read_data);      
     
    if( !
is_user_connectedvictim ) )      
        return 
PLUGIN_HANDLED;      
     
    if( 
victim == g_iSimon )      
    {      
        
ColorChat0NORMAL"%s ^01Praegune simon suri."g_szPrefix );      
        
g_iSimon 0;      
        return 
PLUGIN_HANDLED;      
    }      
     
    return 
PLUGIN_HANDLED;      

wizz is offline
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 05-27-2013 , 08:11   Re: HELP: Vip skins not working sometimes but without simon.amxx working :(
Reply With Quote #2

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

#define IS_VIP ADMIN_LEVEL_G

new g_iSimon;       

new const 
g_szPrefix[ ] = "^04[Jailbreak]:^01";       

public 
plugin_init()       
{       
    
register_plugin"Simon""1.0""wIzZ" );       
      
    
register_event"DeathMsg""Event_DeathMsg""a" );       
      
    
register_clcmd"say /simon""CmdSimon" );       
    
register_clcmd"say /vaheta""CmdChange" );       
      
    
register_logevent"Event_RoundEvent"3"1=Round_Start""2=Round_End" );       
    
RegisterHam(Ham_Spawn"player""player_spawn"1)  
      
    
set_task1.0"HudSimon", .flags="b" );     
}       

public 
plugin_precache()    
{    
    
precache_model("models/player/6ikss/6ikss.mdl")  
    
precache_model("models/player/oika_v/oika_v.mdl"
    
precache_model("models/player/oika_te/oika_te.mdl")
}    

public 
player_spawn(id)  
{  
    
modelcheck(id)
}  

public 
modelcheck(id)
{
    if(
get_user_flags(id) & IS_VIP)
    {
        switch(
cs_get_user_team(id))
        {
            case 
CS_TEAM_T:
            {
                
cs_set_user_model(id"oika_te")
            }
            case 
CS_TEAM_CT:
            {
                
cs_set_user_model(id"oika_v")
            }
        }
    }
    else
    {
        
cs_reset_user_model(id)  
    }
    
set_user_rendering(idkRenderFxNone000kRenderNormal0)  
}
    

public 
Event_RoundEvent()       
{         
    
g_iSimon 0;       
}       

public 
plugin_natives() register_native ("get_simon""_get_simon",0)       
public 
_get_simon(iPluginiParams) return g_iSimon;       
public 
CmdChangeid )       
{       
    if( 
id != g_iSimon )       
    {       
        
ColorChatidNORMAL"%s Sa pead olema ^03simon ^01"g_szPrefix );       
        return 
PLUGIN_HANDLED;       
    }       
      
    new 
hMenu menu_create"New Simon:""ChangeMenu_Handler" );       
      
    new 
szName32 ], szData];       
    new 
iPlayers32 ], iNum;       
    
get_playersiPlayersiNum"ae""CT" );       
      
    for( new 
0iPlayeriNumi++ )       
    {       
        
iPlayer iPlayers];       
          
        
get_user_nameiPlayerszNamecharsmaxszName ) );       
        
num_to_striPlayerszDatacharsmaxszData ) );       
          
        
menu_additemhMenuszNameszData );       
    }       
      
    
menu_displayidhMenu);       
      
    return 
PLUGIN_HANDLED;       
}       

public 
ChangeMenu_HandleridhMenuiItem )       
{       
    if( 
iItem == MENU_EXIT )       
    {       
        
menu_destroyhMenu );       
        return 
PLUGIN_HANDLED;       
    }       
      
    new 
iAccesshCallbackszData], szName32 ];       
    
menu_item_getinfohMenuiItemiAccessszDatacharsmaxszData ), szNamecharsmaxszName ), hCallback );       
      
    new 
iPlayer str_to_numszData );       
      
    if( !
is_user_aliveiPlayer ) )       
    {       
        
ColorChatidNORMAL"%s pole enam ^03simon^01."g_szPrefix );       
        return 
PLUGIN_HANDLED;       
    }       
      
    
modelcheck(id)
      
    
g_iSimon iPlayer;       
      
    
set_user_rendering(iPlayerkRenderFxGlowShell050200kRenderNormal16)     
    
cs_set_user_model(iPlayer"6ikss")    
      
    
ColorChat0NORMAL"%s ^03%s ^01on uus ^03simon^01."g_szPrefixszName );       
    return 
PLUGIN_HANDLED;       
}       


public 
CmdSimonid )       
{       
    if( 
cs_get_user_teamid ) != CS_TEAM_CT )       
    {       
        
ColorChatidNORMAL"%s ^01Sa pead olema ^03valvur ^01et olla simon."g_szPrefix );       
        return 
PLUGIN_HANDLED;       
    }       
      
    else if( 
g_iSimon == id )       
    {       
        
ColorChatidNORMAL"%s ^01Sa oled juba ^04Simon^01!"g_szPrefix );       
        return 
PLUGIN_HANDLED;       
    }       
      
    else if( 
is_user_aliveg_iSimon ) )       
    {       
        
ColorChatidNORMAL"%s ^01Keegi teine on juba simon."g_szPrefix );       
        return 
PLUGIN_HANDLED;       
    }       
      
    
g_iSimon id;     
      
    
set_user_rendering(idkRenderFxGlowShell050200kRenderNormal16)     
    
cs_set_user_model(id"6ikss")    
      
    new 
name[32];       
    
get_user_nameidname31 );       
      
    
ColorChat0NORMAL"%s ^03%s ^01 on simon."g_szPrefixname );       
    return 
PLUGIN_CONTINUE;       
      
}       


public 
HudSimon()       
{       
    
set_hudmessage01002551.00.0500.11.00.10.1);       
      
    if( !
is_user_aliveg_iSimon ) )       
    {       
        
g_iSimon 0;       
        
show_hudmessage0"" );       
        return 
PLUGIN_HANDLED;       
    }       
      
    new 
name[32];       
    
get_user_nameg_iSimonname31 );       
      
    
show_hudmessage0"%s on simon"name );       
      
    return 
PLUGIN_HANDLED;       
}       

public 
client_disconnectid )       
{       
    if( 
g_iSimon == id )       
    {       
        
g_iSimon 0;       
          
        
ColorChat0NORMAL"%s ^01praegune simon lahkus mängust."g_szPrefix );       
        return 
PLUGIN_HANDLED;       
    }       
      
    return 
PLUGIN_HANDLED;       
}       

public 
Event_DeathMsg()       
{       
    new 
victim read_data);       
      
    if( !
is_user_connectedvictim ) )       
        return 
PLUGIN_HANDLED;       
      
    if( 
victim == g_iSimon )       
    {       
        
ColorChat0NORMAL"%s ^01Praegune simon suri."g_szPrefix );       
        
g_iSimon 0;       
        return 
PLUGIN_HANDLED;       
    }       
      
    return 
PLUGIN_HANDLED;       

use only this plugin
__________________
.:My Plugins:.
WordGame

If you want anything add me to skype: hlias.zaxos or on steam Larisaios

Last edited by hLiaS; 05-27-2013 at 08:11.
hLiaS is offline
Send a message via Skype™ to hLiaS
wizz
Member
Join Date: Mar 2010
Old 05-27-2013 , 08:20   Re: HELP: Vip skins not working sometimes but without simon.amxx working :(
Reply With Quote #3

thank you very much
wizz 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 15:25.


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