https://www.csplague.com/plugin-cs-1...ni-v1-0-a.html
Linkteki Pluginin Sma Uzantılı Dosyasını atabilecek olan var mı ?
KONU YANLIŞ YERDE :D çok özür dilerim hemen kaldırıcam
Printable View
https://www.csplague.com/plugin-cs-1...ni-v1-0-a.html
Linkteki Pluginin Sma Uzantılı Dosyasını atabilecek olan var mı ?
KONU YANLIŞ YERDE :D çok özür dilerim hemen kaldırıcam
KOnu Çözümlenmiştir!PHP- Kodu:
#include <amxmodx>
#define PLUGIN "CSPlague Reklam"
#define VERSION "1.0"
#define AUTHOR "Halis KILIC - [email protected]"
#define SITE "www.CSPLague.com - www.CSPLague.Net"
new hudsabit;
new serveradi[64];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("___Yapimci", AUTHOR, FCVAR_SERVER | FCVAR_SPONLY)
register_cvar("___Site", SITE, FCVAR_SERVER | FCVAR_SPONLY)
set_task(1.0,"server_adi",0,"",0,"b",0)
set_task(150.0,"say_yazisi",0,"",0,"b",0)
set_task( 0.7, "olunce_sabit_hud", 1, "", 0, "b" )
hudsabit = CreateHudSyncObj( )
}
public olunce_sabit_hud ()
{
static oyuncular[32]
new sayi, oyuncu
get_players(oyuncular, sayi, "bch")
set_hudmessage(255, 255, 255, 0.54, 0.11, _, _, 1.1, _, _, 1)
for(new i = 0; i < sayi; ++i)
{
oyuncu = oyuncular[i]
set_hudmessage(0, 255, 0, 0.54, 0.11, 2, 0.0, 0.01)
ShowSyncHudMsg(oyuncu, hudsabit, "www.CSPLague.com");
}
}
public say_yazisi()
{
chat_color(0,"!g[www.CSPLague.com] !yBu serveri tavsiye etmektedir.")
}
public server_adi ()
{
get_cvar_string("hostname",serveradi,63)
if( contain(serveradi, "www.CSPLague.com") != -1 )
{
return PLUGIN_HANDLED
}
server_cmd("hostname ^"%s www.CSPLague.com^"", serveradi)
return PLUGIN_HANDLED
}
//Renk Kodu {
stock chat_color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!team2", "^0")
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();
}
}
}
}
Teşekkürler.