Pickup help
#1

Why this dosnt work?
I can enter it.. but i dosnt see anything... i see nothing!
Код:
  if (pickupid == dmv) // Check that the picked up pickup id is the same as the id of the one we created
	{
		// It is
  new Float:a;
  new Float:b;
  new Float:c;
  new VehicleID;
  GetPlayerPos(playerid, a, b, c);
  SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554);
  SetPlayerInterior(playerid,14);
  }
	return 1;
}
Reply
#2

What is the point of GetPlayerPos?
Reply
#3

And VehicleID.
Reply
#4

lol, I think that doesnt mind, and you need to use CreatePickup instead of AddStaticPickup
Reply
#5

the hole stuff is to enter house......
Reply
#6

Use this:

pawn Код:
if (pickupid == dmv) // Check that the picked up pickup id is the same as the id of the one we created
    {
    // It is
    SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554);
    SetPlayerInterior(playerid,14);
    }
Reply
#7

Quote:
Originally Posted by Weirdosport
Use this:

pawn Код:
if (pickupid == dmv) // Check that the picked up pickup id is the same as the id of the one we created
    {
    // It is
    SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554);
    SetPlayerInterior(playerid,14);
    }
Thanks! It did work! Could any one helpme creating /exit command! Cuz i dunno if i can create a pickup in the interior... or maybe like other server.. when u goes at doors and press enter u exit the house!
Reply
#8

The thing you describe with the enter would require a bit more scripting knowledge (OnPlayerKeyStateChange) etc etc.

To keep it simple, you can use /save while in the interior. and Yes pickups do work in interiors without additional coding. Simply making another pickup with a different name and moify the script you have below with interior 0, and a new set of co-ords.

Note don't use the co-ordinates of the outside pickup or you'll "bounce" from the inside to the outside and back again!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)