SA-MP Forums Archive
Pickup is not showing up - 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)
+--- Thread: Pickup is not showing up (/showthread.php?tid=562893)



Pickup is not showing up - _GHT_MarK445 - 12.02.2015

Hi guys, i need to quick help. My pickup is not showing up. Its in interior but one guy told me, it doesnt matter.

I got news; on the top of the mode.

The

new = createpickup thing

In OnGameModeInit

and in OnPlayerPickUpPickup i got the functions.. what can be the problem? thanks


Re: Pickup is not showing up - IndependentGaming - 12.02.2015

explain more and show us a code we cant help you this way

CreatePickupEx([ObjectID], [PickupModel], PosX,PosY,PosZ, -1);


Re: Pickup is not showing up - _GHT_MarK445 - 12.02.2015

Alright.

On the top of the gamemode.

Код:
new escape;
In the OnGameModeInit

Код:
escape = CreatePickup(1318, 1, 1862.2916,-1699.6805,5202.5859, -1);
in the OnPlayerPickUpPickup

Код:
if(pickupid == escape)
	{
        SendClientMessage(playerid, -1, "To escape, just type /escape");
}
Thats pretty much it.


Re: Pickup is not showing up - IndependentGaming - 12.02.2015

If you dont have the stock try to add this


Код:
stock CreatePickupEx(model, type, Float:X, Float:Y, Float:Z, Virtualworld = -1)
{
	totalpickups++;
	return CreateDynamicPickup(model, type, X, Y, Z, Virtualworld);
}



Re: Pickup is not showing up - _GHT_MarK445 - 12.02.2015

Still not working. Aint showing the pickup.


Re: Pickup is not showing up - IndependentGaming - 12.02.2015

Then it is beter that you place this ingame

Pickup:
Код:
CreatePickupEx([ObjectID], [PickupModel], PosX,PosY,PosZ, -1);
Textlabel:
Код:
	CreateDynamic3DTextLabel("/escape\nTo escape from the prison.",COLOR_GREEN PosX, PosY, PosZ+0.6,4.0);
Place it on the same location and it shoult be fixed
edit the command and put

Код:
IsPlayerInRangeOfPoint



Re: Pickup is not showing up - _GHT_MarK445 - 12.02.2015

Off course. I did it, it is showing me the label. But the pickup is still nowhere.

I am just stressed out from this problem.


Re: Pickup is not showing up - IndependentGaming - 12.02.2015

I understand do i like i said and it will work


Re: Pickup is not showing up - _GHT_MarK445 - 12.02.2015

But I did it. Everything is working just fine, except the pickup which is not showing up.


Re: Pickup is not showing up - IndependentGaming - 12.02.2015

do it like this

Код:
escape = CreatePickup(1318, 23, 1862.2916,-1699.6805,5202.5859, -1);
yourcode:

Код:
escape = CreatePickup(1318, 1, 1862.2916,-1699.6805,5202.5859, -1);