Code
public OnMapStart()
{
PrecacheModel("models/player/natalya/prison/prisoner.mdl", true);
PrecacheModel("models/player/techknow/prison/leet_p2.mdl", true);
PrecacheModel("models/player/elis/po/police.mdl", true);
PrecacheModel("models/player/techknow/prison/leet_p.mdl", true);
PrecacheModel("models/player/techknow/prison/leet_pc.mdl", true);
PrecacheModel("models/player/rocknrolla/ct_urban.mdl", true);
}
Code
public Action:VV(Handle:timer, any:client)
{
switch (rann)
{
case 1:
{
switch(GetClientTeam(client))
{
case 2:
{
switch (GetRandomInt(1, 2))
{
case 1:
{
//if(IsModelPrecached("models/player/natalya/prison/prisoner.mdl"))
SetEntityModel(client, "models/player/natalya/prison/prisoner.mdl");
}
case 2:
{
//if(IsModelPrecached("models/player/techknow/prison/leet_p2.mdl"))
// {
SetEntityModel(client, "models/player/techknow/prison/leet_p2.mdl");
//}
}
}
}
case 3:
{
//if(IsModelPrecached("models/player/elis/po/police.mdl"))
//{
SetEntityModel(client, "models/player/elis/po/police.mdl");
//}
}
}
}
case 2:
{
switch(GetClientTeam(client))
{
case 2:
{
switch (GetRandomInt(1, 2))
{
case 1:
{
//if(IsModelPrecached("models/player/techknow/prison/leet_p.mdl"))
//{
SetEntityModel(client, "models/player/techknow/prison/leet_p.mdl");
//}
}
case 2:
{
//if(IsModelPrecached("models/player/techknow/prison/leet_pс.mdl"))
//{
SetEntityModel(client, "models/player/techknow/prison/leet_pс.mdl");
//}
}
}
}
case 3:
{
//if(IsModelPrecached("models/player/techknow/prison/leet_pс.mdl"))
//{
SetEntityModel(client, "models/player/rocknrolla/ct_urban.mdl");
//}
}
}
}
}
}
Всё делаю вроде как надо на верно модели не кешириються и сервер крашиться. модели рабочие.
ПриКешенге модели пишет в консоле.
Player not found!
Player not found!
Player not found!
Player not found!
Player not found!
Player not found!