block command
I have a command on my server
/transfer NAME <AMOUNT> How can I do that if you type /transfer it will not do anything? even if he types the full command with name and amount. And I cant delete the plugin with it because im doing that if its your first time on the server you cant send. |
Re: block command
Return PLUGIN_HANDLED in order to do nothing when the user has not previously joined the server. You still need to add a check, EX if (!user_prev_exists(id)) { RETURN PLUGIN_HANDLED; }
|
Re: block command
Quote:
Could you tell me how to do if he is 20 min on the server he can use the command /transfer? and before that he cant. |
Re: block command
Learn to use the nVault system. It auto-generates timestamps for you so you can simply use those. Create the KV pair once the user hops on the server, and check it when the user types the command.
|
Re: block command
Quote:
I dont really know much scripting how can I do if he is 20 min on the server he can only use /transfer? and before it just ignore? return? |
Re: block command
post sma here i will help you.
|
| All times are GMT -4. The time now is 21:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.