little help please, thanks
#1

Код:
showImpoundMenu(playerid) {
	dialogstr[0] = 0;
	new carid, index;
	while(((carid = findPlayerCar(playerid, index++)) != -1)) {
		if(isVehicleInImpound(carid) == 2) {
			format(tempstr, sizeof(tempstr), "%s - $%s\n",VehiclesName[GetVehicleModel(carid)-400],getNumberString(GetImpoundPrice(carid)));
			strcat(dialogstr,tempstr,sizeof(dialogstr));
		}
	}
	ShowPlayerDialog(playerid, EGovDialog_ImpoundMenu, DIALOG_STYLE_LIST, "Impound Menu", dialogstr, "Ok", "Cancel");
}
When the player go on this icon, the dialog box opens only if a player has his vehicle impounded. I want it to open when a player walks onto the pickup and even if he hasn't has any impounded vehicle then just open dialog which says None.
Reply
#2

https://sampwiki.blast.hk/wiki/PickupTypes
You'll be needing 2 maybe,

The number "2" is the type !
Код:
CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
Reply
#3

Quote:
Originally Posted by FuNkYTheGreat
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/PickupTypes
You'll be needing 2 maybe,

The number "2" is the type !
Код:
CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
I dont think you understood what I meant, I don't want it to disappear..
Reply
#4

Код:
0
The pickup does not display.
 1
Not pickupable, exists all the time. (Suitable for completely scripted pickups using OnPlayerPickUpPickup)
 2
Pickupable, respawns after some time.
 3
Pickupable, respawns after death
 4
Disappears shortly after created (perhaps for weapon drops?)
 5
Disappears shortly after created (perhaps for weapon drops?)
 8
Pickupable, but has no effect. Disappears automatically.
 11
Blows up a few seconds after being created (bombs?)
 12
Blows up a few seconds after being created.
 13
Slowly decends to the ground.
 14
Pickupable, but only when in a vehicle. Falls through objects made with CreateObject, etc.
 15
Pickupable, respawns after death
 19
Pickupable, but has no effect (information icons?)
 22
Pickupable, respawns after death.
 23
Pickupable, but doesn't disappear on pickup.
These are the types , and id 23 type wont dissapear while being picked up !
This is what i meant to say !
Reply
#5

Quote:
Originally Posted by FuNkYTheGreat
Посмотреть сообщение
Код:
0
The pickup does not display.
 1
Not pickupable, exists all the time. (Suitable for completely scripted pickups using OnPlayerPickUpPickup)
 2
Pickupable, respawns after some time.
 3
Pickupable, respawns after death
 4
Disappears shortly after created (perhaps for weapon drops?)
 5
Disappears shortly after created (perhaps for weapon drops?)
 8
Pickupable, but has no effect. Disappears automatically.
 11
Blows up a few seconds after being created (bombs?)
 12
Blows up a few seconds after being created.
 13
Slowly decends to the ground.
 14
Pickupable, but only when in a vehicle. Falls through objects made with CreateObject, etc.
 15
Pickupable, respawns after death
 19
Pickupable, but has no effect (information icons?)
 22
Pickupable, respawns after death.
 23
Pickupable, but doesn't disappear on pickup.
These are the types , and id 23 type wont dissapear while being picked up !
This is what i meant to say !
I know these lool, I want dialog box to open even when a player doesn't have his vehicle impounded and showing None inside the box.
Reply
#6

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)