خخخ مثال جاهز بالويكي
function createDeathPickup ( totalammo, killer, killerweapon, bodypart ) --when a player dies
x, y, z = getElementPosition ( source ) --get the position of the person who died and define it as x, y and z
currentweapon = getPlayerWeapon ( source ) --get the current weapon of the dead person
createPickup ( x, y, z, 2, currentweapon, 10000, totalammo )
end
addEventHandler ( "onPlayerWasted", getRootElement(), createDeathPickup ) --add an event handler for onPlayerWasted
+
getPedAmmoInClip -- على شان نجيب عدد الطلقات الي بالمخزن
getPedTotalAmmo -- على شان نجيب عدد طلقات السلاح
takePlayerMoney
givePlayerMoney
createPickup -- for Money icon
https://wiki.multitheftauto.com/wiki/CreatePickup