Command problem need HELP!
#4

Use this format:

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;
}
same with /duty
Reply


Messages In This Thread
Command problem need HELP! - by ZBits - 01.07.2012, 13:58
Re: Command problem need HELP! - by Jarnu - 01.07.2012, 14:06
Re: Command problem need HELP! - by ZBits - 01.07.2012, 14:15
Re: Command problem need HELP! - by MadeMan - 01.07.2012, 14:47
Re: Command problem need HELP! - by ZBits - 01.07.2012, 17:46

Forum Jump:


Users browsing this thread: 2 Guest(s)