Help With more than 1 word chat detect
Hey,
I have a code for a plugin that i made, I need to detect a word that a player need to say, and if the player says the word he will win. But... if the word that the player need to say is built from more than 1word, so it not detect it. I mean that the 1word working fine, but more than 1 word it not detect it fine. the part of the code: Code:
public sayheydsc(id) |
Re: Help With more than 1 word chat detect
Use read_args.
PHP Code:
|
Re: Help With more than 1 word chat detect
Quote:
Works great ! :) |
Re: Help With more than 1 word chat detect
Hey sorry but there is a problem.
If the word that the player need to say is for example "hey dsc" So if the player says it different by capital letter/small letters "HeY DsC" / "heY dsC" Etc... So It's not detecting it, can be fix ? |
Re: Help With more than 1 word chat detect
Try equali.
PHP Code:
PHP Code:
|
Re: Help With more than 1 word chat detect
Quote:
|
Re: Help With more than 1 word chat detect
Hey again,
I'm having a little problem on this message detect. I use it for a plugin that I made that would play a song, and the first player who writes the song name wins. but now all players do binds (bind x "say rain over me"). And they wining fast by cheating, is there a way that it will detect the message only if it was write by a messagemode ? (when you press "y" and write something). |
Re: Help With more than 1 word chat detect
Quote:
Play different songs and this won't happen. |
Re: Help With more than 1 word chat detect
Quote:
So if there isn't a way to detect by a messagemode, maybe there's a way to detect if player have a specific bind (as - bind x "say rain over me" and more) and if so. it will block this bind, or something else that can help by detecting this bind. btw, i'm using 20-30 songs, just need a help to block this people from doing those binds... |
Re: Help With more than 1 word chat detect
You cannot get player binds
|
| All times are GMT -4. The time now is 16:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.