03.08.2013, 17:13
wow, again it doesn't work o
It always send gray/black text
pawn Код:
stock SendMessageForNearbyPlayer(playerid, text[])
{
new Float:posX, Float:posY, Float:posZ;
GetPlayerPos(playerid, posX, posY, posZ);
for (new p = 0; p<MAX_PLAYERS; p++)
{
if (IsPlayerConnected(p))
{
if(IsPlayerInRangeOfPoint(playerid, 6.0, posX, posY, posZ))
{
SendClientMessage(p, 0x3C3C3CFF, text);
}
else if(IsPlayerInRangeOfPoint(playerid, 4.0, posX, posY, posZ))
{
SendClientMessage(p, 0x6F6F6FFF, text);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, posX, posY, posZ))
{
SendClientMessage(p, 0xFFFFFF, text);
}
}
}
}