yo, help
#1

Sup!


I did this line AddStaticPickup( Mode, Coods);


To a gun


But it only giving me 10 bullets, how can i get it higher?
Reply
#2

No help?!

Reply
#3

You'd need to do the following.

Put below the Includes:
Код:
new gun1;
Put in OnGameModeInit:
Код:
gun1 = CreatePickup(model, type, X, Y, Z);
Put in OnPlayerPickupPickup:
Код:
If(pickupid == gun1)
    {
       GivePlayerWeapon(playerid, weaponid, ammo);
    }
    return 1;
That's how you properly make a weapon pickup.

Also -
Change the pickup model, type and add cords for CreatePickup.
Change the weaponid and ammo for GivePlayerWeapon.
Reply
#4

Quote:
Originally Posted by BigPoncho
gun1 = AddStaticPickup(model, type, X, Y, Z);
doesn't return the pickup ID.

Correct is gun1 = CreatePickup(model, type, X, Y, Z);
Reply
#5

Quote:
Originally Posted by pen_†ĥęGun
Quote:
Originally Posted by BigPoncho
gun1 = AddStaticPickup(model, type, X, Y, Z);
doesn't return the pickup ID.

Correct is gun1 = CreatePickup(model, type, X, Y, Z);
My bad. =p
Reply
#6

wait wait wait wait.....


In the up of the script to put new gun1


Than under gmamodeinit What to put?
Reply
#7

i get this error:

(6384) : error 017: undefined symbol "pickupid"
(6390) : warning 225: unreachable code

help me?
Reply
#8

Guys, help please.
Reply
#9

if no-one has responded it means ethier.

No-one Cares
or
No-one Knows

don't mean to be harsh or anything but stop spamming though.
Reply
#10

Quote:
Originally Posted by BigPoncho
You'd need to do the following.

Put below the Includes:
pawn Код:
new gun1;
Put in OnGameModeInit:
pawn Код:
gun1 = CreatePickup(model, type, X, Y, Z);
Put in OnPlayerPickupPickup:
pawn Код:
if(pickupid == gun1)
    {
        GivePlayerWeapon(playerid, weaponid, ammo);
    }
That's how you properly make a weapon pickup.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)