Raised This Month: $ Target: $400
 0% 

API Scripting Help [EASY] Zombie Class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 09-10-2013 , 13:55   [EASY] Zombie Class
Reply With Quote #1

Can someone tell me how do I change a chat_print color
Like
Code:
client_print(id, print_chat, "[ZP] You Have Choosen Heavy Zombie!")
I want [ZP] to be highlighted green
__________________
BLacking98 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 09-10-2013 , 14:33   Re: [EASY] Zombie Class
Reply With Quote #2

add this:

PHP Code:
#include <colorchat> 
ColorChat(id, TEAM_COLOR, "^x04[ZP] ^x01You Have Choosen Heavy Zombie!")
wicho is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 09-11-2013 , 04:26   Re: [EASY] Zombie Class
Reply With Quote #3

Quote:
Originally Posted by wicho View Post
add this:

PHP Code:
#include <colorchat> 
ColorChat(id, TEAM_COLOR, "^x04[ZP] ^x01You Have Choosen Heavy Zombie!")
And how can I switch between colors?

Like

(id, TEAM_COLOR, "^x04[ZP] You have chosen Heavy Zombie!")

(And I only add ^x04 before ZP if I want ZP to change its color right ?
__________________
BLacking98 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 09-11-2013 , 04:47   Re: [EASY] Zombie Class
Reply With Quote #4

what u mean u want green only ZP and yellow this []? if u want this make this:

ColorChat(id, TEAM_COLOR, "^x01[^x04ZP^x01] You Have Choosen Heavy Zombie!")

Last edited by wicho; 09-11-2013 at 04:49.
wicho is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 09-11-2013 , 06:26   Re: [EASY] Zombie Class
Reply With Quote #5

Quote:
Originally Posted by wicho View Post
what u mean u want green only ZP and yellow this []? if u want this make this:

ColorChat(id, TEAM_COLOR, "^x01[^x04ZP^x01] You Have Choosen Heavy Zombie!")
So it changes from

Code:
client_print(id, print_chat, "^x01[^x04ZP^x01] You Have Choosen Heavy Zombie!")
to
Code:
ColorChat(id, TEAM_COLOR, "^x01[^x04ZP^x01] You Have Choosen Heavy Zombie!")
__________________

Last edited by BLacking98; 09-11-2013 at 06:28.
BLacking98 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 09-11-2013 , 14:50   Re: [EASY] Zombie Class
Reply With Quote #6

Yes check this to understand more https://forums.alliedmods.net/showthread.php?t=149555
wicho is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 09-11-2013 , 18:41   Re: [EASY] Zombie Class
Reply With Quote #7

Quote:
Originally Posted by wicho View Post
Thank you
__________________
BLacking98 is offline
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 22:32.


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