[Ajuda] Skin proibida.
#6

Troque de:

Код:
if(dialogid == skins)
{
if(response == 1)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), P_CONTAS, aname);
new skin;
new grana;
grana = GetPlayerGrana(playerid);
if(grana > 499){
dini_Set(file, "Skin", inputtext);
SetPlayerSkin(playerid, dini_Int(file, "Skin"));
GivePlayerGrana(playerid, -500);
if(skin==271 || skin==272 || skin==273 || skin==270 || skin==269 || skin==274 || skin>=289){
SendClientMessage(playerid, Vermelho, "(INFO) ID de skin proibida!");
return 1;
}
Para:

PHP код:
// OBS: Trocar o  P_CONTAS , PROFISSAO e Policia_F da linha "if(P_CONTAS[playerid][PROFISSAO] != Policia_F)" de acordo // com o seu GM.
 
if(dialogid == skins)
{
        if(
response == 1)
        {
                new 
aname[MAX_PLAYER_NAME];
                
GetPlayerName(playeridanamesizeof(aname));
                
format(filesizeof(file), P_CONTASaname);
                new 
skin;
                new 
grana;
                
grana GetPlayerGrana(playerid);
                if(
grana >= 500)
                {
                        
dini_Set(file"Skin"inputtext);
                        
SetPlayerSkin(playeriddini_Int(file"Skin"));
                        
GivePlayerGrana(playerid, -500);
                        if(
skin==271 || skin==272 || skin==273 || skin==270 || skin==269 || skin==274 || skin>=289)
                        {
                                
SendClientMessage(playeridVermelho"(INFO) ID de skin proibida!");
                                return 
1;
                        }
                        if(
skin==287)
                        {
                                if(
P_CONTAS[playerid][PROFISSAO] != Policia_F)
                                {
                                        
SendClientMessage(playeridVermelho"(INFO) ID de Skin exclusiva para COP");
                                }
                                else
                                {
                                
dini_Set(file"Skin"287);
                               
                                
SetPlayerSkin(playeriddini_Int(file"Skin"));
                                return 
1;
                                }
                         }
                }
        }

Botei em PHP pra distinguir as funзхes mais facilmente.

Nгo esqueзa do "OBS" no topo do Code.

QQuer coisa avisa.

OBS: Estude um pouco de Identaзгo.
OBSІ: QQuer erro de identaзгo bugou na parte de passar pro fуrum u.u

Abз.
Reply


Messages In This Thread
Skin proibida. - by clerISoN - 13.05.2013, 17:28
Respuesta: Skin proibida. - by Wendell - 13.05.2013, 19:10
Re: Skin proibida. - by HashFr - 13.05.2013, 19:15
Respuesta: Re: Skin proibida. - by Wendell - 13.05.2013, 19:25
Re: Skin proibida. - by clerISoN - 13.05.2013, 20:00
Re: Skin proibida. - by [THs]ShadoW - 13.05.2013, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)