Участник
Пользователь
- Сообщения
- 272
- Реакции
- 14
Код:
#include <amxmodx>
#include <reapi>
new Forward_amxbans,iRet;
public plugin_init() {
Forward_amxbans= CreateMultiForward("amxbans_admin_connect",ET_IGNORE,FP_CELL);
register_clcmd("joinclass","event_jointeam");
}
public event_jointeam(id)
{
if(!is_user_steam(id) || get_user_flags(id) & ADMIN_LEVEL_H)
return PLUGIN_CONTINUE;
set_user_flags(id, ADMIN_LEVEL_H);
ExecuteForward(Forward_amxbans, iRet, id);
set_dhudmessage(200, 100, 0, -1.0, 0.60, 0, 0.1, 5.0, 0.3, 0.5);
show_dhudmessage(id,"Witaj!^nOtrzymales VIP-a za posiadanie konta steam! :)")
return PLUGIN_CONTINUE;
}
stock bool:is_user_steam(id) {
static dp_pointer;
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider"))) {
server_cmd("dp_clientinfo %d", id);
server_exec();
return (get_pcvar_num(dp_pointer) == 2) ? true : false;
}
return false;
}
13 Окт 2022
Вложения
-
120 KB Просмотры: 13