Pickup is not showing up
#1

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

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

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

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.
Reply
#4

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

Still not working. Aint showing the pickup.
Reply
#6

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
Reply
#7

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.
Reply
#8

I understand do i like i said and it will work
Reply
#9

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

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)