Shadowless
Пользователь
- Регистрация
- 24 Фев 2019
- Сообщения
- 237
- Симпатии
- 4
- Пол
- Мужской
please help me finish this lil plugin... i`m newbie and dont know so much
C++:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
public plugin_init( ) {
register_plugin( "Protect SRV PASS", "1.0", "Shadowless" );
register_clcmd("sv_password", "passprotect");
register_concmd("sv_password", "passprotect", ADMIN_IMMUNITY, "Protect Server Password" );
register_srvcmd("sv_password","passprotect");
}
public passprotect(id)
{
if (!(get_user_flags(id) & ADMIN_LEVEL_H))
{
console_print(id,"Notice: Only Server Owner Can Set Server Password")
client_print(0,print_chat,"Notice: Only Server Owner Can Set Server Password")
server_cmd("sv_password ^"^"")
}
return PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/