28.07.2013, 23:28
pawn Код:
if(text[0] == ';') {
new Float:p[3],sStr[128],Name[21];
GetPlayerName(playerid,Name,21);
GetPlayerPos(playerid,p[0],p[1],p[2]);
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
for(new i; i != MAX_PLAYERS; i++) {
if(IsPlayerInRangeOfPoint(i, 15.0,p[0],p[1],p[2])) {
new Float:MSG[3];
if(MSG[i] == 0) {
format(sStr,128,"(Chat Prox){FF0000}%s (%i): {00FFFF}%s",Name,playerid,text[1]);
SendClientMessage(i,-1,sStr);
PlayerPlaySound(i,1057,0.0,0.0,0.0);
MSG[i] = 1;
}
MSG[i] = 0;
return 0;
}
}
}