Untitled
public text v1 · immutablepublic OnPlayerText(playerid text[])
{
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),"%s shouts: %s",playername,tmp);
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
if(GetDistanceBetweenPlayers(playerid,i) < 20.0){
SendClientMessage(i,COLOR_RED,string);
return 0;
}