Axo que ele nao quis dize isso scripter100..
Axo que ele quer tipo um cmd /rank que mostra qm tem mais score, se for isso ja tem aki soh usar o search.. |
/recorde
new killingspree[128];
new monsterkill[128];
new multikill[128];
new ultrakill[128];
new unstoppable[128];
new Matou[MAX_PLAYERS] = 0;
new Morreu[MAX_PLAYERS] = 0;
//Comentarios aqui
new sendername[MAX_PLAYER_NAME];
GetPlayerName(killerid, sendername, sizeof(sendername));
Matou[killerid]++;
Morreu[playerid]++;
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
if(Matou[killerid] >= 10 && Matou[killerid] <= 19)
{
format(string, sizeof(string), "%s e Um killingspree, Ele Ja matou mais de 10 players, Matem ele!!!", sendername);
SendClientMessageToAll(COLOR_RED, string);
format(killingspree, sizeof(killingspree),"%s",sendername);
}
else if(Matou[killerid] >= 20 && Matou[killerid] <= 29)
{
format(string, sizeof(string), "%s e Um monsterkill, Ele Ja matou mais de 20 players, Matem ele!!!", sendername);
SendClientMessageToAll(COLOR_RED, string);
format(killingspree, sizeof(killingspree),"%s",sendername);
}
else if(Matou[killerid] >= 30 && Matou[killerid] <= 39)
{
format(string, sizeof(string), "%s e Um multikill, Ele Ja matou mais de 30 players, Matem ele!!!", sendername);
SendClientMessageToAll(COLOR_RED, string);
format(multikill, sizeof(multikill),"%s",sendername);
}
else if(Matou[killerid] >= 40 && Matou[killerid] <= 49)
{
format(string, sizeof(string), "%s e Um ultrakill, Ele Ja matou mais de 40 players, Matem ele!!!", sendername);
SendClientMessageToAll(COLOR_RED, string);
format(ultrakill, sizeof(ultrakill),"%s",sendername);
}
else if(Matou[killerid] >= 50 && Matou[killerid] <= 59)
{
format(string, sizeof(string), "%s e Um unstoppable, Ele Ja matou mais de 50 players, Matem ele!!!", sendername);
SendClientMessageToAll(COLOR_RED, string);
format(unstoppable, sizeof(unstoppable),"%s",sendername);
}
//comentarios aqui
new tmp[256];
new string[128];
if (strcmp("/meuscore", cmdtext, true, 10) == 0)
{
format(string, sizeof(string), "Vocк Matou: %d", Matou[playerid]);
SendClientMessage(playerid,0xFFFFFFAA, string);
format(string, sizeof(string), "Vocк Morreu: %d", Morreu[playerid]);
SendClientMessage(playerid,0xFFFFFFAA, string);
format(string, sizeof(string), "Vocк Tem: $%d de dinheiro", GetPlayerMoney(playerid));
SendClientMessage(playerid,0xFFFFFFAA, string);
return 1;
}
if (strcmp("/scoreplayer", cmdtext, true, 10) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /scoreplayer [id]");
return 1;
}
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s Matou: %d", sendername, Matou[giveplayerid]);
SendClientMessage(playerid,0xFFFFFFAA, string);
format(string, sizeof(string), "%s Morreu: %d", sendername, Morreu[giveplayerid]);
SendClientMessage(playerid,0xFFFFFFAA, string);
format(string, sizeof(string), "%s Tem: $%d de dinheiro", sendername, GetPlayerMoney(giveplayerid));
SendClientMessage(playerid,0xFFFFFFAA, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Jogador Ofline.");
}
}
if (strcmp("/tops", cmdtext, true, 10) == 0)
{
format(string, sizeof(string), "killingspree: %s", killingspree);
SendClientMessage(playerid,0xFFFFFFAA, string);
format(string, sizeof(string), "monsterkill: %s", monsterkill);
SendClientMessage(playerid,0xFFFFFFAA, string);
format(string, sizeof(string), "multikill: %s", multikill);
SendClientMessage(playerid,0xFFFFFFAA, string);
format(string, sizeof(string), "ultrakilll: %s", ultrakill);
SendClientMessage(playerid,0xFFFFFFAA, string);
format(string, sizeof(string), "unstoppable: %s", unstoppable);
SendClientMessage(playerid,0xFFFFFFAA, string);
return 1;
}
//
format(killingspree, sizeof(killingspree),"Ninguem");
format(monsterkill, sizeof(monsterkill),"Ninguem");
format(multikill, sizeof(monsterkill),"Ninguem");
format(ultrakill, sizeof(monsterkill),"Ninguem");
format(unstoppable, sizeof(monsterkill),"Ninguem");