Kod: Tümünü seç
#include <amxmodx>
#define PLUGIN "TAGALTB"
#define VERSION "1.0"
#define AUTHOR "edit by TB"
new const g_tag[] = "[T]B | ETKINLIK";
new const b_tag[] = "[T]B | ISYANTEAM";
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /tagal", "cmdTag" );
}
public cmdTag( id )
{
{
new menu = menu_create( "\wTAG MENU", "tagmenugir" );
menu_additem( menu, "\wETKINLIK # Tagi AL", "1" );
menu_additem( menu, "\wiSYANTEAM > Tagi AL", "2" );
menu_display( id, menu );
}
return PLUGIN_CONTINUE;
}
public tagmenugir( id, menu, item )
{
if( item == MENU_EXIT )
{
menu_destroy( menu );
return PLUGIN_HANDLED;
}
new info[6], szName[64];
new access, callback;
menu_item_getinfo(menu, item, access, info, charsmax(info), szName, charsmax(szName), callback);
new key = str_to_num(info);
switch( key )
{
case 1:
{
tag1( id );
}
case 2:
{
tag2( id );
}
}
menu_destroy( menu );
return PLUGIN_HANDLED;
}
public tag1(id){
static szName[32];
get_user_name(id,szName,charsmax(szName));
if(containi(szName,g_tag) != -1)
{
replace(szName,strlen(szName),g_tag,"")
trim(szName)
}
else if(containi(szName,b_tag) != -1)
{
replace(szName,strlen(szName),b_tag,"")
trim(szName)
}
format(szName,charsmax(szName),"%s %s",g_tag,szName);
set_user_info(id,"name",szName);
set_hudmessage(0, 255, 255, -1.0, -1.0, 0, 6.0, 3.0)
show_hudmessage(id, "Toblerone # Klanina Hosgeldiniz!^n IYI OYUNLAR!!!")
client_print(0, print_chat, "Biri daha klanimiza geldi.Herkes bizi tercih ediyorsa vardir bi bildikleri :) |tobleroneclan.NET|")
}
public tag2(id){
static szName[32];
get_user_name(id,szName,charsmax(szName));
if(containi(szName,g_tag) != -1)
{
replace(szName,strlen(szName),g_tag,"")
trim(szName)
}
else if(containi(szName,b_tag) != -1)
{
replace(szName,strlen(szName),b_tag,"")
trim(szName)
}
format(szName,charsmax(szName),"%s %s",b_tag,szName);
set_user_info(id,"name",szName);
set_hudmessage(0, 255, 255, -1.0, -1.0, 0, 6.0, 3.0)
show_hudmessage(id, "TOBLERONE # Klanina Hosgeldiniz!^n IYI OYUNLAR!!!")
client_print(0, print_chat, "Biri daha iSYANCI oldu! CT'nin vay haline :) |tobleroneclan.NET|")
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/