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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pickup (
/showthread.php?tid=275557)
Pickup -
emokidx - 10.08.2011
hello
i was wondering about pickups
now i want to know how to create random spawns for a pickup and where to put the CreatePickup line..
and how to put the random co-ords in the CreatePickup
E.g.:
pawn Код:
new randomspawns[][] = {
{co-ords},
{co-ords},
{co-ords},
};
CreatePickup(1210, 23, randomspawns, 0);
would it be like that?
Re: Pickup -
iJumbo - 10.08.2011
pawn Код:
new Float:randomp[2][3] = {
{x,y,z},
{x,y,z}
};
new randcord = random(sizeof(randomp));
CreatePickup(1210,23,randomp[randcord][0], randomp[randcord][1], randomp[randcord][2],0);