23.04.2013, 22:57
pawn Код:
CMD:healme(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -2249.1409,2065.4504,6.0776) || IsPlayerInRangeOfPoint(playerid, 7.0, -786.4995,424.1443,11.3629) || IsPlayerInRangeOfPoint(playerid, 7.0, 211.1811,386.8993,24.9100) || IsPlayerInRangeOfPoint(playerid, 7.0, 1530.4073,536.8085,7.4502) || IsPlayerInRangeOfPoint(playerid, 7.0, 2567.0186,476.8986,10.9767))
{
SendClientMessage(playerid, COLOR_WHITE, "Your position has been loaded.");
}
return 1;
}
Am I doing something wrong, because the wiki says you do it this way
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!");
}
return 1;
}