SpAwn-Zone
Doriti să reactionati la acest mesaj? Creati un cont în câteva clickuri sau conectati-vă pentru a continua.

SpAwn-Zone

SpAwn-Zone Comunity
 
AcasaUltimele imaginiCăutareÎnregistrareConectare

 

 Comenzi pt meci de clan

In jos 
AutorMesaj
MiniLog
Admin
MiniLog


Numarul mesajelor : 63
Data de inscriere : 31/05/2008
Localizare : Ploiesti

Comenzi  pt meci de clan Empty
MesajSubiect: Comenzi pt meci de clan   Comenzi  pt meci de clan Icon_minitimeLun Iun 02, 2008 7:44 pm

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
register_plugin("==>CsB<== (c)","1.0","The Boss & Dj_Aligator")
register_concmd("say /freezetime", "freezetime", ADMIN_KICK, "Sets the freeze time seconds")
register_concmd("say /restart", "restart", ADMIN_KICK, "Restart the server!")
register_concmd("say /ff", "friendlyfire", ADMIN_KICK, "0/1 - disables/enables the friendly fire")
register_concmd("say /players", "players", ADMIN_KICK, "- set the number of maximum players witch a team can have")
}

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

new freeze[6], name[32]
read_argv(1, freeze, 5)
get_user_name(id, name, 31)
server_cmd("mp_freezetime %s", freeze)

switch(get_cvar_num("amx_show_activity"))
{
case 2: client_print(0, print_chat, "%s has set the freeze time to %s seconds", name, freeze)
case 1: client_print(0, print_chat, "The freeze time has been set to %s seconds", freeze)
}

console_print(id, "You have set the freeze time to %s seconds", freeze)

return PLUGIN_HANDLED
}

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

new ff[6], name[32]
read_argv(1, ff, 5)
get_user_name(id, name, 31)
server_cmd("mp_friendlyfire %s", ff)

switch(get_cvar_num("amx_show_activity"))
{
case 2: client_print(0, print_chat, "%s has set the friendlyfire to %s", name, ff)
case 1: client_print(0, print_chat, "The friendlyfire has been set to %s", ff)
}

console_print(id, "You have set the friendlyfire to %s", ff)

return PLUGIN_HANDLED
}

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

new tmax[6], name[32]
read_argv(1, tmax, 5)
get_user_name(id, name, 31)
server_cmd("mp_limitteams %s", plays)

switch(get_cvar_num("amx_show_activity"))
{
case 2: client_print(0, print_chat, "%s set the team limit to %s", name, plays)
case 1: client_print(0, print_chat, "The team limit has been set to %s", plays)
}

console_print(id, "You have changed the team limit to %s", plays)

return PLUGIN_HANDLED
}

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

new ff[6], name[32]
read_argv(1, rr, 5)
get_user_name(id, name, 31)
server_cmd("sv_restart %s", rr)

switch(get_cvar_num("amx_show_activity"))
{
case 2: client_print(0, print_chat, "%s has set the restart server to %s", name, rr)
case 1: client_print(0, print_chat, "The restart server has been set to %s", rr)
}

console_print(id, "You have set the restart server to %s", rr)

return PLUGIN_HANDLED
}


LinK: http://fisier.com/4802950
Sus In jos
https://spawn-zone.forumgratuit.ro
 
Comenzi pt meci de clan
Sus 
Pagina 1 din 1
 Subiecte similare
-
» Comenzi AmX
» Comenzi AdminMod
» Wh0 is "The Best" ? :> .. care player din clan..ishi face dat0ria ? cel mai bine ? :))

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
SpAwn-Zone :: Resurse Counter Strike :: Tutoriale-
Mergi direct la: