26.06.2011, 14:48
OK,thanks it really helped but what's wrong now lol 1 warning xD
pawn Код:
new BC;
COMMAND:bc(playerid,params[])
{
new str[128],str2[128];
new whisperer[MAX_PLAYER_NAME];
new Float:x,Float:y,Float:z;
if(sscanf(params,"u",str2)) return SendClientMessage(playerid,COLOR_RED,"USAGE:/bc [Text]");
GetPlayerPos(playerid,x,y,z);
GetPlayerName(playerid,whisperer,sizeof(whisperer));
format(str,sizeof(str),"WHISPER FROM %s(%d):%s",whisperer,playerid,str2);
BC = SetPlayerChatBubble(playerid,str2,COLOR_YELLOW,15.0,5000);
for (new i = 0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInRangeOfPoint(i,5.0,x,y,z)) return SendClientMessage(i,COLOR_YELLOW,str);
}
return true;
}