SA-MP Forums Archive
How do a pickup whit text and teleport? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do a pickup whit text and teleport? (/showthread.php?tid=115138)



How do a pickup whit text and teleport? - eXtr1kE - 22.12.2009

How do I LSPD a pickup in the garage in which to write text, and when you click "enter" to teleport you somewhere, how come xD?


Re: How do a pickup whit text and teleport? - Deat_Itself - 22.12.2009

pawn Код:
new LSPDpickup; //Global variable


LSPDpickup=CreatePickup(model, type, Float:x, Float:y, Float:z, vitualworld = 0 );//virtual world depends upon you

public OnPlayerPickUpPickup(playerid, pickupid)//anywhere
{
  if (pickupid == LSPDpickup)
  {
    SendClientMessage(playerid, COLOR_GREEN, "Your text you want to add");
  }



Re: How do a pickup whit text and teleport? - eXtr1kE - 22.12.2009

I said and Teleport when you "enter"....


Re: How do a pickup whit text and teleport? - eXtr1kE - 22.12.2009

What here is for when you press "enter" to pickup?


Re: How do a pickup whit text and teleport? - eXtr1kE - 23.12.2009

May I help?


Re: How do a pickup whit text and teleport? - Miguel - 23.12.2009

Then, you'll need a timer and IsPlayerInRangeOfPoint, because you will need to know if the player is still on the pickup.


Re: How do a pickup whit text and teleport? - eXtr1kE - 23.12.2009

I want to be like this:



and when you click "return" teleport me somewhere xD.


Re: How do a pickup whit text and teleport? - Zamaroht - 23.12.2009

Use OnPlayerKeyStateChange. And you will also need to have stored the position of the pickup somewhere else, and in OnPlayerStateChange, you check if the player is near that position.


Re: How do a pickup whit text and teleport? - eXtr1kE - 23.12.2009

No I want it to be and on my server ... and want to give you my script.