Posts: 621
Threads: 174
Joined: Nov 2013
help me. how to script this?
When i type "LOL" "WTF" "LMAO" in IC chat...
and if you hit enter this what will shown
PLAYERNAME laughs out loud ..
something like that..
thanks in advance
Posts: 621
Threads: 174
Joined: Nov 2013
Quote:
Originally Posted by MP2
strfind
|
What
? o_O
Posts: 621
Threads: 174
Joined: Nov 2013
Quote:
Originally Posted by [vTc]Patroool
Put this under:-
Код:
public OnPlayerText(playerid, Text [])
Код:
if(strfind(text, "hacker", true) != -1 || strfind(text, "cheat", true) != -1) {
SendClientMessage(playerid,red, "SERVER: Please use /ask to contact admin or use /report [ID] [REASON] to report!");
return 0;
}
Change "Hacker" to "lol"
&
"SERVER: Please use /ask to contact admin or use /report [ID] [REASON] to report!" ---> To your Message.
|
thanks for this but..
I mean if you type "LOL" "LMAO" etc on IC chat (In Character Chat) most used on roleplay
it will automatically /me Laughs out Loud
for example: i type LOL and i hit enter. then this message will be shown
** PLAYERNAME laughs out loud **
Here is my /me script
Код:
* ChristianIvann09 script
CMD:me(playerid, params[])
{
if(CheckGMX(playerid)) return 1;
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
new string[128];
format(string, sizeof(string), "* %s %s", GetPlayerNameEx(playerid), params);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
Posts: 621
Threads: 174
Joined: Nov 2013
Anyone who can send the code ?