[Pedido] Algo contra Fake-Kill... Olhem por favor.
#4

Quote:
Originally Posted by Arthenry
Посмотреть сообщение
Topo do GM
pawn Код:
new totaldemortes[MAX_PLAYERS];
Na public onplayerdeath
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    totaldemortes[playerid]++;
    if(totaldemortes[playerid] >  2) return SendClientMessage(playerid,-1,"Crйditos a tio le le leo.!"),Ban(playerid);
    SetTimerEx("funfa", 1000, false, "i",playerid);
    return 1;
}
Nas forwards
pawn Код:
forward funfa(playerid);
E no final do gm:
pawn Код:
public funfa(playerid)
{
    totaldemortes[playerid] = 0;
}
Crйditos ao code:
leonardo1434
Testado?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)