Solid pickups 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)
+--- Thread: Solid pickups help (
/showthread.php?tid=487259)
Solid pickups help -
Blademaster680 - 12.01.2014
Why do i have pickups that are solid and don't spin? like I cant walk through them. but some do spin and you can go through them?
Its kinda hard to explain but its almost like some of my pickups are objects, not pickups. Yet I have searched everywhere in my gamemode for the pickups that are not spinning and I cant find them anywhere.
Any help would be great.
Re: Solid pickups help -
SilentSoul - 12.01.2014
That's according to your pickup type.
https://sampwiki.blast.hk/wiki/CreatePickup
https://sampwiki.blast.hk/wiki/PickupTypes
Example of pickup's don't dissapear after walking through it.
pawn Код:
CreatePickup(1242, 1, 1503.3359, 1432.3585, 10.1191, -1);
Example of pickup Pickupable
pawn Код:
CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
Re: Solid pickups help -
Hansrutger - 12.01.2014
Quote:
Originally Posted by SilentSoul
That's according to your pickup type.
https://sampwiki.blast.hk/wiki/CreatePickup
https://sampwiki.blast.hk/wiki/PickupTypes
Example of pickup's don't dissapear after walking through it.
pawn Код:
CreatePickup(1242, 1, 1503.3359, 1432.3585, 10.1191, -1);
Example of pickup Pickupable
pawn Код:
CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
|
Nah' that's not it. He's saying that they are solid and he cannot pick them up, there is no type that state that they are "solid", "not walk through-able" or "not spinning".
Post your OnGameModeInit and let's see what you have.
Re: Solid pickups help -
Blademaster680 - 12.01.2014
My whole ongamemodeinit?
Cuz its like a thousand or so lines
Re: Solid pickups help -
Hansrutger - 12.01.2014
Quote:
Originally Posted by Blademaster680
My whole ongamemodeinit?
Cuz its like a thousand or so lines
|
^^ Yes whole.
Re: Solid pickups help -
SilentSoul - 12.01.2014
Quote:
Originally Posted by Blademaster680
My whole ongamemodeinit?
Cuz its like a thousand or so lines
|
You're using 'CreatePickup' function on creating it am i right? If yes when you enter the pickup do you get the health/effect of the pickup? so your only problem is that it won't destroy after you pickup it?
Re: Solid pickups help -
Hansrutger - 12.01.2014
Quote:
Originally Posted by SilentSoul
You're using 'CreatePickup' function on creating it am i right? If yes when you enter the pickup do you get the health/effect of the pickup? so your only problem is that it won't destroy after you pickup it?
|
Here you go:
Quote:
Why do i have pickups that are solid and don't spin?
|
Psst: Still waiting for the whole OnGameModeInit. Use pastebin if you want. OR optional, copy and paste only the "CreatePickup" or "CreateDynamicPickup" that you find having inside your OnGameModeInit.
Because these pickups are there whole time right? Not after you type a command or something?
Re: Solid pickups help -
Blademaster680 - 12.01.2014
Here is my code:
http://pastebin.com/rb3JxdVy
@SilentSoul no the problem is that I cant walk through them. almost like they a solid if that makes sense. They ment to be pickups to show information when players get near them but they dont spin. There like an object not a pickup
Re: Solid pickups help -
caoraivoso3 - 12.01.2014
then you should create a object, a textdraw with information and not a pickup.
Re: Solid pickups help -
Blademaster680 - 12.01.2014
I need the pickup though. An object they cant walk through, which I need them to be able to do and I need the spinning "i". If you know what I mean.