SA-MP Forums Archive
Help apriciatet - 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: Help apriciatet (/showthread.php?tid=181397)



Help apriciatet - KiraAndPoul - 05.10.2010

Hello everybody, i would hear i got these

if(pickupid == TH1) // TH2 TH3 etc. etc.
{

but how do i explain where TH1 position is and make it like a checkpoint but its not supposed to be shown on minimap, and it only shows TH2 if you picked up 1 first and so on. ?


Re: Help apriciatet - Jakku - 05.10.2010

You define the pickup position while creating the pickup

pawn Код:
new TH1;

TH1 = CreatePickup(model,type, PosX,PosY,PosZ, virtualworld);

public OnPlayerPickupPickUp(playerid, pickupid)
{
if (pickupid == TH1) {
//Something happens
}

return 1;
}



Re: Help apriciatet - KiraAndPoul - 05.10.2010

not to ask dumb but what is type supposed to be? xD

And i got forexample (2, 1629.7062, -2329.1780, 13.5469, 359.4593, 0,0,0,0,0,0); what is Z, X, Y