07.03.2009, 16:56
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:
Why don't I actually get the weapon?
Thanks in advance!
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; }
Thanks in advance!