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 ", -1, 100.0, 10000);
format(stg, sizeof(stg), "» *******r %s estб no controle de todos!", PlayerName(playerid));
SendClientMessageToAll(-1, stg);
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
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(playerid, Nome, 44);
format(Arquivo, 44, "Contas/%s.ini", Nome);
return Arquivo;
}
static PlayerName(playerid)
{
new GetarNome[MAX_PLAYER_NAME];
GetPlayerName(playerid, GetarNome, 44);
return GetarNome;
}
CMD:*******r(playerid, params[])
{
DOF2_SetInt(Conta(playerid), "*******r", 1);
pInfo[playerid][*******r] = 1;
SendClientMessage(playerid, -1, "| INFO | Vocк conseguiu *******r.");
return 1;
}