PDA

View Full Version : Pickup


[IND]Crazy
03/04/2014, 02:41 PM
how to create so much pickup with 1 symbol ?
example :

ArmorPick = CreatePickup(1242, 1, 1503.3359, 1432.3585, 10.1191, -1) && CreatePickup(1242, 1, 1493.2490,1429.7944,10.8203, -1);

Vince
03/04/2014, 03:47 PM
Use an array.

new ArmorPick[2];

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

[IND]Crazy
03/04/2014, 03:52 PM
where i can put that ?
OnGamemodeInit ?

ReD_HunTeR
03/04/2014, 03:59 PM
use likes this:-


new ArmorPick[2];

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