Szukałem pluginu na war3ft, który by wyrzucał graczy za posiadanie złej komendy cl_minmodels 1 . Znalazłem owaką na alliendmods.net Sprawa polega na tym żeby plugin działał na serwer steam/ns i czy błędy przy kompilacji
/groups/amxmodx/tmp3/text6rgG6M.sma(31) : warning 213: tag mismatch
/groups/amxmodx/tmp3/text6rgG6M.sma(31) : warning 213: tag mismatch
w czymś przeszkadzają ? Bo jestem zielony w sprawach scriptingu więc proszę o pomoc.
#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)
}
}