SA-MP Forums Archive
Pickup - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pickup (/showthread.php?tid=504303)



Pickup - [IND]Crazy - 03.04.2014

how to create so much pickup with 1 symbol ?
example :
pawn Код:
ArmorPick = CreatePickup(1242, 1, 1503.3359, 1432.3585, 10.1191, -1) && CreatePickup(1242, 1, 1493.2490,1429.7944,10.8203, -1);



Re: Pickup - Vince - 03.04.2014

Use an array.
pawn Код:
new ArmorPick[2];

ArmorPick[0] = CreatePickup(...);
ArmorPick[1] = CreatePickup(...);



Re: Pickup - [IND]Crazy - 03.04.2014

where i can put that ?
OnGamemodeInit ?


Re: Pickup - ReD_HunTeR - 03.04.2014

use likes this:-

pawn Код:
new ArmorPick[2];

public OnGamemodeInit()
{
   ArmorPick[0] = CreatePickup(...);
   ArmorPick[1] = CreatePickup(...);
   return 1;
}