Entry to the ammunation
#1

hello, my question is:

In my sv all the income to
Ammunation are like these:


In a sv I saw that they changed them into different these:
[img width=1024 height=730]/imageshack/img442/4158/samp014w.jpg[/img]
They are much better because you do not have to wait are immediate.
Pleaser that someone says to me like to do it.
Reply
#2

Those markers are default (GTA related). The pic above shows a ammunation interior (means, not added by default in San Andreas). Then you can add those pickups in the interior.

You can, of course, also add pickups just in front of the yellow marker, but that's useless.
Reply
#3

You can also disable all the yellow arrows, if you want:

https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits
Reply
#4

These are made with IsPlayerInRangeOfPoint.
And the arrow is AddStaticPickup.
Reply
#5

Under
pawn Код:
public OnGameModeInit()
{
DisableInteriorEnterExits();
return 1;
}
Reply
#6

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Under
pawn Код:
public OnGameModeInit()
{
DisableInteriorEnterExits();
return 1;
}
To me it looked like he wanted to make IsPlayerInRangeOfPoint.
Because the first picture was about his gm.
Reply
#7

You can disable those yellow markers via DisableInteriorEnterExits, and create your own ones via pickups or checkpoints
Reply
#8

Good more or less already that I have to make, but me gustaria be able create like a pickup like that this one in the photo. It is a pickup of teleport.
Thanks.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)