public OnPlayerPickUpDynamicPickup(playerid, pickupid) { if(pickupid == BankEntrance) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 2315.952880, -1.618174, 26.742187); } return BOnPlayerPickUpDynamicPickup(playerid, pickupid); } forward BOnPlayerPickUpDynamicPickup(playerid, pickupid); #if defined ALS_OnPlayerPickUpDynamicPickup #undef OnPlayerPickUpDynamicPickup #else #define ALS_OnPlayerPickUpDynamicPickup #endif #define OnPlayerPickUpDynamicPickup BOnPlayerPickUpDynamicPickup
Versuch es mal so:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
if(pickupid == BankEntrance)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2315.952880, -1.618174, 26.742187);
}
return 1;
}