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