Raised This Month: $ Target: $400
 0% 

How to get command arguments?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AoD90
Senior Member
Join Date: Jul 2008
Location: Ugljevik/RS/BIH
Old 05-04-2010 , 07:29   Re: How to get command arguments?
Reply With Quote #2

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say""cmdSay")
}

public 
cmdSay(id)
{
    new 
text[200]
    
read_args(text,199)
    
remove_quotes(text)

    if(
containi(text,"/add")==0)
         
strtok(texttext199YourNumberWillBeHere255' ')
    return 
PLUGIN_CONTINUE

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 03:38.


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