Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
plugin util amxx
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
2028
b3bico
[Mentally Stable]
Status: Offline
(since 07-04-2008 13:52)
Joined: 06 Oct 2007
Posts: 5
,
Topics: 1
Location:
Romania
Reputation:
90.3
Votes
: 4
Posted: 06-10-2007, 00:33:24
| Translate post to:
... (
Click for more languages
)
Salut as dorii si eu un plugin doar cu comenzile:
amx_slayteam
amx_slayall
amx_execteam
amx_execall
amx_execclient
amx_exec
amx_slapteam
amx_slapall
amx_llama
am incercat eu ceva dar nu mi'a iesit
Code:
#include <amxmodx>
#include <amxmisc>
// Slays the players that you want
register_concmd("am_slay", "slay", SLAY, "<nick> - Slays an individual")
register_concmd("admin_slayteam", "slay", SLAY, "<team> - Slays the whole team")
register_concmd("admin_slayall", "slay", SLAY, "Slays everyone on the server including admins and caller")
public slay(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
new cmd[32], steam_nick_team[32], counter, players[32], totalPlayers
read_argv(0, cmd, 32)
replace(cmd, 32, "amx_slay", "")
// Get the info on the caller
new nameCalled[32], steamCalled[32]
get_user_name(id, nameCalled, 31)
get_user_authid(id, steamCalled, 31)
new Red = random(256)
new Green = random(256)
new Blue = random(256)
set_hudmessage(Red, Green, Blue, 0.05, 0.4)
if(equal(cmd, "all"))
{
get_players(players, totalPlayers, "a")
for(counter = 0; counter < totalPlayers; counter++)
{
if(is_user_alive(players[counter]) == 1 && !(get_user_flags(players[counter])&IMMUNE))
{
user_kill(players[counter], 1)
}
}
switch(get_cvar_num("adminmodx_show_activity"))
{
case 0: client_print(id, print_console, "%L", LANG_SERVER, "ADMINMODX_ALLSLAYED")
case 1: client_print(0, print_chat, "%L", LANG_SERVER, "ADMINMODX_ALLSLAYED")
case 2: show_hudmessage(0, "%L", LANG_SERVER, "ADMINMODX_ALLSLAYED")
}
if(get_cvar_num("adminmodx_sounds"))
emit_sound(0, CHAN_VOICE, soundName[thunder], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
// Show it if needed
switch(get_cvar_num("amx_show_activity"))
{
case 2: client_print(0, print_chat, "%L", LANG_PLAYER, "AMXX_LOGGING_NAMED", nameCalled, "Slay All",
"")
case 1: client_print(0, print_chat, "%L", LANG_PLAYER, "AMXX_LOGGING_UNNAMED", "Slay All")
}
// Tell them it succeded
if(is_client(id))
client_print(id, print_console, "%L", LANG_PLAYER, "ADMINMODX_SLAYALL_SUC")
// Now Log it
log_amx("%L", LANG_SERVER, "ADMINMODX_SLAYALL", nameCalled, steamCalled)
}
else if(equal(cmd, ""))
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
read_argv(1, steam_nick_team, 32)
// Search for the Player
new player_id = get_player(steam_nick_team)
if(player_id == -1)
{
// Give out error message
if(is_client(id))
client_print(id, print_console, "%L", LANG_PLAYER, "NICK_NOT_FOUND")
return PLUGIN_CONTINUE
}
if(is_user_alive(player_id) == 1 && !(get_user_flags(player_id)&IMMUNE))
{
user_kill(player_id, 1)
}
// Get the info on the caller
new nameAgainst[32], steamAgainst[32]
get_user_name(player_id, nameAgainst, 31)
get_user_authid(player_id, steamAgainst, 31)
switch(get_cvar_num("adminmodx_show_activity"))
{
case 0: client_print(id, print_console, "%L", LANG_SERVER, "ADMINMODX_SLAYED", nameAgainst)
case 1: client_print(0, print_chat, "%L", LANG_SERVER, "ADMINMODX_SLAYED", nameAgainst)
case 2: show_hudmessage(0, "%L", LANG_SERVER, "ADMINMODX_SLAYED", nameAgainst)
}
if(get_cvar_num("adminmodx_sounds"))
emit_sound(0, CHAN_VOICE, soundName[thunder], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
// Show it if needed
switch(get_cvar_num("amx_show_activity"))
{
case 2: client_print(0, print_chat, "%L", LANG_PLAYER, "AMXX_LOGGING_NAMED", nameCalled, "Slay
against: ", nameAgainst)
case 1: client_print(0, print_chat, "%L", LANG_PLAYER, "AMXX_LOGGING_UNNAMED", "Slay against:",
nameAgainst)
}
// Tell them it succeded
if(is_client(id))
client_print(id, print_console, "%L", LANG_PLAYER, "ADMINMODX_SLAY_SUC")
// Now Log it
log_amx("%L", LANG_SERVER, "ADMINMODX_SLAY", nameCalled, steamCalled, nameAgainst, steamAgainst)
}
else if(equal(cmd, "team"))
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
read_argv(1, steam_nick_team, 32)
new teamname[16]
get_players_team(players, totalPlayers, str_to_num(steam_nick_team), teamname)
for(counter = 0; counter < totalPlayers; counter++)
{
if(is_user_alive(players[counter]) == 1 && !(get_user_flags(players[counter])&IMMUNE))
{
user_kill(players[counter], 1)
}
}
switch(get_cvar_num("adminmodx_show_activity"))
{
case 0: client_print(id, print_console, "%L", LANG_SERVER, "ADMINMODX_TEAMSLAYED", teamname)
case 1: client_print(0, print_chat, "%L", LANG_SERVER, "ADMINMODX_TEAMSLAYED", teamname)
case 2: show_hudmessage(0, "%L", LANG_SERVER, "ADMINMODX_TEAMSLAYED", teamname)
}
if(get_cvar_num("adminmodx_sounds"))
emit_sound(0, CHAN_VOICE, soundName[thunder], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
// Show it if needed
switch(get_cvar_num("amx_show_activity"))
{
case 2: client_print(0, print_chat, "%L", LANG_PLAYER, "AMXX_LOGGING_NAMED", nameCalled, "Slay
Against Team: ", teamname)
case 1: client_print(0, print_chat, "%L", LANG_PLAYER, "AMXX_LOGGING_UNNAMED", "Slay Against Team: ",
teamname)
}
// Tell them it succeded
if(is_client(id))
client_print(id, print_console, "%L", LANG_PLAYER, "ADMINMODX_SLAYTEAM_SUC")
// Now Log it
log_amx("%L", LANG_SERVER, "ADMINMODX_SLAYTEAM", nameCalled, steamCalled, teamname)
}
return PLUGIN_CONTINUE
}
Last edited by
b3bico
on 06-10-2007, 12:01:19; edited 2 times in total
0
0
Back to top
S1dur
[Maniac]
Status: Offline
(since 10-12-2020 18:05)
Joined: 18 Apr 2007
Posts: 1342
,
Topics: 78
Location:
root
Reputation:
346.4
Votes
: 10
Posted: 06-10-2007, 07:54:39
| Translate post to:
... (
Click for more languages
)
Tu vrei un plugin in care sa se regaseasca toate acele comenzi ?
0
0
Back to top
b3bico
[Mentally Stable]
Status: Offline
(since 07-04-2008 13:52)
Joined: 06 Oct 2007
Posts: 5
,
Topics: 1
Location:
Romania
Reputation:
90.3
Votes
: 4
Posted: 06-10-2007, 11:19:59
| Translate post to:
... (
Click for more languages
)
vreau un plugin doar cu acele comenzi
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 17-01-2025, 01:36:29
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details