Help apriciatet
#1

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. ?
Reply
#2

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;
}
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)