Since you figured the armor pickup out, I'll only show an example on how to create a custom entrance point using pickups. If you want me to give you an example of how to do the armor pickup, just reply and I'll. (:
I'm using these coordinates: X: 316.524993, Y: -167.706985, Z: 999.593750 which teleport you inside
this ammu nation. You can find more interiors
http://weedarr.wikidot.com/interiorhere. The "x, y, z" coordinates are to be replaced with the coordinates of the ammu nation entrance.
This should work:
pawn Code:
// Top of your script
new pickup_Enter;
new pickup_Exit;
// OnGameModeInit - 1239 = info pickup
pickup_Enter = CreatePickup(1239, 2, x, y, z, -1); // 1239 = info pickup
pickup_Exit = CreatePickup(1239, 2, 316.524993, -167.706985, 999.593750, -1); // coords = ammunation
// Pickup callback
if(pickupid == pickup_Enter)
{
SetPlayerPos(playerid, 316.524993, -167.706985, 999.593750);
SetPlayerInterior(playerid, 6); // int is 6
}
if(pickupid == pickup_Exit)
{
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, 0); // int is 0
}