02.04.2011, 12:41
pawn Код:
if(!strcmp(cmdtext, "/b", true, 2) && cmdtext[2] == ' ')
{
if(strlen(cmdtext) == 3)
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /b [local ooc chat]");
return 1;
}
new str[128], plName[MAX_PLAYER_NAME];
GetPlayerName(playerid, plName, sizeof(plName));
format(str, sizeof(str), "[OOC-Chat] %s: %s", plName, cmdtext[3]);
ProxDetector(20.0, playerid, str,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
return 1;
}