arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Help] I need help with a pickup
#1
Hello, I need you to help me in a pickup that I am doing, what I am doing is to create a pickup with the minigun icon and that when a player passes over the le of a minigun with 12 ammunition

I created the pickup with the minigun but when a player passes over it he doesn't give anything and I need help with that.

Here is the code I put:

new minigun;

///////////////////////////////////////////////////

public OnGameModeInit () {

minigun=CreatePickup (362, 1, 2489.5010, -1669.5480, 13.3359, 0);

return 1;
}

//////////////////////////////////////////////////// //

public OnPlayerPickUpPickup (playerid, pickupid)
{
if (pickupid == minigun)
{
GivePlayerWeapon (playerid, 362, 12);
}

return 1;
}


Messages In This Thread
[Help] I need help with a pickup - by Hnewbie - 08-12-2019, 11:57 AM
RE: [Help] I need help with a pickup - by Hnewbie - 08-18-2019, 11:34 AM

person_pin_circle Users browsing this thread: 2 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting