that isnt so hard, u just put this under OnGameModeInit():
Код:
DisableInteriorEnterExits();
and you create a pickup at the same spot. you go on your server when you have added the line above,
and than you do /save [with a comment if you want]. the comment is without the [ ] .
add this above OnGameModeInit():
change the i to how you want to name the pickup
than you add under OnGameModeInit():
Код:
i = CreatePickup(pickupid, type, x, y, z, virtualworld);
than you change pickupid to 1319, that is the id from the arrow you want, than you change x y and z coords to those you have saved in savedpositions.txt and also change virtualworld.
than you add underneath OnPlayerPickupPickUp(playerid, pickupid):
Код:
if(pickupid == i)
{
SetPlayerPos(playerid, x of interior, y of interior, z of interior);
SetPlayerInterior(playerid, Interiorid);
}
than it looks like this:
Код:
new i;
public OnGameModeInit()
{
DisableInteriorEnterExits();
i = CreateObject(1319, 23, 2847.0149, -1309.8341, 14.6858, 0);
// the rest of the characters etc you chose
}
and:
Код:
public OnPlayerPickupPickUp(playerid, pickupid)
{
if(pickupid == i)
{
SetPlayerPos(playerid, 318.564971, 1118.209960, 1083.882812);
SetPlayerInterior(playerid, 5);
}
return 1;
}
WARNING: the coords used in this example arent the ones you must copy, you must get them yourself!!
this should fix it.... good luck.