1. sayfa (Toplam 1 sayfa)

Server model hatası

Gönderilme zamanı: Cmt Ağu 24, 2019 3:31 pm
gönderen ` White*

Kod: Tümünü seç

L 24/08/2019 - 15:24:25: (map "fy_iceworld16") Mod_LoadModel: dtr_slot not found

Kod: Tümünü seç

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

new const sG_Model[] = "dtr_slot";

public plugin_init(){
register_plugin
("Naber",
"1.0",
"Berk");

RegisterHam(Ham_Spawn,"player","bePS",1);
}
public plugin_precache(){
new sL_Model[96];
formatex(sL_Model,charsmax(sL_Model),"models/player/%s/%s.mdl",sG_Model,sG_Model);
precache_model(sG_Model);
}
public bePS(iP_ID){
new iL_Flags = get_user_flags(iP_ID);
if(iL_Flags & ADMIN_RESERVATION){
cs_set_user_model(iP_ID,sG_Model);
}
} 

Server model hatası

Gönderilme zamanı: Cmt Ağu 24, 2019 4:01 pm
gönderen Colditz
Buyur;

Kod: Tümünü seç

#include <amxmodx>
#include <reapi>

//Modelin yuklenecek yeri; models/player/modelismi/modelismi.mdl
new const modelismi[] = "modelismi";

public plugin_init() {
	register_plugin("Admin Model", "1.0", "PurposeLess");

	RegisterHookChain(RG_CBasePlayer_SetClientUserInfoModel, "SetClientUserInfoModel", .post = false);
}

public plugin_precache()
{
	new text[32];
	format(text, charsmax(text), "models/player/%s/%s.mdl", text, text);

	precache_model(text);
}

public SetClientUserInfoModel(const id, infobuffer[], newmodel[])
{
	if(get_user_flags(id) & ADMIN_RESERVATION)
	{
		SetHookChainArg(3, ATYPE_STRING, modelismi);
	}
}

Server model hatası

Gönderilme zamanı: Cmt Ağu 24, 2019 5:11 pm
gönderen ` White*

Kod: Tümünü seç

models/player/dtr_slot/dtr_slot.mdl

Kod: Tümünü seç

L 24/08/2019 - 17:04:11: (map "fy_iceworld16") Mod_LoadModel: dtr_slot not found
@Colditz