Raised This Month: $ Target: $400
 0% 

Help, find players message?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-16-2012 , 16:06   Help, find players message?
Reply With Quote #1

Hey,

For example: im trying to make a typin contest for my last request plugin, but how can i get the message what the player typed?
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 04-16-2012 , 16:12   Re: Help, find players message?
Reply With Quote #2

This?

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_clcmd("say", "HookSay");     register_clcmd("say_team", "HookSay"); } public HookSay(id) {     new Arg[32];     read_args(Arg, 31);         // Arg = say's message }
__________________
kramesa is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-16-2012 , 16:28   Re: Help, find players message?
Reply With Quote #3

Yea but for example the first one player who types: (yes) correctly
I dont know how to register (Yes)
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 04-16-2012 at 16:29.
Bilal Pro is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 04-16-2012 , 16:32   Re: Help, find players message?
Reply With Quote #4

use
PHP Code:
equal 

Last edited by EpicMonkey; 04-16-2012 at 16:35.
EpicMonkey is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-16-2012 , 16:35  
Reply With Quote #5

Quote:
Originally Posted by Bilal Pro View Post
Yea but for example the first one player who types: (yes) correctly
I dont know how to register (Yes)
register_clcmd("say yes", "callback")
Doc-Holiday is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 04-16-2012 , 16:43   Re: Help, find players message?
Reply With Quote #6

You can replace the yes to Yes using replace_all().
__________________
kramesa is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-16-2012 , 17:10   Re: Help, find players message?
Reply With Quote #7

Quote:
Originally Posted by Doc-Holiday View Post
register_clcmd("say yes", "callback")
Lol i mean like a typing contest :S not a way to open something..
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-16-2012 , 17:14   Re: Help, find players message?
Reply With Quote #8

Quote:
Originally Posted by Bilal Pro View Post
Lol i mean like a typing contest :S not a way to open something..
That's how you hook what a player said.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply


Thread Tools
Display Modes

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 07:51.


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