02.04.2011, 13:14
Make sure you have ProxDetector defined. If you're adding this command to the BOTTOM of onplayercommandtext use this.
pawn Код:
if(!strcmp(cmdtext, "/b", true, 2) == 0)
{
if(!strlen(cmdtext)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /b [local ooc chat]");
new str[128], plName[MAX_PLAYER_NAME];
GetPlayerName(playerid, plName, sizeof(plName));
format(str, sizeof(str), "[OOC-Chat] %s: %s", plName, cmdtext);
ProxDetector(20.0, playerid, str,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
return 0;
}