Raised This Month: $32 Target: $400
 8% 

Subplugin Submission [ZP+BIOHAZARD] Chat addon 1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Event Related        Approver:   Xanimos (85)
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-23-2010 , 13:56   [ZP+BIOHAZARD] Chat addon 1.5
Reply With Quote #1

Zombie mod's chat addon(1.5)

Info:
This basic plugin must be customized before usage.
(in case you want to use zombie plague, since i made default as biohazard.)

When a player types a message plugin indentifies him as zombie/human,
depending on who the person is.

Ex:

Code:
Zombie/nemesis player -> [ZOMBIE] %name%: Hello, some dummy message :P
Human/survivor player -> [HUMAN] %name%: Hello, some dummy message :P
Requirements:
ZPlague or BIOHAZARD zombie mod installed on server
AMXX > 1.8.0( idk feels safer then )


I think you know how to install plugin so i wont explain it hard-coded way...
Attached Files
File Type: sma Get Plugin or Get Source (zombie_chat.sma - 3517 views - 3.3 KB)

Last edited by Lure.d; 04-07-2010 at 13:19.
Lure.d is offline
Send a message via Skype™ to Lure.d
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-23-2010 , 13:57   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #2

Good idea, and I guess the code isn't bad, but it's not good organized

Indent it better etc.
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-23-2010 , 14:07   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #3

ex plz?
Lure.d is offline
Send a message via Skype™ to Lure.d
BloodMan
Senior Member
Join Date: Apr 2008
Location: Lithuania
Old 03-23-2010 , 14:11   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #4

It was my idea, I asked him to do this lol.
__________________
BloodMan is offline
Send a message via Skype™ to BloodMan
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-23-2010 , 14:12   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #5

I don't know, the code may be good, but is it looking good if you look at it?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-23-2010 , 14:18   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #6

depending on what software you use.
Whilst I use AMXXstudio, the code is clean for me.

If you use NOTEPAD++ im not sure but it might be wrong styled.

I always use the space between code blocks and in-side code blocks
PHP Code:
Code block 1 {
     
2nd level code block {
          
3rd level code block {
                
code
          
}
     }

Lure.d is offline
Send a message via Skype™ to Lure.d
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 03-23-2010 , 15:00   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #7

Quote:
Originally Posted by crazyeffect View Post
I don't know, the code may be good, but is it looking good if you look at it?
Spam ftw.
KadiR is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 03-23-2010 , 15:02   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #8

idea from abdul-rehman ?
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-23-2010 , 15:10   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #9

abdul rehman? ftw dude i dont know any arabic people from here, sorry.

P.S. Im not rasist, just becouse i said arabic o_0
Lure.d is offline
Send a message via Skype™ to Lure.d
Old 03-23-2010, 15:12
Giaaan de St
This message has been deleted by Giaaan de St.
Old 03-23-2010, 15:17
Giaaan de St
This message has been deleted by Giaaan de St.
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-23-2010 , 15:20   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #10

Quote:
Originally Posted by Giaaan de St View Post
Optimized code:

PHP Code:
    #if defined USING_BIOHAZARD
    
    
(is_user_zombie(plr) ? print(0"\g[ZOMBIE] \y%s: %s"namechat) : print(0"\g[HUMAN] \y%s: %s"namechat))
    
    
#else
    
    
(zp_get_user_zombie(plr) ? print(0"\g[ZOMBIE] \y%s: %s"namechat) : print(0"\g[HUMAN] \y%s: %s"namechat))
    
#endif 
Should be
PHP Code:
// top of plugin
#if defined USING_BIOHAZARD
#define IsZombie is_user_zombie
#else
#define IsZombie zp_get_user_zombie
#endif

// in code
print(0"\g[%s] \y%s: %s"IsZombie(plr) ? "ZOMBIE" "HUMAN"namechat
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply


Thread Tools
Display Modes

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 09:46.


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