How to make entrances
#1

Hey guys,

i have already had a look in search and could not find it

I want to make a entrance infront of a building and when someone walks into the 'I' sign the get teleported into the interior??

I have tried it but im kindof fail at advanced scripting =(

Thanks in advance
Reply
#2

It is not that advanced.
Just make a pickup, and when someone picks up that pickup they get teleported to the interior.
I gotta go to school now, maybe I will help you some more later.
Reply
#3

Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2695.6880, -1704.6300, 11.8438)) // add your location
{
SetPlayerPos(playerid,0.0,0.0,10.0); // you loc
GameTextForPlayer(playerid,"Entered someting",5000,4); // if you want or you can put Sendclientmessage
}
or you can add
/enter
but i think this is better it does automaticly

cheers
Reply
#4

There is no point in checking the distance from the player to the pickup, since he's not asking for a command, he's asking for an immediate teleport when he enters the pickup.

Use CreatePickup, and OnPlayerPickupPickup.

Reply
#5

Quote:
Originally Posted by [HLF
Southclaw ]
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == pickupid //[pickup id made in OnGameModeInit: 'pickupname = Createpickup(...' and don't forget the 'new pickupname;']
  {
    SetPlayerPos(...
    SetPlayerInterior(...
  }
}
there and make the pickup with an ID if you don't know hoiw to do this then ask me

um could you explain the pickupid thing

Thanks so much you guys for your support
Reply
#6

ok i think i get it, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)