Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
Hi, can someone explain me 'bout OnPlayerText,
what I want is this:
when a player types Justin bieber
there comes, error: this server is not gay!
I don't know how to use this callback... is it the same as OnPlayerCommandText with sctrcmp?
Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
:O thanks buddies!
never got helped so far xD
PS: To mister winnie the Poo, what's diffrence between both of your examples? does it have a diffrend effect? the sctrcmp and strfind?
Larsey123IsMe
Unregistered
It is also possible to set the player health to 1 when he say Justin Bieber?
Posts: 1,130
Threads: 77
Joined: Jan 2010
Reputation:
0
You can, just add SetPlayerHealth and add a return 0.
Posts: 1,130
Threads: 77
Joined: Jan 2010
Reputation:
0
Yep, it would work like that too.
Larsey123IsMe
Unregistered
First i want to say Thanks, then
If you change
pawn Код:
return SendClientMessage(playerid, 0xFF0000FF, "This server is not gay!");
to
pawn Код:
return SendClientMessage(playerid, 0xFF0000FF, "This server is not gay!"), 0;
Then it works better :P