read_arg?
i need got param from command amx_ban,amx_addip and someone.
how i can do this? example,amx_ban name minute reason if minutes == 0 {...} |
Use read_argv();
|
write example for me how i must get params
|
if the cmd was
amx_ban name minutes Code:
public test(id) |
if i write this:
read_argv(1,name,31) read_argv(2,minutes,9) read_argv(3,reason,127) read_argv(4, target, 31) read_argv(5,cmd,15) new player = cmd_target(id, target, 9) get_user_name(player,nick,31) if (equal(cmd,"amx_ban") == 1) { if (str_to_num(minutes) == 0) { log_amx("%s %s %s %s",nick,name/*<<admin*/,reason) } } ... for example. this will be work? |
| All times are GMT -4. The time now is 08:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.