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

NEED HELP: When i die the skins stays next round :(


Post New Thread Reply   
 
Thread Tools Display Modes
wizz
Member
Join Date: Mar 2010
Old 05-27-2013 , 04:38   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #11

Quote:
Originally Posted by EpicMonkey View Post
Show us what you're trying?

Edit: Suggestions/Requests Section, my bad


As Backstabnoob suggested here: http://forums.alliedmods.net/showthread.php?t=216880

Why not reset their models in deathmsg

PHP Code:
if( victim == g_isimon )       
    {
        
cs_reset_user_model(victim)
        
colorchat0normal"%s ^01praegune simon suri."g_szprefix );       
        
g_isimon 0;       
        return 
plugin_handled;       
    }       

     
set_user_rendering(idkRenderFxNone000kRenderNormal0)
     
cs_reset_user_model(id
i try that way but error..
what line where to at ?
wizz is offline
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 05-27-2013 , 04:48   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #12

PHP Code:
#include < amxmodx >        
#include < cstrike >        
#include < chatcolor >        
#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" );  
    
register_logevent("event_roundend"2"1=Round_End"); 
     
    
set_task1.0"hudsimon", .flags="b" );      
}        

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

public 
event_roundevent()        
{           
    
g_isimon 0;        
}        

public 
event_roundend()        
{        
    new 
players[32], numplayerss;      
    
get_playersplayersnum"a" );      
     
    for( new 
0numi++ )      
    {      
        
playerss players[i]      
        
cs_reset_user_model(playerss)  
        
set_user_rendering(playersskRenderFxNone000kRenderNormal0)  
    }   
}        

public 
plugin_natives() register_native ("get_simon""_get_simon",0)        
public 
_get_simon(ipluginiparams) return g_isimon;        
public 
cmdchangeid )        
{        
    if( 
id != g_isimon )        
    {        
        
ColorChatidRed"^1%s sa pead olema ^3simon ^1"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 ) )        
    {        
        
ColorChatidRed"%s pole enam ^3simon^1."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")     
     
    
ColorChat0Red"%s ^3%s ^1on uus ^3simon^1."g_szprefixszname );        
    return 
PLUGIN_HANDLED;        
}        


public 
cmdsimonid )        
{        
    if( 
cs_get_user_teamid ) != CS_TEAM_CT )        
    {        
        
ColorChatidRed"%s sa pead olema ^3valvur ^1et olla simon."g_szprefix );        
        return 
PLUGIN_HANDLED;        
    }        
     
    else if( 
g_isimon == id )        
    {        
        
ColorChatidRed"%s sa oled juba ^4simon^1!"g_szprefix );        
        return 
PLUGIN_HANDLED;        
    }        
     
    else if( 
is_user_aliveg_isimon ) )        
    {        
        
ColorChatidRed"%s ^1keegi 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 );        
     
    
ColorChat0Red"%s ^3%s ^1 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;        
         
        
ColorChat0Red"%s ^1praegune 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 )        
    {        
        
ColorChat0Red"%s ^1praegune simon suri."g_szprefix );        
        
g_isimon 0;        
        return 
PLUGIN_HANDLED;
    }        
     
    return 
PLUGIN_HANDLED;        

now its ok but you must use the new chatcolor include
download it by 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-27-2013 , 04:55   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #13

now /simon not working :s
wizz is offline
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 05-27-2013 , 05:00   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #14

the plugin working but you must have the colorchat.amxx active on your server on plugins.ini to use your plugin ok??
http://forums.alliedmods.net/attachm...9&d=1367947581
__________________
.: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-27-2013 , 05:00   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #15

okay i try that
wizz is offline
wizz
Member
Join Date: Mar 2010
Old 05-27-2013 , 05:04   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #16

Quote:
Originally Posted by hLiaS View Post
the plugin working but you must have the colorchat.amxx active on your server on plugins.ini to use your plugin ok??
http://forums.alliedmods.net/attachm...9&d=1367947581
now i try it but still not working :S
wizz is offline
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 05-27-2013 , 05:07   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #17

type amxx list on your server and give me the output
__________________
.: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-27-2013 , 05:12   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #18

Quote:
Originally Posted by hLiaS View Post
type amxx list on your server and give me the output
PHP Code:
       name                    version     author            file             status   
 
[  1AMXBans Core            Gm 1.5      AMXBans Dev Team  amxbans_core.am  debug    
 
[  2AMXBans Main            1.4         AMXBans Dev Team  amxbans_main.am  debug    
 
[  3Admin Commands          1.8.1.3746  AMXX Dev Team     admincmd.amxx    running  
 
[  4Admin Help              1.8.1.3746  AMXX Dev Team     adminhelp.amxx   running  
 
[  5Slots Reservation       1.8.1.3746  AMXX Dev Team     adminslots.amxx  running  
 
[  6Multi-Lingual System    1.8.1.3746  AMXX Dev Team     multilingual.am  running  
 
[  7Menus Front-End         1.8.1.3746  AMXX Dev Team     menufront.amxx   running  
 
[  8Players Menu            1.8.1.3746  AMXX Dev Team     plmenu.amxx      debug    
 
[  9Maps Menu               1.8.1.3746  AMXX Dev Team     mapsmenu.amxx    running  
 
10Plugin Menu             1.8.1.3746  AMXX Dev Team     pluginmenu.amxx  running  
 
11Admin Chat              1.8.1.3746  AMXX Dev Team     adminchat.amxx   running  
 
12Scrolling Message       1.8.1.3746  AMXX Dev Team     scrollmsg.amxx   running  
 
13InfoMessages          1.8.1.3746  AMXX Dev Team     imessage.amxx    running  
 
14Admin Votes             1.8.1.3746  AMXX Dev Team     adminvote.amxx   running  

 
15TimeLeft                1.8.1.3746  AMXX Dev Team     timeleft.amxx    running  
 
16Pause Plugins           1.8.1.3746  AMXX Dev Team     pausecfg.amxx    running  
 
17Stats Configuration     1.8.1.3746  AMXX Dev Team     statscfg.amxx    running  
 
18Restrict Weapons        1.8.1.3746  AMXX Dev Team     restmenu.amxx    running  
 
19StatsX                  1.8.1.3746  AMXX Dev Team     statsx.amxx      running  
 
20Fix AutoBuy Bug         1.1         PomanoB UFPS.T  fix.amxx         running  
 
21Anti Fullupdate Spam    1.0         Author            antifullupdate.  running  
 
22Remove bug in chat    1.1         Sn!ff3r           say_fix.amxx     running  
 
23Anti flood              1.1         kanagava          noflood.amxx     running  
 
24simon                   1.0         wizz              simon.amxx       running  
 
25ColorChat               0.3.0       ConnorMcLeod      colorchat.amxx   running  
 
26Weed                    1.0         Jon               weed.amxx        running  
 
27AMX Admin Model         1.1.1       whitemike         vipskins.amxx    running  
 
28unknown                 unknown     unknown           vipmenu.amxx     running  
 
29unknown                 unknown     unknown           Shop.amxx        running  

 
30Players Models          1.3.1       ConnorMcLeod      players_models.  running  
 
31MultiJump               1.1         twistedeuphoria   multijump.amxx   running  
 
32Brass Knuckles          1.0         Cheap_Suit        bk3.amxx         running  
 
33Back Weapons            1.87        hoboman313/cheap  seljarelv.amxx   running  
 
34Advanced Spam Protecti  4.1         Souvik            ASP.amxx         running  
 
35Loading Game Banner     1.3         DJ_WEST           loading_banner.  running  
 
36Drop All Weapons On De  0.1.6       ConnorMcLeod      drop.amxx        running  
 
37]                         0.0.1       ConnorMcLeod      text.amxx        running  
 
38Reset Score             0.0.1       ConnorMcLeod      nulli.amxx       running  
 
39xREDIRECT               1.0.3.3     x0R               serv.amxx        running  
 
40Galileo                 3.0 public  sHell.w           galileo_shellw_  running  
 
41Command: /info          1.0b        sHell.w           info.amxx        running  
 
42Command: /reeglid       1.0b        sHell.w           reeglid.amxx     running  
 
43Command: /sms           1.0b        sHell.w           sms.amxx         running  
 
44Team Join Management    0.3         Exolent           team_join.amxx   running  

 
45FrostNades              2.09        Avalanche         frostnades.amxx  running  
 
46Admin Check             1.51        OneEyed           admins.amxx      running  
 
47Admin Check             1.51        OneEyed           vips.amxx        running  
 
48Jailbreak LR            2.0         wIzZ              lr.amxx          running  
 
49] Use Buttons             0.1         b0R3sT            button.amxx      running  
 
50oika                    1.0         wIzZ              weaponmenu.amxx  running  
 
51Buyzone Range           0.1         VEN               buyzone.amxx     running  
 
52Colored Flashbangs      2.3         wIzZ              flashbangs.amxx  running  
 
53unknown                 unknown     unknown           nofalldmg.amxx   running  
 
54unknown                 unknown     unknown           bhop.amxx        running  
 
55Ultimate Gore           1.6         JTP10181          amx_gore_ultima  running  
 
56GHW Auto Message Displ  2.1         GHW_Chronic       reklaam.amxx     running  
 
57Advanced Bullet Damage  1.0         Sn!ff3r           abd.amxx         running  
 
58Country Chat            1.0         Exolent xPaw    chat.amxx        running  
 
59Game Namer              1.1         NeuroToxin        gamenamechanger  running  
 
60High Ping Kicker        1.2.0       DynAstY           hpk.amxx         running  
 
61Spray ID                1.12        Cheesy Peteza     sprayid.amxx     running  
61 plugins
61 running 

Last edited by wizz; 05-27-2013 at 05:13.
wizz is offline
wizz
Member
Join Date: Mar 2010
Old 05-27-2013 , 05:21   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #19

i try only 3rd plugin running: simon.amxx and colorchat.amxx but still /simon not working :S :S
i think the simon plugin is not working correctly.

Last edited by wizz; 05-27-2013 at 05:21.
wizz is offline
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 05-27-2013 , 05:26   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #20

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/vip/vip.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"vip")  
    
    
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"vip")  
    
    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;     

now it's working and i tested it...
but you want to compile the plugin your previous colorchat before i say to you to change
and you don't need the colorchat.amxx on your plugins.ini
__________________
.: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 05:27.
hLiaS is offline
Send a message via Skype™ to hLiaS
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 18:32.


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