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

Comenzi pentru meci de clan

In jos

Comenzi pentru meci de clan Empty Comenzi pentru meci de clan

Mesaj Scris de Rapidistu Mar 29 Apr 2008, 22:23

Cod:
#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
}

Download: http://fisier.com/4802950
Rapidistu
Rapidistu
INFERNO DETINATOR
INFERNO DETINATOR

masculin
Numarul mesajelor : 690
Varsta : 33
Localizare : Videle
VA PLACE SV NOSTRU : Da
STEAM ON/OFF : ON
Data de inscriere : 28/03/2008

InfernoCs
InfernoCS:

https://phr-zone.forumgratuit.ro

Sus In jos

Sus

- Subiecte similare

 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum