Need help with /enter
#1

I dont know if this is possible but ime editing a gamemode and i dont want the /enter command to enter a building but i want to walk in the building without entering a command.

How can i do this?
Reply
#2

In OnGameModeInit, you could put this
Код:
AddStaticPickup(1239, 2, x, y, z, 0);
Then, in OnPlayerPickUpPickup(playerid, pickupid) you could put
Код:
if(IsPlayerInRangeOfPoint(playerid, 2.5, x, y, z))
{
  SetPlayerPos(playerid, x2, y2, z2);
  return 1;
}
And then add another pickup for the exit.

Alternatively, you could use
Код:
new pickup;
OnGameModeInit
Код:
pickup = CreatePickup(1239, 2, x, y, z, 0);
And
Код:
OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == pickup)
  {
    SetPlayerPos(playerid, x2, y2, z2);
    return 1;
  }
  return 1;
}
Reply
#3

lol, thanks. Now ime gonna figure out how and where ime gonna add this
Ime kinda noob now.. :P
Reply
#4

ahh good you said that. Add me to msn. Greenvomitfly@yahoo.com I've been scripting for a while now and... I've been working on a stunt server for some time now. I will buy a hosted listing for it in 7 days. I need noobs like you to teach, and in return, you help me with the stunt server. You get admin privs as well
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)