Simple /enter command problem
#2

pawn Code:
if (strcmp("/enter", cmdtext, true, 6) == 0)
{
    if (PlayerToPoint(playerid, 10, 2104.8997, -1806.4668, 14.1484))
    {
        SetPlayerInterior(playerid, 5);
        SetPlayerPos(playerid, 372.3520, -131.6543, 1001.4922);
        SendClientMessage(playerid, 0xffffffff, "Welcome to the Pizza Parlor");
        SetPlayerFacingAngle(playerid, Float:0.0);
        return 1;
    }
    else if (PlayerToPoint(playerid, 10, 1554.9174, -1675.5553, 15.5010))
    {
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid, 246.7840, 63.9002, 1003.6406);
        SendClientMessage(playerid, 0xffffffff, "Welcome to the Police Department");
        return 1;
    }
    else return SendClientMessage(playerid, 0xff0000AA, "ERROR: You can't enter here!");
    return 1;
}
Reply


Messages In This Thread
Simple /enter command problem - by Annihalation - 15.07.2009, 23:10
Re: Simple /enter command problem - by woot - 15.07.2009, 23:14
Re: Simple /enter command problem - by Annihalation - 15.07.2009, 23:21
Re: Simple /enter command problem - by Annihalation - 15.07.2009, 23:28
Re: Simple /enter command problem - by Abernethy - 15.07.2009, 23:30
Re: Simple /enter command problem - by Annihalation - 15.07.2009, 23:39
Re: Simple /enter command problem - by Annihalation - 16.07.2009, 00:20
Re: Simple /enter command problem - by Abernethy - 16.07.2009, 04:49
Re: Simple /enter command problem - by Annihalation - 16.07.2009, 05:03
Re: Simple /enter command problem - by woot - 16.07.2009, 08:56

Forum Jump:


Users browsing this thread: 1 Guest(s)