24.07.2012, 14:45
This is how you'd add an ID to the thing as-well if thats what you are looking for:
Since you want the players ID, it needs to be an integer, therefore the %i is needed (or %d)
pawn Код:
new string[128];
new float:x, float:y, float:z;
GetPlayerPos(playerid, x, y, z);
new name[24];
GetPlayerName(playerid, name, 24);
format(string, sizeof(string),"[ID:%i]%s Says: %s", playerid, name, text);
foreach(Player, i)
{
if(IsPlayerInRangeOfPoint(i, 15, x, y, z)) SendClientMessage(i, 0x0000FF, string);
}
return 0;