10.04.2009, 19:44
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...
(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...
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);
}
}
but how can i change ammo? the dropped weapons only had 10 ammo...