What's wrong with my pickups ?
#1

Hello,

I added some pickups to my GM, but they don't appear in-game, why ?


Код:
new pickup1;

OnGameModeInit() :
pickup1 = CreatePickup(1247,14,-2407.8040,2291.2954,21.3180);


OnPlayerPickUpPickup(playerid, pickupid):
if (pickupid == pickup1)
{"Actions"}
Reply
#2

Try using "AddStaticPickup" instead

Код:
pickup1 = AddStaticPickup(1247,14,-2407.8040,2291.2954,21.3180,-1);
Reply
#3

Set the virtual world it spawns in:
CreatePickup(1247,14,-2407.8040,2291.2954,21.3180,-1);

-1 is all
More details here: https://sampwiki.blast.hk/wiki/CreatePickup
Reply
#4

Already tried these 2 methods :/
Reply
#5

Send through your whole OnGameModeInit ...
Reply
#6

It's a white GM
Reply
#7

Well then show us the code that adds the pickup.
Reply
#8

Here is your problem

Type:
14 Pickupable, but only when in a vehicle. Falls through objects made with CreateObject, etc.

Use Type 2.
Reply
#9

Oh wow, I didn't even notice that, Well spotted Voldemort.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)