SA-MP Forums Archive
pickup help - 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 help (/showthread.php?tid=68689)



pickup help - CJ101 - 12.03.2009

when the player goes into the pickup, the text does not disply (the code for that pickup is not working)

http://pastebin.com/m37c62751


Re: pickup help - Mikep - 12.03.2009

https://sampwiki.blast.hk/wiki/Template:TypesOfPickups

Quote:

1 - Not pickupable, exist everytime.




Re: pickup help - Pyrokid - 12.03.2009

Change
pawn Код:
empire = CreatePickup(1274,1,-2051.0269,459.2587,35.1719);
to
pawn Код:
empire = CreatePickup(1274,2,-2051.0269,459.2587,35.1719);



Re: pickup help - Mikep - 12.03.2009

Why would you wan't a pickup that couldn't be picked up? lol


Re: pickup help - CJ101 - 13.03.2009

it needs to always be there, you need to be in the pickup to /enter.

plus, the text will not pop up when in the pickup


Re: pickup help - Mikep - 13.03.2009

19 - Pickupable, but has no effect


Re: pickup help - CJ101 - 13.03.2009

Код:
public OnPlayerPickupPickup(playerid, pickupid)

{

    if (pickupid == empire)

    {

    GameTextForPlayer(playerid,"/enter",5000,5);

    }

 

    return 1;

}
ok, i found the right pickup tpye, but the GameText will not show when the player is in the pickup.


Re: pickup help - Mikep - 13.03.2009

What type are you using?


Re: pickup help - CJ101 - 13.03.2009

23 - Pickupable, but doesn't disappear on pickup.


Re: pickup help - On_Top_Non_Stop - 13.03.2009

Try this and tell us what it prints.

public OnPlayerPickupPickup(playerid, pickupid)
{
printf("%d : %d",pickupid,empire);
return 1;
}