09.05.2014, 22:04
Quote:
Another method ? :)
CreatePickup(1559, 1, 0.0, 0.0, 5.0, -1); public OnPlayerPickUpPickup(playerid, pickupid) |
#This is the first time i'll use pickups in the server, so i don't know how it should work, that's why i'm asking :)
Quote:
If the virtual world change the coordinates wont change, and you still can check if the player is at X,Y,Z location what is wrong with that?
|
So each object "1559" in these 2 stores must have different exit positions, the first 1 must send the player outside the store in las venturas and the other one must send the player outside the store in SF.
if you didn't get it, see this:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 1.0, -12.232, 145.22, 14.2222) //The object that is in the store of LV (Virual World = 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 43.44, 23.665, 3433.444); //outside the store that is in LV
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, -12.232, 145.22, 14.2222) //The object that is in the store of SF (Same Coordinates) (Virual World = 2)
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 234.4222, 2343.2303, 2346.4421); //Not same coordinates because this store's outside in SF not LV
}
//So it will make a bug because IsPlayerInRangeOfPoint has the same coordinates but different outside coordinates, so that's the problem.