Counter-Strike 1.6 Download Forum

Counter-Strike Server RSS Feed atom+xml Counter-Strike Server RSS Feed Counter-Strike Server CsBesTiaL Top 100 BesTiaL Autentificare Inregistrare Profil Mesaje private FAQ Grupuri Counter-Strike
 Servere-le de Counter-Strike CsBesTiaL sunt Pornite
cs bestial
Custom Search
Get our toolbar! Download Counter-Strike 1.6 andoird application
Amx_Banshootv1.1 {AmxMod}
Du-te la pagina despre counter-strike
 
Creaza un subiect nou   Raspunde la subiect
Mesaj
CosmiN_>c0smin
Cont Blocat
Cont Blocat


Data Inscrierii: 04/Apr/2012
Mesaje: 592
Locatie: Galati

Mesaj

2012-04-14    cstrike Amx_Banshootv1.1 {AmxMod}


Descriere: Acest plugin face ca atunci cand dai ban unui jucator sa faca automat o poza pe care o poate afisa pe forum sa dovedeasca ca nu e codat sau nu

Nume: Amx_Banshot

Versiune: 1.1

Autor: F34RInc & ErVin

Instalare:
1. Fisierul amx_banshot.sma il puneti in addons/amxmodx/scripting
2. Fisierul amx_banshot.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Cod:
amx_banshot.amxx


Poza:
Zoom in (real dimensions: 800 x 600)Imagine

Sursa plugin:

Cod:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Banshot"
#define VERSION "2.0"
#define AUTHOR "CsGO Team"

static const banurl[] = "www.csgo.us/forum "

new Bantype

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_banshot","banwithproof",ADMIN_BAN,"<Nume> <Timp> <Motiv>")
register_cvar("amx_banurl",banurl)
Bantype = register_cvar("amx_banshot_type", "1")
}


public banwithproof(id,level,cid){
if(!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED;

new authid[32], ipadd[32], name[32], admin_name[32], reason[32], CurrentTime[9], hostname[64] ,banurl[64]
new arg[32], arg2[32], temp[2]

read_argv(1,arg,31)
read_argv(2,arg2,31)

new target = cmd_target(id,arg,1)

if (!target) return PLUGIN_HANDLED

get_user_ip(target,ipadd,31)
get_cvar_string("hostname",hostname,63)
get_user_name(target,name,31)
get_user_authid(target,authid,31)
get_cvar_string("amx_banurl", banurl,63)
get_user_name(id, admin_name, 31)
read_argv(3, reason, 31)

log_to_file("BannedwithSS.txt"," Nume: %s | Ip: %s | SteamID: %s | Admin: %s | Motiv: %s^n",name,ipadd,authid,admin_name,reason)

chat_color(target,"!g[www.csgo.us] !nServer !t%s",hostname)
chat_color(target,"!g[www.csgo.us] !nNume !t%s !n- SteamID !t%s !n- Ip !t%s",name,authid,ipadd)
chat_color(target,"!g[www.csgo.us] !nAdmin !t%s - !nMotiv !t%s",admin_name,reason)
get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31)

chat_color(target,"!g[www.csgo.us] !t%s",CurrentTime)
chat_color(target,"!g[www.csgo.us] !nVizitati-ne !t%s !npentru UNBAN!",banurl)

console_print(target,"[www.csgo.us] Server %s",hostname)
console_print(target,"[www.csgo.us] Nume %s - SteamID %s - Ip %s",name,authid,ipadd)
console_print(target,"[www.csgo.us] Admin %s - Motiv %s",admin_name,reason)
console_print(target,"[www.csgo.us] %s",CurrentTime)
console_print(target,"[www.csgo.us] Vizitati-ne %s pentru UNBAN!",banurl)

client_cmd(target,"wait;snapshot;wait;snapshot")

temp[0] = target
temp[1] = str_to_num(arg2)

set_task(0.5,"persontoban", target, temp, 2)

return PLUGIN_HANDLED
}

public persontoban(arg[]){
new name2[32]

new target = arg[0]
new bantime = arg[1]

get_user_name(target,name2,31)

switch (get_pcvar_num(Bantype)){
case 1:{
server_cmd("amx_ban %s %d",name2,bantime)
}
case 2:{
server_cmd("amx_banip %s %d",name2,bantime)
}
case 3:{
server_cmd("amx_ban %d %s",bantime,name2)
}
case 4:{
server_cmd("amx_say Visit %s",banurl)
}
}

}
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, "!n", "^1");
replace_all(msg, 190, "!t", "^3");
replace_all(msg, 190, "!t2", "^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();
}
}
}
}
Cs Forum
Vezi profilul utilizatorului Expediaza mesaj privat
WwW.PlacePuB.Ro
WwW.PlacePuB.Ro
placepub




Mesaj

2012-04-14    cstrike




Cs Forum
Afiseaza mesajele despre Counter-Strike pentru a le previzualiza:    
Creaza un subiect nou   Raspunde la subiect    Counter Strike Forum - Tutoriale Counter-Strike 1.6 download -> Tutoriale Counter-Strike 1.6 cstrike Ora este GMT + 2 ore
Du-te la pagina despre counter-strike
Pagina 1 din 0

 
Mergi direct la pagina de counter-strike 1.6:  
Nu puteti crea un subiect nou In acest forum despre counter-strike
Nu puteti raspunde In subiectele acestui forum despre counter-strike
Nu puteti modifica mesajele proprii din acest forum despre counter-strike
Nu puteti sterge mesajele proprii din acest forum despre counter-strike
Nu puteti vota In chestionarele din acest forum despre counter-strike

Privacy Policy | Politica de Confidentialitate



 Safe Site

By Bogdan Maxim. Published in the Counter-strike 1.6 Download category