21.05.2011, 13:13
that isnt so hard, u just put this under OnGameModeInit():
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():
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):
than it looks like this:
and:
WARNING: the coords used in this example arent the ones you must copy, you must get them yourself!!
this should fix it.... good luck.
Код:
DisableInteriorEnterExits();
and than you do /save [with a comment if you want]. the comment is without the [ ] .
add this above OnGameModeInit():
Код:
new i;
than you add under OnGameModeInit():
Код:
i = CreatePickup(pickupid, type, x, y, z, 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); }
Код:
new i; public OnGameModeInit() { DisableInteriorEnterExits(); i = CreateObject(1319, 23, 2847.0149, -1309.8341, 14.6858, 0); // the rest of the characters etc you chose }
Код:
public OnPlayerPickupPickUp(playerid, pickupid) { if(pickupid == i) { SetPlayerPos(playerid, 318.564971, 1118.209960, 1083.882812); SetPlayerInterior(playerid, 5); } return 1; }
this should fix it.... good luck.