SA-MP Forums Archive
bug yt - 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: bug yt (/showthread.php?tid=648790)



bug yt - VF46 - 28.01.2018

então pessoal eu criei tag ******* no meu servidor certo de uns dias para ca a maioria cria conta ja sendo *******r
[/php]enum PlayerDados
{
*******r,
}
{
DOF2_SetInt(arquivo, "*******r", pDados[playerid][*******r]);
}
{
new string[168];
format(string, sizeof(string), "{FFFFFF}| YOUT{FF0000}UBER | {FFFFFF}(ID:%d{FFFFFF}){FFFFFF} : {FFFFFF}%s ", playerid, text);
SendPlayerMessageToAll(playerid, string);
SetPlayerChatBubble(playerid, "YOUT{FF0000}UBER ", -1, 100.0, 10000);
return 0;
}


Re: bug yt - GuiKommander - 28.01.2018

Pega como base, e estude mano.
PHP код:
#include <a_samp>
#include <DOF2>
#include <zcmd>
new stg[128];
enum PlayerInfo
{
    
*******r
}
new 
pInfo[MAX_PLAYERS][PlayerInfo];
public 
OnFilterScriptExit()
{
   
DOF2_Exit();
   return 
1;
}
public 
OnPlayerConnect(playerid)
{
     if(!
DOF2_FileExists(Conta(playerid)))
     {
         
DOF2_CreateFile(Conta(playerid));
         
DOF2_SetInt(Conta(playerid), "*******r"0);
     }
     else
     {
         
SendClientMessage(playerid, -1"| INFO | Conta Carregada.");
     }
     
CarregarConta(playerid);
     if(
pInfo[playerid][*******r] == 1)
     {
     
SendClientMessage(playerid, -1"| INFO | *******r logado com sucesso.");
     
SetPlayerChatBubble(playerid"YOUT{FF0000}UBER ", -1100.010000);
     
format(stgsizeof(stg), "» *******r %s estб no controle de todos!"PlayerName(playerid));
     
SendClientMessageToAll(-1stg);
     }
     return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
SalvarConta(playerid);
    return 
1;
}
static 
CarregarConta(playerid)
{
    
pInfo[playerid][*******r] = DOF2_GetInt(Conta(playerid), "*******r");
    return 
1;
}
static 
SalvarConta(playerid)
{
    
DOF2_SetInt(Conta(playerid), "*******r"pInfo[playerid][*******r]);
    return 
1;
}
static 
Conta(playerid)
{
    new 
Arquivo[44], Nome[MAX_PLAYER_NAME];
    
GetPlayerName(playeridNome44);
    
format(Arquivo44"Contas/%s.ini"Nome);
    return 
Arquivo;
}
static 
PlayerName(playerid)
{
    new 
GetarNome[MAX_PLAYER_NAME];
    
GetPlayerName(playeridGetarNome44);
    return 
GetarNome;
}
CMD:*******r(playeridparams[])
{
    
DOF2_SetInt(Conta(playerid), "*******r"1);
    
pInfo[playerid][*******r] = 1;
    
SendClientMessage(playerid, -1"| INFO | Vocк conseguiu *******r.");
    return 
1;