SA-MP Forums Archive
[Ajuda] Sair skin no /contaslider - 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] Sair skin no /contaslider (/showthread.php?tid=393315)



Resolvido ! - Petrick™ - 17.11.2012

Bom Galera, para nгo da o bug da garrafa que vai para hq groove eu fis uma maneira que o player quando digite /contaslider ele fica no mesmo lugar ai ele sair da org, bom mais eu queria que quando o player desse /contaslider ele ficasse com a skin de novato
olhe
ja tentei dessa maneira nгo pega ele continua com a skin da org.

PHP код:
    if(!strcmp("/contaslider"cmdtexttrue))
    {
        if(
PlayerInfo[playerid][pLider] == 0)
        {
               
SendClientMessage(playerid,COLOR_GREY," Vocк nгo й lнder de nenhuma organizaзгo!");
               return 
1;
        }
        
format(stringsizeof(string), "PLAYER: %s pediu contas de lider da org:[%s]",PlayerName(playerid), NomeORG(GetPlayerOrg(playerid)));
        
LideresLog(string);
        
DemitirInfoOrg(PlayerName(playerid));
        
gTeam[playerid] = 3;
        
PlayerInfo[playerid][pTeam] = 3;
        
PlayerInfo[playerid][pMembro] = 0;
        
PlayerInfo[playerid][pLider] = 0;
        
PlayerInfo[playerid][pCargo] = 0;
        if(
PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 146; } else { PlayerInfo[playerid][pSkin] = 145; }
        
MedicBill[playerid] = 0;
        
MedicBill[playerid] = 0;
        
liderhide[playerid] = 0;
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"Vocк pediu as contas, agora vocк й um Civil novamente!");
        return 
1;
    } 



Re: Sair skin no /contaslider - Fire_Hell - 17.11.2012

Ve se funciona ai.

pawn Код:
if(!strcmp("/contaslider", cmdtext, true))
    {
        if(PlayerInfo[playerid][pLider] == 0)
        {
            MSGPLAYER(playerid,COLOR_GREY," Vocк nгo й lнder de nenhuma organizaзгo!");
            return 1;
        }
        format(string, sizeof(string), "PLAYER: %s pediu contas de lider da org:[%s]",PlayerName(playerid), NomeORG(GetPlayerOrg(playerid)));
        LideresLog(string);
        DemitirInfoOrg(PlayerName(playerid));
        gTeam[playerid] = 3;
        PlayerInfo[playerid][pTeam] = 3;
        PlayerInfo[playerid][pMembro] = 0;
        PlayerInfo[playerid][pLider] = 0;
        PlayerInfo[playerid][pCargo] = 0;
        PlayerInfo[playerid][pSpawn] = 0;
        if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 26; } else { PlayerInfo[playerid][pSkin] = 12; }
        SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
        MedicBill[playerid] = 0;
        SpawnPlayer(playerid);
        MedicBill[playerid] = 0;
        MSGPLAYER(playerid, COLOR_LIGHTBLUE, "Vocк pediu as contas, agora vocк й um Civil novamente!");
        return 1;
    }
Atй.


Re: Sair skin no /contaslider - Petrick™ - 17.11.2012

Nossa velho, o /contaslider estava do geito antes de eu edita, e vc me traz o codigo, nossa vocк nгo sabe ler la em cima с ? SpawnPlayer(playerid); cara se for para ganhar post, nem faz mais isso


Re: Sair skin no /contaslider - Joao Pedro - 17.11.2012

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

Sу botar isso.


Re: Sair skin no /contaslider - Fire_Hell - 17.11.2012

Nossos GMs sгo iguais entгo, mais o meu ta bem de boa... Troca a Skin e eu vou pro Spawn, tentei ajudar.

Preciso de post nгo mano...


Re: Sair skin no /contaslider - Petrick™ - 17.11.2012

Quote:
Originally Posted by Joao Pedro
Посмотреть сообщение
Depende e o sexo ?

if(PlayerInfo[playerid][pSex] == 1)
if(PlayerInfo[playerid][pSex] == 2)?


Re: Sair skin no /contaslider - Joao Pedro - 17.11.2012

Quote:
Originally Posted by petrick_schoba
Посмотреть сообщение
Depende e o sexo ?

if(PlayerInfo[playerid][pSex] == 1)
if(PlayerInfo[playerid][pSex] == 2)?
Se vocк quiser skin diferente para cada sexo, usa a funзгo condicional if. Independente do sexo, para setar a skin й sу usar a funзгo que postei.


Re: Sair skin no /contaslider - Petrick™ - 17.11.2012

Quote:
Originally Posted by Joao Pedro
Посмотреть сообщение
Se vocк quiser skin diferente para cada sexo, usa a funзгo condicional if. Independente do sexo, para setar a skin й sу usar a funзгo que postei.
Resolvido !