[Ajuda] Score , Kills , Morreu
#1

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"); 
Reply
#2

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.
Reply
#3

Vlw kra +Rep vou mudar assunto do topico agr
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)