Raised This Month: $ Target: $400
 0% 

Can anyone help me with if im simon then my skin changes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wizz
Member
Join Date: Mar 2010
Old 05-25-2013 , 07:48   Can anyone help me with if im simon then my skin changes
Reply With Quote #1

now i have problem when i take at SHOP invisible it wont work and if i take at SHOP ct skin it wont work to :S :S can anyone help pls

sma is down..

Last edited by wizz; 05-26-2013 at 11:05.
wizz is offline
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 05-25-2013 , 11:20   Re: Can anyone help me with if im simon then my skin changes
Reply With Quote #2

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

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" );   
    
    
set_task1.0"HudSimon", .flags="b" ); 
    
set_task1.0"glowandmodelcheck"___"b"
}   

public 
plugin_precache()
{
    
precache_model("models/player/simon/simon.mdl")
    
precache_model("models/player/ctmodel/ctmodel.mdl")
}

public 
glowandmodelcheck() 

    new 
players[32], numplayerss
    
get_playersplayersnum"a" ); 
    
    for( new 
0numi++ ) 
    { 
        
playerss players[i
        
        if(
playerss == g_iSimon
        { 
            
set_user_rendering(playersskRenderFxGlowShell025550kRenderNormal16
            
cs_set_user_model(playerss"simon")
        } 
        else 
        {
            
set_user_rendering(playersskRenderFxNone000kRenderNormal0
            
cs_set_user_model(playerss"ctmodel")
        }
    } 


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;   
    }   
    
    
g_iSimon iPlayer;   
    
    
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 ^01selleks."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 on juba Simon."g_szPrefix );   
        return 
PLUGIN_HANDLED;   
    }   
    
    
g_iSimon id;   
    
    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 mangust."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;   

i take the sma of your previous request with glow and i added the models just change the name of models if you don't know how to do it just change where you see simon with your model name without .mdl and do the same for the ctmodel
__________________
.:My Plugins:.
WordGame

If you want anything add me to skype: hlias.zaxos or on steam Larisaios
hLiaS is offline
Send a message via Skype™ to hLiaS
wizz
Member
Join Date: Mar 2010
Old 05-25-2013 , 19:17   Re: Can anyone help me with if im simon then my skin changes
Reply With Quote #3

thanks
wizz is offline
wizz
Member
Join Date: Mar 2010
Old 05-25-2013 , 19:25   Re: Can anyone help me with if im simon then my skin changes
Reply With Quote #4

Quote:
Originally Posted by hLiaS View Post
PHP Code:
#include < amxmodx >   
#include < cstrike >   
#include < colorchat >   
#include < fun > 

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" );   
    
    
set_task1.0"HudSimon", .flags="b" ); 
    
set_task1.0"glowandmodelcheck"___"b"
}   

public 
plugin_precache()
{
    
precache_model("models/player/simon/simon.mdl")
    
precache_model("models/player/ctmodel/ctmodel.mdl")
}

public 
glowandmodelcheck() 

    new 
players[32], numplayerss
    
get_playersplayersnum"a" ); 
    
    for( new 
0numi++ ) 
    { 
        
playerss players[i
        
        if(
playerss == g_iSimon
        { 
            
set_user_rendering(playersskRenderFxGlowShell025550kRenderNormal16
            
cs_set_user_model(playerss"simon")
        } 
        else 
        {
            
set_user_rendering(playersskRenderFxNone000kRenderNormal0
            
cs_set_user_model(playerss"ctmodel")
        }
    } 


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;   
    }   
    
    
g_iSimon iPlayer;   
    
    
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 ^01selleks."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 on juba Simon."g_szPrefix );   
        return 
PLUGIN_HANDLED;   
    }   
    
    
g_iSimon id;   
    
    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 mangust."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;   

i take the sma of your previous request with glow and i added the models just change the name of models if you don't know how to do it just change where you see simon with your model name without .mdl and do the same for the ctmodel
i have problem in server now all terrorists looks like ct :S
wizz is offline
darcadarca
Senior Member
Join Date: Feb 2012
Location: Romania
Old 05-26-2013 , 01:45   Re: Can anyone help me with if im simon then my skin changes
Reply With Quote #5

use cs_reset_model(id) when round finish
__________________
hqqqqqqqq
darcadarca is offline
Send a message via Yahoo to darcadarca
wizz
Member
Join Date: Mar 2010
Old 05-26-2013 , 02:59   Re: Can anyone help me with if im simon then my skin changes
Reply With Quote #6

ok i try that
wizz is offline
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 05-26-2013 , 07:29   Re: Can anyone help me with if im simon then my skin changes
Reply With Quote #7

darcadarca is right but if you want to have other model for terrorists then just add on playerspawn or on roundstart
Quote:
if(cs_get_user_team(id) == CS_TEAM_T)
{
cs_set_user_model(id, "tmodel")
}
and add it to plugin_precache of course
__________________
.:My Plugins:.
WordGame

If you want anything add me to skype: hlias.zaxos or on steam Larisaios
hLiaS is offline
Send a message via Skype™ to hLiaS
wizz
Member
Join Date: Mar 2010
Old 05-26-2013 , 09:29   Re: Can anyone help me with if im simon then my skin changes
Reply With Quote #8

now i have problem when i take at SHOP invisible it wont work and if i take at SHOP ct skin it wont work to :S :S can anyone help pls?

Last edited by wizz; 05-26-2013 at 09:29.
wizz is offline
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 05-26-2013 , 09:59   Re: Can anyone help me with if im simon then my skin changes
Reply With Quote #9

give the code here
__________________
.:My Plugins:.
WordGame

If you want anything add me to skype: hlias.zaxos or on steam Larisaios
hLiaS is offline
Send a message via Skype™ to hLiaS
wizz
Member
Join Date: Mar 2010
Old 05-26-2013 , 10:01   Re: Can anyone help me with if im simon then my skin changes
Reply With Quote #10

heres the code:

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

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" );    
     
    
set_task1.0"HudSimon", .flags="b" );  
    
set_task1.0"glowandmodelcheck"___"b")  
}    

public 
plugin_precache() 

    
precache_model("models/player/6ikss/6ikss.mdl"


public 
glowandmodelcheck()  
{  
    new 
players[32], numplayerss;  
    
get_playersplayersnum"a" );  
     
    for( new 
0numi++ )  
    {  
        
playerss players[i]  
         
        if(
playerss == g_iSimon)  
        {  
            
set_user_rendering(playersskRenderFxGlowShell050200kRenderNormal16)  
            
cs_set_user_model(playerss"6ikss"
        }  
        else  
        { 
            
set_user_rendering(playersskRenderFxNone000kRenderNormal0)
            
cs_reset_user_model(playerss);
        } 
    }  
}  

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;    
    }    
     
    
g_iSimon iPlayer;    
     
    
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;    
     
    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
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 14:26.


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