You need to make sure each kill status has a %s somewhere in it and that you have a cvar defined for each kill status type.
PHP Code:
#include <amxmodx>
enum KillStatus
{
LeaderHuman,
LastHuman,
ThisInstead2,
ThisInstead3
}
new CvarPointers[ KillStatus ];
new const KillStatusMsg[ KillStatus ][] =
{
"Leader human msg %s" ,
"Last human msg %s",
"This %s instead 2",
"This instead 3 %s"
};
public plugin_init()
{
CvarPointers[ LeaderHuman ] = register_cvar( "leader_human" , "Leader HUMAN" );
CvarPointers[ LastHuman ] = register_cvar( "last_human" , "Last HUMAN" );
CvarPointers[ ThisInstead2 ] = register_cvar( "this_instead_1" , "something else 1" );
CvarPointers[ ThisInstead3 ] = register_cvar( "this_instead_2" , "something else 2" );
}
public Killed( id )
{
new KillStatus:ksStatus , szCvarVal[ 32 ];
if ( is_user_bot( id ) ) ksStatus = LeaderHuman;
else if ( is_user_bot( id ) ) ksStatus = LastHuman;
else if ( is_user_bot( id ) ) ksStatus = ThisInstead2;
else if ( is_user_bot( id ) ) ksStatus = ThisInstead3;
get_pcvar_string( CvarPointers[ ksStatus ] , szCvarVal , charsmax( szCvarVal ) );
show_hudmessage( id , KillStatusMsg[ ksStatus ] , szCvarVal );
}
__________________