[Pedido] VIP
#1

Uma pergunta e um pedido, Pergunta: Alguem sabe o lugar onde eu possa mudar o valor do /conce, No padrao quando voce compra um carro pelo /conce ele custa 100k, Eu queria mudar esse preзo mais nao tenho idea de onde ele possa estar, Pedido: Sisteminha basico pro player ganhar 3 dias de vip quando REGISTRAR no server.

Cara, ce voce me ajuda voce йh foda '-', Do REP Namoralzinha
Reply
#2

cara vc precisa antes postar as variaveis usadas no comando ou melhor o comando
Reply
#3

Posta o comando /conce e as variбveis do VIP .
Reply
#4

Aki o /conce

PHP код:
if(strcmp(cmd"/conce"true) == 0)
    {
        
format(filesizeof(file), PASTA_CONTASGetPlayerNameEx(playerid));
        if(
IsPlayerVIP(playerid) || dini_Int(file"UsouConce") == 0)
        {
            
ShowPlayerDialog(playeridescolheridDIALOG_STYLE_INPUT"Outros""{FF0000}[x] {00FF00}Os ID's vгo de {FF0000}400 {00FF00}a {FF0000}611\n\n{0000FF}O veнculo custarб $100mil\n\n{00FF00}Digite o ID do veнculo que deseja comprar:""Comprar""Cancelar");
        }
        else
        {
            
SendClientMessage(playeridAmarelo"Torne-se um 'VIP' para comprar mais veнculos assim.");
        }
        return 
1;
    } 
Reply
#5

Poste o OnDialogResponse desta dialog "escolherid"
Reply
#6

Acho q й isso aki q vc quer

PHP код:
if(dialogid == escolherid)
    {
        if(
response == 1)
        {
            new 
Float:XpFloat:YpFloat:ZpFloat:anGp;

            if(!
VBIsNumeric(inputtext))
            {
                
SendClientMessage(playeridVermelho"Valor invбlido, tente novamente!");
            }
            else
            {
                if(
StrToInt(inputtext) == 425 || StrToInt(inputtext) == 469 || StrToInt(inputtext) == 538 || StrToInt(inputtext) == 537 || StrToInt(inputtext) == 520 || StrToInt(inputtext) == 449 || StrToInt(inputtext) == 447 || StrToInt(inputtext) == 569 || StrToInt(inputtext) == 570 || StrToInt(inputtext) == 432)
                {
                    
SendClientMessage(playeridtcadm"Veнculo proibido, tente outro! | ID's = 400-611");
                }
                else
                {
                    if(
StrToInt(inputtext) >= 400 && StrToInt(inputtext) <= 611)
                    {
                        
GetPlayerPos(playeridXpYpZp);
                        
GetPlayerFacingAngle(playeridanGp);
                        
format(filesizeof(file), PASTA_CONTASGetPlayerNameEx(playerid));
                        if(
dini_Int(file"VIP") == 0)
                        {
                            
dini_IntSet(file"UsouConce"1);
                            
PlayerAddConceVehicleForPlayer(playeridStrToInt(inputtext), 100000XpYpZpanGp, -1, -1);
                        }
                        else
                        {
                            
dini_IntSet(file"UsouConce"0);
                            
PlayerAddConceVehicleForPlayer(playeridStrToInt(inputtext), 100000XpYpZpanGp, -1, -1);
                        }
                    }
                    else
                    {
                        
SendClientMessage(playeridtcadm"ID fora do normal! | ID's = 400-611");
                    }
                }
            }
        }
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)