01.07.2012, 14:47
Use this format:
if
else if
else
same with /duty
if
else if
else
pawn Код:
if (strcmp("/exit", cmdtext, true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 247.1555,62.7755,1003.6406))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 1552.3853,-1675.4354,16.1953);
}
else if(IsPlayerInRangeOfPoint(playerid, 7.0, 246.5596,108.2807,1003.2188))
{
SetPlayerPos(playerid,-1605.5900,712.0562,13.8672);
SetPlayerFacingAngle(playerid,6.7303);
SetPlayerInterior(playerid,0);
}
else
SendClientMessage(playerid,0xFFFFFFFF,"Not Near Exit Point");
return 1;
}