#define PLUGIN "Minmodel Kicker"
#define VERSION "1.0"
#include <amxmodx>
public client_putinserver(id) {
if(!task_exists(id)) {
set_task(10.0,"minmodels",id);
}
}
public client_disconnect(id) {
remove_task(id);
}
public minmodels(id) {
if(!is_user_connected(id)) {
return;
}
query_client_cvar(id,"cl_minmodels","results");
set_task(10.0,"minmodels",id);
}
public results(id, const cvar[], const value[]) {
new name[32]
if(equali(cvar,"cl_minmodels") && str_to_num(value)) {
server_cmd("kick #%d ^"cl_minmodels 1 is not allowed on this server^"",get_user_userid(id));
// Set hud message: Red, centered, autochanneled
set_hudmessage(255, 0, 0, -1, -1, 0, 2.0, 6.0, 0.8, 0.8, -1)
// Get user's name
get_user_name(id, name, 31)
// Show hud message
show_hudmessage(0,"Player (%s) kicked due to cl_minmodels = 1", name)
}
}
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
minmodels no steam
Temat rozp. her0p, 30.08.2012 02:42
2 odpowiedzi w tym temacie
#1
Napisano 30.08.2012 02:42
Any way to make this plugin also for non steam, if not possible could be done to avoid non steam kicked and steam kicked
#2
Napisano 01.09.2012 11:52
Yes. It is possible. Using dproto cvars you need to detect is user steam. If user is steam then use query_client_cvar, else you must use client_cmd in 1 sec task.
#3
Napisano 02.09.2012 11:39
Yes. It is possible. Using dproto cvars you need to detect is user steam. If user is steam then use query_client_cvar, else you must use client_cmd in 1 sec task.
Can you help me convert this plugin to no steam
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych


Dodatki SourceMod













