Bu Ak47 İçin CT-T Ak47 İçin Model
Kod:
#include <amxmodx>
#include <reapi>
new const PLUGIN[] = "T_CT_Knife";
new const VERSION[] = "1.0";
new const AUTHOR[] = "By.KinG";
new const CT_Ak47[] = "models/v_ak47.mdl";
new const T_Ak47[] = "models/v_ak47.mdl";
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1");
}
public plugin_precache()
{
precache_model(CT_Ak47);
precache_model(T_Ak47);
}
public Event_CurWeapon(ID)
{
new Weapon_ID = read_data(2);
switch(Weapon_ID)
{
case CSW_AK47:
{
switch(get_member(ID, m_iTeam))
{
case TEAM_CT :
{
set_entvar(ID, var_viewmodel, CT_Ak47);
}
case TEAM_TERRORIST :
{
set_entvar(ID, var_viewmodel, T_Ak47);
}
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
Bu M4A1 İçin Ct-T İçin Model
Kod:
#include <amxmodx>
#include <reapi>
new const PLUGIN[] = "T_CT_Knife";
new const VERSION[] = "1.0";
new const AUTHOR[] = "By.KinG";
new const CT_M4a1[] = "models/v_m4a1.mdl";
new const T_M4a1[] = "models/v_m4a1.mdl";
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1");
}
public plugin_precache()
{
precache_model(CT_M4a1);
precache_model(T_M4a1);
}
public Event_CurWeapon(ID)
{
new Weapon_ID = read_data(2);
switch(Weapon_ID)
{
case CSW_M4A1:
{
switch(get_member(ID, m_iTeam))
{
case TEAM_CT :
{
set_entvar(ID, var_viewmodel, CT_M4a1);
}
case TEAM_TERRORIST :
{
set_entvar(ID, var_viewmodel, T_M4a1);
}
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
Bu Usp İçin Ct-T İçin ModelKod:
#include <amxmodx>
#include <reapi>
new const PLUGIN[] = "T_CT_Knife";
new const VERSION[] = "1.0";
new const AUTHOR[] = "By.KinG";
new const CT_Usp[] = "models/v_usp.mdl";
new const T_Usp[] = "models/v_usp.mdl";
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1");
}
public plugin_precache()
{
precache_model(CT_Usp);
precache_model(T_Usp);
}
public Event_CurWeapon(ID)
{
new Weapon_ID = read_data(2);
switch(Weapon_ID)
{
case CSW_USP:
{
switch(get_member(ID, m_iTeam))
{
case TEAM_CT :
{
set_entvar(ID, var_viewmodel, CT_Usp);
}
case TEAM_TERRORIST :
{
set_entvar(ID, var_viewmodel, T_Usp);
}
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
Bu Deagle İçin Ct-T İçin ModelKod:
#include <amxmodx>
#include <reapi>
new const PLUGIN[] = "T_CT_Knife";
new const VERSION[] = "1.0";
new const AUTHOR[] = "By.KinG";
new const CT_Deagle[] = "models/v_deagle.mdl";
new const T_Deagle[] = "models/v_deagle.mdl";
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1");
}
public plugin_precache()
{
precache_model(CT_Deagle);
precache_model(T_Deagle);
}
public Event_CurWeapon(ID)
{
new Weapon_ID = read_data(2);
switch(Weapon_ID)
{
case CSW_DEAGLE:
{
switch(get_member(ID, m_iTeam))
{
case TEAM_CT :
{
set_entvar(ID, var_viewmodel, CT_Deagle);
}
case TEAM_TERRORIST :
{
set_entvar(ID, var_viewmodel, T_Deagle);
}
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
KONUNUZ COZULDUYSE BELİRTİRSİNİZ