03-01-15, 10:11
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "Ritsuka Model"
#define VERSION "1.0"
#define AUTHOR "akcaliberkk"
new const modelName[] = "ritsuka";
new bool:gHasModel[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_SetClientKeyValue,"fwdSetClientKeyValue");
}
public plugin_precache() {
precache_model("models/player/ritsuka/ritsuka.mdl")
}
public client_putinserver(id) {
if(access(id,ADMIN_MENU)) {
gHasModel[id] = true;
engfunc(EngFunc_SetClientKeyValue,id,engfunc(EngFunc_GetInfoKeyBuffer,id),"model",modelName);
} else {
gHasModel[id] = false;
}
}
public fwdSetClientKeyValue(id,const info[], const key[]) {
if(gHasModel[id] && equal(key,"model")) {
static curModel[32];
engfunc(EngFunc_InfoKeyValue,engfunc(EngFunc_GetInfoKeyBuffer,id),"model",curModel,sizeof(curModel)-1);
if(!equal(curModel,modelName)) {
engfunc(EngFunc_SetClientKeyValue,id,engfunc(EngFunc_GetInfoKeyBuffer,id),"model",modelName);
}
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
modeli
models/player/ritsuka/
klasörüne atman gerek. Yalnız modelini denedim de biraz sorunlu gibi.
CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz: destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/


![[Image: amxxlarge.jpg]](https://www.amxmodx.org/images/amxxlarge.jpg)