26.11.2012, 14:52
pawn Код:
CMD:b(playerid, params[])
{
new text[128], string[128];
new name[MAX_PLAYER_NAME];
if(sscanf(params,"s[128]",text)) return SendClientMessage(playerid,-1,"{008000}Usage: /n [message]");
else
{
GetPlayerName(playerid,name,sizeof(name));
strreplace(name, '_', ' ');
format(string,sizeof(string),"(( %s says: %s ))",name,text);
SendNearbyMessage(30.0, playerid, string, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE);
}
return 1;
}