AcasaAcasa  Ultimele imaginiUltimele imagini  CăutareCăutare  ÎnregistrareÎnregistrare  ConectareConectare  



[FF] Cei mai activi
Andreyu36 (199)
(c)HCC (79)
Too*Simple (29)
Destroyer (25)
BuZzZ (13)
oDemonique. (3)
Ki||eR (2)
NYKU (2)
ALK.Quicky (1)










[FF] Posturi Noi
In Singular -> Plural by:Andreyu36
In zaśpiewajmy chacaron macaron by:Andreyu36
In The Double Drop - The Game (FreeFall Remix) by:Andreyu36
In David Stewart - Pouring Rain (SaneBeats Remix) by:Andreyu36
In Nina Simone - Feeling Good (Bassnectar Remix) by:Andreyu36
In Jay-Z - Dirt Off Your Shoulder (Brillz & Z Trip Remix) by:Andreyu36
In DJ Snake x Yellow Claw x Spanker - Slow Down by:Andreyu36
In What So Not - Touched by:Andreyu36
In Apashe - Black Gold by:Andreyu36
In Aero Chord - Ctrl Alt Destruction by:Andreyu36
Membri noi
#content-container #left { margin-right: 0; width: 0; display: none; }

Distribuiţi

[Productie CS]Comeni Admin

Vezi subiectul anterior Vezi subiectul urmator In jos
AutorMesaj
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeSam Mar 08, 2014 6:32 pm

#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #define PLUGIN "Comenzi-Admini" #define VERSION "1.0" #define AUTHOR "Ionut." public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) // Add your code here... register_concmd("amx_givemoney", "cmd_givemoney", ADMIN_SLAY, "nume / parte din nume, dai bani") register_concmd("amx_takemoney", "cmd_takemoney", ADMIN_SLAY, "nume / parte din nume, iei bani") register_concmd("amx_setmoney", "cmd_setmoney", ADMIN_SLAY, "nume / parte din nume, seteaza bani") register_concmd("amx_givehp", "cmd_givehp", ADMIN_SLAY, "nume / parte din nume, dai hp") register_concmd("amx_takehp", "cmd_takehp", ADMIN_SLAY, "nume / parte din nume, iei hp") register_concmd("amx_slay2", "cmd_slay", ADMIN_SLAY, "nume / parte din nume, 1-lightning|2-blood|3-explode") } public cmd_givemoney(id, level, cid) { if (!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED new Argument[32], arg[8] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { read_argv(2, arg, 7) new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(Target, name, 31) new iMoney = cs_get_user_money(Target) if (str_to_num(arg) + iMoney >= 16000) { cs_set_user_money(Target, 16000) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Da %d$ lui %s", str_to_num(arg), name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Da %d$ lui %s", adminname, str_to_num(arg), name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } if (str_to_num(arg) + iMoney < 16000) { cs_set_user_money(Target, str_to_num(arg) + iMoney) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Da %d$ lui %s", str_to_num(arg), name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Da %d$ lui %s", adminname, str_to_num(arg), name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } } return PLUGIN_HANDLED } public cmd_takemoney(id, level, cid) { if (!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED new Argument[32], arg[8] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { read_argv(2, arg, 7) new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(Target, name, 31) new iMoney = cs_get_user_money(Target) if (iMoney - str_to_num(arg) < 0) { cs_set_user_money(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Fura %d$ de la %s", str_to_num(arg), name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Fura %d$ de la %s", adminname, str_to_num(arg), name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } if (iMoney - str_to_num(arg) >= 0) { cs_set_user_money(Target, iMoney - str_to_num(arg)) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } public cmd_setmoney(id, level, cid) { if (!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED new Argument[32], arg[8] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(Target, name, 31) read_argv(2, arg, 7) cs_set_user_money(id, str_to_num(arg)) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Set %s's money to %d$", name, str_to_num(arg)) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Set %s's money to %d$", adminname, name, str_to_num(arg)) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_givehp(id, level, cid) { if (!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED new Argument[32], arg[8] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { read_argv(2, arg, 7) new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(Target, name, 31) new iHp = get_user_health(Target) if (str_to_num(arg) + iHp >= 100) { set_user_health(Target, 100) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Give %d hp to %s", str_to_num(arg), name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Give %d hp to %s", adminname, str_to_num(arg), name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } if (str_to_num(arg) + iHp < 100) { set_user_health(Target, str_to_num(arg) + iHp) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Give %d hp to %s", str_to_num(arg), name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Give %d hp to %s", adminname, str_to_num(arg), name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } } return PLUGIN_HANDLED } public cmd_takehp(id, level, cid) { if (!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED new Argument[32], arg[8] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { read_argv(2, arg, 7) new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(Target, name, 31) new iHp = get_user_health(Target) if (iHp - str_to_num(arg) <= 0) { set_user_health(Target, 1) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Took %d hp from %s", str_to_num(arg), name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Took %d hp from %s", adminname, str_to_num(arg), name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } if (iHp - str_to_num(arg) > 0) { set_user_health(Target, iHp - str_to_num(arg)) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } public cmd_giveap(id, level, cid) { if (!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED new Argument[32], arg[8] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { read_argv(2, arg, 7) new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(Target, name, 31) new iAp = get_user_armor(Target) if (str_to_num(arg) + iAp >= 100) { set_user_armor(Target, 100) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Give %d ap to %s", str_to_num(arg), name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Give %d ap to %s", adminname, str_to_num(arg), name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } if (str_to_num(arg) + iAp < 100) { set_user_armor(Target, str_to_num(arg) + iAp) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Give %d ap to %s", str_to_num(arg), name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Give %d ap to %s", adminname, str_to_num(arg), name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } } return PLUGIN_HANDLED } public cmd_takeap(id, level, cid) { if (!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED new Argument[32], arg[8] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { read_argv(2, arg, 7) new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(Target, name, 31) new iAp = get_user_armor(Target) if (iAp - str_to_num(arg) < 0) { set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Took %d ap from %s", str_to_num(arg), name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Took %d ap from %s", adminname, str_to_num(arg), name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } if (iAp - str_to_num(arg) >= 0) { set_user_armor(Target, iAp - str_to_num(arg)) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } public cmd_setap(id, level, cid) { if (!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED new Argument[32], arg[8] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(Target, name, 31) read_argv(2, arg, 7) set_user_armor(Target, str_to_num(arg)) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Set %s's ap to %d", name, str_to_num(arg)) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Set %s's ap to %d", adminname, name, str_to_num(arg)) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) message_end() } lightning(vec1[3],vec2[3]) { //Lightning message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 0 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_coord(vec2[0]) write_coord(vec2[1]) write_coord(vec2[2]) write_short( light ) write_byte( 1 ) // framestart write_byte( 5 ) // framerate write_byte( 2 ) // life write_byte( 20 ) // width write_byte( 30 ) // noise write_byte( 200 ) // r, g, b write_byte( 200 ) // r, g, b write_byte( 200 ) // r, g, b write_byte( 200 ) // brightness write_byte( 200 ) // speed message_end() //Sparks message_begin( MSG_PVS, SVC_TEMPENTITY,vec2) write_byte( 9 ) write_coord( vec2[0] ) write_coord( vec2[1] ) write_coord( vec2[2] ) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec2) write_byte( 5 ) write_coord(vec2[0]) write_coord(vec2[1]) write_coord(vec2[2]) write_short( s2smoke ) write_byte( 10 ) write_byte( 10 ) message_end() } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par } */ :
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeSam Mar 08, 2014 6:34 pm

ssdadsa
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeSam Mar 08, 2014 6:34 pm

faafsafsafsfsaafs
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeSam Mar 08, 2014 6:35 pm

afsfasafsfsafasfas
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeVin Mar 14, 2014 8:31 pm

ADAS
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeVin Mar 14, 2014 8:31 pm

TEST2
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeVin Mar 14, 2014 8:31 pm

TEST2134
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeVin Mar 14, 2014 8:32 pm

) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeVin Mar 14, 2014 8:32 pm

) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) wSDAS
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeVin Mar 14, 2014 8:32 pm

) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w
Sus In jos
https://uniogroup.forumgratuit.ro
(c)HCC
(c)HCC
Mesaje : 79
Bani : 14264
Data de inscriere : 08/03/2014
Varsta : 26

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitimeVin Mar 14, 2014 8:32 pm

) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w
Sus In jos
https://uniogroup.forumgratuit.ro
Continut sponsorizat

[Productie CS]Comeni Admin Empty
MesajSubiect: Re: [Productie CS]Comeni Admin [Productie CS]Comeni Admin I_icon_minitime

Sus In jos

[Productie CS]Comeni Admin

Vezi subiectul anterior Vezi subiectul urmator Sus
Pagina 1 din 1

Subiecte similare

-
t Cerere admin
t [MODEL] Reclamatie Admin
t Model Cerere Admin
t [Cerere admin] oDemonique.
t [Cerere Admin] Andreyu36

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
 :: Arhiva Uniogroups :: Arhiva-