Chcialbym prosic o dodanie funkcji gdy gracz z CT i Terro zabije hosta .Czyli gdy obojętnie z jakiego teamu ktos zabije hosta to pokazuje sie info w say tak jak tam napisalem.
Chcialbym by ten tekst pokazal sie w kolorze (najlepiej czerwonym)
#include <amxmodx>
#define PLUGIN "Hostage Down"
#define VERSION "1.1"
#define AUTHOR "v3x"
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("TextMsg","HostageKilled","b","2&#Killed_Hostage")
}
new g_szSoundFile[] = "radio/hostdown/hosdown.wav"
public plugin_precache()
{
precache_sound(g_szSoundFile)
}
public HostageKilled(id)
{
new aPlayers[32],iNum,i
new name[30]
get_user_name(id,name,29)
get_players(aPlayers,iNum,"ce","CT")
for( i=0; i<=iNum; i++)
{
if(!is_user_connected(aPlayers[i])) continue
client_cmd(aPlayers[i],"spk %s",g_szSoundFile)
client_print(aPlayers[i],print_chat,"(RADIO): Zakladnik Zabity! przez %s", name)
}
return PLUGIN_CONTINUE
}
Dziękuje


Dodatki SourceMod



Temat jest zamknięty











