Page 2 of 2

Re: Del respawn

Posted: 2011 Feb 26 21:11
by aaarnas
Newb, nežinau dabar, ar yra modelio pasirinkimo forwardas, bet blogiausiu atveju galima tikrinti su get_user_info(id, "model"...

Beje man atrodo veiktų su:

Code: Select all

 public plugin_init() {            register_forward(FM_SetClientKeyValue, "fw_SetClientKeyValue")}// Forward Set ClientKey Value -prevent CS from changing player models-public fw_SetClientKeyValue(id, const infobuffer[], const key[]){    if (key[0] == 'm' && key[1] == 'o' && key[2] == 'd' && key[3] == 'e' && key[4] == 'l')         return FMRES_IGNORED;}