/enter /exit help me to create it!
#4

Like this you can script
pawn Код:
if(strcmp(cmd, "/enter", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInRangeOfPoint(playerid,2.0, X,Y,Z)) // change X Y Z coords
            {
                SetPlayerPos(playerid, X, Y, Z); // change X Y Z coords
                SetPlayerInterior(playerid,INTERIOR HERe); //change the interior.
            }
            else
            {
                SendClientMessage(playerid, 0x33CCFFAA, "You need to be near the door to use this feature!");
            }
        }
        return 1;
    }
if(strcmp(cmd, "/exit", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInRangeOfPoint(playerid,2.0, X,Y,Z))  // change X Y Z coords
            {
                SetPlayerPos(playerid, X, Y, Z); // change X Y Z coords
            }
            else
            {
                SendClientMessage(playerid, 0x33CCFFAA, "You need to be near the door to use this feature!");
            }
        }
        return 1;
    }
If you have any doubt in this? Just ask.
Reply


Messages In This Thread
/enter /exit help me to create it! - by leingod - 22.03.2011, 07:12
Re: /enter /exit help me to create it! - by Ironboy - 22.03.2011, 07:31
Re: /enter /exit help me to create it! - by leingod - 22.03.2011, 07:40
Re: /enter /exit help me to create it! - by Ironboy - 22.03.2011, 07:48
Re: /enter /exit help me to create it! - by Pz - 22.03.2011, 07:58
Re: /enter /exit help me to create it! - by Ironboy - 22.03.2011, 08:02
Re: /enter /exit help me to create it! - by leingod - 22.03.2011, 08:32
Re: /enter /exit help me to create it! - by Stigg - 22.03.2011, 08:35
Re: /enter /exit help me to create it! - by leingod - 22.03.2011, 08:41
Re: /enter /exit help me to create it! - by Stigg - 22.03.2011, 08:44

Forum Jump:


Users browsing this thread: 1 Guest(s)