Need Help On Frost Nade Feb 7, 2015 11:15:08 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Feb 7, 2015 11:15:08 GMT Have you added this code in your main forst nade plugin?public plugin_natives(){ register_native("cs_give_frost_nade", "native_give_frost_nade")}public native_give_frost_nade(iPlugin, iParams){ new id = get_param(1) if(!is_user_alive(id)) return 0 buy_frostnade(id) return 1}
Need Help On Frost Nade Feb 7, 2015 11:30:16 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by tousif on Feb 7, 2015 11:30:16 GMT public plugin_init(){ register_plugin("FrostNades",VERSION,"Avalanche"); register_cvar("fn_version",VERSION,FCVAR_SERVER); register_native("cs_give_frost_nade", "native_give_frost_nade") pcv_enabled = register_cvar("fn_enabled","1"); pcv_override = register_cvar("fn_override","1"); pcv_nadetypes = register_cvar("fn_nadetypes","4"); // NT_SMOKEGRENADE pcv_teams = register_cvar("fn_teams","3"); pcv_price = register_cvar("fn_price","0"); pcv_icon = register_cvar("fn_icon","1"); pcv_limit = register_cvar("fn_limit","0"); pcv_buyzone = register_cvar("fn_buyzone","1"); pcv_color = register_cvar("fn_color","0 206 209"); pcv_by_radius = register_cvar("fn_by_radius","0.0"); pcv_hitself = register_cvar("fn_hitself","1"); pcv_los = register_cvar("fn_los","1"); pcv_maxdamage = register_cvar("fn_maxdamage","20.0"); pcv_mindamage = register_cvar("fn_mindamage","1.0"); pcv_chill_maxchance = register_cvar("fn_chill_maxchance","100.0"); pcv_chill_minchance = register_cvar("fn_chill_minchance","100.0"); pcv_chill_duration = register_cvar("fn_chill_duration","7.0"); pcv_chill_variance = register_cvar("fn_chill_variance","1.0"); pcv_chill_speed = register_cvar("fn_chill_speed","60.0"); pcv_freeze_maxchance = register_cvar("fn_freeze_maxchance","110.0"); pcv_freeze_minchance = register_cvar("fn_freeze_minchance","40.0"); pcv_freeze_duration = register_cvar("fn_freeze_duration","4.0"); pcv_freeze_variance = register_cvar("fn_freeze_variance","0.5"); mp_friendlyfire = get_cvar_pointer("mp_friendlyfire"); new mod[6]; get_modname(mod,5); if(equal(mod,"czero")) { czero = 1; bot_quota = get_cvar_pointer("bot_quota"); } maxPlayers = get_maxplayers(); gmsgScreenFade = get_user_msgid("ScreenFade"); gmsgStatusIcon = get_user_msgid("StatusIcon"); gmsgBlinkAcct = get_user_msgid("BlinkAcct"); gmsgAmmoPickup = get_user_msgid("AmmoPickup"); gmsgWeapPickup = get_user_msgid("WeapPickup"); gmsgTextMsg = get_user_msgid("TextMsg"); register_forward(FM_SetModel,"fw_setmodel",1); register_message(get_user_msgid("DeathMsg"),"msg_deathmsg"); register_event("ResetHUD", "event_resethud", "b"); register_event("TextMsg", "event_round_restart", "a", "2=#Game_Commencing", "2=#Game_will_restart_in"); register_event("HLTV", "event_new_round", "a", "1=0", "2=0"); RegisterHam(Ham_Spawn,"player","ham_player_spawn",1); RegisterHam(Ham_Killed,"player","ham_player_killed",1); RegisterHam(Ham_Player_ResetMaxSpeed,"player","ham_player_resetmaxspeed",1); RegisterHam(Ham_Think,"grenade","ham_grenade_think",0); RegisterHam(Ham_Use, "player_weaponstrip", "ham_player_weaponstrip_use", 1); for(new i=0; i<sizeof GRENADE_NAMES; i++) { RegisterHam(Ham_Item_Deploy, GRENADE_NAMES[i], "ham_grenade_deploy", 1); RegisterHam(Ham_Item_Holster, GRENADE_NAMES[i], "ham_grenade_holster", 1); RegisterHam(Ham_Item_AddToPlayer, GRENADE_NAMES[i], "ham_grenade_addtoplayer", 1); RegisterHam(Ham_Item_AddDuplicate, GRENADE_NAMES[i], "ham_grenade_addduplicate", 1); } register_clcmd("say /fn@784111","buy_frostnade"); register_clcmd("say_team /fn@111111","buy_frostnade"); register_clcmd("say /frost@nade788888","buy_frostnade"); register_clcmd("say_team /frost@nade100100","buy_frostnade"); fnFwdPlayerChilled = CreateMultiForward("frostnades_player_chilled", ET_STOP, FP_CELL, FP_CELL); fnFwdPlayerFrozen = CreateMultiForward("frostnades_player_frozen", ET_STOP, FP_CELL, FP_CELL);}public plugin_end(){ DestroyForward(fnFwdPlayerChilled); DestroyForward(fnFwdPlayerFrozen);}public native_give_frost_nade(iPlugin, iParams){new id = get_param(1)if(!is_user_alive(id))return 0buy_frostnade(id)return 1}yes
Need Help On Frost Nade Feb 7, 2015 11:51:55 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Feb 7, 2015 11:51:55 GMT register_native("cs_give_frost_nade", "native_give_frost_nade") should be registered under plugin_natives() forward not plugin_init().Please fix it.public plugin_natives(){ register_native("cs_give_frost_nade", "native_give_frost_nade")}
Need Help On Frost Nade Feb 7, 2015 12:52:09 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by tousif on Feb 7, 2015 12:52:09 GMT changed it but this error :/ Error: Undefined symbol "cs_give_frost_nade" on line 189line 189cs_give_frost_nade(client)
Need Help On Frost Nade Feb 7, 2015 15:41:29 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Feb 7, 2015 15:41:29 GMT Just try to change:native cs_give_frost_nade(id)-->native cs_give_frost_nade(client)
Need Help On Frost Nade Feb 7, 2015 15:56:11 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by tousif on Feb 7, 2015 15:56:11 GMT Where should i change it ?
Need Help On Frost Nade Feb 7, 2015 16:04:34 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by tousif on Feb 7, 2015 16:04:34 GMT i added this public plugin_natives(){register_native("cs_give_frost_nade", "native_give_frost_nade")}in frost nade .sma and this in shop//above plugin_init()native cs_give_frost_nade(client)cs_give_frost_nade(client) // this in case plugin compiled but bad load
Need Help On Frost Nade Feb 7, 2015 16:05:27 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by tousif on Feb 7, 2015 16:05:27 GMT Plugin uses an unknown function (name "cs_give_frost_nade") - check your modules.ini.
Need Help On Frost Nade Feb 7, 2015 23:39:32 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Feb 7, 2015 23:39:32 GMT Have you removed register_native("cs_give_frost_nade", "native_give_frost_nade") from plugin_init() section?
Need Help On Frost Nade Feb 8, 2015 4:48:39 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by tousif on Feb 8, 2015 4:48:39 GMT Yes i removed
Need Help On Frost Nade Feb 8, 2015 7:55:35 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Feb 8, 2015 7:55:35 GMT It is weird as it should be no problem.
Need Help On Frost Nade Feb 8, 2015 8:40:18 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by tousif on Feb 8, 2015 8:40:18 GMT the whats the problem
Need Help On Frost Nade Feb 8, 2015 8:46:21 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by tousif on Feb 8, 2015 8:46:21 GMT is der any nade mod that i can use :/
Need Help On Frost Nade Feb 8, 2015 13:04:33 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Feb 8, 2015 13:04:33 GMT I will try to find the solution.
Need Help On Frost Nade Feb 8, 2015 14:25:41 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by tousif on Feb 8, 2015 14:25:41 GMT ok