I want manuaL entrance...
#2

Just check if a player is near the pickup while they use the /enter command. E.g.
Requires PlayerToPoint function
pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
{
  if(PlayerToPoint(5, playerid, xx.xx, xx.xx, xx.xx)) // Replace "xx.xx" with the coordinates for the pickup
  {
   SetPlayerInterior(playerid, x); // Replace "x" with teh interior ID.
   SetPlayerPos(playerid, xx.xx, xx.xx, xx.xx); // Place "xx.xx" with the coordinates for the tele'd location
   SetPlayerFacingAngle(playerid, xx.xx); // Place "xx.xx" with the facing angle for when they are tele'd
   return 1;
  }
  return 1;
}
Reply


Messages In This Thread
I want manuaL entrance... - by MahmutBey - 08.02.2010, 19:25
Re: I want manuaL entrance... - by Grim_ - 08.02.2010, 19:28
Re: I want manuaL entrance... - by MahmutBey - 08.02.2010, 19:47
Re: I want manuaL entrance... - by RyDeR` - 08.02.2010, 19:56
Re: I want manuaL entrance... - by Grim_ - 08.02.2010, 20:04
Re: I want manuaL entrance... - by MahmutBey - 09.02.2010, 06:49
Re: I want manuaL entrance... - by ihatetn931 - 09.02.2010, 07:53
Re: I want manuaL entrance... - by ettans - 09.02.2010, 07:56
Re: I want manuaL entrance... - by [HiC]TheKiller - 09.02.2010, 07:58
Re: I want manuaL entrance... - by ettans - 09.02.2010, 07:59

Forum Jump:


Users browsing this thread: 1 Guest(s)