03.02.2010, 02:57
Well here is a example..tho it uses strcmp:
pawn Код:
//OnPlayerText
if(strcmp(text, "haha", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s laughs out loud.", sendername);
ProxDetector(20.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 0;
}