AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help, find players message? (https://forums.alliedmods.net/showthread.php?t=183065)

Bilal Pro 04-16-2012 16:06

Help, find players message?
 
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?

kramesa 04-16-2012 16:12

Re: Help, find players message?
 
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 }

Bilal Pro 04-16-2012 16:28

Re: Help, find players message?
 
Yea but for example the first one player who types: (yes) correctly
I dont know how to register (Yes)

EpicMonkey 04-16-2012 16:32

Re: Help, find players message?
 
use
PHP Code:

equal 


Doc-Holiday 04-16-2012 16:35

Quote:

Originally Posted by Bilal Pro (Post 1690641)
Yea but for example the first one player who types: (yes) correctly
I dont know how to register (Yes)

register_clcmd("say yes", "callback")

kramesa 04-16-2012 16:43

Re: Help, find players message?
 
You can replace the yes to Yes using replace_all().

Bilal Pro 04-16-2012 17:10

Re: Help, find players message?
 
Quote:

Originally Posted by Doc-Holiday (Post 1690646)
register_clcmd("say yes", "callback")

Lol i mean like a typing contest :S not a way to open something..

Exolent[jNr] 04-16-2012 17:14

Re: Help, find players message?
 
Quote:

Originally Posted by Bilal Pro (Post 1690670)
Lol i mean like a typing contest :S not a way to open something..

That's how you hook what a player said.


All times are GMT -4. The time now is 07:51.

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