[Pomoc] ZM klase , sma file.
Results 1 to 3 of 3
  1. #1
    Senior Member Array
    Join Date
    Sep 2012
    Location
    Neverland
    Karma
    6

    Default ZM klase , sma file.

    Pozdrav kao što sam naslov kaze treba mi pomoc u vezi fajla zp_zclasses40.
    Code:
    L 03/05/2016 - 11:29:14: [AMXX] Run time error 10 (plugin "zp_zclasses40.amxx") (native "zp_get_user_zombie_class") - debug not enabled!
    L 03/05/2016 - 11:29:14: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini
    Ako moze neko da riješi jer sam online kompilovao i nije mi pokazalo nikakav error ali evo ipak naslo se je nesto i ovaj zp_get_user_zombie_class mi nije jasan .. ispisuje ga ali nemam taj plugin imam u scripting ali ne u 'plugins'.
    Sma fajl:
    Code:
    /*================================================================================
    	
    	-----------------------------------
    	-*- [ZP] Default Zombie Classes -*-
    	-----------------------------------
    	
    	~~~~~~~~~~~~~~~
    	- Description -
    	~~~~~~~~~~~~~~~
    	
    	This plugin adds the default zombie classes to Zombie Plague.
    	Feel free to modify their attributes to your liking.
    	
    	Note: If zombie classes are disabled, the first registered class
    	will be used for all players (by default, Classic Zombie).
    	
    ================================================================================*/
    
    #include <amxmodx>
    #include <fakemeta>
    #include <zombieplague>
    
    /*================================================================================
     [Plugin Customization]
    =================================================================================*/
    
    // Classic Zombie Attributes
    new const zclass1_name[] = { "Swarm Zombie" }
    new const zclass1_info[] = { "(HP,Speed,Gravity)" }
    new const zclass1_model[] = { "swarm_zombie" }
    new const zclass1_clawmodel[] = { "v_knife_swarm.mdl" }
    const zclass1_health = 4600
    const zclass1_speed = 200
    const Float:zclass1_gravity = 0.8
    const Float:zclass1_knockback = 1.24
    
    // Raptor Zombie Attributes
    new const zclass2_name[] = { "Speed Zombie" }
    new const zclass2_info[] = { "(Speed)" }
    new const zclass2_model[] = { "zombie_speed" }
    new const zclass2_clawmodel[] = { "v_speed_hands.mdl" }
    const zclass2_health = 2800
    const zclass2_speed = 330
    const Float:zclass2_gravity = 1.0
    const Float:zclass2_knockback = 1.5
    
    // Poison Zombie Attributes
    new const zclass3_name[] = { "Jumper Zombie" }
    new const zclass3_info[] = { "(Gravity)" }
    new const zclass3_model[] = { "zombie_jumper" }
    new const zclass3_clawmodel[] = { "v_zm_jumper.mdl" }
    const zclass3_health = 3800
    const zclass3_speed = 180
    const Float:zclass3_gravity = 0.49
    const Float:zclass3_knockback = 1.24
    
    // Big Zombie Attributes
    new const zclass4_name[] = { "Health Zombie" }
    new const zclass4_info[] = { "(Health)" }
    new const zclass4_model[] = { "zombie_big" }
    new const zclass4_clawmodel[] = { "v_knife_zombi_big.mdl" }
    const zclass4_health = 6400
    const zclass4_speed = 170
    const Float:zclass4_gravity = 1.0
    const Float:zclass4_knockback = 0.5
    
    // Leech Zombie Attributes
    new const zclass5_name[] = { "Girl Zombie" }
    new const zclass5_info[] = { "(Leech)" }
    new const zclass5_model[] = { "girl_zombie" }
    new const zclass5_clawmodel[] = { "v_knife_girl.mdl" }
    const zclass5_health = 3600
    const zclass5_speed = 195
    const Float:zclass5_gravity = 1.0
    const Float:zclass5_knockback = 1.25
    const zclass5_infecthp = 200 // extra hp for infections
    
    /*============================================================================*/
    
    // Class IDs
    new g_zclass_leech
    
    // Zombie Classes MUST be registered on plugin_precache
    public plugin_precache()
    {
    	register_plugin("[ZP] Default Zombie Classes", "4.3", "MeRcyLeZZ")
    	
    	// Register all classes
    	zp_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, zclass1_knockback)
    	zp_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, zclass2_knockback)
    	zp_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, zclass3_knockback)
    	zp_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, zclass4_knockback)
    	g_zclass_leech = zp_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback)
    }
    
    // User Infected forward
    public zp_user_infected_post(id, infector)
    {
    	// If attacker is a leech zombie, gets extra hp
    	if (zp_get_user_zombie_class(infector) == g_zclass_leech)
    		set_pev(infector, pev_health, float(pev(infector, pev_health) + zclass5_infecthp))
    }
    K+ ko pomogne

  2. #2
    Senior Member Array
    Join Date
    Mar 2016
    Karma
    0

    Default

    Kaze ti da taj compiler nema debug u sebi tako da kada ubacis lepo mod na srw i sve ostalo potrebno moras ici u plugins.ini i kucati sledece .

    zp_zclasses40.amxx debug. To je sve.

  3. #3
    Junior Member Array
    Join Date
    Aug 2013
    Karma
    0

    Default

    Brate mozes slobodno da me dodas na skype nikola.wulke ako ti treba da ti dam zp_zclasses40. I malo je uredjen nema bugova niti ista slicno kompilovao sam preko AMX STUDIO

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •