Entry to the ammunation
#9

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():
Код:
new i;
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.
Reply


Messages In This Thread
Entry to the ammunation - by spyware· - 22.05.2010, 12:11
Re: Entry to the ammunation - by Born2die - 22.05.2010, 12:17
Re: Entry to the ammunation - by Assyria - 22.05.2010, 12:19
Re: Entry to the ammunation - by Darekfred - 22.05.2010, 12:32
Re: Entry to the ammunation - by ViruZZzZ_ChiLLL - 22.05.2010, 12:33
Re: Entry to the ammunation - by Darekfred - 22.05.2010, 12:40
Re: Entry to the ammunation - by Jakku - 22.05.2010, 13:30
Re: Entry to the ammunation - by spyware· - 22.05.2010, 13:43
Re: Entry to the ammunation - by PhantomDot1 - 21.05.2011, 13:13

Forum Jump:


Users browsing this thread: 1 Guest(s)