14.06.2011, 19:15
Example:
pawn Код:
if(!strcmp("/Enter", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid,3,1333.5809326172,-1863.5708007813,14.039328575134))
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,2064.185546875,-2071.7348632813,1115.2646484375);
CreatePickup(1239,2,1333.5863037109,-1864.8194580078,14.652570724487);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 3, 5000, 5000, 5000))
{
SetPlayerPos(playerid, x, y, z);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 3, 6000, 6000, 6000))
{
// Do something here, etc etc
}
}