[Ajuda]Comando /pintar
#1

Queria que este comando pintasse o carro na mesma hora, mais ele muda a cor do carro somente dps do server reiniciar. Se poderem me ajudar agradeзo desde jб.

PHP код:
    if (strcmp(cmd"/pintarcarro"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            new 
House PlayerInfo[playerid][pPHousekey];
            
GetPlayerName(playeridplayernamesizeof(playername));
            if (
House != 255 && strcmp(playernameHouseInfo[PlayerInfo[playerid][pPHousekey]][hOwner], true) == 0)
            {
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD3,"(R$5000) USE: /pintarcarro [COR 1 ou 2] [COR ID]");
                    return 
1;
                }
                new 
COLORnum strval(tmp);
                if(
COLORnum || COLORnum 1)
                {
                    
SendClientMessage(playeridCOLOR_GRAD3,"Cor 1(Principal) ou 2(Secundбria)");
                    return 
1;
                }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD3,"(R$5000) USE: /pintarcarro [COR 1 ou 2] [COR ID]");
                }
                new 
COLOR strval(tmp);
                if(
COLOR 126)
                {
                    
SendClientMessage(playeridCOLOR_GRAD3,"Mбximo й 126");
                    return 
1;
                }
                if (
GetPlayerMoney(playerid) < 5000)
                {
                    
SendClientMessage(playeridCOLOR_GRAD3,"Vocк nгo tem (R$5000)");
                }
                if(
COLORnum == 1)
                {
                    
HouseInfo[House][hVcol1] = COLOR;
                    
format(stringsizeof(string), "Cor 1 Trocada Para %d -R$5000",COLOR);
                    
SendClientMessage(playeridCOLOR_GRAD3,string);
                }
                else
                {
                    
HouseInfo[House][hVcol2] = COLOR;
                    
format(stringsizeof(string), "Cor 2 Trocada Para %d -R$5000",COLOR);
                    
SendClientMessage(playeridCOLOR_GRAD3,string);
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD2"   Vocк nгo tem uma casa");
                return 
1;
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
[Ajuda]Comando /pintar - by Scripter_Sk8 - 17.01.2012, 15:06
Re: [Ajuda]Comando /pintar - by WeenSoares_ - 17.01.2012, 17:04
Re: [Ajuda]Comando /pintar - by [RoXx]Okiinho - 24.01.2012, 11:28

Forum Jump:


Users browsing this thread: 1 Guest(s)