10.03.2009, 18:33
On Top:
in OnGameModeInit:
Create new public if you don't have one:
Pos, if something is wrong, or/and you have questions.
pawn Код:
new WeapPU
pawn Код:
WeapPu = CreatePickup(ModelID, PickupType, X, Y, Z);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == WeapPu)
{
GivePlayerWeapon(playerid, WeaponID, Ammo);
}
return 1;
}