Raised This Month: $ Target: $400
 0% 

Need help about chat commands


Post New Thread Reply   
 
Thread Tools Display Modes
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
Old 01-26-2009, 16:53
AoD90
This message has been deleted by YamiKaitou. Reason: bump
Dr.G
Senior Member
Join Date: Nov 2008
Old 01-26-2009 , 16:59   Re: Need help about chat commands
Reply With Quote #3

nm
__________________

Last edited by Dr.G; 01-26-2009 at 17:05.
Dr.G is offline
Old 01-26-2009, 17:02
AoD90
This message has been deleted by AoD90. Reason: nvm
AoD90
Senior Member
Join Date: Jul 2008
Location: Ugljevik/RS/BIH
Old 01-31-2009 , 10:24   Re: Need help about chat commands
Reply With Quote #5

Anyone???
AoD90 is offline
Send a message via MSN to AoD90
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 01-31-2009 , 13:29   Re: Need help about chat commands
Reply With Quote #6

PHP Code:

public plugin_init() {
    
    
register_clcmd("say /live","cmdLive")
}


public 
cmdLive (id){
    
    
//your code here

__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 01-31-2009 , 13:32   Re: Need help about chat commands
Reply With Quote #7

Look how I do here: http://forums.alliedmods.net/showthread.php?t=81156
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
AoD90
Senior Member
Join Date: Jul 2008
Location: Ugljevik/RS/BIH
Old 01-31-2009 , 14:35   Re: Need help about chat commands
Reply With Quote #8

Didn't help very much
AoD90 is offline
Send a message via MSN to AoD90
AoD90
Senior Member
Join Date: Jul 2008
Location: Ugljevik/RS/BIH
Old 02-01-2009 , 10:35   Re: Need help about chat commands
Reply With Quote #9

I found it

Code:
    strtok(text, komanda, 11, text, 199, ' ')
    strtok(text, glavniCT, 31, text, 199, ' ')
    strtok(text, glavniT, 31, text, 199, ' ')
    strtok(text, config, 10, text, 199, ' ')
    strtok(text, demo, 5, text, 199, ' ')
AoD90 is offline
Send a message via MSN to AoD90
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 01:50.


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