Givecash
#3

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!");
Reply


Messages In This Thread
Givecash - by thimo - 04.02.2011, 20:02
Re: Givecash - by bartje01 - 04.02.2011, 20:06
Re: Givecash - by Fj0rtizFredde - 04.02.2011, 20:07
Re: Givecash - by admantis - 04.02.2011, 20:07
Respuesta: Givecash - by OPremium - 04.02.2011, 20:16
Re: Respuesta: Givecash - by bartje01 - 04.02.2011, 20:27
Re: Respuesta: Givecash - by admantis - 04.02.2011, 20:30

Forum Jump:


Users browsing this thread: 1 Guest(s)