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

Subplugin Submission [ZP+BIOHAZARD] Chat addon 1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-23-2010 , 15:25   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #11

the first ? mean if zp get user zombie is true, and the : means else option, am I right?

Last edited by Lure.d; 03-23-2010 at 15:39.
Lure.d is offline
Send a message via Skype™ to Lure.d
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 03-23-2010 , 15:30   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #12

Quote:
Originally Posted by Russiaboy View Post
idea from abdul-rehman ?
http://forums.alliedmods.net/showthread.php?t=116650

I saw this plug-in in an United State's server a long while earlier..
__________________


SpILL is offline
BloodMan
Senior Member
Join Date: Apr 2008
Location: Lithuania
Old 03-23-2010 , 15:32   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #13

On biohazard mode when this plugin is enabled, I can't use /class or /help commands.
__________________
BloodMan is offline
Send a message via Skype™ to BloodMan
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-23-2010 , 15:36   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #14

Quote:
Originally Posted by Lure.d View Post
the first ? mean if zp get user zombie is ture, and the : means else option, am I right?
http://forums.alliedmods.net/showthread.php?t=79543
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-23-2010 , 15:37   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #15

@wrecked: thanks! I'll keep that in mind

@bloodman: i tried to detect if first letter is / them to return PLUGIN_HANDLED .

PHP Code:
if ( contain chat[0] , "/" ) ) return PLUGIN_HANDLED
Didnt seem to work though!
Lure.d is offline
Send a message via Skype™ to Lure.d
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-23-2010 , 15:38   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #16

Quote:
Originally Posted by Lure.d View Post
i tried to detect if first letter is / them to return PLUGIN_HANDLED .

PHP Code:
if ( contain chat[0] , "/" ) ) return PLUGIN_HANDLED
Didnt seem to work though!
Code:
if( equali( chat[0], '/' ) ) return PLUGIN_HANDLED;
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-23-2010 , 15:50   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #17

thanks, updating to v1.1
updated the code, to exolent's : ? stuff (now i got it, and i know its if conditions in the better way xD )

and corrected my mistake for not adding the detection of a slash in front of message ;)
Lure.d is offline
Send a message via Skype™ to Lure.d
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-23-2010 , 15:52   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #18

Quote:
Originally Posted by Lure.d View Post
thanks, updating to v1.1
updated the code, to exolent's : ? stuff (now i got it, and i know its if conditions in the better way xD )

and corrected my mistake for not adding the detection of a slash in front of message ;)
No, you didn't.
PHP Code:
    #if defined USING_BIOHAZARD
        
print( "\g[%s] \y%s: %s" IsZombieplr ) ? "ZOMBIE" "HUMAN" name chat ); //exolent's hard coding :D
    #else
        
print( "\g[%s] \y%s: %s" IsZombieplr ) ? "ZOMBIE" "HUMAN" name chat ); //exolent's hard coding :D
    #endif 
I didn't show you that.
Look at my snippet again.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-23-2010 , 16:00   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #19

EDIT: Silly me, updated to normal version o_0

Still keeping your credits

Well i actually removed the #if's becouse I came to my mind that we define the "IsZombie" at the very top so we dont need to do the #if's again xD

Last edited by Lure.d; 03-23-2010 at 16:05.
Lure.d is offline
Send a message via Skype™ to Lure.d
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-23-2010 , 16:17   Re: [ZP+BIOHAZARD] Chat addon
Reply With Quote #20

Quote:
Originally Posted by Lure.d View Post
Well i actually removed the #if's becouse I came to my mind that we define the "IsZombie" at the very top so we dont need to do the #if's again xD
That's what I showed you in the first time I posted.
__________________
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 07:39.


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