22.10.2012, 21:03
Use if(PlayerToPoint(2, playerid, -2167.3972,3306.8318,95.5800))
PHP код:
if (strcmp("/armour", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(2, playerid, -2167.3972,3306.8318,95.5800))
{
SendClientMessage(playerid, COLOR_ORANGE, "Armour PickUP");
SetPlayerArmour(playerid,100);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "You have to be at armour PickUp");
return 1;
}
}