Simple teleport command error
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/help", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid,0x00BCFFFF,"_________[Help Command Text]_________");
        SendClientMessage(playerid,0x00BCFFFF,"|_____________Line1_________________|");
        SendClientMessage(playerid,0x00BCFFFF,"|_____________Line2_________________|");
        SendClientMessage(playerid,0x00BCFFFF,"|_____________Line3_________________|");
        SendClientMessage(playerid,0x00BCFFFF,"|_____________Line4_________________|");
        SendClientMessage(playerid,0x00BCFFFF,"|_____________Line5_________________|");

        return 1;
    }
    if(strcmp(cmdtext, "/enter", true, 10)==0)
    {
        if(IsPlayerInRangeOfPoint(playerid,3.0,413,1700,-2249.9922))
        {
            SendClientMessage(playerid,0x00ABFFFF,"Welcome to the LAPD");
            SetPlayerInterior(playerid, 14);
            SetPlayerPos(playerid,1550.9105,-1683.8849,1723.1050);
            return 1;
        }
    }
    if(strcmp(cmdtext, "/exit", true, 10)==0)
    {
        if(IsPlayerInRangeOfPoint(playerid,3.0,1550.9105,-1683.8849,1723.1050))
        {
            SetPlayerPos(playerid,413,1700,-2249.9922);
            return 1;
        }
    }
    return 0;
}
And remove the forward PlayerToPoint thingy. No need anymore.
I hope it works.

Greetz.
Reply


Messages In This Thread
Simple teleport command error - by Vilt™ - 25.08.2010, 13:37
Re: Simple teleport command error - by speediekiller2 - 25.08.2010, 13:41
Re: Simple teleport command error - by Mystique - 25.08.2010, 13:43
Re: Simple teleport command error - by Jeffry - 25.08.2010, 13:44
Re: Simple teleport command error - by Vilt™ - 25.08.2010, 14:15
Re: Simple teleport command error - by Jeffry - 25.08.2010, 14:17
Re: Simple teleport command error - by Vilt™ - 25.08.2010, 14:20
Re: Simple teleport command error - by Jeffry - 25.08.2010, 14:47
Re: Simple teleport command error - by Mr.Obscure - 25.08.2010, 14:49
Re: Simple teleport command error - by WillyP - 25.08.2010, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)