27.11.2016, 06:58
(
Последний раз редактировалось didimk157; 27.11.2016 в 09:02.
)
PHP код:
dcmd_tops(playerid, params[])
{
#pragma unused params
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COR_PRINCIPAL, "|___________ *** MOSTRANDO OS TOPs ONLINE *** ___________|");
SetTimerEx("MostrandoKills", 3000, 0, "i", playerid);
}
return true;
}
PHP код:
forward MostrandoKills(playerid);
public MostrandoKills(playerid)
{
new string[128];
if(IsPlayerConnected(NomeTopKills1))
{
format(string, sizeof(string), "*** Top Kills: ( %s ) total de mortes: [%d]", PlayerName(NomeTopKills1),KillsTop1);
SendClientMessage(playerid, COR_BRANCO, string);
}
else
{
SendClientMessage(playerid, COR_BRANCO, "*** Top Kills: [Ninguem] total de mortes: [nenhuma]");
}
//SendClientMessage(playerid, COR_YELLOW, "carregando top crimes...");
SetTimerEx("MostrandoCrimes", 3000, 0, "i", playerid);
return true;
}
forward MostrandoCrimes(playerid);
public MostrandoCrimes(playerid)
{
new string[128];
if(IsPlayerConnected(NomeTopCrimes))
{
format(string, sizeof(string), "*** Top Crimes: ( %s ) Crimes cometidos: [%d]", PlayerName(NomeTopCrimes),CrimesTop);
SendClientMessage(playerid, COR_BRANCO, string);
}
else
{
SendClientMessage(playerid, COR_BRANCO, "*** Top Crimes: [Ninguem] Crimes cometidos: [nenhum]");
}
//SendClientMessage(playerid, COR_YELLOW, "carregando top nivel...");
SetTimerEx("MostrandoNivel", 3000, 0, "i", playerid);
return true;
}
forward MostrandoNivel(playerid);
public MostrandoNivel(playerid)
{
new string[128];
if(IsPlayerConnected(NomeTopNivel))
{
format(string, sizeof(string), "*** Top Nivel: ( %s ) Nivel: [%d]", PlayerName(NomeTopNivel),NivelTop);
SendClientMessage(playerid, COR_BRANCO, string);
}
else
{
SendClientMessage(playerid, COR_BRANCO, "*** Top Nivel: [Ninguem] Nivel: [nenhum]");
}
//SendClientMessage(playerid, COR_YELLOW, "carregando top noob...");
SetTimerEx("MostrandoNoob", 3000, 0, "i", playerid);
return true;
}
forward MostrandoNoob(playerid);
public MostrandoNoob(playerid)
{
new string[128];
if(IsPlayerConnected(NomeTopNoob))
{
format(string, sizeof(string), "*** Top Noob: ( %s ) Vezes que morreu: [%d]", PlayerName(NomeTopNoob),NoobTop);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
SendClientMessage(playerid, COR_BRANCO, "*** Top Noob: [Ninguem] Vezes que morreu: [nenhuma]");
}
//SendClientMessage(playerid, COR_YELLOW, "carregando top grana...");
SetTimerEx("MostrandoGrana", 3000, 0, "i", playerid);
return true;
}
forward MostrandoGrana(playerid);
public MostrandoGrana(playerid)
{
new string[128];
if(IsPlayerConnected(NomeTopGrana))
{
format(string, sizeof(string), "*** Top Grana: ( %s ) Conta bancaria: [R$%d]", PlayerName(NomeTopGrana),GranaTop);
SendClientMessage(playerid, COR_BRANCO, string);
}
else
{
SendClientMessage(playerid, COR_BRANCO, "*** Top Grana: [Ninguem] Conta bancaria: [nada]");
}
//SendClientMessage(playerid, COLOR_YELLOW, "carregando top maior peixe...");
SetTimerEx("MostrandoHoras", 3000, 0, "i", playerid);
return true;
}