09.01.2014, 11:50
Hello, how to create bag money when someone the playerid got killed by killer like pickup it and get 1000$? iv tried some scripts such as Weapon Drop fs but it only drops the weapons , thanks.
new money; public OnPlayerDeath(playerid, killerid, reason) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); money = CreatePickup(BAG_ID, 4, x+1.5, y, z, 0); } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == money) GivePlayerMoney(playerid, AMOUNT_OF_MONEY); }
Код:
new money; public OnPlayerDeath(playerid, killerid, reason) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); money = CreatePickup(BAG_ID, 4, x+1.5, y, z, 0); } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == money) GivePlayerMoney(playerid, AMOUNT_OF_MONEY); } |