[PEDIDO] Recompensa
#9

--
@apollo
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    Delete3DTextLabel(Recompensa[playerid]);
    if(GetPlayerScore(killerid) > 10)
    {
        Delete3DTextLabel(Recompensa[killerid]);
        Recompensa[killerid] = Create3DTextLabel("RECOMPENSA 1000$",0xFF000099,0,0,0,50,-1,1);
        Attach3DTextLabelToPlayer(Recompensa[killerid], killerid, 0,0,0);
    }
    SendDeathMessage(killerid, playerid, reason); //Mensagem MATOU - MORREU na tela
    SetPlayerScore(killerid,(GetPlayerScore(killerid))+1); //+1 ponto para quem matou
    SetPlayerScore(playerid,(GetPlayerScore(playerid))-1); //-1 ponto para quem morreu
    new string[50];
    format(string, sizeof(string), "~w~Morto");
    GameTextForPlayer(playerid, string, 3000, 2);
    return 1;
}
Reply


Messages In This Thread
[PEDIDO] Recompensa - by Delete_ - 01.05.2011, 21:40
Re: [PEDIDO] Recompensa - by Delete_ - 01.05.2011, 22:33
Re: [PEDIDO] Recompensa - by The Knight - 01.05.2011, 22:36
Re: [PEDIDO] Recompensa - by Ricop522 - 01.05.2011, 22:42
Re: [PEDIDO] Recompensa - by The Knight - 01.05.2011, 22:57
Re: [PEDIDO] Recompensa - by Ricop522 - 01.05.2011, 23:14
Re: [PEDIDO] Recompensa - by Delete_ - 02.05.2011, 00:39
Re: [PEDIDO] Recompensa - by ApolloRJ - 02.05.2011, 00:50
Re: [PEDIDO] Recompensa - by Ricop522 - 02.05.2011, 02:21
Re: [PEDIDO] Recompensa - by ApolloRJ - 02.05.2011, 03:34

Forum Jump:


Users browsing this thread: 2 Guest(s)