(03-27-2016, 11:04 PM)LoNNi33@ Wrote: a munet dikush ni antireklam
kur po shkrujn qeshtu po munen me reklamu un po du sit shkrun me ju bo gag vet
http://prntscr.com/akukbb
mos me mujt aj me shkru reklama
NI BIG THANKS KUSH MA GJAN
Qe me sma.
PHP Code:
#include < amxmodx >
#include < amxmisc >
new const g_szWordsList[ ] [ ]= {
"www.",
".ro",
".com",
".net",
".biz",
"connect",
":27015",
"/forum",
"***"
}
new cvar_on, cvar_mode;
public plugin_init()
{
register_plugin("Auto Gag", "1.0", "dK^aLeX")
cvar_on = register_cvar("amx_auto_gag", "1")
cvar_mode = register_cvar("amx_auto_gag_mode", "1")
register_clcmd("say", "Check")
register_clcmd("say_team", "Check")
}
public Check(id)
{
if(get_pcvar_num(cvar_on) == 0)
{
server_print("*****************************")
server_print(" Auto Gag v1.0 by dK^aLeX ")
server_print("*****************************")
server_print(" Plugin Status: Stopped ")
server_print("*****************************")
return;
}
if(get_pcvar_num(cvar_mode) == 1)
{
new szSay[192]
read_args(szSay, sizeof(szSay) -1)
remove_quotes(szSay)
for( new i = 0; i < sizeof( g_szWordsList ); i++)
{
if(contain(szSay, "g_szWordsList[i]") != -1)
{
new szUserName[32]
get_user_name(id, szUserName, 31)
server_cmd("amx_gag %s 4 reclama",szUserName)
}
}
}
if(get_pcvar_num(cvar_mode) == 2)
{
new szSay[192]
read_args(szSay, sizeof(szSay) -1)
remove_quotes(szSay)
for( new i = 0; i < sizeof( g_szWordsList ); i++)
{
if(contain(szSay, "g_szWordList[i]") != -1)
{
new szUserName[32]
get_user_name(id, szUserName, 31)
server_cmd("amx_kick %s",szUserName)
}
}
}
if(get_pcvar_num(cvar_mode) == 3)
{
new szSay[192]
read_args(szSay, sizeof(szSay) -1)
remove_quotes(szSay)
for ( new i = 0; i < sizeof(g_szWordsList); i++)
{
if(contain(szSay, "g_szWordsList[i]") != -1)
{
new szUserName[32]
get_user_name(id, szUserName, 31)
server_cmd("amx_ban %s 0 reclama",szUserName)
}
}
}
}
(03-27-2016, 04:29 PM)xgamers Wrote: A mundet dikush ket pluginsin [CT] Vs [T] met bardha si kps & kcw qe osht ?
Ktu e ke sma. ndrysho bon compile per srv tondin.
PHP Code:
#include <amxmodx>
#include <engine>
enum _:TEAM
{
TERRORIST,
ANTITERRORIST
}
new g_iScore[ TEAM ],g_iHud,g_iSync;
public plugin_precache( )
{
g_iHud = create_entity( "info_target" )
entity_set_string( g_iHud,EV_SZ_classname,"HudThink" )
entity_set_float( g_iHud,EV_FL_nextthink,get_gametime( ) + 20.0 )
}
public plugin_init( )
{
register_plugin( "Team Scores","1.0","Twiister" );
register_event( "TeamScore","ev_TeamScore","a" );
register_think( "HudThink","fw_HudThink" )
g_iSync = CreateHudSyncObj( )
}
public ev_TeamScore( )
{
static sTeam[ 2 ];read_data( 1,sTeam,1 )
switch( sTeam[ 0 ] )
{
case 'T': g_iScore[ TERRORIST ]= read_data( 2 );
case 'C': g_iScore[ ANTITERRORIST ]= read_data( 2 );
}
}
public fw_HudThink( iEnt )
{
if( !is_valid_ent( iEnt ) )
return PLUGIN_HANDLED;
set_hudmessage(200, 200, 200, -1.0, 0.0, 0, 0.0, 600.0, 0.0, 0.0, 1)
ShowSyncHudMsg(0,g_iSync,"Terrorist: %d | Counter-Terrorist: %d ]",g_iScore [TERRORIST],g_iScore[ ANTITERRORIST ])
entity_set_float( iEnt,EV_FL_nextthink,5.2 )
return PLUGIN_HANDLED;
}

