10.05.2010, 15:26
You're telling it to move to 2 places. First the hospital, then the Burger shot. Use IsPlayerInRangeOfPoint.
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
e.g.
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
e.g.
pawn Код:
if(!strcmp("/stadium",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are near the Stadium entrance!");
}
else
{
SendClientMessage(playerid,0xFFFFFFFF,"You are not near the Stadium entrance!");
}
return 1;
}