SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 14/05/2020, 04:32 PM   #1
Vict9r
Big Clucker
 
Vict9r's Avatar
 
Join Date: Sep 2019
Posts: 99
Reputation: 8
Default Profissao Tranportador de Coca Cola

Ola , Bom sou novato aqui no forum e no pawn tambem bom hoje estarei publicando meu primeiro filterscript aqui no forum...

INCLUDES: ZCMD APENAS

BOM SE VOCE QUER MAIS UM BENEFICIO PARA SEUS VIP NESSE EMPREGO QUEM E VIP ELE GANHA O DOBRO DO GANHO NORMAL EM FIM ESTAREI PASSANDO AQUI O FILTERSCRIPT

OBS:NAO SEI EXPLICAR NADA KKKK

FILTERSCRIPT ABAIXO
pawn Code:
/////////////////////////////////////////////////////
                   //                                                                //
                   //                                                                //
                   //     FilterScript Criado por Vict9r Games       //
                   //                                                              //
                   //                                                              //
                   ////////////////////////////////////////////////////

/*=-=-=-=-=-=-=-=-= [ INCLUDES ] =-=-=-=-=-=-=-=-=*/
#include <a_samp>
#include <zcmd>

#if defined FILTERSCRIPT

/*=-=-=-=-=-=-=-=-= [ FORWARDS ] =-=-=-=-=-=-=-=-=*/
forward ccocatime(playerid);

/*=-=-=-=-=-=-=-=-= [ ENUMS ] =-=-=-=-=-=-=-=-=*/
enum pInfo
{
    Trabalho,
    Coca,
    Vip
}

/*=-=-=-=-=-=-=-=-= [ NEWS ] =-=-=-=-=-=-=-=-=*/
new Pdados[MAX_PLAYERS][pInfo];
new Float:cocas[21][3]={
    {893.632263, -1638.655883, 14.492128},
    {964.145812, -1613.518310, 14.526670},
    {932.670532, -1804.158569, 13.401721},
    {958.083801, -1827.693725, 12.136501},
    {2270.000000, -1885.848876, 13.119217},
    {2272.757568, -1786.240844, 13.119362},
    {2310.204345, -1722.657958, 13.137979},
    {2327.071044, -1717.759399, 13.294915},
    {2494.544677, -1687.371093, 13.112207},
    {2166.231933, -1671.691772, 14.638225},
    {2230.343261, -1408.473510, 23.538789},
    {2185.181884, -1364.347412, 25.549226},
    {2150.067871, -1286.061401, 23.759048},
    {2074.678222, -1082.587280, 24.605592},
    {1326.161987, -1067.278808, 31.120498},
    {354.575683, -1280.636840, 53.277927},
    {551.514343, -1200.115234, 44.406139},
    {937.529663, -848.431152, 93.201301},
    {988.647460, -828.037780, 95.018913},
    {1298.677612, -798.665832, 83.691719},
    {1409.615722, -921.578308, 37.979232}
};

public OnFilterScriptInit()
{
    //=-=-=-=-=-=-=-=-=-=-= [Carros da Coca cola] =-=-=-=-=-=-=-=-=-=-=-=-=-=
    AddStaticVehicleEx(482, 1306.2516, -873.8071, 39.6166, 0.0000, 3, 0, 100);
    AddStaticVehicleEx(482, 1310.7946, -873.9341, 39.6166, 0.0000, 3, 0, 100);
    AddStaticVehicleEx(482, 1315.5652, -873.8694, 39.6166, 0.0000, 3, 0, 100);
    AddStaticVehicleEx(482, 1320.6062, -873.8882, 39.6166, 0.0000, 3, 0, 100);
    AddStaticVehicleEx(482, 1307.7610, -854.0938, 39.6166, -180.4200, 3, 0, 100);
    AddStaticVehicleEx(482, 1312.3778, -854.4652, 39.6166, -180.4200, 3, 0, 100);
    AddStaticVehicleEx(482, 1318.0348, -854.9543, 39.6166, -180.4200, 3, 0, 100);
    AddStaticVehicleEx(482, 1324.3918, -855.2686, 39.6166, -180.4200, 3, 0, 100);
    Create3DTextLabel("Carregamento de Coca Cola\n/ccoca",LARANJA,1330.0322, -881.7437, 39.8272,15,0,0);
    Create3DTextLabel("{0174DF}[Entregador de Coca Cola]{FF4000}\n/pegaremprego",LARANJA,1325.5516, -875.9084, 39.8272,15,0,0);
    print("\n--------------------------------------");
    print(" FilterScript: Vict9r");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print(" FilterScript: Vict9r");
    print("--------------------------------------\n");
    return 1;
}

public ccocatime(playerid){
    if(Pdados[playerid][Coca] > 0) return 1;
    Pdados[playerid][Coca] = 5;
    SendClientMessage(playerid,CINZA,"CENTRAL: ATENCAO VOCE TEM 5 ENTREGAS PARA REALIZAR!!!");
    new r; r = random(sizeof(cocas));
    SetPlayerCheckpoint(playerid,cocas[r][0],cocas[r][1],cocas[r][2],5);
    TogglePlayerControllable(playerid, 1);
    KillTimer(ccocatime(playerid));
    return 1;
}
public OnPlayerEnterCheckpoint(playerid) {
    if((Pdados[playerid][Trabalho] == 6)&&(Pdados[playerid][Coca] != 0)){
        Pdados[playerid][Coca] = Pdados[playerid][Coca]- 1;
        new r,g; r = random(sizeof(cocas)); g = random(750);
        if(Pdados[playerid][Vip] == 1){g=g+g;}
        GivePlayerMoney(playerid,g);
        format(String,sizeof(String),"Voce entrego uma caixa de coca cola, Ganho:%i",g);
        SendClientMessage(playerid,VERDE,String);
        if(Pdados[playerid][Vip] == 1){SendClientMessage(playerid,AZUL,"Voce recebeu o do pagamento por ser vip");}
        if(Pdados[playerid][Coca] != 0){
            SetPlayerCheckpoint(playerid,pizzas[r][0],pizzas[r][1],pizzas[r][2],5);
            SendClientMessage(playerid,CINZA,"CENTRAL: PROXIMA ENTREGA MARCADO!");
        }
    }
    return 1;
}

//Tranportador de Coca-Cola
CMD:ccoca(playerid)
{   if(!IsPlayerInRangeOfPoint(playerid,2,1330.0322, -881.7437, 39.8272))return 1;
    if(Pdados[playerid][Trabalho] != 6)return SendClientMessage(playerid,LARANJA,"Voce nao trabalha de Tranpostador de Coca Cola.");
    if(Pdados[playerid][Coca] > 0) return SendClientMessage(playerid,LARANJA,"Voce ja esta com entregas para fazer!");
    SendClientMessage(playerid,CINZA,"ATENCAO SEU VEICULO ESTA SENDO CARREGADO AGUARDE 30 SEGUNDOS!");
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("ccocatime", 30000, true, "i", playerid);
    return 1;
}

//empregos
CMD:pegaremprego(playerid)
{   //Ja esta no emprego
    format(String,sizeof(String),"BORP: Voce ja esta trabalhando de %s use /sairdoemprego",Emprego(playerid));
    if(Pdados[playerid][Trabalho] != 0)return SendClientMessage(playerid,LARANJA,String);
    //Transpotador de Coca Cola
    if(IsPlayerInRangeOfPoint(playerid, 10.0, 1325.5516, -875.9084, 39.8272)){
    Pdados[playerid][Trabalho] = 6;
    SendClientMessage(playerid,CINZA,"BORP: Use /ajuda para saber os comandos do seu novo emprego");
    }else{
    }
    return 1;
}
#endif
__________________
HostName: SERVIDOR HOSPEDADO NA VPS DA ExtremeStore!
Address: DISCORD ABAIXO:7777
Players: XX / 100
Ping: 32
Mode: BORP v1.1
Language: -
DISCORD: https://discord.gg/g6ZVQZC
Vict9r is offline   Reply With Quote
Old 14/05/2020, 04:40 PM   #2
MasterWinX
Big Clucker
 
MasterWinX's Avatar
 
Join Date: Mar 2019
Location: San Fierro
Posts: 95
Reputation: 1
Default Re: Profissao Tranportador de Coca Cola

parabéns, bem legal
__________________
MasterWinX is offline   Reply With Quote
Old 14/05/2020, 04:40 PM   #3
Vict9r
Big Clucker
 
Vict9r's Avatar
 
Join Date: Sep 2019
Posts: 99
Reputation: 8
Default Re: Profissao Tranportador de Coca Cola

Quote:
Originally Posted by MasterWinX View Post
parabéns, bem legal
Obrigado
__________________
HostName: SERVIDOR HOSPEDADO NA VPS DA ExtremeStore!
Address: DISCORD ABAIXO:7777
Players: XX / 100
Ping: 32
Mode: BORP v1.1
Language: -
DISCORD: https://discord.gg/g6ZVQZC
Vict9r is offline   Reply With Quote
Old 14/05/2020, 04:52 PM   #4
RicardoDzn
Little Clucker
 
RicardoDzn's Avatar
 
Join Date: Dec 2019
Posts: 2
Reputation: 0
Default Re: Profissao Tranportador de Coca Cola

Bom meio sem sentido Porque? voce poderia tipo fazer um emprego de caminhao e fazer cargas de coca-cola mais tirando isso esta muito bom!! parabens Vict9r 'Mobile'
RicardoDzn is offline   Reply With Quote
Old 14/05/2020, 05:16 PM   #5
RicardoDzn
Little Clucker
 
RicardoDzn's Avatar
 
Join Date: Dec 2019
Posts: 2
Reputation: 0
Default Re: Profissao Tranportador de Coca Cola

Bom mais deve melhorar mais
RicardoDzn is offline   Reply With Quote
Old 15/05/2020, 08:43 AM   #6
NelsonC
Huge Clucker
 
NelsonC's Avatar
 
Join Date: Oct 2017
Location: Germany
Posts: 323
Reputation: 28
Default Re: Profissao Tranportador de Coca Cola

Boa, mas da para melhorar
__________________
Perfect City RPG
NelsonC is offline   Reply With Quote
Old 31/05/2020, 12:21 AM   #7
Vict9r
Big Clucker
 
Vict9r's Avatar
 
Join Date: Sep 2019
Posts: 99
Reputation: 8
Default Re: Profissao Tranportador de Coca Cola

Quote:
Originally Posted by NelsonC View Post
Boa, mas da para melhorar
Nao sei fazer muitas coisas sou iniciante ainda
__________________
HostName: SERVIDOR HOSPEDADO NA VPS DA ExtremeStore!
Address: DISCORD ABAIXO:7777
Players: XX / 100
Ping: 32
Mode: BORP v1.1
Language: -
DISCORD: https://discord.gg/g6ZVQZC
Vict9r 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
[Off] vocês gostam mais de fanta ou coca-cola? RazorGuigo Português/Portuguese 26 30/05/2018 09:18 PM
Coca Cola vs Pepsi vs Dr. Pepper Kush Everything and Nothing 52 05/12/2011 05:02 PM
[GUI]-Windows 7 and Coca Cola GUIs Zh3r0 Everything and Nothing 31 30/03/2010 03:09 PM
GTA: Coca Cola Christmas Truck. KeyWay Everything and Nothing 17 29/12/2009 08:07 PM
[Help]Machines Cola, Soda and Candy Stephan55 Help Archive 1 09/06/2009 04:47 AM


All times are GMT. The time now is 08:22 PM.


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