request plugin
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
Forum rules
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
- kidd0x
- Utilizator neserios (tepar)
- Posts: 1054
- Joined: 06 Oct 2018, 14:41
- Detinator Steam: Da
- SteamID: /id/kidd0x/
- Reputatie: Utilizator neserios (tepar!)
- Fond eXtream: 0
- Location: Constangeles
- Discord: kidd0x
- Has thanked: 172 times
- Been thanked: 81 times
Was that hard? https://forums.alliedmods.net/showthread.php?t=43979
- A k c 3 n 7
- Super moderator
- Posts: 5138
- Joined: 25 Aug 2014, 21:31
- Detinator Steam: Da
- CS Status: who dares wins
- SteamID: Jandarmeria
- Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel - Fond eXtream: 0
- Location: Unknown
- Discord: remusakcent
- Has thanked: 4 times
- Been thanked: 46 times
A spus ca nu vrea sa foloseasca acel plugin doar pentru atat, este si nornal
Thats works
you must go in cstrike/models and create a new folder with name "c4" and put what models you want there, and your models must be have necessarily this names
Thats works
Code: Select all
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
new const c4_w_model[] = "models/c4/c4_w_new.mdl"
new const c4_models[][] =
{
"models/c4/c4_v_new.mdl",
"models/c4/c4_p_new.mdl"
}
public plugin_init()
{
register_plugin("C4 Models Replacement", "1.0" ,"Sorinel");
register_forward(FM_SetModel,"fw_setmodel");
RegisterHam(Ham_Item_Deploy, "weapon_c4", "Ham_Item_Deploy_Post", 1);
}
public plugin_precache()
{
for( new i = 0; i < sizeof c4_models; i++ )
engfunc( EngFunc_PrecacheModel, c4_models[i]);
engfunc( EngFunc_PrecacheModel, c4_w_model);
}
public Ham_Item_Deploy_Post(ent)
{
static id;
id = get_pdata_cbase( ent, 41, 4 )
if(!pev_valid(ent))
return;
set_pev( id, pev_viewmodel2, c4_models[0]);
set_pev( id, pev_weaponmodel2, c4_models[1]);
}
public fw_setmodel(ent,model[])
{
if(equali(model,"models/w_c4.mdl"))
{
engfunc(EngFunc_SetModel,ent, c4_w_model);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
Code: Select all
new const c4_w_model[] = "models/c4/c4_w_new.mdl"
new const c4_models[][] =
{
"models/c4/c4_v_new.mdl",
"models/c4/c4_p_new.mdl"
}
-
- Information
-
Who is online
Users browsing this forum: A k c 3 n 7, Bing [Bot], Doctor whO? <3, endlessux and 40 guests