[Ajuda] Dinheiro ao player
#2

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);
}
Tenta isso
Reply


Messages In This Thread
Dinheiro ao player - by Forrest - 10.07.2013, 00:43
Re: Dinheiro ao player - by LucaAllexandre - 10.07.2013, 00:48
Re: Dinheiro ao player - by Forrest - 10.07.2013, 00:55

Forum Jump:


Users browsing this thread: 1 Guest(s)