Всем привет. Снимаю ролики по серверу кс, Столкнулся с сложностью : не могу заставить плагин сделать только для админов. Сервер не портит файлы игроку. И раздаю всем желающим админки абсолютно бесплатно. Нужно переделать 3 плагина
1. Урон (Damager) Код:
#include <amxmodx>
new g_MsgSync new g_MsgSync2
new isConnected[33 char]
public plugin_init() { register_plugin("Damager", "1.0", "Prayer")
/* * * * AmxModX * Vampire plugin * by Shalfey * * CVars * amx_vampire_hp - hp add for kill * amx_vampire_hp_hs - hp add for kill in head * amx_vampire_max_hp - max player hp * * Players gets HP for kills. */ #include <amxmodx> #include <fun>
#define PLUGIN_VERSION "1.0c"
new health_add new health_hs_add new health_max
new nKiller new nKiller_hp new nHp_add new nHp_max
public plugin_init() { register_plugin("Vampire", PLUGIN_VERSION, "Shalfey")
в принципе, мог бы сам уже понять что к чему, а не спустя несколько дней стучать в ЛС.
vampire
Код:
/* * <noindex><a rel="nofollow" href="https://c-s.net.ua/url?u=http%3A%2F%2Fgames.qwerty.ru" target="_blank">http://games.qwerty.ru</a></noindex> * * AmxModX * Vampire plugin * by Shalfey * * CVars * amx_vampire_hp - hp add for kill * amx_vampire_hp_hs - hp add for kill in head * amx_vampire_max_hp - max player hp * * Players gets HP for kills. */ #include <amxmodx> #include <fun>
#define PLUGIN_VERSION "1.0c"
new health_add new health_hs_add new health_max
new nKiller new nKiller_hp new nHp_add new nHp_max
public plugin_init() { register_plugin("Vampire", PLUGIN_VERSION, "Shalfey")