Raised This Month: $ Target: $400
 0% 

[ZP] First Invisible Zombie


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Xevious
Senior Member
Join Date: Sep 2009
Location: Computer Chair
Old 12-18-2009 , 02:32   [ZP] First Invisible Zombie
Reply With Quote #1

[ZP] First Invisible Zombie

[REQUIREMENT]
- ZOMBIE PLAGUE 4.3


When this plugin is installed into your server, the first zombie will be invisible.


[ Credit ]
-------------
meTaLiCroSS
Excalibur.007

----------------
Attached Files
File Type: sma Get Plugin or Get Source ([ZPC]First Invisible Zombie.sma - 1096 views - 1.7 KB)
__________________
Nothing possible when you are not hardworking

Last edited by Xevious; 12-19-2009 at 23:42.
Xevious is offline
Send a message via MSN to Xevious
vaan123
Veteran Member
Join Date: Sep 2009
Location: Kuwait
Old 12-18-2009 , 05:24   Re: [ZPC] First Invisible Zombie
Reply With Quote #2

[ZPC] First Invisible Zombie



[ZP] First Invisible Zombie

oh and +k
__________________

vaan123 is offline
Send a message via MSN to vaan123 Send a message via Yahoo to vaan123 Send a message via Skype™ to vaan123
LOLZEYE
Member
Join Date: Dec 2008
Location: AMXx Studio
Old 12-18-2009 , 05:30   Re: [ZPC] First Invisible Zombie
Reply With Quote #3

You can also make it for biohazard,i think.When just one single man is infected
__________________
LOLZEYE is offline
Send a message via AIM to LOLZEYE Send a message via Yahoo to LOLZEYE
Xevious
Senior Member
Join Date: Sep 2009
Location: Computer Chair
Old 12-18-2009 , 06:49   Re: [ZP] First Invisible Zombie
Reply With Quote #4

Quote:
[ZP] First Invisible Zombie
Changed

Quote:
You can also make it for biohazard,i think.When just one single man is infected
Sorry i only make for zombie plague 4.3
__________________
Nothing possible when you are not hardworking

Last edited by Xevious; 12-18-2009 at 06:51.
Xevious is offline
Send a message via MSN to Xevious
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 12-18-2009 , 15:25   Re: [ZP] First Invisible Zombie
Reply With Quote #5

You should set visibility on respawn and on the various events provided by the plugin (user infected, user cured or whatever there is, I know it has an API for that). Client PreThink seems unnecessary and a huge waste of resources.
__________________
In Flames we trust!
Nextra is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 12-18-2009 , 15:29   Re: [ZP] First Invisible Zombie
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
1. PreThink is a terrible place to set glow
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-18-2009 , 19:53   Re: [ZP] First Invisible Zombie
Reply With Quote #7

This plugin is simple to do but why you included engine?
EDIT: Is this what you want?

Code:
#include <amxmodx>
#include <fun>
#include <zombieplague>

new const zclass_name[] = { "Invisible Zombie" } // Zombie's NAME
new const zclass_info[] = { "HP+ SPEED+" } // Zombie's DESCRIPTION
new const zclass_model[] = { "zombie_source" } // MODEL
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // V-MODEL=HAND
const zclass_health = 200 // HP
const zclass_speed = 280 // SPEED
const Float:zclass_gravity = 1.0 // GRAVITY
const Float:zclass_knockback = 1.0 // KNOCKBACK

new g_FI_class // Class

public plugin_precache() 
{
    g_FI_class = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}

public plugin_init()
{
    register_plugin("[ZP] Zombie Class: First Invisible Zombie", "0.1", "Xevious ft meTaLiCroSS")
}

public zp_user_infected_post(id, infector)
{
    if(zp_get_user_first_zombie(id) && zp_get_user_zombie_class(id) == g_FI_class)
    {
        if(zp_get_zombie_count() == 1 && !zp_get_user_nemesis(id))
        {
            client_print(id, print_chat, "[ZP] You've chosen First Invisible Zombie.")
            set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0)
        }
        else if(zp_get_zombie_count() >= 2)
        {
            set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255)
        }
    }
}
It will set the 1st zombie and if there is 2 or more zombie it will remove the invisible. Nemesis will not get invisible.

Last edited by Excalibur.007; 12-18-2009 at 20:00.
Excalibur.007 is offline
Xevious
Senior Member
Join Date: Sep 2009
Location: Computer Chair
Old 12-19-2009 , 01:17   Re: [ZP] First Invisible Zombie
Reply With Quote #8

Quote:
You should set visibility on respawn and on the various events provided by the plugin (user infected, user cured or whatever there is, I know it has an API for that). Client PreThink seems unnecessary and a huge waste of resources.
FIXED

Quote:
Excalibur.007
THANK
__________________
Nothing possible when you are not hardworking
Xevious is offline
Send a message via MSN to Xevious
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-19-2009 , 04:48   Re: [ZP] First Invisible Zombie
Reply With Quote #9

Nonono... Your doing wrong zp_disinect_user(id) is to make the zombie to human =.= and you used !zp_get_user_zombie(id) ( Human ) at the Invisible code. I fixed both of it already.

Code:
#include <amxmodx>
#include <fun>
#include <zombieplague>

new const zclass_name[] = { "Invisible Zombie" } // Zombie's NAME
new const zclass_info[] = { "HP+ SPEED+" } // Zombie's DESCRIPTION
new const zclass_model[] = { "zombie_source" } // MODEL
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // V-MODEL=HAND
const zclass_health = 200 // HP
const zclass_speed = 280 // SPEED
const Float:zclass_gravity = 1.0 // GRAVITY
const Float:zclass_knockback = 1.0 // KNOCKBACK

new g_FI_class // Class

public plugin_precache() 
    g_FI_class = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)

public plugin_init()
    register_plugin("[ZP] Zombie Class: First Invisible Zombie", "0.5", "Xevious ft meTaLiCroSS")

public zp_user_infected_post(id, infector)
{
    //           Is first zombie                    Is use this zombie class
    if(zp_get_user_first_zombie(id) && zp_get_user_zombie_class(id) == g_FI_class)
    {    
        //                        Not a nemesis
        if(zp_get_user_zombie(id) && !zp_get_user_nemesis(id))
            
        set_user_rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderTransAlpha, 100) // Invisible 
    }
    else
    {
        if(zp_get_user_zombie_class(id) == g_FI_class)
        {    
            
            set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderNormal, 255) // Visible
        }  
    }
}

public zp_user_humanized_post(id)
{
    set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderNormal, 255) // Visible
}
Excalibur.007 is offline
Xevious
Senior Member
Join Date: Sep 2009
Location: Computer Chair
Old 12-19-2009 , 22:13   Re: [ZP] First Invisible Zombie
Reply With Quote #10

Thank UPDATED
__________________
Nothing possible when you are not hardworking
Xevious is offline
Send a message via MSN to Xevious
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode