Raised This Month: $ Target: $400
 0% 

Need help about chat commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AoD90
Senior Member
Join Date: Jul 2008
Location: Ugljevik/RS/BIH
Old 01-24-2009 , 13:23   Need help about chat commands
Reply With Quote #1

How to make say command
Code:
/live <cttag> <ttag> <esl/kode5> <rec> (rec - record if defined)
I made this:

Code:
public cmdSay(id)
{
    if (!access(id, ADMIN_LEVEL_A))
    {
        return PLUGIN_CONTINUE
    }
    new text[200]
    read_args(text,199)
    remove_quotes(text)

    if(containi(text,"/live ")==0)
    {
        startLive(0)
        format(text,199,"%s",text[6])

        strbreak(text,glavniCT,31,text,199)

        new i = strlen(text)
        while(i>=0)
        {
        if(text[i]==' ')
        {
            break
        }
        i--
        }

        strbreak(text,glavniT,31,text,199)
        
        return PLUGIN_HANDLED
    }
    return PLUGIN_CONTINUE
}

Last edited by AoD90; 01-24-2009 at 13:27.
AoD90 is offline
Send a message via MSN to AoD90
 



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 01:50.


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