Sniper Weapon Pickup?
#1

I made a sniper pick up at a DM location. It shows up and the script compiles without a problem but the weapon itself isnt picked up.

here is the code:

Код:
public OnGameModeInit()
{
	dm1sniper = CreatePickup(358,23,-861.0325,1536.7845,25.7377);
	return 1;
}



public OnPlayerPickUpPickup(playerid, pickupid)
{
	if (pickupid ==dm1sniper)
	{
		GivePlayerWeapon(playerid,358,1);
		return 1;
	}
	return 0;
}
Why don't I actually get the weapon?

Thanks in advance!
Reply
#2

change
GivePlayerWeapon(playerid,358,1);
to
GivePlayerWeapon(playerid,34,1);

The second parameter is weaponid not modelid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)