CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 100,626.9647,-571.8541,17.9207,91.3678,0,0,0,0,0,0))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 100,626.9647,-571.8541,17.9207,91.3678,0,0,0,0,0,0))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
return 1;
}
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 100,626.9647,-571.8541,17.9207,91.3678,0,0,0,0,0,0))
{
SetPlayerVirtualWorld(playerid, 5);
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
}
return 1;
}
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 100,626.9647,-571.8541,17.9207,91.3678,0,0,0,0,0,0))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 100,626.9647,-571.8541,17.9207,91.3678,0,0,0,0,0,0))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
return 1;
}
|
Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 100,626.9647,-571.8541,17.9207,91.3678,0,0,0,0,0,0))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 100,626.9647,-571.8541,17.9207,91.3678,0,0,0,0,0,0))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
return 1;
}
|
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 627.3657, -571.5280, 17.8458))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 100,611.1243, -582.5122, 17.3781))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
return 1;
}
|
IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
The other bits you have in there are unnecessary. Just like the Cords you have on SetPlayerPos I assume this is for the Dillimore Police Station so here's what I have for you. Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 627.3657, -571.5280, 17.8458))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 100,611.1243, -582.5122, 17.3781))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
}
return 1;
}
|
|
I legit love you xD
+rep. Also, how would I make /exit? x.x. ANOTHER thing -_- - how would I make you able to use /enter for multiple places? |
|
what you can do for /exit is basically do the same as /enter, but reverse it - for example, use the coordinates from the "SetPlayerPos" and use them as the "IsPlayerInRangeOfPoint", and as for the multiple places, you can just add them manually like you have already - Hope this helps
btw: you don't need to give me +rep, I am here to help, no cost |