help with weapon drop
#5

there is a little mistake.In your script the pickup will be the weapon of the killer
and the dying player pick up the dropped weapon...

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  new Float:X;
  new Float:Y;
  new Float:Z;
  GetPlayerPos(playerid,X,Y,Z);
  if(GetPlayerWeapon(playerid)>1)
  {
    new WeaponModel = WeaponToModel(GetPlayerWeapon(playerid));
    CreatePickup(WeaponModel,3,X-2,Y,Z);
  }
}
(i use Float:X... because in my script there were allready a Float:PlayerX...)

but how can i change ammo? the dropped weapons only had 10 ammo...
Reply


Messages In This Thread
help with weapon drop - by _ReloadeD_ - 07.04.2009, 07:32
Re: help with weapon drop - by Joe Staff - 07.04.2009, 08:20
Re: help with weapon drop - by _ReloadeD_ - 09.04.2009, 19:35
Re: help with weapon drop - by Joe Staff - 10.04.2009, 15:59
Re: help with weapon drop - by Campaaa - 10.04.2009, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)