Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wizz
Member
Join Date: Mar 2010
Old 05-26-2013 , 16:36   NEED HELP: When i die the skins stays next round :(
Reply With Quote #1

Hello people need help i have problem with simon plugin when i die the skin dont go away
Can anybody please help me ?
Greetings from Estonian.

Heres the SMA:

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" );     
}       

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

public 
event_roundevent()       
{       
    new 
players[32], numplayerss;     
    
get_playersplayersnum"a" );     
      
    for( new 
0numi++ )     
    {     
        
playerss players[i]     
        
cs_reset_user_model(playerss)  
    }  
      
    
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
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-27-2013 , 03:11   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #2

Then reset their model in death msg?
Backstabnoob is offline
wizz
Member
Join Date: Mar 2010
Old 05-27-2013 , 04:12   Re: NEED HELP: When i die the skins stays next round :(
Reply With Quote #3

Quote:
Originally Posted by Backstabnoob View Post
Then reset their model in death msg?
help me whit that please

i tryd but errror on compile :S

Im not good scripter.
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 05:24.


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