Raised This Month: $ Target: $400
 0% 

read_arg?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 06-19-2006 , 13:17  
Reply With Quote #4

if the cmd was
amx_ban name minutes

Code:
public test(id)
{
   new namearg[32], minutearg[32], minutes
   read_argv(1,namearg,31) // the first argument(name)
   read_argv(2,minutearg,31) // the second argument(minutes)
   minutes = str_to_num(minutearg)
   server_cmd("banid %d.0 ^"%s^" kick", minutes,namearg)
   
return PLUGIN_HANDLED;
}
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
 



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 08:04.


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