Raised This Month: $32 Target: $400
 8% 

Message Help


Post New Thread Reply   
 
Thread Tools Display Modes
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 01-19-2017 , 02:38   Re: Message Help
Reply With Quote #11

Quote:
Originally Posted by edon1337 View Post
PHP Code:
            if (amount >= 0)
            {
                
zp_colored_print(id"^x04[ZP BANK] ^x01Successfully Deposited %d Ammo Packs In Bank",amount);
                
store_packsid amount );
            } 
Not working it's not asking for value instead depositing whole ammo packs to bank without even asking value to type
Awesome_man is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-19-2017 , 05:20   Re: Message Help
Reply With Quote #12

am, nobody understand what the fuck you're talking about, try with google translate.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Old 01-19-2017, 05:40
Awesome_man
This message has been deleted by Awesome_man.
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-19-2017 , 10:10   Re: Message Help
Reply With Quote #13

I already told you. You have to use read_args.

1. Create a global bool , example : used_deposit[33];
2. When the case of deposit is chosen do, used_deposit[id] = true
3. Hook say chat , register_clcmd
4. Check for the value user entered (read_args)
5. Deposit the value and remove from him that value
6. When menu is closed do used_deposit[id] = false
__________________
edon1337 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 01-19-2017 , 16:53   Re: Message Help
Reply With Quote #14

I think what you want is to use client_cmd() along with "messagemode ^"this_is_my_messagemode^"" to make a text-based input.
You can then register "this_is_my_messagemode" as a command and use read_args() or read_argv() to get the value.
Replace with whatever you want it to say of course.
__________________
Black Rose is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-19-2017 , 18:13   Re: Message Help
Reply With Quote #15

yes, something like Register System by m0skv1a, open that plugin and check how is done.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Reply



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 00:13.


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