20.01.2013, 19:52
Hi , I did that under OnPlayerText:
I get an error (Undefined ProxDetector) , well for information I am creating RP chat.
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[150];
//=======Si le joueur est mutй
if(Mute[playerid] == 1)
{
format(string, sizeof(string), "You can't talk , you're muted , wait %d sec", 600-SecondesMute[playerid]);
SendClientMessage(playerid,COLOR_CERVENA,string);
return 0;
}
if(IsLogged[playerid] == true)
{
format(string, sizeof(string), "%s[%d] says: %s", PlayerName(playerid),playerid, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); //problem
SendClientMessage(playerid,COLOR_WHITE,string);
}
return 0;
}