SA-MP Forums Archive
[Ajuda] Nao Estб Spawnando - 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] Nao Estб Spawnando (/showthread.php?tid=575774)



Nao Estб Spawnando - JuniorTheDM - 30.05.2015

Eu Logo Na Minha Conta Tal Mais Nao Estб Spawnando
http://imgur.com/9MfUdqT


Re: Nao Estб Spawnando - JuniorTheDM - 30.05.2015

Alguem ?


Re: Nao Estб Spawnando - Felipe_Freeze - 30.05.2015

https://sampwiki.blast.hk/wiki/SetSpawnInfo


Re: Nao Estб Spawnando - JuniorTheDM - 30.05.2015

ja estб defiinido Como
SpawnPlayer(playerid); Soque Nao Sei Pq Nao Estб Spawnando


Re: Nao Estб Spawnando - Felipe_Freeze - 30.05.2015

Mesmo tendo o SpawnPlayer, tu tem que usar o SetSpawnInfo
Coloca ele na funзгo que carrega o player e tu jб pode usar as proprias callouts dele pra setar skin do player, posiзгo x,y,z,r, ....


Re: Nao Estб Spawnando - JuniorTheDM - 30.05.2015

Olha Oque Eu Faзo AKI]
PHP код:
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");
    




Re: Nao Estб Spawnando - Felipe_Freeze - 30.05.2015

pawn Код:
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");
    }
Sу torca os " POSIЗГO DE SPAWN " pela posiзгo do Spawn.


Re: Nao Estб Spawnando - JuniorTheDM - 30.05.2015

Cara Mais a Posiзao Й Random n й Uma So


Re: Nao Estб Spawnando - Felipe_Freeze - 30.05.2015

entгo coloca ali a funзгo da posiзгo random ... do mesmo modo que tu pois no SetPlayerPos, porйm ali. xD


Re: Nao Estб Spawnando - JuniorTheDM - 30.05.2015

eu coloquei cara SpawnPlayer(playerid);
Mais Mesmo Assim nao Estб Spawnando Nao Sei PQ