09.10.2013, 21:54
Quote:
Да и жить нужно проще.
pawn Код:
|
pawn Код:
public OnPlayerText(playerid, text[])
{
if (GetPVarInt(playerid, "pLogged") == 0) {
return 0;
}
SetPlayerChatBubble(playerid, text, 0xff6600ff, 30.0, 6000);
new string[128];
format(string, sizeof(string), " > Вы сказали: {ff6600}%s", text);
SendClientMessage(playerid, -1, string);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "%s говорит: {ff6600}%s", playername(playerid), text);
for (new i = 0; i < MAX_PLAYERS; i++) {
if (i != playerid && IsPlayerStreamedIn(playerid, i) && IsPlayerInRangeOfPoint(i, 30.0, x, y, z)) {
SendClientMessage(i, -1, string);
}
}
return 0;
}