Can some1 help me? i want pickup items :( - 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: Can some1 help me? i want pickup items :( (
/showthread.php?tid=119229)
Can some1 help me? i want pickup items :( -
Hullu - 07.01.2010
Can some1 help me ? how i can make pickups? (weapons)
Re: Can some1 help me? i want pickup items :( -
Lajko1 - 07.01.2010
u check the wiki ?
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup here for example
and here
https://sampwiki.blast.hk/wiki/CreatePickup
and here for models
https://sampwiki.blast.hk/wiki/Game_Object_ID_List
have fun
Re: Can some1 help me? i want pickup items :( -
waza75 - 07.01.2010
Код:
new tec9pickup;
public OnGameModeInit()
{
tec9pickup = Createpickup(372, 2, floatX, floatY, floatZ, virtualword);
return 1;
}
public OnPlayerPickUppickup(playerid, pickupid)
{
if(pickupid == tec9pickup)
{
GivePlayerWeapon(playerid, 372, 150);
}
return 1;
}
Make this your own variant and use the pickupguide on the wiki for more info.
Re: Can some1 help me? i want pickup items :( -
Hullu - 07.01.2010
Thanks very Much
Re: Can some1 help me? i want pickup items :( -
waza75 - 07.01.2010
No problem
Re: Can some1 help me? i want pickup items :( -
Hullu - 07.01.2010

what happens

this says error 010: invalid function or declaration and i dont find a error
Re: Can some1 help me? i want pickup items :( -
jamesb93 - 07.01.2010
Show the line
you did do:
public OnPlayerPickUpPickup
and not
public OnPlayerPickUppickup
right?
Re: Can some1 help me? i want pickup items :( -
Hullu - 07.01.2010
srry nothing

I fix it

)))
Re: Can some1 help me? i want pickup items :( -
Hullu - 07.01.2010
i add it under the OnGameModeInit () ? tec9pickup = CreatePickup(372, 2, -2959.0056,479.9946,4,1);
Re: Can some1 help me? i want pickup items :( -
Hullu - 07.01.2010
and this under the public OnPlayerPickUpPickup(playerid, pickupid)? if(pickupid == tec9pickup)
{
GivePlayerWeapon(playerid, 32, 15000);
}
return 1;
}