16.07.2011, 21:02
Quote:
Josma й Isso Sim Mais Veja
No Meu +1 Up Level Ta Assim, Sou Meio Novato Pawno Intao Como Faz Para Fazer Esse Seu Comando Ai o UP Ser Por Base Desse |
pawn Код:
//**************** Troca o script no OnPlayerDeath antigo por este *************************
Matou[killerid] ++;
if(Matou[killerid] >= 10)
{
SendClientMessage(killerid, 0xFFFFFFFF, "Vocк subiu de nнvel o/");
Score[killerid] += 1;
dini_IntSet(file, "Level", dini_Int(file, "Level")+1);
Matou[killerid] = 0;
return 1;
}
//************************* Troca o comando antigo por este ********************************
if(strcmp(cmd, "/score", true) == 0)
{
#define Branco 0xFFFFFFFF
new tmp[20], PlayerB, string[30], Manolo[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /Score [id]");
PlayerB = strval(tmp);
GetPlayerName(PlayerB, Manolo, sizeof(Manolo));
format(string, sizeof(string), "%s: %d", Manolo, dini_Int(file, "Level"));
SendClientMessage(playerid, Branco, string);
return 1;
}
Espero que funcione.
Aconselho vocк a criar uma public para carregar e salvar Dados.