| Eviatar Mor |
07-31-2014 09:05 |
Problem on my plugin
hey,
i had build this plugin:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx> #include <amxmisc> #include <fakemeta>
new g_bDGL[ 33 ] new g_bAWP[ 33 ] new g_bKNIFE[ 33 ] new szName[ 33 ] new again;
new const pref[] = "[LoL Models - HNR]" public plugin_init() { register_event("CurWeapon", "DGL_Weapon", "be", "1=1") register_event("CurWeapon", "AWP_Weapon", "be", "1=1") register_event("CurWeapon", "Knife_Weapon", "be", "1=1") register_logevent("logevent_round", 2, "1=Round_Start") register_logevent("logevent_round", 2, "1=Round_End") register_clcmd("say /skins","NormalSkins") register_clcmd("say /models","NormalSkins") register_clcmd("say /model","NormalSkins") register_clcmd("say /skinim","NormalSkins") register_clcmd("say /modelim","NormalSkins") register_clcmd("say /normal","NormalSkins") register_clcmd("say /normalskins","NormalSkins") register_clcmd("say /turn","NormalSkins") } public plugin_precache(){ precache_model("models/lolmodels/v_deagle.mdl") precache_model("models/lolmodels/p_deagle.mdl") precache_model("models/lolmodels/v_admindeagle.mdl") precache_model("models/lolmodels/p_admindeagle.mdl") precache_model("models/lolmodels/v_awp.mdl") precache_model("models/lolmodels/p_awp.mdl") precache_model("models/lolmodels/v_adminawp.mdl") precache_model("models/lolmodels/p_adminawp.mdl") precache_model("models/lolmodels/v_knife.mdl") precache_model("models/lolmodels/p_knife.mdl") }
public DGL_Weapon(id){ if (g_bDGL [ id ] && read_data(2) == CSW_DEAGLE){ set_pev(id, pev_viewmodel2, "models/lolmodels/v_deagle.mdl") set_pev(id, pev_weaponmodel2, "models/lolmodels/p_deagle.mdl") } return PLUGIN_CONTINUE } public AWP_Weapon(id){ if (g_bAWP [ id ] && read_data(2) == CSW_AWP){ set_pev(id, pev_viewmodel2, "models/lolmodels/v_awp.mdl") set_pev(id, pev_weaponmodel2, "models/lolmodels/p_awp.mdl") } return PLUGIN_CONTINUE } public KNIFE_Weapon(id){ if (g_bKNIFE [ id ] && read_data(2) == CSW_KNIFE){ set_pev(id, pev_viewmodel2, "models/lolmodels/v_knife.mdl") set_pev(id, pev_weaponmodel2, "models/lolmodels/p_knife.mdl") } return PLUGIN_CONTINUE } public NormalSkins (id){ if(again) { g_bDGL[ id ] = false g_bKNIFE[ id ] = false g_bAWP[ id ] = false get_user_name(id, szName, charsmax(szName)) client_print(id, print_chat, "%s Disabled Skins For HNR", szName) } else { g_bDGL[ id ] = true g_bKNIFE[ id ] = true g_bAWP[ id ] = true get_user_name(id, szName, charsmax(szName)) client_print(id, print_chat, "%s Enabled Skins For HNR", szName) } } public logevent_round(client) { client_print(client, print_chat, "%d This Mod Created BY /A/ & SerMajor", pref) }
the problem i got is that i have 2 warnings.
|