04.02.2011, 20:07
A little check if the player is near the target should fix it (If I understand you right?)
pawn Код:
stock IsPlayerNearPlayer(playerid, playerid2)
{
new Float:Pos[3];
GetPlayerPos(playerid2, Pos[0], Pos[1], Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 6.0, Pos[0], Pos[1], Pos[2])) return 1;
return 0;
}
//Example:
if (!IsPlayerNearPlayer(playerid, giveplayerid)) SendClientMessage(playerid, RED, "You need to be closer to the player!");