SA-MP Forums Archive
[FilterScript] Sistema de Pedбgio - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [FilterScript] Sistema de Pedбgio (/showthread.php?tid=478845)



Sistema de Pedбgio - Tugamars - 01.12.2013

Sistema de Pedбgio

Estive criando esse sistema de pedбgio , para aprender umas funзхes de Pawn .

Й um sistema bem simples .

E entгo tб ai .


Imagens :





Download :
Strcmp : http://pastebin.com/jFGCrtBn
ZCMD : http://pastebin.com/7X41VgnT

Bugs deixem nos comentбrios

Crйditos : Tugamars

Agradecimentos : 22




Re: Sistema de Pedбgio - focaximubh - 01.12.2013

Poderia ter utilizado de mais detalhes no mapa, porйm ficou bacana...


Re: Sistema de Pedбgio - 22 - 01.12.2013

Eu gostei.
A do ZCMD arrumada:

pawn Код:
#define FILTERSCRIPT
 
#include <a_samp>
#include <zcmd>
 
#pragma tabsize 0
 
forward fecharlvls();
forward fecharlslv();
 
new CancelaLVLS;
new CancelaLSLV;
 
public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Sistema de Pedбgios By: Tugamars       ");
        print("--------------------------------------\n");
        //Pedagio LV LS
        //Laterais
        CreateObject(979, 1812.13989, 805.36542, 10.42910,   0.00000, 0.00000, 178.75070);
        CreateObject(978, 1781.99170, 804.51849, 10.36460,   0.00000, 0.00000, 179.42149);
        CreateObject(978, 1811.90137, 819.88654, 9.98615,   0.00000, 0.00000, 0.00000);
        CreateObject(979, 1782.73938, 819.75769, 9.99752,   0.00000, 0.00000, 0.00000);
        //Lampadas
        CreateObject(3877, 1798.24463, 806.10339, 10.40543,   0.00000, 0.00000, 0.00000);
        CreateObject(3877, 1808.45886, 806.91925, 10.40543,   0.00000, 0.00000, 0.00000);
        CreateObject(3877, 1796.03662, 820.09576, 10.10944,   0.00000, 0.00000, 0.00000);
        CreateObject(3877, 1786.30347, 818.96729, 10.10944,   0.00000, 0.00000, 0.00000);
        //Cancela
        CancelaLVLS = CreateObject(968, 1788.48254, 810.79248, 10.79725,   0.00000, 90.00000, 357.00000);
        CancelaLSLV = CreateObject(968, 1799.02673, 814.75079, 10.79720,   0.00000, 90.00000, 357.00000);
        //Resto
        CreateObject(8556, 1797.39087, 812.63733, 13.98732,   0.00000, 0.00000, 0.00000);
        CreateObject(8168, 1786.40283, 812.52698, 11.58143,   0.00000, 0.00000, 104.01295);
        CreateObject(8168, 1808.45154, 812.57507, 11.58143,   0.00000, 0.00000, 286.69287);
 
        //Fim Pedagio LV-LS
        return 1;
}
 
public OnFilterScriptExit()
{
        print("\n--------------------------------------");
        print(" Sistema de Pedбgios By: Tugamars       ");
        print("--------------------------------------\n");
 
 
 
        return 1;
}

CMD:pedagio(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1802.4081, 812.8696, 10.6952))
    {
        if(GetPlayerMoney(playerid) < 50)
        {
            SendClientMessage(playerid, 0xF20006FF, "Vocк nгo tem dinheiro suficiente");
        }
        if(GetPlayerMoney(playerid) >= 50)
        {
            GivePlayerMoney(playerid, -50);
            SetObjectRot(CancelaLSLV, 0.00000, 18.00000, 357.00000);
            SendClientMessage(playerid, 0xF47A00FF, "Bem vindo a Las Venturas .Foi debitado 50R$ na sua conta .");
            SetTimer("fecharlslv", 5000, false);
         }
    }
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1792.0217, 816.1849, 10.8929))
    {
        if(GetPlayerMoney(playerid) < 50)
        {
            SendClientMessage(playerid, 0xF20006FF, "Vocк nгo tem dinheiro suficiente");
        }
        if(GetPlayerMoney(playerid) >= 50)
        {
            GivePlayerMoney(playerid, -50);
            SetObjectRot(CancelaLVLS,  0.00000, 18.00000, 357.00000);
            SendClientMessage(playerid, 0xF47A00FF, "Bem vindo a Los Santos .Foi debitado 50R$ na sua conta .");
            SetTimer("fecharlvls", 5000, false);
        }
    }
    return 1;
}

public fecharlvls()
{
        SetObjectRot(CancelaLVLS,  0.00000, 90.00000, 357.00000);
}
public fecharlslv()
{
        SetObjectRot(CancelaLSLV, 0.00000, 90.00000, 357.00000);
}



Respuesta: Sistema de Pedбgio - DanDRT - 01.12.2013

Eu burlo o pedagio LV easy.


Re: Sistema de Pedбgio - MichelScripter - 01.12.2013

lecal o sistema


Re: Sistema de Pedбgio - Tugamars - 01.12.2013

Vlw a todos


Re: Sistema de Pedбgio - iDreak - 01.12.2013

Estб muito bom, mais acho que poderia ter colocado pedбgios em mais lugares.

Porйm muito bom o FS


Re: Sistema de Pedбgio - Tugamars - 01.12.2013

Quote:
Originally Posted by iDreak
Посмотреть сообщение
Estб muito bom, mais acho que poderia ter colocado pedбgios em mais lugares.

Porйm muito bom o FS
Й sу uma base , depois quando eu tiver tempo irei fazer mais pedбgios .


Re: Sistema de Pedбgio - PT - 01.12.2013

ficou bom parabens.


Re: Sistema de Pedбgio - Tugamars - 01.12.2013

Quote:
Originally Posted by PT
Посмотреть сообщение
ficou bom parabens.
Obrigado