Raised This Month: $ Target: $400
 0% 

I have a little problem in my code..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 05-31-2010 , 10:41   Re: I have a little problem in my code..
Reply With Quote #1

PHP Code:
public advert() 
{
    
    
ColorChat(0GREEN"^x04[ULT-Serv] ^x01Click^x03 'N' To Open  The^x04 Shop.");
    
    
ColorChat(0GREEN"^x04[ULT-Serv] ^x01This Server Running ^x04[Hns  Shop]^x01 To Open The Shop Type^x03 /hnsshop^x01 or^x03 /shop");

Well, if you are using this ColorChat plugin it should look like this:

PHP Code:
public advert() 
{
    
    
client_print_color(0GREEN"^4[ULT-Serv] ^1Click ^3'N' ^1To Open  The ^4Shop.");
    
    
client_print_color(0GREEN"^4[ULT-Serv] ^1This Server Running  ^4[Hns Shop] ^1To Open The Shop Type ^3/hnsshop ^1or ^3/shop");

And...
PHP Code:
       if(!is_user_alive(id)) 
            {
                
client_print_color(idGREEN"^4[HnS Shop] ^1You need to be alive!");
                return 
PLUGIN_HANDLED;
            }
            
            if(
userantifrost[id] > 0
            {
                
client_print_color(idGREEN"^4[HnS Shop] ^1You already own this item!");
                return 
PLUGIN_HANDLED;
            }
            
            if(
get_pcvar_num(allowantifrost) == 0) {
                
client_print_color(idGREEN"^4[HnS Shop] ^1This item is disabled.");
                return 
PLUGIN_HANDLED

But if you don't say which ColorChat plugin or "Native" you are trying to use, no one can help.

Last edited by RedRobster; 05-31-2010 at 10:58.
RedRobster 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 05:22.


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