[Ajuda] Lag No Cerebro - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Lag No Cerebro (
/showthread.php?tid=442795)
Lag No Cerebro -
Wellington1999 - 09.06.2013
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
Re: Lag No Cerebro -
Wellington1999 - 09.06.2013
Ngm?
Re: Lag No Cerebro -
AlucardSnow - 09.06.2013
Й
"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...
Re: Lag No Cerebro -
Cromado - 09.06.2013
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