20.06.2011, 09:47
Example (using ZCMD, change it to DCMD/STRCMP if you want)
pawn Код:
COMMAND:enter(playerid, cmdtext)
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1, 2, 3))
{
SetPlayerPos(playerid, 50, 60, 70);
}
else if(IsPlayerInRangeOfPoint(playerid, 5, 4, 5, 6))
{
SetPlayerPos(playerid, 80, 90, 100);
}
return 1;
}