Pickup help
#1

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(playeridpickupid)
{
  if(
pickupid == pickup_Arrow)
  {
    
SetPlayerInterior(playerid,6);
    
SetPlayerPos(playerid,316.1981,-167.2833,999.5938);
  }
  else if(
pickupid == pickup_Shop)
  {
    
ShowPlayerDialog(playerid1DIALOG_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;

Reply
#2

What is the pickup's type?
Reply
#3

use
pawn Код:
CreateDynamicPickup
Reply
#4

https://sampwiki.blast.hk/wiki/PickupTypes
Read there, maybe it helps you.
Reply
#5

Where is type that after i stand on him if i walk away it appears after 5 seconds ?
Reply
#6

type 1 & 2 is good

i am also using this type
Reply
#7

I'm not sure about that, but try to change the pickup's type to 1 if it's not already that one.
Reply
#8

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)