21.10.2011, 01:01
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;
}