30.05.2015, 03:59
Eu Logo Na Minha Conta Tal Mais Nao Estб Spawnando
http://imgur.com/9MfUdqT
http://imgur.com/9MfUdqT
stock CarregarConta(playerid,password[])
{
new arq[36];
format(arq,36,"/acc/%s.ini",GetName(playerid));
if(DOF2_CheckLogin(arq,password))
{
Player[playerid][matou] = 0;
Player[playerid][morreu] = 0;
Player[playerid][admin] = 0;
Recorde[playerid] = 0;
Player[playerid][wins] = 0;
Player[playerid][losses] = 0;
RecordeSpree[playerid] = 0;
SetPlayerScore(playerid,0);
Player[playerid][wins] = DOF2_GetInt(arq,"Wins");
Player[playerid][losses] = DOF2_GetInt(arq,"Losses");
Recorde[playerid] = DOF2_GetInt(arq,"Recorde");
RecordeSpree[playerid] = DOF2_GetInt(arq,"RecordeSpree");
Player[playerid][matou] = DOF2_GetInt(arq,"Matou");
Player[playerid][morreu] = DOF2_GetInt(arq,"Morreu");
Player[playerid][admin] = DOF2_GetInt(arq,"Admin");
Player[playerid][vip] = DOF2_GetInt(arq,"VIP");
Player[playerid][rounds] = DOF2_GetInt(arq,"Rounds");
SetPlayerScore(playerid,DOF2_GetInt(arq,"Score"));
DOF2_SetInt(arq,"Logins",DOF2_GetInt(arq,"Logins") + 1);
new ip[16];
GetPlayerIp(playerid,ip,16);
DOF2_SetString(arq,"IP",ip);
DOF2_SaveFile();
skine[playerid] = DOF2_GetInt(arq,"Skin");
Logado[playerid] = true;
new welcome[150];
format(welcome,150,"» Novo Jogador: {FFFFFF}%s {FFFF00}ID:{FFFFFF} %d {FFFF00}Logins: {FFFFFF}%d {FFFFFF} Pais: Brasil",GetName(playerid),playerid,DOF2_GetInt(arq,"Logins"));
SendClientMessageToAll(verde,welcome);
Atualizar(playerid,HudColor[playerid]);
SalvarConta(playerid);
HudColor[playerid] = 5;
//ShowPlayerDialog(playerid,147,DIALOG_STYLE_LIST,"Escolha uma cor","{FF2222}Vermelho\n{22FF22}Verde\n{2222FF}\n{FFFF22}Amarelo\n{FF22FF}Rosa\n{FF7A17}Laranja\n{8A3400}Marrom\n{222222}Preto\n{888888}Cinza\n{FFFFFF}Branco\n{22FFFF}Ciano","Selecionar","Sair");
}
stock CarregarConta(playerid,password[])
{
new arq[36];
format(arq,36,"/acc/%s.ini",GetName(playerid));
if(DOF2_CheckLogin(arq,password))
{
Player[playerid][matou] = 0;
Player[playerid][morreu] = 0;
Player[playerid][admin] = 0;
Recorde[playerid] = 0;
Player[playerid][wins] = 0;
Player[playerid][losses] = 0;
RecordeSpree[playerid] = 0;
SetPlayerScore(playerid,0);
Player[playerid][wins] = DOF2_GetInt(arq,"Wins");
Player[playerid][losses] = DOF2_GetInt(arq,"Losses");
Recorde[playerid] = DOF2_GetInt(arq,"Recorde");
RecordeSpree[playerid] = DOF2_GetInt(arq,"RecordeSpree");
Player[playerid][matou] = DOF2_GetInt(arq,"Matou");
Player[playerid][morreu] = DOF2_GetInt(arq,"Morreu");
Player[playerid][admin] = DOF2_GetInt(arq,"Admin");
Player[playerid][vip] = DOF2_GetInt(arq,"VIP");
Player[playerid][rounds] = DOF2_GetInt(arq,"Rounds");
SetPlayerScore(playerid,DOF2_GetInt(arq,"Score"));
DOF2_SetInt(arq,"Logins",DOF2_GetInt(arq,"Logins") + 1);
new ip[16];
GetPlayerIp(playerid,ip,16);
DOF2_SetString(arq,"IP",ip);
DOF2_SaveFile();
skine[playerid] = DOF2_GetInt(arq,"Skin");
Logado[playerid] = true;
new welcome[150];
format(welcome,150,"» Novo Jogador: {FFFFFF}%s {FFFF00}ID:{FFFFFF} %d {FFFF00}Logins: {FFFFFF}%d {FFFFFF} Pais: Brasil",GetName(playerid),playerid,DOF2_GetInt(arq,"Logins"));
SendClientMessageToAll(verde,welcome);
Atualizar(playerid,HudColor[playerid]);
SalvarConta(playerid);
HudColor[playerid] = 5;
SetSpawnInfo( playerid, 0, 0, POSIЗГO DE SPAWN X, POSIЗГO DE SPAWN Y, POSIЗГO DE SPAWN Z, 0, 0, 0, 0, 0, 0, 0 );
//ShowPlayerDialog(playerid,147,DIALOG_STYLE_LIST,"Escolha uma cor","{FF2222}Vermelho\n{22FF22}Verde\n{2222FF}\n{FFFF22}Amarelo\n{FF22FF}Rosa\n{FF7A17}Laranja\n{8A3400}Marrom\n{222222}Preto\n{888888}Cinza\n{FFFFFF}Branco\n{22FFFF}Ciano","Selecionar","Sair");
}