14.07.2010, 10:49
Just add a ! at the start of IsPlayerInRangeOfPoint example !IsPlayerInRangeOfPoint()
Also in that code you can just have it like this:
Also in that code you can just have it like this:
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");
}
return 1;
}