public OnPlayerDisconnect(playerid, reason)
{
if(reason == 1)
{
new name[MAX_PLAYER_NAME],Vstring[32],Float:Vx, Float:Vy, Float:Vz;
GetPlayerPos(playerid, Vx, Vy, Vz);
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(Vstring,32,"%s digitou /q", name);
for(new i=0; i< GetMaxPlayers(); i++)
if(IsPlayerInRangeOfPoint(i,10.0,Vx,Vy,Vz)
SendClientMessage(i,-1,Vstring);
}
}