Kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#define PLUGIN "Elbasi + 500 $"
#define VERSION "1.0"
#define AUTHOR "smasH"
#define TAG "KLAN TAGINIZ"
new rounds
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "smasHPara", 1)
register_logevent("round_end", 2, "1=Round_End");
register_event("TextMsg","restart_roundsnum","a","2&#Game_C"/*,"2&#Game_w"*/) ;
}
public round_end( ) {
rounds ++;
}
public restart_roundsnum( ) {
rounds = 0;
}
public smasHPara(id)
if(get_user_team(id) == 1 && get_user_team(id) == 2 && rounds > 1 && get_user_flags(id) & ADMIN_LEVEL_F){
cs_set_user_money(id,500);
renkli_yazi(id,"!t[ !n%s !t] !t500$ !gpara ile ödüllendirildiniz.",TAG)
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sar??
replace_all(msg, 190, "!g", "^x04"); // Ye??Renk
replace_all(msg, 190, "!t", "^x03"); // Tak??enk( CT mavi , T k??z??
if (id) players[0] = id; else get_players(players, count, "ch"); {
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}