Need help with /enter
#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


Messages In This Thread
Need help with /enter - by j1mzz - 18.11.2009, 23:19
Re: Need help with /enter - by bigcomfycouch - 18.11.2009, 23:51
Re: Need help with /enter - by j1mzz - 19.11.2009, 01:07
Re: Need help with /enter - by Enzo_Ferrari_V12 - 19.11.2009, 01:14

Forum Jump:


Users browsing this thread: 4 Guest(s)