Jump to content
GIGN Forum

Cl_Minmodel


Recommended Posts

Labvakar. Man vajadzētu lai kāds palīdz sataisīt lai cl_minmodel 1 lietotājus bano uz IP nevis STEAMID. Itkā liku lai bano uz ip bet kompilējot tad meta erroru. Paldies tam kas palīdzēs sataisīt. :)

#define PLUGIN "Minmodel Kicker"

#define VERSION "1.0"

#include <amxmodx>

public client_putinserver(id) {

if(!task_exists(id)) {

set_task(60.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(60.0,"minmodels",id);

}

public results(id, const cvar[], const value[]) {

if(equali(cvar,"cl_minmodels") && str_to_num(value)) {

server_cmd("amx_banip 10 #%d cl_minmodel 1 not allowed",get_user_userid(id));

}

}

Edited by KeeP oFf
Link to comment
Share on other sites

1. Daudziem cilvekiem cl_minmodels 1 ir uzlikts defaulta, un katreiz, mainot serveri, nevar atcereties parbaudit, vai cvars ir uzlikts uz 0 vai nav...

2. ja es pareizi atceros, plugins nedarbojas uz 47p, tapec visus, kam ir 47p, visticamak banos...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...