Subb98 писал(а): RevCrew, cyberforum предложил бы, но что меня там бесит: создаёшь тему с вопросом - тебе отвечают ссылками на похожие темы, где даны ответы точно такими же ссылками на похожие темы с ответами с точно такими же ссылками. Как будто не на форум зашёл, а на порно-сайт с unlimited-redirect'ами.
Модератор: liFe iS GoOD
public plugin_precache()
{
if(твое условие)
{
pause("d")
return;
}
precache_model(...)
precache_sound(...)
precache_generic(...)
}
/* Formatright © 2010, ConnorMcLeod
This plugin is free software;
you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this plugin; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#define VERSION "0.1"
new const g_Sounds[][] =
{
"blablabla1.mdl",
"blablabla2.mdl"
}
new const g_Models[][] =
{
"blablabla1.wav", // Ïèõàåì ñþäà ìîäåëè êîòîðûå íå õîòèì ïðýêåøèòü, ìîæíî ðàñøèðÿòü ìàññèâ
"blablabla2.wav"
}
public plugin_precache()
{
register_plugin("UnPrecacher", VERSION, "Proo.Noob")
register_forward(FM_PrecacheModel, "PrecacheModel")
register_forward(FM_PrecacheSound, "PrecacheSound")
}
public PrecacheModel(const szModel[])
{
for(new i = 0; i < sizeof(g_Models); i++)
{
if( containi(szModel, g_Models[i]) != -1 )
{
forward_return(FMV_CELL, 0)
return FMRES_SUPERCEDE
}
}
return FMRES_IGNORED
}
public PrecacheSound(const szSound[])
{
for(new i = 0; i < sizeof(g_Sounds); i++)
{
if( containi(szSound, g_Sounds[i]) != -1 )
{
forward_return(FMV_CELL, 0)
return FMRES_SUPERCEDE
}
}
return FMRES_IGNORED
}
Вернуться в Вопросы по AMXX и его плагинам
Сейчас этот форум просматривают: Google [Bot] и гости: 11