SA-MP Forums Archive
[Ajuda] Score , Kills , Morreu - 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] Score , Kills , Morreu (/showthread.php?tid=582748)



Score , Kills , Morreu - JuniorTheDM - 23.07.2015

Cada Vez Que Dou GMX No Server o Sistema Reseta
PHP код:
enum Playerinfos
{
    
Matou,
    
Morreu,
    
Score,
}
new 
pInfo[MAX_PLAYERS][Playerinfos];
//oNGAMEMODEINIT
    
SetTimer("info"10001);
//Public Onde esta Mostrando
forward info(playerid);
public 
info(playerid)
{
    new 
STR[128], str2[128], str3[128], str4[128], str5[128];
    
format(STRsizeof(STR), "~b~Matou:~w~ %d"pInfo[playerid][Matou]);
    
PlayerTextDrawSetString(playeridINFO[2][playerid], STR);
    
format(str3sizeof(str3), "~b~Morreu:~w~ %d"pInfo[playerid][Morreu]);
    
PlayerTextDrawSetString(playeridINFO[3][playerid], str3);
    
format(str2sizeof(str2), "~b~Score:~w~ %d",GetPlayerScore(playerid));
    
PlayerTextDrawSetString(playeridINFO[5][playerid], str2);
    
format(str4sizeof(str4), "~b~Nick:~w~ %s",PlayerName(playerid));
    
PlayerTextDrawSetString(playeridINFO[6][playerid], str4);
    
format(str5sizeof(str5), "Seje Bem Vindo Ao Servidor ~b~%s ~w~Para Algumas Informaзoes Use /regras & /comandos",PlayerName(playerid));
    
PlayerTextDrawSetString(playeridTela_LoginNome[playerid], str5);
    return 
1;
}
//Public OnPlayerDeath
    
pInfo[killerid][Matou]++;
    
pInfo[playerid][Morreu]++;
//Salvando
    
DOF2_SetInt(String"Morreu"pInfo[playerid][Morreu]);
    
DOF2_SetInt(String"Matou"pInfo[playerid][Matou]);
   
DOF2_SetInt(String,"Score"GetPlayerScore(playerid));
//Carregando
    
SetPlayerScore(playeridDOF2_GetInt(String,"Score"));
    
pInfo[playerid][Matou] = DOF2_GetInt(String"Matou");
    
pInfo[playerid][Morreu] = DOF2_GetInt(String"Morreu"); 



Re: Chat Kill - #Luca[S]. - 23.07.2015

Tуpicos e mais tуpicos falando sobre isso.. Em fim.
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killeridplayeridreason); // Mostra a morte na Kill List 
    
return 1;

Poderia ter usado o search.


Re: Chat Kill - JuniorTheDM - 23.07.2015

Vlw kra +Rep vou mudar assunto do topico agr