Trebuie sa faci un for care sa stie daca un jucator este aprope de el.
[pawn]if(IsPlayerInRangeOfPoint(playerid, 30.0, Xp, Yp, Zp)) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Move away from any close player before getting the work.");[/pawn]
asta trebuie s-o inlocuiesti cu asta
[pawn]for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
if(IsPlayerInRangeOfPoint(i, 30.0, Xp, Yp, Zp))
return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Move away from any close player before getting the work.");
}[/pawn]
Aici mergi prin toti playeri, vezi daca e online, daca e online verifici daca e aproape de jucatorul respectiv, daca e ii trimiti mesajul si opresti executarea.