pickups problem
#1

hey everyone,

i made a few armour and health pickups, health and armour EXACT same except that the pickup model is different and when walking into it you get armour or health, depends on the pickup, but now i got problem.

when i walk through a health pickup, it dissapears and it is spawning again after some time.
with the armour pickup it isnt... idk but when i walk through it and it doesnt dissapears...

pawn Код:
desertdmarmourhealth[0] = CreatePickup(1240, 2, -1651.2698,-223.7476,265.9619, 6); // health
    desertdmarmourhealth[1] = CreatePickup(1242, 2, -1648.3711,-280.3683,270.7901, 6); // armour
    desertdmarmourhealth[2] = CreatePickup(1240, 2, -1632.9280,-259.0133,273.5093, 6); // health
    desertdmarmourhealth[3] = CreatePickup(1242, 2, -1564.0415,-301.4276,273.4780, 6); // armour
    desertdmarmourhealth[4] = CreatePickup(1240, 2, -1497.5129,-301.3742,274.9441, 6); // health
    desertdmarmourhealth[5] = CreatePickup(1242, 2, -1644.2214,-358.6923,272.6972, 6); // armour
anyone sees the problem here? also i DONT have at the onplayerpickupickup that it gets recreated, so idk but it just doesnt works..

greets niels
Reply
#2

try using CreateDynamicPickup, it should work just fine..
Reply
#3

What if you do the model of the armour pickup also to 1240 ?
Reply
#4

@michael, i just found out it is messing with BOTH, depends on the time you pick it up or something, or restarts or rejoining, idk but it also seems they r fuckedup, i got like 20 pickups, and when i pickup a rocket launcher, it also gives armour, but it only should give rocket launcher, in script nothing is wrong, so i will try dynamic pickups now... hope it works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)