[Ajuda] Lag No Cerebro
#1

pawn Код:
if(strcmp(cmd,"/hackearfichas",true)==0)
{
    if(IsAHackers(playerid))
 {
        if(HackeeiDelegacia >= 1) return SendClientMessage(playerid, 0xAFAFAFAA, "Alguem jб Tentou Hackear Fichas da Delegacia, tente novamente mais tarde.");
        new Ladrao[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Hacker, sizeof(Ladrao));
        format(string, sizeof(string), "[Departamento De Policia] %s %s, estб Hackeando as Fichas Da DP.", NomeORG(playerid), Hacker);
        SendClientMessageToAll(COR_TAXI, string);
        SetTimerEx("AssaltarFichas",1000,0,"d",playerid);
        SetTimerEx("LiberarFichas",3600000,0,"d",playerid);
        SendClientMessage(playerid, 0xAFAFAFAA, " * Vai poder Hackear novamente Daqui 1 hora.");
        HackeeiDelegacia = 1;
    }
    else {SendClientMessage(playerid, 0xC9C9C9FF, "{FFFFFF}Somente Hackers Hackeam as Fichas");}
}
pawn Код:
forward AssaltarFichas(playerid);
public AssaltarFichas(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        WantedPoints[i] = 0;
        SetPlayerWantedLevel(playerid, 0);
        ClearCrime(i);
    }
    new string[128];
    new Hacker[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Ladrao, sizeof(Ladrao));
    format(string, sizeof(string), "[Departamento De Policia] [%s] %s, Hackeou As Fichas Da DP.", NomeORG(playerid), Hacker);
    SendClientMessageToAll(COR_TAXI, string);
    return 1;
}
Bom Fiz um sistema de hacker
mais qria q quando um cop matasse ele hackeando as fichas
aparecesse um o Cop %s matou o Hacker e ganhou %d
e acabasse o atentado hacker , mais n to conseguindo
Reply
#2

Ngm?
Reply
#3

Й "Lag No Cerebro" mesmo.

08/06/2013, 09:49 PM
08/06/2013, 10:18 PM

Para que Double Post?

@topic
Isso й feito em OnPlayerDeath.
Verifica se o killerid й policial e o playerid estб roubando as fichas...
Reply
#4

pawn Код:
format(string, sizeof(string), "| INFO | O Cop... %s Matou o %s Hackeando, e Recebeu %d pela recompensa", aname, tmp);//Mude para oque vc quiser
GivePlayerGrana(playerid, 80);//Mude quantos que ele ganha
Reply


Forum Jump:


Users browsing this thread: