Raised This Month: $ Target: $400
 0% 

Zombie class name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Oneshox
BANNED
Join Date: May 2010
Location: Germany
Old 05-13-2010 , 09:31   Zombie class name
Reply With Quote #1

hey,
someone can tell me how i can get zombie class name
example:
You are now using %d class

but in sub plugin
Oneshox is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-13-2010 , 10:05   Re: Zombie class name
Reply With Quote #2

Not possible bcoz the native has not been biuld..
You can get the id of the class if you want..[ Id is basically a number]

For eg:
The id of a classic zombie is 0
The id of a raptor zombie is 1
similiarly every id is a consecutive number
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Oneshox
BANNED
Join Date: May 2010
Location: Germany
Old 05-13-2010 , 10:07   Re: Zombie class name
Reply With Quote #3

Quote:
Originally Posted by abdul-rehman View Post
Not possible bcoz the native has not been biuld..
You can get the id of the class if you want..[ Id is basically a number]

For eg:
The id of a classic zombie is 0
The id of a raptor zombie is 1
similiarly every id is a consecutive number
and included in zombie plague?

g_zclass_name ?
Oneshox is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-13-2010 , 10:09   Re: Zombie class name
Reply With Quote #4

Ya but there is not native which returns the classname..
I will be adding support for it in my new version..
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Oneshox
BANNED
Join Date: May 2010
Location: Germany
Old 05-13-2010 , 10:13   Re: Zombie class name
Reply With Quote #5

Quote:
Originally Posted by abdul-rehman View Post
Ya but there is not native which returns the classname..
I will be adding support for it in my new version..
and how i can make plugin somethink like that, that it print class?

if (zp_get_user_zombie_class = g_zclass6)
{
client_print("You are now (what comes here) ?
}
Oneshox is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-13-2010 , 11:51   Re: Zombie class name
Reply With Quote #6

Quote:
Originally Posted by Oneshox View Post
and how i can make plugin somethink like that, that it print class?

if (zp_get_user_zombie_class = g_zclass6)
{
client_print("You are now (what comes here) ?
}
You can do it like this:
PHP Code:
 
// This number is your zombie class id you want to test
// 3 is usually the id of "Poison Zombie"
#define ID 3
 
public zp_user_infected_post(id infector)
{
        if (
zp_get_user_zombie_class == ID)
                
client_printid," your id is %d" ,ID
__________________

My Plugins For ZP

Inactive due to College and Studies

Last edited by abdul-rehman; 05-13-2010 at 15:57.
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Oneshox
BANNED
Join Date: May 2010
Location: Germany
Old 05-13-2010 , 14:01   Re: Zombie class name
Reply With Quote #7

and for your chat plugin how i can include there ? :/ thats what i want all the time..
Oneshox is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-13-2010 , 15:54   Re: Zombie class name
Reply With Quote #8

1- Get the id's of every zombie by using the plugin i have provided above
2- While in-game when your checking id's check which name of zombie represents the id for eg you got this in game:
Your id is 4
Now check which zombie class you have chosen for eg you have chosen Rage Zombie so it means that Rage Zombie's id is 4
3- In the chat plugin do it like this:
PHP Code:
    else if (zp_get_user_zombie_class(id) == 4)
    {
          
ColorChat(0RED"[Rage Zombie] ^x04%s^x01: %s"name,chat);
    }
   else
          
ColorChat(0RED"[ZOMBIE] ^x04%s^x01: %s"namechat); 
Hope you understand my time-consuming idea.
__________________

My Plugins For ZP

Inactive due to College and Studies

Last edited by abdul-rehman; 05-13-2010 at 15:58.
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Oneshox
BANNED
Join Date: May 2010
Location: Germany
Old 05-14-2010 , 01:20   Re: Zombie class name
Reply With Quote #9

Quote:
Originally Posted by abdul-rehman View Post
1- Get the id's of every zombie by using the plugin i have provided above
2- While in-game when your checking id's check which name of zombie represents the id for eg you got this in game:
Your id is 4
Now check which zombie class you have chosen for eg you have chosen Rage Zombie so it means that Rage Zombie's id is 4
3- In the chat plugin do it like this:
PHP Code:
    else if (zp_get_user_zombie_class(id) == 4)
    {
          
ColorChat(0RED"[Rage Zombie] ^x04%s^x01: %s"name,chat);
    }
   else
          
ColorChat(0RED"[ZOMBIE] ^x04%s^x01: %s"namechat); 
Hope you understand my time-consuming idea.
ye man good idea i hope it works..
Oneshox is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-14-2010 , 03:30   Re: Zombie class name
Reply With Quote #10

It WILL WORK..
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
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 03:41.


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