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");
}
CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
|
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); |
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.
|
Код:
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. This is what i meant to say ! |