How do a pickup whit text and teleport?
#1

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?
Reply
#2

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");
  }
Reply
#3

I said and Teleport when you "enter"....
Reply
#4

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

May I help?
Reply
#6

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

I want to be like this:



and when you click "return" teleport me somewhere xD.
Reply
#8

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.
Reply
#9

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


Forum Jump:


Users browsing this thread: 4 Guest(s)