[Ajuda] Sair skin no /contaslider
#1

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;
    } 
Reply
#2

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й.
Reply
#3

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
Reply
#4

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

Sу botar isso.
Reply
#5

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

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

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

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

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 !
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)