Easiest way of making entrance/exit? -
Tachibana - 23.06.2011
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?
Re: Easiest way of making entrance/exit? -
=WoR=Varth - 23.06.2011
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;
}
Re: Easiest way of making entrance/exit? -
Tachibana - 23.06.2011
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?
Re: Easiest way of making entrance/exit? -
Tachibana - 23.06.2011
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!
Re: Easiest way of making entrance/exit? -
Tachibana - 24.06.2011
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;
}
Re: Easiest way of making entrance/exit? -
=WoR=Varth - 24.06.2011
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.
Re: Easiest way of making entrance/exit? -
Tachibana - 24.06.2011
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!
Re: Easiest way of making entrance/exit? -
ricardo178 - 24.06.2011
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;
}
Re: Easiest way of making entrance/exit? -
Tachibana - 24.06.2011
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?
Re: Easiest way of making entrance/exit? -
ricardo178 - 24.06.2011
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.