[Ajuda] Nao Estб Spawnando
#1

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

Alguem ?
Reply
#3

https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply
#4

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

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, ....
Reply
#6

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");
    

Reply
#7

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

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

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

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


Forum Jump:


Users browsing this thread: 5 Guest(s)