Easiest way of making entrance/exit?
#1

I wonder how hard would it be to make a entrabce/exit system...

Or something for example like Carlitos RP by Norn has aka dynamic building system that you can add buildings with gametextforplayer(if thats how it is called) entrance/exit and of course interior... and enter and exit cmd.

Tho I bet no way it will be easy for me a newbie so does anyone know the easiest and the best way of making something similar to it?
Reply
#2

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,1,1386.4465,293.3067,19.5469))
        {
            SetPlayerPos(playerid,322.2430,302.3586,999.1484);
            SetPlayerInterior(playerid,5);
            SetPlayerVirtualWorld(playerid,1);
            return 1;
        }
Reply
#3

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,1,1386.4465,293.3067,19.5469))
        {
            SetPlayerPos(playerid,322.2430,302.3586,999.1484);
            SetPlayerInterior(playerid,5);
            SetPlayerVirtualWorld(playerid,1);
            return 1;
        }
about the interior, what is this all about the numbers, does every /enter /exit cmd other entrance interior has to be differ?
Reply
#4

Quote:
Originally Posted by Colossus_
Посмотреть сообщение
The interior id can be the same, But they must have different virtual world id's to use the same interior

i.e.

Ammunation 1 = Interior: 1 / Virtual World: 1
Ammunation 2 = Interior: 1 / Virtual World: 2
Ammunation 3 = Interior: 1 / Virtual World: 3
Ammunation 4 = Interior: 1 / Virtual World: 4

etc etc etc..
Okay thanks!
Reply
#5

I dont want to make another topic but as I used varthshenons code

I get
pawn Код:
(202) : warning 209: function "cmd_enter" should return a value
When it does return a value

pawn Код:
CMD:enter(playerid, params[])
    if(IsPlayerInRangeOfPoint(playerid,1,1456.5436,-1137.5676,23.9492))
        {
            SetPlayerPos(playerid,203.777999,-48.492397,1001.804687);
            SetPlayerInterior(playerid,1);
            SetPlayerVirtualWorld(playerid,1);
            return 1;
        }
Reply
#6

pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid,1,1456.5436,-1137.5676,23.9492))
    {
            SetPlayerPos(playerid,203.777999,-48.492397,1001.804687);
            SetPlayerInterior(playerid,1);
            SetPlayerVirtualWorld(playerid,1);
    }
    return 1;
}
You missunderstood that.
Reply
#7

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid,1,1456.5436,-1137.5676,23.9492))
    {
            SetPlayerPos(playerid,203.777999,-48.492397,1001.804687);
            SetPlayerInterior(playerid,1);
            SetPlayerVirtualWorld(playerid,1);
    }
    return 1;
}
You missunderstood that.
Thanks mate!
Reply
#8

This works...
pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid,1,1456.5436,-1137.5676,23.9492))
        {
            SetPlayerPos(playerid,203.777999,-48.492397,1001.804687);
            SetPlayerInterior(playerid,1);
            SetPlayerVirtualWorld(playerid,1);
            return 1;
        }
        return 1;
}
Reply
#9

Just another question. As I want to make another enter cmd and exit cmd how do I do it because if I will do /enter /exit again it will said that It is already defined?
Reply
#10

Just do it: If isplayer in xxxxxx position, setplayer pos to xxxxxx... else if he is in xxxxx set to xxxxxx... Else if is xxxxx, set to xxxxx.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)