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
Cum unim doua pluginuri diferite
Du-te la pagina despre counter-strike
 
Creaza un subiect nou   Raspunde la subiect
Mesaj
CenzuraH
Vizitator





Mesaj

2012-11-24    cstrike Cum unim doua pluginuri diferite


Pasul 1 :



Luam cele 2 plugin-uri.Eu am luat 2 simple :

amx_slay -->
Code:
#include
#include

#define PLUGIN "Trash Plugin"
#define AUTHOR "FireW@ll"
#define VERSION "1.0"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_slay2","Slay",ADMIN_SLAY," - Slay a player"); // amx_slay exista deja in amxx...
}


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

new command[32]

read_argv(1, command, sizeof command -1);

new Player = cmd_target(id, command, 2);

if(!Player)
return PLUGIN_HANDLED;

if(is_user_admin(Player))
client_print(id, print_chat, "E admin....");
else
user_silentkill(Player)

return PLUGIN_HANDLED;
}


si amx_ss -->
Code:
#include
#include

#define PLUGIN "Screenshot"
#define VERSION "1.x"
#define AUTHOR "AUTOR"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_concmd("amx_ss","admin_ss",ADMIN_KICK,"message");
}


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

new argument[32]
read_argv(1,argument,31)

new player = cmd_target(id,argument,31)
new hostname[64], tname[32], usrip[32], timer[32];
get_cvar_string("hostname",hostname,63);
get_user_name(player,tname,31);
get_user_ip(player,usrip,31);
get_time("%m/%d/%Y - %H:%M:%S", timer,31);

if(!player)
return PLUGIN_HANDLED;

client_print(player, print_chat, "* Un admin ti-a facut un poza !")
client_print(player, print_chat, "* Nick-ul tau: %s, IP-ul tau: %s",tname,usrip)
client_print(player, print_chat, "* Data si ora: %s - pe serverul %s",timer,hostname)
client_cmd(player,"snapshot")

return PLUGIN_HANDLED
}



Pasul 2 :



La pluginul amx_slay stergem urmatoarea parte:

Code:
return PLUGIN_HANDLED;
}





La pluginul amx_ss stergem urmatoarea parte:

Code:
#include
#include

#define PLUGIN "Screenshot"
#define VERSION "1.x"
#define AUTHOR "AUTOR"



Pasul 3 :



Unim cele 2 plugin-uri fara partile care le-am sters si ar trebui sa fie asa:

Code:
#include
#include

#define PLUGIN "Trash Plugin"
#define AUTHOR "FireW@ll"
#define VERSION "1.0"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_slay2","Slay",ADMIN_SLAY," - Slay a player"); // amx_slay exista deja in amxx...
}


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

new command[32]

read_argv(1, command, sizeof command -1);

new Player = cmd_target(id, command, 2);

if(!Player)
return PLUGIN_HANDLED;

if(is_user_admin(Player))
client_print(id, print_chat, "E admin....");
else
user_silentkill(Player)

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_concmd("amx_ss","admin_ss",ADMIN_KICK,"message");
}


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

new argument[32]
read_argv(1,argument,31)

new player = cmd_target(id,argument,31)
new hostname[64], tname[32], usrip[32], timer[32];
get_cvar_string("hostname",hostname,63);
get_user_name(player,tname,31);
get_user_ip(player,usrip,31);
get_time("%m/%d/%Y - %H:%M:%S", timer,31);

if(!player)
return PLUGIN_HANDLED;

client_print(player, print_chat, "* Un admin ti-a facut un poza !")
client_print(player, print_chat, "* Nick-ul tau: %s, IP-ul tau: %s",tname,usrip)
client_print(player, print_chat, "* Data si ora: %s - pe serverul %s",timer,hostname)
client_cmd(player,"snapshot")

return PLUGIN_HANDLE
Cs Forum
WwW.PlacePuB.Ro
WwW.PlacePuB.Ro
placepub




Mesaj

2012-11-24    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