SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese > Lançamentos/Releases

Reply
 
Thread Tools Display Modes
Old 31/05/2020, 12:08 AM   #1
Vict9r
Big Clucker
 
Vict9r's Avatar
 
Join Date: Sep 2019
Posts: 96
Reputation: 8
Default Concessionaria simples (PC/ANDROID!)

Bom, Esse e meu segundo filterscript que aposto aqui no forum


COMANDOS: /estacionar /pegarcarro /conce
INCLUDES:ZCMD, DOF2, SSCANF2
FilterScript:


pawn Code:
#include <a_samp>
#include <DOF2>
#include <zcmd>
#include <sscanf2>

#if defined FILTERSCRIPT

new SVCarPLAYER[MAX_PLAYERS];
new BuyCarCk[MAX_VEHICLES];

public OnFilterScriptInit()
{
    print("\n ====================================================================");
    print(" |                                                                             |");
    print(" |        FilterScript Concessionaria DOF2 Versao 0.2 Start...|");
    print(" |                                                                             |");
    print(" |                           * Criador:Vict9r. *                         |");
    print(" |                                                                             |");
    print(" ====================================================================\n");
    //========[ Concessionaria ]======||
    AddStaticPickup(1274, 1, 2131.4729,-1149.9431,24.2078) ;
    Create3DTextLabel("Concessionaria (LS)\n/conce", 0x00FCFCFF, 2131.4729,-1149.9431,24.2078, 30.0, 0);
    return 1;
}

public OnFilterScriptExit()
{
    DOF2_Exit();
    return 1;
}

public OnPlayerConnect(playerid)
{
    DestroyVehicle(SVCarPLAYER[playerid]);
    SVCarPLAYER[playerid] = 0;
    BuyCarCk[playerid] = 0;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    DestroyVehicle(SVCarPLAYER[playerid]);
    return 1;
}

CMD:conce(playerid, params[])
{
    new item[16];
    new DIALOGCONCE[550],string[250];
    if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2131.4729,-1149.9431,24.2078)) return 1;
    if(!sscanf(params, "s[550]", item))
    {
        if(strcmp(item,"462", true) == 0)
        {
             if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, -1, "Voce nao tem R$5000.");
             DestroyVehicle(SVCarPLAYER[playerid]);
             GivePlayerMoney(playerid, -5000);
             SVCarPLAYER[playerid] = AddStaticVehicleEx(462,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
             BuyCarCk[SVCarPLAYER[playerid]] = playerid;
             SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
         return 1;
        }
        else if(strcmp(item,"463", true) == 0)
    {
            if(GetPlayerMoney(playerid) < 10500) return SendClientMessage(playerid, -1, "Voce nao tem R$10500.");
            DestroyVehicle(SVCarPLAYER[playerid]);
            GivePlayerMoney(playerid, -10500);
            SVCarPLAYER[playerid] = AddStaticVehicleEx(463,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
            BuyCarCk[SVCarPLAYER[playerid]] = playerid;
            SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
        return 1;
        }
        else if(strcmp(item,"468", true) == 0)
        {          
            if(GetPlayerMoney(playerid) < 45000) return SendClientMessage(playerid, -1, "Voce nao tem R$45000.");
            DestroyVehicle(SVCarPLAYER[playerid]);
            GivePlayerMoney(playerid, -45000);
            SVCarPLAYER[playerid] = AddStaticVehicleEx(468,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
            BuyCarCk[SVCarPLAYER[playerid]] = playerid;
            SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
        return 1;
        }
        else if(strcmp(item,"410", true) == 0)
        {
            if(GetPlayerMoney(playerid) < 25000) return SendClientMessage(playerid, -1, "Voce nao tem R$25000.");
            DestroyVehicle(SVCarPLAYER[playerid]);
            GivePlayerMoney(playerid, -25000);
            SVCarPLAYER[playerid] = AddStaticVehicleEx(410,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
            BuyCarCk[SVCarPLAYER[playerid]] = playerid;
            SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
        return 1;
        }
        else if(strcmp(item,"412", true) == 0)
        {
            if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, -1, "Voce nao tem R$30000.");
            DestroyVehicle(SVCarPLAYER[playerid]);
            GivePlayerMoney(playerid, -30000);
            SVCarPLAYER[playerid] = AddStaticVehicleEx(412,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
            BuyCarCk[SVCarPLAYER[playerid]] = playerid;
            SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
        return 1;
         }
         else if(strcmp(item,"415", true) == 0)
     {
             if(GetPlayerMoney(playerid) < 45000) return SendClientMessage(playerid, -1, "Voce nao tem R$45000.");
             DestroyVehicle(SVCarPLAYER[playerid]);
             GivePlayerMoney(playerid, -45000);
             SVCarPLAYER[playerid] = AddStaticVehicleEx(415,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
             BuyCarCk[SVCarPLAYER[playerid]] = playerid;
             SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
         return 1;
    }
        SendClientMessage(playerid, -1, "Esse veiculo nao esta disponivel na concessionaria!!");
        return 1;
    }
    format(string,sizeof(string),"{FFFFFF}De /conce [ID DO VEICULO!] para comprar\n\n");
    strcat(DIALOGCONCE, string);
    format(string,sizeof(string),"462 - Faggio ({00CC00}R$5000{FFFFFF})\n");
    strcat(DIALOGCONCE, string);
    format(string,sizeof(string),"463 - Freeway ({00CC00}R$10500{FFFFFF})\n");
    strcat(DIALOGCONCE, string);
    format(string,sizeof(string),"468 - Sanchez ({00CC00}R$45000{FFFFFF})\n");
    strcat(DIALOGCONCE, string);
    format(string,sizeof(string),"410 - Manana ({00CC00}R$25000{FFFFFF})\n");
    strcat(DIALOGCONCE, string);
    format(string,sizeof(string),"412 - Voodoo ({00CC00}R$30000{FFFFFF})\n");
    strcat(DIALOGCONCE, string);
    format(string,sizeof(string),"415 - Cheetah ({00CC00}R$45000{FFFFFF})\n");
    strcat(DIALOGCONCE, string);
    ShowPlayerDialog(playerid, PRODUTOS, DIALOG_STYLE_MSGBOX, "Model Veiculos", DIALOGCONCE, "OK", "Sair");
    return 1;
}

CMD:estacionar(playerid)
{
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "Você não está em um carro!");
    new path[50], SCCarid, Float:PosSC[4];
    SCCarid = GetPlayerVehicleID(playerid);
    if(BuyCarCk[SCCarid] != playerid) return SendClientMessage(playerid, 0xFF0000FF, "Este carro não é seu, ou não foi comprado!");
    path = SaveCarNomePlay(playerid);
    if(!DOF2_FileExists(path)) DOF2_CreateFile(path);
    GetVehiclePos(SCCarid, PosSC[0],PosSC[1],PosSC[2]);
    GetVehicleZAngle(SCCarid, PosSC[3]);
    DOF2_SetInt(path,"CarID",GetVehicleModel(GetPlayerVehicleID(playerid)));
    DOF2_SetFloat(path,"PosX",PosSC[0]);
    DOF2_SetFloat(path,"PosY",PosSC[1]);
    DOF2_SetFloat(path,"PosZ",PosSC[2]);
    DOF2_SetFloat(path,"PosA",PosSC[3]);
    DOF2_SaveFile();
    DestroyVehicle(SVCarPLAYER[playerid]);
    SVCarPLAYER[playerid] = 0;
    BuyCarCk[playerid] = 0;
    SendClientMessage(playerid, 0xFF0000FF, "Veiculo estacionado, de /pegarcarro para spawnar ele novamente!");
    return 1;
}

CMD:pegarcarro(playerid)
{
    if(SVCarPLAYER[playerid] != 0) return SendClientMessage(playerid, 0xFF0000FF, "você ja pegou o seu carro!");
    new path[50], SCCarid, Float:PosSC[4];
    path = SaveCarNomePlay(playerid);
    SCCarid = DOF2_GetInt(path,"CarID");
    PosSC[0] = DOF2_GetFloat(path,"PosX");
    PosSC[1] = DOF2_GetFloat(path,"PosY");
    PosSC[2] = DOF2_GetFloat(path,"PosZ");
    PosSC[3] = DOF2_GetFloat(path,"PosA");
    DestroyVehicle(SVCarPLAYER[playerid]);
    SVCarPLAYER[playerid] = AddStaticVehicleEx(SCCarid,PosSC[0],PosSC[1],PosSC[2],PosSC[3],0,0,-1);
    BuyCarCk[SVCarPLAYER[playerid]] = playerid;
    SetPlayerCheckpoint (playerid, PosSC[0],PosSC[1],PosSC[2], 3.0);
    SendClientMessage(playerid, 0xFF0000FF, "Seu carro está no local estacionado!");
    return 1;
}

SaveCarNomePlay(playerid)
{
    new name[24], full[50];
    GetPlayerName(playerid,name,sizeof(name));
    format(full,sizeof(full),"%s/%s.txt",PATH,name);
    return full;
}

#endif
__________________
HostName: [RP] Brasileiros Online | Samp Mobile
Address: 104.210.147.139:7777
Players: XX / 500
Ping: 153
Mode: BORP v1.1
Language: -
DISCORD: https://discord.gg/g6ZVQZC

Last edited by Vict9r; 06/06/2020 at 04:06 PM.
Vict9r is offline   Reply With Quote
Old 05/06/2020, 08:26 PM   #2
SRRowan
Little Clucker
 
Join Date: Dec 2018
Posts: 22
Reputation: 0
Default Re: Concessionaria simples (PC/ANDROID!)

boa mano
SRRowan is offline   Reply With Quote
Old 06/06/2020, 02:19 AM   #3
Vict9r
Big Clucker
 
Vict9r's Avatar
 
Join Date: Sep 2019
Posts: 96
Reputation: 8
Default Re: Concessionaria simples (PC/ANDROID!)

Quote:
Originally Posted by SRRowan View Post
boa mano
E nois !
__________________
HostName: [RP] Brasileiros Online | Samp Mobile
Address: 104.210.147.139:7777
Players: XX / 500
Ping: 153
Mode: BORP v1.1
Language: -
DISCORD: https://discord.gg/g6ZVQZC
Vict9r is offline   Reply With Quote
Old 06/06/2020, 01:35 PM   #4
Hazard
Big Clucker
 
Hazard's Avatar
 
Join Date: May 2020
Location: Brazil
Posts: 98
Reputation: 1
Default Re: Concessionaria simples (PC/ANDROID!)

muito bom parabéns
Hazard is offline   Reply With Quote
Old 06/06/2020, 02:24 PM   #5
darkxdll
High-roller
 
darkxdll's Avatar
 
Join Date: Jul 2012
Location: C:\Windows\DLLs
Posts: 1,634
Reputation: 89
Default Re: Concessionaria simples (PC/ANDROID!)

Ficou bom o código, mas da reduzir algumas coisas, exemplo usar apenas uma vez a verificação de posição
PHP Code:
if(!IsPlayerInRangeOfPoint(playerid7.02131.4729,-1149.9431,24.2078)) return //msg de erro
if(!sscanf(params"s[550]"item))
    {
        if(
strcmp(item,"462"true) == 0)
        {
  
//          if(IsPlayerInRangeOfPoint(playerid, 7.0, 2131.4729,-1149.9431,24.2078))  // 24/7
  //          { 
e não precisa colocar params[] quando não vai usar hehe..
PHP Code:
CMD:pegarcarro(playeridparams[])

CMD:pegarcarro(playerid// funciona do mesmo jeito :D 
São só dicas, mas ficou bom

Se quiser dar um upgrade top mesmo, faça um com, "/criarcarro [modelo] [cor1] [cor2] [preço]" é um desafio bom caso você esteja iniciando.
__________________
Discord: darkxdll#9097

Consulte valores.
darkxdll is offline   Reply With Quote
Old 06/06/2020, 02:59 PM   #6
ipsLuan
High-roller
 
ipsLuan's Avatar
 
Join Date: Feb 2013
Location: Ilhéus, BA
Posts: 4,548
Reputation: 332
Default Re: Concessionaria simples (PC/ANDROID!)

Esse código é uma facada no coração de um programador.
Você está usando variável int (números) como variável string (caracteres).
__________________
Precisando de algum sistema? Me contate.
ipsLuan is offline   Reply With Quote
Old 06/06/2020, 03:09 PM   #7
darkxdll
High-roller
 
darkxdll's Avatar
 
Join Date: Jul 2012
Location: C:\Windows\DLLs
Posts: 1,634
Reputation: 89
Default Re: Concessionaria simples (PC/ANDROID!)

Quote:
Originally Posted by ipsLuan View Post
Esse código é uma facada no coração de um programador.
Você está usando variável int (números) como variável string (caracteres).
PHP Code:
    new item[16];
    new 
DIALOGCONCE[550],string[250];
    if(!
sscanf(params"s[550]"item))
    {
        if(
strcmp(item,"462"true) == 0
Acredito que tenha citado isso né, pelo menos foi oque eu achei de errado, oque ele poderia ter feito é adaptado isso para também ser utilizado com o nome do carro... ex.:
PHP Code:
    new item[16];
    new 
DIALOGCONCE[550],string[250];
    if(!
sscanf(params"s[16]"item))
    {
        if(
strcmp(item,"infernus"true) == 0
E depois gerado o carro... é claro que tem formas mais eficientes, mas eu não acho que seja tão errado assim.
__________________
Discord: darkxdll#9097

Consulte valores.
darkxdll is offline   Reply With Quote
Old 06/06/2020, 03:53 PM   #8
Vict9r
Big Clucker
 
Vict9r's Avatar
 
Join Date: Sep 2019
Posts: 96
Reputation: 8
Default Re: Concessionaria simples (PC/ANDROID!)

Estarei tentando da uma utimizada no codigo agora que sei + do que antes!
__________________
HostName: [RP] Brasileiros Online | Samp Mobile
Address: 104.210.147.139:7777
Players: XX / 500
Ping: 153
Mode: BORP v1.1
Language: -
DISCORD: https://discord.gg/g6ZVQZC
Vict9r is offline   Reply With Quote
Old 12/06/2020, 06:27 AM   #9
Hatiro
Huge Clucker
 
Hatiro's Avatar
 
Join Date: Mar 2019
Posts: 384
Reputation: 10
Default Re: Concessionaria simples (PC/ANDROID!)

não tem necessidade de usar strcmp para comparar numero ela foi feita para comparar texto com texto
Code:
#include <a_samp>
#include <DOF2>
#include <zcmd>
#include <sscanf2>

#if defined FILTERSCRIPT

new SVCarPLAYER[MAX_PLAYERS];
new BuyCarCk[MAX_VEHICLES];

public OnFilterScriptInit()
{
    print("\n ====================================================================");
    print(" |                                                                             |");
    print(" |        FilterScript Concessionaria DOF2 Versao 0.2 Start...|");
    print(" |                                                                             |");
    print(" |                           * Criador:Vict9r. *                         |");
    print(" |                                                                             |");
    print(" ====================================================================\n");
    //========[ Concessionaria ]======||
    AddStaticPickup(1274, 1, 2131.4729,-1149.9431,24.2078) ;
    Create3DTextLabel("Concessionaria (LS)\n/conce", 0x00FCFCFF, 2131.4729,-1149.9431,24.2078, 30.0, 0);
    return 1;
}

public OnFilterScriptExit()
{
    DOF2_Exit();
    return 1;
}

public OnPlayerConnect(playerid)
{
    DestroyVehicle(SVCarPLAYER[playerid]);
    SVCarPLAYER[playerid] = 0;
    BuyCarCk[playerid] = 0;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    DestroyVehicle(SVCarPLAYER[playerid]);
    return 1;
}

CMD:conce(playerid, params[])
{
    static item[16], DIALOGCONCE[550],string[250];
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2131.4729,-1149.9431,24.2078))
    {
    if(!sscanf(params, "i", item))
    {
        if(item == 462)
        {
             if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, -1, "Voce nao tem R$5000.");
             DestroyVehicle(SVCarPLAYER[playerid]);
             GivePlayerMoney(playerid, -5000);
             SVCarPLAYER[playerid] = AddStaticVehicleEx(462,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
             BuyCarCk[SVCarPLAYER[playerid]] = playerid;
             SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
        }
        else if(item == 463)
     {
            if(GetPlayerMoney(playerid) < 10500) return SendClientMessage(playerid, -1, "Voce nao tem R$10500.");
            DestroyVehicle(SVCarPLAYER[playerid]);
            GivePlayerMoney(playerid, -10500);
            SVCarPLAYER[playerid] = AddStaticVehicleEx(463,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
            BuyCarCk[SVCarPLAYER[playerid]] = playerid;
            SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
        }
        else if(item ==468)
        {           
            if(GetPlayerMoney(playerid) < 45000) return SendClientMessage(playerid, -1, "Voce nao tem R$45000.");
            DestroyVehicle(SVCarPLAYER[playerid]);
            GivePlayerMoney(playerid, -45000);
            SVCarPLAYER[playerid] = AddStaticVehicleEx(468,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
            BuyCarCk[SVCarPLAYER[playerid]] = playerid;
            SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
        }
        else if(item ==410)
        {
            if(GetPlayerMoney(playerid) < 25000) return SendClientMessage(playerid, -1, "Voce nao tem R$25000.");
            DestroyVehicle(SVCarPLAYER[playerid]);
            GivePlayerMoney(playerid, -25000);
            SVCarPLAYER[playerid] = AddStaticVehicleEx(410,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
            BuyCarCk[SVCarPLAYER[playerid]] = playerid;
            SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
        }
        else if(item == 412)
        {
            if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, -1, "Voce nao tem R$30000.");
            DestroyVehicle(SVCarPLAYER[playerid]);
            GivePlayerMoney(playerid, -30000);
            SVCarPLAYER[playerid] = AddStaticVehicleEx(412,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
            BuyCarCk[SVCarPLAYER[playerid]] = playerid;
            SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
         }
         else if(item ==415)
        {
             if(GetPlayerMoney(playerid) < 45000) return SendClientMessage(playerid, -1, "Voce nao tem R$45000.");
             DestroyVehicle(SVCarPLAYER[playerid]);
             GivePlayerMoney(playerid, -45000);
             SVCarPLAYER[playerid] = AddStaticVehicleEx(415,2124.9561,-1132.2983,25.4612+5.0,350.3899,0,0,-1);
             BuyCarCk[SVCarPLAYER[playerid]] = playerid;
             SendClientMessage(playerid, 0xFF0000FF, "Veiculo Comprado com sucesso!");
        }
        SendClientMessage(playerid, -1, "Esse veiculo nao esta disponivel na concessionaria!!");
    }else{
         format(string,sizeof(string),"{FFFFFF}De /conce [ID DO VEICULO!] para comprar\n\n462 - Faggio ({00CC00}R$5000{FFFFFF})\n463 - Freeway ({00CC00}R$10500{FFFFFF})\n468 - Sanchez ({00CC00}R$45000{FFFFFF})\n410 - Manana ({00CC00}R$25000{FFFFFF})\n412 - Voodoo ({00CC00}R$30000{FFFFFF})\n415 - Cheetah ({00CC00}R$45000{FFFFFF})\n");
    ShowPlayerDialog(playerid, PRODUTOS, DIALOG_STYLE_MSGBOX, "Model Veiculos", string, "OK", "Sair");
    //ou
    //  format(string,sizeof(string),"{FFFFFF}De /conce [ID DO VEICULO!] para comprar\n\n");
    // strcat(DIALOGCONCE, string);
    // format(string,sizeof(string),"462 - Faggio ({00CC00}R$5000{FFFFFF})\n");
    // strcat(DIALOGCONCE, string);
    // format(string,sizeof(string),"463 - Freeway ({00CC00}R$10500{FFFFFF})\n");
    // strcat(DIALOGCONCE, string);
    // format(string,sizeof(string),"468 - Sanchez ({00CC00}R$45000{FFFFFF})\n");
    // strcat(DIALOGCONCE, string);
    // format(string,sizeof(string),"410 - Manana ({00CC00}R$25000{FFFFFF})\n");
    // strcat(DIALOGCONCE, string);
    // format(string,sizeof(string),"412 - Voodoo ({00CC00}R$30000{FFFFFF})\n");
    // strcat(DIALOGCONCE, string);
    // format(string,sizeof(string),"415 - Cheetah ({00CC00}R$45000{FFFFFF})\n");
    // strcat(DIALOGCONCE, string);
    // ShowPlayerDialog(playerid, PRODUTOS, DIALOG_STYLE_MSGBOX, "Model Veiculos", DIALOGCONCE, "OK", "Sair");
    }

    }
    return 1;
}

CMD:estacionar(playerid)
{
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "Você não está em um carro!");
    static path[50], SCCarid, Float:PosSC[4];
    SCCarid = GetPlayerVehicleID(playerid);
    if(BuyCarCk[SCCarid] != playerid) return SendClientMessage(playerid, 0xFF0000FF, "Este carro não é seu, ou não foi comprado!");
    path = SaveCarNomePlay(playerid);
    if(!DOF2_FileExists(path)) DOF2_CreateFile(path);
    GetVehiclePos(SCCarid, PosSC[0],PosSC[1],PosSC[2]);
    GetVehicleZAngle(SCCarid, PosSC[3]);
    DOF2_SetInt(path,"CarID",GetVehicleModel(GetPlayerVehicleID(playerid)));
    DOF2_SetFloat(path,"PosX",PosSC[0]);
    DOF2_SetFloat(path,"PosY",PosSC[1]);
    DOF2_SetFloat(path,"PosZ",PosSC[2]);
    DOF2_SetFloat(path,"PosA",PosSC[3]);
    DOF2_SaveFile();
    DestroyVehicle(SVCarPLAYER[playerid]);
    SVCarPLAYER[playerid] = 0;
    BuyCarCk[playerid] = 0;
    SendClientMessage(playerid, 0xFF0000FF, "Veiculo estacionado, de /pegarcarro para spawnar ele novamente!");
    return 1;
}

CMD:pegarcarro(playerid)
{
    if(SVCarPLAYER[playerid] != 0) return SendClientMessage(playerid, 0xFF0000FF, "você ja pegou o seu carro!");
    static path[50], SCCarid, Float:PosSC[4];
    path = SaveCarNomePlay(playerid);
    SCCarid = DOF2_GetInt(path,"CarID");
    PosSC[0] = DOF2_GetFloat(path,"PosX");
    PosSC[1] = DOF2_GetFloat(path,"PosY");
    PosSC[2] = DOF2_GetFloat(path,"PosZ");
    PosSC[3] = DOF2_GetFloat(path,"PosA");
    DestroyVehicle(SVCarPLAYER[playerid]);
    SVCarPLAYER[playerid] = AddStaticVehicleEx(SCCarid,PosSC[0],PosSC[1],PosSC[2],PosSC[3],0,0,-1);
    BuyCarCk[SVCarPLAYER[playerid]] = playerid;
    SetPlayerCheckpoint (playerid, PosSC[0],PosSC[1],PosSC[2], 3.0);
    SendClientMessage(playerid, 0xFF0000FF, "Seu carro está no local estacionado!");
    return 1;
}

SaveCarNomePlay(playerid)
{
    static name[24], full[50];
    GetPlayerName(playerid,name,sizeof(name));
    format(full,sizeof(full),"%s/%s.txt",PATH,name);
    return full;
}

#endif
__________________
https://pastebin.com/raw/KpFdDhaa]Projects
se eu lhe ajudei clique numa imagem assim perto da minha postagem para adicionar reputação,Scripts https://pastebin.com/u/Hatiro
Hatiro is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Concessionaria axtlon Português/Portuguese 2 30/10/2018 02:01 PM
[Ajuda] Concessionária WKhalifa Português/Portuguese 6 01/05/2016 11:52 AM
[Ajuda] Bug Concessionaria castelari Português/Portuguese 3 24/01/2014 01:26 AM
[FilterScript] Concessionária Agamaster Lançamentos/Releases 16 18/12/2013 10:48 PM
[FilterScript] Simples Sistema de Concessionaria ! Baddark2131 Lançamentos/Releases 17 03/04/2011 04:25 AM


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.