10.07.2013, 00:48
pawn Код:
new PickupGrana;
//Em OnPlayerDeath...
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
PickupGrana = CreatePickup(1212,2,x,y,z,-1);
SetPVarInt(killerid, "DinheiroDoMorto", GetPlayerMoney(killerid));
//Em OnPlayerPickUpPickup...
if(pickupid == PickupGrana)
{
GivePlayerMoney(playerid,GetPVarInt(playerid, "DinheiroDoMorto"));
DeletePVar(playerid, "DinheiroDoMorto");
DestroyPickup(pickupid);
}