help at object teleport
#2

You're checking if the player picked up the second pickup when the player is picking up the first pickup but not checking if the second pickup was picked up if the first pickup wasn't picked up.

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
      if(pickupid == pickup1)
     {
             SetPlayerPos(playerid, 1444.4569,-1070.2080,213.3828);
             SendClientMessage(playerid, 0xFFFF00FF, "You have been teleported to the party!");
     } // close the bracket.
     if(pickupid == pickup2)
     {
            SetPlayerPos(playerid, -1299.0413,-291.0421,14.1484);
            SendClientMessage(playerid, 0xFFFF00FF, "Welcome to the San Fiero Airport!");
     }
     return 0;
}
Reply


Messages In This Thread
help at object teleport - by Kakioshe22 - 20.10.2011, 23:50
Re: help at object teleport - by Haydz - 21.10.2011, 01:01

Forum Jump:


Users browsing this thread: 1 Guest(s)