[Ajuda] Problema no Spawn
#1

Galera, to com um problema no meu Spawn, por exemplo, se eu uso /respawnplayer ele respawna normal, usando a funзгo pSpawn(playerid). Mas se eu morro, ele fica com aquela porra daquelas cetinhas e o botao Spawn, mesmo se eu aperta o botгo (ou aperta Shift) nгo vai, sу fica nele ¬¬'

Alguйm sabe o que pode ser?

SS:
http://i.imgur.com/Aa9sK8T.png

Public pSpawn:
PHP код:
forward pSpawn(playerid);
public 
pSpawn(playerid) {
    if(
Logado[playerid]) {
        
SetSpawnInfo(playerid0SetPlayerSkin(playeridBrunoInfo[playerid][pSkin]), RESPAWN_CIVILFA000000);
        
TogglePlayerSpectating(playeridfalse);
        
OnPlayerSpawn(playerid);
        
SetCameraBehindPlayer(playerid);
        
SetPlayerTeamColor(playerid);
    }
    return 
1;

Public OnPlayerSpawn:
PHP код:
public OnPlayerSpawn(playerid)
{
    
SetPlayerVirtualWorld(playerid0);
    
TextDrawShowForPlayer(playeridRelogio0);//nome da draw no caso a que definimos la emcima
    
TextDrawShowForPlayer(playeridRelogio1);
    
TextDrawShowForPlayer(playeridTForum);// "liga" a text draw que fica em la em baixo (forum...).
    
TextDrawShowForPlayer(playeridBarraPretaForum);
    
TempoAdmin SetTimerEx("EstadoAdmin"20001"i"playerid);// Inicia o SetTimer de admin!
    
SetPlayerSkin(playeridBrunoInfo[playerid][pSkin]);// Seta a skin do player!
     
if(BrunoInfo[playerid][pCadeia] == && MSG_Preso[playerid] == 0)
    {
        
SCM(playeridCOR_VERMELHOCLARO"Sentenзa incompleta, vocк voltou para a prisгo!");
        
SetPlayerHealth(iddele99999);
        
SetPlayerPos(iddele322.197998,302.497985,999.148437);
        
SetPlayerInterior(iddele5);
          
MSG_Preso[playerid] = 1;
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)
    {
        
SetPlayerPosEx(playerid1716.5039, -1692.512813.5177,183.2262);
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)// PM
    
{
           
SetPlayerPos(playeridRESPAWN_PM);
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)// bope
    
{
           
SetPlayerPosEx(playerid328.4683,-1514.2706,36.0391,228.1652);
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)// GN
    
{
           
SetPlayerPosEx(playerid, -1522.1064,479.1407,7.1875,182.4302);
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)// PF
    
{
           
SetPlayerPosEx(playerid914.1409,-1000.1646,38.0688,357.7923);
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)// Prefeito
    
{
           
SetPlayerPosEx(playerid1506.1608,-1849.7653,13.5469,180.4635);
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)// BALLAS
    
{
           
SetPlayerPosEx(playerid1153.3092,-1181.0313,32.8187,89.2952);
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)// azteca
    
{
           
SetPlayerPosEx(playerid316.1351,-1771.0208,4.6896,181.6499);
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)// vagos
    
{
           
SetPlayerPosEx(playerid2808.2383,-1176.8186,25.3709,179.1831);
    }
    else if(
BrunoInfo[playerid][pMembro] == && BrunoInfo[playerid][pCadeia] == 0)// Pcc
    
{
           
SetPlayerPosEx(playerid1323.9834,-875.2939,39.5781,4.0809);
    }
    else if(
BrunoInfo[playerid][pMembro] == 10 && BrunoInfo[playerid][pCadeia] == 0)// cv
    
{
           
SetPlayerPosEx(playerid994.7869,-1460.0630,13.5469,268.3143);
    }
    else if(
BrunoInfo[playerid][pMembro] == 11 && BrunoInfo[playerid][pCadeia] == 0)// groove
    
{
           
SetPlayerPosEx(playerid2495.3137,-1687.3927,13.5156,0.2612);
    }
    else if(
BrunoInfo[playerid][pMembro] == 12 && BrunoInfo[playerid][pCadeia] == 0)// taxi
    
{
           
SetPlayerPosEx(playerid1778.7594,-1704.7861,13.5207,180.5426);
    }
    else if(
BrunoInfo[playerid][pMembro] == 13 && BrunoInfo[playerid][pCadeia] == 0)// hitmans
    
{
           
SetPlayerPosEx(playerid1102.7345,-299.3799,73.9922,91.5164);
    }
    else if(
BrunoInfo[playerid][pMembro] == 14 && BrunoInfo[playerid][pCadeia] == 0)// medicos
    
{
           
SetPlayerPosEx(playerid1176.8530,-1323.9502,14.0418,269.3462);
    }
    else if(
BrunoInfo[playerid][pMembro] == 15 && BrunoInfo[playerid][pCadeia] == 0)// reporteres
    
{
           
SetPlayerPosEx(playerid742.3663,-1355.4249,13.5000,269.7312);
    }
    else if(
BrunoInfo[playerid][pMembro] == 16 && BrunoInfo[playerid][pCadeia] == 0)// farc
    
{
           
SetPlayerPosEx(playerid422.4359,2532.4824,16.5911,181.9280);
    }
    else if(
BrunoInfo[playerid][pMembro] == 17 && BrunoInfo[playerid][pCadeia] == 0)// gi
    
{
           
SetPlayerPosEx(playerid, -67.4845,60.5215,3.1172,68.5870);
    }
    if(
mandoumensagem[playerid] == 0)
    {
        if(
BrunoInfo[playerid][pAdmin] >= 1)
        {
               
format(String,70 "Vocк logou com nнvel %d de administrador"BrunoInfo[playerid][pAdmin]);
            
SCM(playeridCOR_AZULCLAROString);
        }
        if(
BrunoInfo[playerid][pVip] == 1)
        {
            
SCM(playeridCOR_AZULCLARO"Vocк й um player VIP");
        }
        else if(
BrunoInfo[playerid][pVip] == 2)
        {
            
SCM(playeridCOR_AZULCLARO"Vocк й um player SUPER-VIP");
        }
         if((
BrunoInfo[playerid][pAdmin] >= 1) && BrunoInfo[playerid][pAdmin] <= 3001)// Se a pessoa que logar for admin
        
{
            
format(String30"~g~%s ~w~ON"pNome(playerid));// manda eesse gametextforplayer para todos onlines :D!
            
foreach(Playeri)
            {
                
GameTextForPlayer(iString 50001);
            }
        }
        
mandoumensagem[playerid] = 1;
    }
    
SetPlayerTeamColor(playerid);
    return 
1;

Reply
#2

alguma coisa esta fazendo vc retornar a seleзгo de classes
Reply
#3

Tente utilizar SpawnPlayer(playerid);
Reply
#4

Й mano, to tentando ver aqui mas nao indica nada que retorna o requestclass.
Ja tentei o SpawnPlayer, nгo vai :@
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)