What callback should i use ?
#4

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
Another method ? :)

CreatePickup(1559, 1, 0.0, 0.0, 5.0, -1);

public OnPlayerPickUpPickup(playerid, pickupid)
i think of that, but i think this will destroy the pickup maybe and will not create it again?
#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:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
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?
Well here you go: Imagine that i have 2 stores with the same interior ids, but different places in map, 1 in Las Venturas and the other in San Fierro, so it must be there a different virtual worlds too.
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.
Reply


Messages In This Thread
What callback should i use ? - by AnonScripter - 09.05.2014, 21:04
Re: What callback should i use ? - by AnonScripter - 09.05.2014, 21:23
Re: What callback should i use ? - by DaniceMcHarley - 09.05.2014, 21:46
Re: What callback should i use ? - by AnonScripter - 09.05.2014, 22:04
Re: What callback should i use ? - by DaniceMcHarley - 09.05.2014, 22:06
Re: What callback should i use ? - by AnonScripter - 09.05.2014, 22:09
Re: What callback should i use ? - by DaniceMcHarley - 09.05.2014, 22:11
Re: What callback should i use ? - by Twizted - 09.05.2014, 22:38
Re: What callback should i use ? - by DaniceMcHarley - 09.05.2014, 22:52
Re: What callback should i use ? - by AnonScripter - 09.05.2014, 23:07

Forum Jump:


Users browsing this thread: 2 Guest(s)