Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 29 online users. » 1 Member(s) | 28 Guest(s) novyjtop
|
Latest Threads |
1hp_grenade
Forum: Showcase
Last Post: marcudaniel1337
03-16-2025, 09:49 PM
» Replies: 0
» Views: 1,766
|
de_farewell
Forum: Showcase
Last Post: marcudaniel1337
03-09-2025, 09:55 PM
» Replies: 0
» Views: 4,324
|
[MODEL] Unban
Forum: Unban Requests
Last Post: marcudaniel1337
03-08-2025, 10:53 AM
» Replies: 0
» Views: 67
|
[MODEL] Banlist
Forum: Banlist
Last Post: marcudaniel1337
03-08-2025, 10:52 AM
» Replies: 0
» Views: 67
|
[MODEL] Request Admin
Forum: Request admin
Last Post: marcudaniel1337
03-08-2025, 10:51 AM
» Replies: 0
» Views: 66
|
Loading Music
Forum: Showcase
Last Post: marcudaniel1337
07-29-2024, 07:01 PM
» Replies: 0
» Views: 18,884
|
Blind
Forum: Showcase
Last Post: marcudaniel1337
07-28-2024, 11:31 PM
» Replies: 0
» Views: 21,311
|
Fake Bots
Forum: Showcase
Last Post: marcudaniel1337
07-28-2024, 11:29 PM
» Replies: 0
» Views: 21,145
|
Chat Messages
Forum: Showcase
Last Post: marcudaniel1337
07-28-2024, 11:27 PM
» Replies: 0
» Views: 21,208
|
Connect/Disconnect sounds
Forum: Showcase
Last Post: marcudaniel1337
07-28-2024, 11:25 PM
» Replies: 0
» Views: 20,623
|
|
|
Gag |
Posted by: marcudaniel1337 - 07-28-2024, 11:24 PM - Forum: Showcase
- No Replies
|
 |
An useful tool for admins to ban players from chatting. Usage: amx_gag <name>, amx_ungag <name>
Code: #include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Gag", "1.0", "sToP !")
register_concmd("amx_gag", "gag", ADMIN_KICK, "<player>")
register_concmd("amx_ungag", "ungag", ADMIN_KICK, "<player>")
register_clcmd("say", "chat_manager")
register_clcmd("say_team", "chat_manager")
register_clcmd("voicecomm", "chat_manager")
}
public gag(id, level, cid)
{
if( cmd_access(id, level, cid, 2) )
{
new arg[32];
read_argv ( 1 , arg , charsmax(arg) )
new target = cmd_target ( id , arg , CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE )
if( target )
{
if ( is_user_admin(target) )
{
client_print(id, print_console, "[HL.DM20.NET] User is admin, no changes done.")
return PLUGIN_HANDLED
}
new flags = read_flags("m")
set_user_flags(target, flags)
client_print(id, print_console, "[HL.DM20.NET] Player has been gagged.")
}
}
return PLUGIN_HANDLED
}
public ungag(id, level, cid)
{
if( cmd_access(id, level, cid, 2) )
{
new arg[32];
read_argv ( 1 , arg , charsmax(arg) )
new target = cmd_target ( id , arg , CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE )
if( target )
{
if ( is_user_admin(target) )
{
client_print(id, print_console, "[HL.DM20.NET] User is admin, no changes done.")
return PLUGIN_HANDLED
}
new flags = read_flags("m")
remove_user_flags(target, flags)
client_print(id, print_console, "[HL.DM20.NET] Player has been ungagged.")
}
}
return PLUGIN_HANDLED
}
public chat_manager(id)
{
if ( is_user_admin(id) )
{
return PLUGIN_CONTINUE
}
if(get_user_flags(id) & read_flags("m"))
{
client_print(id, print_chat, "[HL.DM20.NET] You have gag.")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
|
|
|
No self gauss |
Posted by: marcudaniel1337 - 07-28-2024, 11:21 PM - Forum: Showcase
- No Replies
|
 |
This is a HLDM plugin that prevents the player from killing himself from firing gauss.
Code: #include <amxmodx>
#include <hamsandwich>
#include <engine>
#define PLUGIN "Gauss"
#define VERSION "1.0"
#define AUTHOR "sToP !"
new e_class[64]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
}
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if(attacker != victim || !(1 <= attacker <= 32) )
return HAM_IGNORED
entity_get_string(inflictor, EV_SZ_classname, e_class, 63)
if (attacker == inflictor || equal(e_class, "weapon_gauss"))
{
return HAM_SUPERCEDE
}
return HAM_IGNORED
}
|
|
|
Ping Kicker |
Posted by: marcudaniel1337 - 07-28-2024, 11:19 PM - Forum: Showcase
- No Replies
|
 |
This is a simple plugin kicking everyone from the server with ping above 350. You can change that value to whatever you like.
Code: #include <amxmodx>
#include <engine>
public plugin_init()
{
register_plugin("Ping", "1.0", "sToP !")
set_task(60.0, "check_ping", _, _, _, "b")
}
public check_ping()
{
for(new id = 1; id <= get_playersnum(); id++)
{
new ping, loss
get_user_ping(id,ping, loss)
if( ping > 350)
{
client_print(id, print_console, "[HL.DM20.NET] You were kicked because you have ping over 350!")
client_cmd(id, "disconnect")
}
}
return PLUGIN_CONTINUE
}
|
|
|
Spectator Fix |
Posted by: marcudaniel1337 - 07-28-2024, 11:17 PM - Forum: Showcase
- No Replies
|
 |
This plugin allows HLDM players to go to spectator and back. It also adds the functionality of writing /spec in chat to alternate between states.
Code: #include <amxmodx>
#include <fakemeta>
#define PLUGIN_NAME "Spectator Fix"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "sToP !"
#define HUD_OFFSET 296
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_concmd("spectate", "hook_spectate")
register_clcmd("say /spec", "chat_spectate")
}
public chat_spectate(id)
{
client_cmd(id, "spectate")
return PLUGIN_CONTINUE
}
public hook_spectate(id)
{
if(pev(id, pev_iuser1) || pev(id, pev_iuser2))
{
spawn_player(id)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
spawn_player(id)
{
set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
dllfunc(DLLFunc_Spawn, id)
set_pev(id, pev_iuser1, 0)
set_pev(id, pev_iuser2, 0)
set_pdata_int(id, HUD_OFFSET, 0)
new szTeam[16]
get_user_info(id,"model", szTeam, charsmax(szTeam))
message_begin(MSG_ALL, get_user_msgid("TeamInfo"))
write_byte(id)
write_string(szTeam)
message_end()
}
|
|
|
Map Winner |
Posted by: marcudaniel1337 - 07-28-2024, 11:14 PM - Forum: Showcase
- No Replies
|
 |
Description: A simple plugin that shows at the end of the map who has won it.
Code: #include <amxmodx>
public plugin_init()
{
register_plugin("Winner", "1.0", "sToP !")
initial_function()
}
initial_function()
{
new variable
variable = get_cvar_num("mp_timelimit")
set_task(60.0 * variable, "main_function")
}
public main_function()
{
new frags, deaths, score
new max, winner_id
new winner[32]
frags = get_user_frags(1)
deaths = get_user_deaths(1)
score = frags - deaths
max = score
winner_id = 1
for(new id = 2; id <= get_playersnum(); id++)
{
frags = get_user_frags(id)
deaths = get_user_deaths(id)
score = frags - deaths
if( score > max)
{
max = score
winner_id = id
}
}
get_user_name(winner_id, winner, charsmax(winner))
client_print(0, print_chat, "[HL.DM20.NET] Winner is %s with score %d!", winner, max)
return PLUGIN_HANDLED
}
|
|
|
[MODEL] Unban |
Posted by: marcudaniel1337 - 07-25-2024, 09:12 AM - Forum: Unban Requests
- No Replies
|
 |
Nickname:
Steam ID:
Proof:
Date and time of the ban:
Open a new topic and follow the model above. Use as a title [Unban + your name]. (eg. "Unban sToP !")
|
|
|
[MODEL] Banlist |
Posted by: marcudaniel1337 - 07-25-2024, 09:10 AM - Forum: Banlist
- No Replies
|
 |
Nickname:
Player banned:
Proof:
Date and time:
Open a new topic with [Banlist + your name] (eg. "Banlist sToP !") and reply to it every time you ban a player. Use the model above to start that topic.
|
|
|
[MODEL] Request admin |
Posted by: marcudaniel1337 - 07-25-2024, 09:06 AM - Forum: Request admin
- No Replies
|
 |
Name:
Age:
Experience:
Steam ID:
Copy the above and complete them opening a new topic. Also make the title your nickname + request (eg. "sToP ! Request")
|
|
|
|