Pickup 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: Pickup help (
/showthread.php?tid=547328)
Pickup help -
Glossy42O - 22.11.2014
I'm having easy problem, I created a pickup because i couldn't create checkpoint, Anywayz..
How can i make it not dissapear? i mean when i am on it it shows me weapon dialog, when i walk away it dissapears.
How to make it stay?
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup_Arrow)
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,316.1981,-167.2833,999.5938);
}
else if(pickupid == pickup_Shop)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Weapon shop", "{ff0000}Deagle {00CC00}$2000\n{FF0000}Shotgun {00CC00}$1000\n{FF0000}Sniper {00CC00}$3000\n{FF0000}M4 {00CC00}$5000\n{FF0000}MP5 {00CC00}$1000\n{FF0000}Combat {00CC00}$6000\n{FF0000}Grenade {00CC00}$6000\n{FF0000}Tec9 {00CC00}$4000\n{ff0000}Slilenced pistol {00CC00}$1000\n{ff0000}AK-47 {00CC00}$5000", "Purchase", "Exit");
}
return 1;
}
Re: Pickup help -
dominik523 - 22.11.2014
What is the pickup's type?
Re: Pickup help -
Ryz - 22.11.2014
use
Re: Pickup help -
Delgad0 - 22.11.2014
https://sampwiki.blast.hk/wiki/PickupTypes
Read there, maybe it helps you.
Re: Pickup help -
Glossy42O - 22.11.2014
Where is type that after i stand on him if i walk away it appears after 5 seconds ?
Re: Pickup help -
Ryz - 22.11.2014
type 1 & 2 is good
i am also using this type
Re: Pickup help -
dominik523 - 22.11.2014
I'm not sure about that, but try to change the pickup's type to 1 if it's not already that one.
Re: Pickup help -
Glossy42O - 22.11.2014
1 works BUT, when i press exit on da dialog it shows me it again, i need the pickup to dissaper for 4/3 seconds..
Re: Pickup help -
Ryz - 22.11.2014
Quote:
Originally Posted by Stuun
1 works BUT, when i press exit on da dialog it shows me it again, i need the pickup to dissaper for 4/3 seconds..
|
then type 2 is your last choice! good luck
Re: Pickup help -
Glossy42O - 22.11.2014
I did, but it respawns after 30 seconds, i'm making weapon shop i need 5 seconds because 30 sec is weird.
Should i make timer? idk how tho lol