[FilterScript] Sistema de Futebol e Estadio em LV
#1

Galera Parei de Joga SA-MP a um tempo jб, ai vi esse sistema no meu pc e resolvi posta aqui:
Sistema de Jogar FUTEBOL + Estadio em "LV"

*nгo sei se esse sistema de futebol esta 100% perfeito pois nгo testei
antes de posta aqui mais quando fiz estava funcionando tudo perfeitamente,
vou posta aqui e qualquer coisa vcs reporta! abss

Imagens





Comandos

Quote:

/EstadioLV - Ver os Comandos!
-----------
/AbrirELvM - Abrir a Entrada Mandante.
/FeicharELvM - Feichar a Entrada Mandante.
-----------
/AbrirELvV - Abrir a Entrada Visitante.
/FeicharELvV - Feichar a Entrada Visitante.
-----------
/JogarLV - Para Consegir Chutar a Bola do Estadio LV.
/CampoELV - Ir Para o Campo (Vestiario)!
/RbolaLV - volta a bola para o MeioCampo.

Ta ae o PAWNO!

PHP код:
// === [Includes] ===
#include <a_samp>
#include <dudb>
forward PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z);
forward ObjectToPoint(Float:radiobjectgtFloat:xFloat:yFloat:z);
forward KeyChanges();
new 
playingfootball[MAX_PLAYERS];
new 
lastentered[128];
//==== [Entradas] ========
//Mandante
new EntradaM1;
new 
EntradaM2;
new 
EntradaM3;
new 
EntradaM4;
new 
EntradaM5;
new 
EntradaM6;
new 
EntradaM7;
new 
EntradaM8;
new 
EntradaM9;
new 
EntradaM10;
new 
EntradaM11;
new 
EntradaM12;
new 
EntradaM13;
new 
EntradaM14;
new 
EntradaM15;
new 
EntradaM16;
new 
EntradaM17;
new 
EntradaM18;
new 
EntradaM19;
new 
EntradaM20;
new 
SaidaM;
//Visitante
new EntradaV1;
new 
EntradaV2;
new 
EntradaV3;
new 
EntradaV4;
new 
EntradaV5;
new 
EntradaV6;
new 
EntradaV7;
new 
EntradaV8;
new 
EntradaV9;
new 
EntradaV10;
new 
SaidaV;
//Subida/Desida
new SubirJuizLV;
new 
DescerJuizLV;
//=====================
// === [Color Defines] ===
#define COLOR_BLUE 0x33AAFFFF
#define COR_VermelhoEscuro 0xF60000AA
#define COR_Azul 0x0050F6AA
#define COLOR_RED 0xAA3333AA
// === [Forward] ===
forward IsStringAName(string[]);
forward GetPlayerID(string[]);
forward Restart();
forward PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z);
// === [Loops] ===
new futebol;
public 
OnFilterScriptInit()
{
    print(
"  *****************************************************  ");
    print(
"  *|              Sistema de Futebol                 |*  ");
    print(
"  *|            Feito Por Lucas Topazio              |*  ");
    print(
"  *****************************************************  ");
    
}
public 
OnGameModeInit()
{
    
UsePlayerPedAnims();
//=Subirdescer
    
Create3DTextLabel("/SairELV"0xDFB0FFFF1371220579940.000);//Visitante
    
DescerJuizLV CreatePickup(1318113712192798.50);//Visitante
    
Create3DTextLabel("Campo"0xDFB0FFFF13712192798.540.000);//Visitante
    
SubirJuizLV CreatePickup(13181136921969.50);//Visitante
    
Create3DTextLabel("Vestiario"0xDFB0FFFF136921969.58.000);//Visitante
//======saidas========
    
SaidaV CreatePickup(131811412.65966796882107.59570312512.0156250);//Visitante
    
Create3DTextLabel("Saida"0xDFB0FFFF1412.65966796882107.59570312512.01562540,0);//Visitante
//--------------------
    
SaidaM CreatePickup(131811317.4218752213.802490234412.0156250);//Mandante
    
Create3DTextLabel("Saida"0xDFB0FFFF1317.4218752213.802490234412.01562540,0);//Mandante
//======3DLabel========
    
Create3DTextLabel("Entrada Mandante"0xDFB0FFFF133622231840,0);//Mandante
    
Create3DTextLabel("Entrada Visitante"0xDFB0FFFF148121291440,0);//Visitante
//======BOLA==========
    
futebol CreateObject(15981347.44,2149.91,10.3156000);
//======Objetos=======
    
CreateObject(18045,1365.0000000,2196.6000977,799.9532471,0.0000000,0.0000000,0.0000000); //Camarote
    
CreateObject(74181347.88964843752149.549804687512.609999656677000300);
    
CreateObject(9741390.76208496092154.110351562512.801177978516000300);
    
CreateObject(9741394.07580566412150.803955078112.80117797851600270300);
    
CreateObject(9741394.07580566412148.51562512.80117797851600269.99450683594300);
    
CreateObject(9741390.82104492192145.344726562512.80117797851600179.99450683594300);
    
CreateObject(9741390.19995117192150.773437515.565999984741900269.99450683594300);
    
CreateObject(9741391.199218752150.7617187515.565999984741900269.98901367188300);
    
CreateObject(9741391.47192382812148.740722656315.5659999847419018089.989288330078300);
    
CreateObject(9741390.14941406252148.773437515.565999984741900269.98901367188300);
    
CreateObject(9741391.44873046882150.745849609415.565999984741900269.98901367188300);
    
CreateObject(29601387.36120605472145.35351562512.1000003814702700300);
    
CreateObject(29601387.36035156252145.35351562513.31999969482402700300);
    
CreateObject(29601387.25659179692153.85351562513.31999969482402700300);
    
CreateObject(29601387.25659179692153.85351562512.1000003814702700300);
    
CreateObject(29601387.252151.800048828115.60000038147902700300);
    
CreateObject(29601387.252147.542236328115.60000038147902700300);
    
CreateObject(9741304.25158691412145.601562512.80117797851600179.99450683594300);
    
CreateObject(9741303.75122070312145.61914062512.80117797851600179.99450683594300);
    
CreateObject(9741304.05847167972154.288574218812.80117797851600179.99450683594300);
    
CreateObject(9741303.80871582032154.311523437512.80117797851600179.99450683594300);
    
CreateObject(9741304.14392089842151.635009765615.569990158081900179.99450683594300);
    
CreateObject(9741304.13854980472148.376464843815.56999015808190180359.99462890625300);
    
CreateObject(9741300.589843752148.954833984412.8011779785160087.994506835938300);
    
CreateObject(9741300.64355468752150.954101562512.8011779785160087.989501953125300);
    
CreateObject(9741303.88830566412148.393066406315.56999015808190179.99450683594359.99450683594300);
    
CreateObject(9741303.84484863282151.403808593815.56999015808190179.99450683594359.99450683594300);
    
CreateObject(29601307.14843752154.2513.31999969482402700300);
    
CreateObject(29601307.30004882812145.614257812513.31999969482402700300);
    
CreateObject(29601307.30004882812145.601806640612.1000003814702700300);
    
CreateObject(29601307.14843752154.2512.1000003814702700300);
    
CreateObject(29601307.14843752147.799072265615.60000038147902700300);
    
CreateObject(29601307.14843752152.04882812515.60000038147902700300);
    
CreateObject(38811299.46093752219.428710937524.3297424316410090300);
    
CreateObject(38811306.46472167972219.428955078124.3297424316410090300);
    
CreateObject(38811313.46765136722219.428955078124.3297424316410090300);
    
CreateObject(38811320.47058105472219.428955078124.3297424316410090300);
    
CreateObject(38811327.47351074222219.428955078124.3297424316410090300);
    
CreateObject(38811334.468752219.428710937524.3297424316410090300);
    
CreateObject(38811341.46533203132219.428955078124.3297424316410090300);
    
CreateObject(38811348.46862792972219.428955078124.3297424316410090300);
    
CreateObject(38811353.47253417972219.428955078124.3297424316410090300);
    
CreateObject(74181347.88964843752149.549804687515.199999809265000300);
    
CreateObject(74181347.88964843752149.549804687517.799999237061000300);
    
CreateObject(9711400.37670898442099.751464843814.800000190735000300);
    
CreateObject(9711409.12597656252099.751464843814.800000190735000300);
    
CreateObject(74181347.88964843752149.549804687520.39999961853000300);
    
CreateObject(9711417.886718752099.750976562521.89999961853000300);
    
CreateObject(9711409.12597656252099.750976562521.89999961853000300);
    
CreateObject(9711400.37597656252099.750976562521.89999961853000300);
    
CreateObject(9711296.656252203.53320312521.8999996185300270300);
    
CreateObject(9711296.656252212.298339843814.80000019073500269.99450683594300);
    
CreateObject(9711296.656252203.53320312514.80000019073500269.98901367188300);
    
CreateObject(9711296.656252212.28320312521.8999996185300269.98901367188300);
    
CreateObject(9711296.656252217.53320312521.8999996185300269.98901367188300);
    
CreateObject(9711300.88232421882199.119873046914.96000003814700179.98901367188300);
    
CreateObject(9711309.37768554692199.119873046914.96000003814700179.98352050781300);
    
CreateObject(9711318.12268066412199.119873046914.96000003814700179.98901367188300);
    
CreateObject(9711326.86779785162199.119873046914.96000003814700179.98352050781300);
    
CreateObject(9711335.36718752199.119873046914.96000003814700179.98352050781300);
    
CreateObject(9711344.11718752199.119873046914.96000003814700179.98352050781300);
    
CreateObject(9711352.86718752199.119873046914.96000003814700179.98352050781300);
    
CreateObject(9711361.61718752199.119873046914.96000003814700179.98352050781300);
    
CreateObject(9711370.36718752199.119873046914.96000003814700179.98352050781300);
    
CreateObject(9711379.11718752199.119873046914.96000003814700179.98352050781300);
    
CreateObject(9711387.86718752199.119873046914.96000003814700179.98352050781300);
    
CreateObject(29331393.80017089842198.33007812514.100000381470270331.99957275391300);
    
CreateObject(29331396.27600097662196.163085937514.100000381470270307.90002441406300);
    
CreateObject(29331397.56604003912193.15820312514.100000381470270275.99133300781300);
    
CreateObject(9711397.752187.012207031314.9600000381470089.983520507813300);
    
CreateObject(9711397.752178.2617187514.9600000381470089.983520507813300);
    
CreateObject(9711397.752169.5117187514.9600000381470089.983520507813300);
    
CreateObject(9711397.752160.7617187514.9600000381470089.983520507813300);
    
CreateObject(9711397.752152.0117187514.9600000381470089.983520507813300);
    
CreateObject(9711397.752143.2617187514.9600000381470089.983520507813300);
    
CreateObject(9711397.752134.511474609414.9600000381470089.983520507813300);
    
CreateObject(9711397.752125.760742187514.9600000381470089.983520507813300);
    
CreateObject(9711397.752117.010742187514.9600000381470089.983520507813300);
    
CreateObject(9711397.752108.260742187514.9600000381470089.983520507813300);
    
CreateObject(9711397.752104.149902343814.9600000381470089.983520507813300);
    
CreateObject(9941301.39074707032228.397216796910.023437500269.99996948242300);
    
CreateObject(9941303.63952636722228.328369140610.023437500269.99450683594300);
    
CreateObject(9941305.38781738282228.275146484410.023437500269.99450683594300);
    
CreateObject(9941307.13684082032228.221435546910.023437500269.99450683594300);
    
CreateObject(9941309.13574218752228.1601562510.023437500269.99450683594300);
    
CreateObject(9941311.38464355472228.092041015610.023437500269.99450683594300);
    
CreateObject(9941322.65173339842228.7304687510.023437500269.99450683594300);
    
CreateObject(9941324.64428710942228.449707031310.023437500269.98901367188300);
    
CreateObject(9941326.64343261722228.427001953110.023437500269.98901367188300);
    
CreateObject(9941330.38964843752228.29882812510.023437500269.98901367188300);
    
CreateObject(9941332.3886718752228.25195312510.023437500269.99450683594300);
    
CreateObject(9941340.89038085942228.30273437510.023437500269.99450683594300);
    
CreateObject(9941343.13854980472228.2510.023437500269.99450683594300);
    
CreateObject(9941345.13696289062228.20312510.023437500269.99450683594300);
    
CreateObject(9941347.13513183592228.1562510.023437500269.99450683594300);
    
CreateObject(9941350.88330078132228.06835937510.023437500269.99450683594300);
    
CreateObject(9941349.13366699222228.10937510.023437500269.99450683594300);
    
CreateObject(9941360.88964843752228.33398437510.023437500269.99450683594300);
    
CreateObject(9941362.63879394532228.2929687510.023437500269.99450683594300);
    
CreateObject(9941364.63769531252228.2460937510.023437500269.99450683594300);
    
CreateObject(9941366.636718752228.1992187510.023437500269.99450683594300);
    
CreateObject(9941368.63574218752228.1523437510.023437500269.99450683594300);
    
CreateObject(9941370.88464355472228.09960937510.023437500269.99450683594300);
    
CreateObject(9941485.77758789062104.314941406310.023437500175.98999023438300);
    
CreateObject(9941485.89843752106.31054687510.023437500175.98999023438300);
    
CreateObject(9941486.019531252108.30664062510.023437500175.98999023438300);
    
CreateObject(9941486.12548828132110.053222656310.023437500175.98999023438300);
    
CreateObject(9941486.011718752112.313476562510.023437500175.98999023438300);
    
CreateObject(9941485.88330078132114.324707031310.023437500175.98999023438300);
    
CreateObject(9941486.1386718752143.192382812510.023437500175.98999023438300);
    
CreateObject(9941485.99511718752144.954101562510.023437500175.98999023438300);
    
CreateObject(9941485.85156252146.715820312510.023437500175.98999023438300);
    
CreateObject(9941485.72314453132148.727050781310.023437500175.98999023438300);
    
CreateObject(9941485.59472656252150.7382812510.023437500175.98999023438300);
    
CreateObject(9941485.980468752152.9687510.023437500175.98999023438300);
    
CreateObject(15281321.09973144532217.0937520.085922241211000300);
    
CreateObject(9941328.64221191412228.396240234410.023437500269.98901367188300);
    return 
1;
}
public 
KeyChanges()
{
    new 
keysupdownleftright;
    for(new 
playerid 0playerid MAX_PLAYERSplayerid++)
    {
        if(
IsPlayerConnected(playerid))
        {
    
GetPlayerKeys(playeridkeysupdownleftright);
    new 
Float:oxFloat:oyFloat:oz;
    
GetObjectPos(futeboloxoyoz);
    new 
Float:pxFloat:pyFloat:pz;
    new 
Float:angle;
    
GetPlayerFacingAngle(playeridangle);
    if(
keys == KEY_HANDBRAKE && playingfootball[playerid] == 1)
            {
                if(
PlayerToPoint(1.7,playerid,ox,oy,oz))
                {
                new 
pName[MAX_PLAYER_NAME];
                
GetPlayerName(playeridpNamesizeof(pName));
                
format(lastenteredsizeof(lastentered), "%s"pName);
                
GetPlayerPos(playeridpxpypz);
                
GetXYInFrontOfPlayer(playeridpxpy7.0);
                
MoveObject(futebol,px,py,10.3156,10.0);
                
PlayerPlaySound(playerid,1130,0.0,0.0,0.0);
                
ApplyAnimation(playerid,"FIGHT_D","FightD_1",4.1,0,1,1,0,0);
                }
            }
                  else if(
keys == KEY_HANDBRAKE KEY_SPRINT && playingfootball[playerid] == 1)
            {
                if(
PlayerToPoint(1.7,playerid,ox,oy,oz))
                {
                new 
pName[MAX_PLAYER_NAME];
                
GetPlayerName(playeridpNamesizeof(pName));
                
format(lastenteredsizeof(lastentered), "%s"pName);
                
GetPlayerPos(playeridpxpypz);
                
GetXYInFrontOfPlayer(playeridpxpy7.0);
                
MoveObject(futebol,px,py,10.3156,10.0);
                
PlayerPlaySound(playerid,1130,0.0,0.0,0.0);
                
ApplyAnimation(playerid,"FIGHT_D","FightD_1",4.1,0,1,1,0,0);
                }
            }
        }
    }
}
GetXYInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance)
{
    new 
Float:a;
    
GetPlayerPos(playeridxya);
    
GetPlayerFacingAngle(playerida);
    if (
GetPlayerVehicleID(playerid))
    {
        
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }
    
+= (distance floatsin(-adegrees));
    
+= (distance floatcos(-adegrees));
}
//==============================================================================
public OnPlayerPickUpPickup(playeridpickupid)
{
//Subir/Deser
    
if(pickupid == SubirJuizLV)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid13642200799);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Esta no Vestiario!");
        }
    }
    if(
pickupid == DescerJuizLV)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid1374219510);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D}Vocк Esta no Campo! {88AA88}/JogarLV");
        }
    }
//-------------mandante---------------------------------------------------------
    
if(pickupid == EntradaM1)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM2)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM3)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM4)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM5)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM6)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM7)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM8)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM9)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM10)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM11)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM12)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM13)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM14)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM15)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM16)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM17)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM18)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM19)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaM20)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1315,2214,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == SaidaM)
    {
        
SetPlayerPos(playerid,1328,2229,12);
    }
//-------------visitante--------------------------------------------------------
    
if(pickupid == EntradaV1)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2108,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaV2)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2108,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaV3)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2108,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaV4)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2108,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaV5)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2108,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
        }
    }
    if(
pickupid == EntradaV6)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2138,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaV7)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2138,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaV8)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2138,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaV9)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2138,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == EntradaV10)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid,1410,2138,13);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == SaidaV)
    {
        
SetPlayerPos(playerid,1486,2110,12);
    }
    return 
1;
}
//==============================================================================
public OnPlayerCommandText(playeridcmdtext[])
{
    new 
cmd[256];
    new 
idx;
     
cmd strtok(cmdtextidx);
//===========================ABRIR ESTADIO======================================
//Mandante
    
if(strcmp(cmd"/AbrirELVM"true) == 0)
    {
        if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOR_VermelhoEscuro"Sу Administradores logados na RCON podem usar este comando!");
          
EntradaM1 CreatePickup(131811302.47863769532223.347412109411.02343750);
         
EntradaM2 CreatePickup(131811304.72521972662223.221435546911.02343750);
        
EntradaM3 CreatePickup(131811306.22241210942223.137207031311.02343750);
        
EntradaM4 CreatePickup(131811308.218752223.02539062511.02343750);
        
EntradaM5 CreatePickup(131811310.21582031252222.914062511.02343750);
        
EntradaM6 CreatePickup(131811323.55505371092223.174072265611.02343750);
        
EntradaM7 CreatePickup(131811325.53930664062223.312011718811.02343750);
        
EntradaM8 CreatePickup(131811327.52343752223.450195312511.02343750);
        
EntradaM9 CreatePickup(131811329.52050781252223.338867187511.02343750);
        
EntradaM10 CreatePickup(131811331.5175781252223.227539062511.02343750);
        
EntradaM11 CreatePickup(131811341.76647949222222.906494140611.02343750);
        
EntradaM12 CreatePickup(131811344.01257324222222.780517578111.02343750);
        
EntradaM13 CreatePickup(131811346.27233886722222.904541015611.02343750);
        
EntradaM14 CreatePickup(131811348.01892089842222.806884765611.02343750);
        
EntradaM15 CreatePickup(131811350.0156252222.695312511.02343750);
        
EntradaM16 CreatePickup(131811361.80407714842223.039306640611.02343750);
        
EntradaM17 CreatePickup(131811363.55139160162222.941162109411.02343750);
        
EntradaM18 CreatePickup(131811365.56237792972223.079345703111.02343750);
        
EntradaM19 CreatePickup(131811367.57336425782223.217529296911.02343750);
        
EntradaM20 CreatePickup(131811369.57031252223.1054687511.02343750);
        
SendClientMessageToAll0x33CCFFAA"{88AA88}[Infor]:{D0C07D} A Entrada Mandante do Estadio Foi {08FF08}Aberta.");
        return 
1;
    }
       if(
strcmp(cmd"/FecharELVM"true) == 0)
    {
        if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOR_VermelhoEscuro"Sу Administradores logados na RCON podem usar este comando!");
          
DestroyPickup(EntradaM1);
          
DestroyPickup(EntradaM2);
          
DestroyPickup(EntradaM3);
          
DestroyPickup(EntradaM4);
          
DestroyPickup(EntradaM5);
          
DestroyPickup(EntradaM6);
          
DestroyPickup(EntradaM7);
          
DestroyPickup(EntradaM8);
          
DestroyPickup(EntradaM9);
          
DestroyPickup(EntradaM10);
          
DestroyPickup(EntradaM11);
          
DestroyPickup(EntradaM12);
          
DestroyPickup(EntradaM13);
          
DestroyPickup(EntradaM14);
          
DestroyPickup(EntradaM15);
          
DestroyPickup(EntradaM16);
          
DestroyPickup(EntradaM17);
          
DestroyPickup(EntradaM18);
          
DestroyPickup(EntradaM19);
          
DestroyPickup(EntradaM20);
        
SendClientMessageToAll0x33CCFFAA"{88AA88}[Infor]:{D0C07D} A Entrada Mandante do Estadio Foi {F00000}Fechada.");
        return 
1;
    }
//visitante---------------------------------------------------------------------
    
if(strcmp(cmd"/AbrirELVv"true) == 0)
    {
        if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOR_VermelhoEscuro"Sу Administradores logados na RCON podem usar este comando!");
        
EntradaV1 CreatePickup(131811480.83044433592105.797851562511.02343750);
        
EntradaV2 CreatePickup(131811480.73510742192107.811279296911.02343750);
        
EntradaV3 CreatePickup(131811480.62084960942109.575439453111.02343750);
        
EntradaV4 CreatePickup(131811480.77490234382111.568847656311.02343750);
        
EntradaV5 CreatePickup(131811480.94848632812113.812255859411.02343750);
        
EntradaV6 CreatePickup(131811481.07592773442144.470947265611.02343750);
        
EntradaV7 CreatePickup(131811480.93847656252146.233398437511.02343750);
        
EntradaV8 CreatePickup(131811481.06738281252148.229492187511.02343750);
        
EntradaV9 CreatePickup(131811481.19628906252150.225585937511.02343750);
        
EntradaV10 CreatePickup(131811481.07568359382152.237792968811.02343750);
        
SendClientMessageToAll0x33CCFFAA"{88AA88}[Infor]:{D0C07D} A Entrada Visitante do Estadio Foi {08FF08}Aberta");
        return 
1;
    }
       if(
strcmp(cmd"/FecharELVv"true) == 0)
    {
        if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOR_VermelhoEscuro"Sу Administradores logados na RCON podem usar este comando!");
          
DestroyPickup(EntradaV1);
          
DestroyPickup(EntradaV2);
          
DestroyPickup(EntradaV3);
          
DestroyPickup(EntradaV4);
          
DestroyPickup(EntradaV5);
          
DestroyPickup(EntradaV6);
          
DestroyPickup(EntradaV7);
          
DestroyPickup(EntradaV8);
          
DestroyPickup(EntradaV9);
          
DestroyPickup(EntradaV10);
        
SendClientMessageToAll0x33CCFFAA"{88AA88}[Infor]:{D0C07D} A Entrada Visitante do Estadio Foi {F00000}Fechada.");
        return 
1;
    }
//==================================================
    
if(strcmp(cmd"/rbolaLV"true) == 0)
    {
          
DestroyObject(futebol);
          
futebol CreateObject(15981347.44,2149.91,10.3156000);
        new 
pname[MAX_PLAYER_NAME];
        new 
string [256];
        
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
        
format(stringsizeof(string), "{88AA88}[Infor]:{D0C07D} %s Fez a Bola de Futebol Voltou ao Meio Campo"pname);
        
SendClientMessageToAll(0xF0FFB8AAstring);
        return 
1;
    }
       if(!
strcmp(cmdtext"/jogarLV"true))
    {
        
SetTimerEx("KeyChanges"1001"i"playerid);
        
playingfootball[playerid]=1;
        return 
1;
    }
    
       if(!
strcmp(cmdtext"/SairELV"true))
    {
        
SetPlayerPos(playerid1417208412);
        return 
1;
    }
       if(!
strcmp(cmdtext"/EstadioLV"true))
    {
        
SendClientMessage(playerid, -1"{AFAFAF}======================{D0C07D}|| {88AA88}Comandos do Estadio LV {D0C07D}||{AFAFAF}======================");
        
SendClientMessage(playerid, -1,"{88AA88}/AbrirELvM {D0C07D}- Abrir a Entrada M, {88AA88}/FeicharELvM {D0C07D}- Feichar a Entrada M");
        
SendClientMessage(playerid, -1,"{88AA88}/AbrirELvV {D0C07D}- Abrir a Entrada V, {88AA88}/FeicharELvV {D0C07D}- Feichar a Entrada V ");
        
SendClientMessage(playerid, -1,"{88AA88}/JogarLV {D0C07D}- Para Consegir Chutar a Bola, {88AA88}/CampoELV {D0C07D}- Ir Para o Campo{88AA88}(Vestiario)!");
        
SendClientMessage(playerid, -1,"{88AA88}[FS/Mapa] {D0C07D}- Feito Por Lucas Topazio [L.s.T]!");
        return 
1;
    }
    if(!
strcmp(cmdtext"/CampoELV"true))
    {
        
SetPlayerPos(playerid13642200799);
          
SetTimerEx("KeyChanges"1001"i"playerid);
        
playingfootball[playerid]=1;
        return 
1;
    }
    
    return 
0;
}
public 
PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
Float:oldposxFloat:oldposyFloat:oldposz;
        new 
Float:tempposxFloat:tempposyFloat:tempposz;
        
GetPlayerPos(playeridoldposxoldposyoldposz);
        
tempposx = (oldposx -x);
        
tempposy = (oldposy -y);
        
tempposz = (oldposz -z);
        if (((
tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))
        {
            return 
1;
        }
    }
    return 
0;

New:*Sistema de Jogar FUTEBOL + Estadio em "LS"
New:*Sistema de Jogar FUTEBOL + Estadio em "SF"
Reply


Messages In This Thread
Sistema de Futebol e Estadio em "LV" - by L.S.T - 19.12.2013, 03:02
Re: Sistema de Futebol e Estadio em LV - by JoaoMonteiro452 - 19.12.2013, 03:08
Re: Sistema de Futebol e Estadio em LV - by PT - 19.12.2013, 03:15
Re: Sistema de Futebol e Estadio em LV - by L.S.T - 19.12.2013, 03:23
Re: Sistema de Futebol e Estadio em LV - by Don_Speed - 19.12.2013, 08:47
Re: Sistema de Futebol e Estadio em LV - by WeslleyScript - 19.12.2013, 13:24
Re: Sistema de Futebol e Estadio em LV - by L.S.T - 19.12.2013, 14:51
Re: Sistema de Futebol e Estadio em LV - by WLSF - 19.12.2013, 14:56
Re: Sistema de Futebol e Estadio em LV - by L.S.T - 19.12.2013, 15:07
Re: Sistema de Futebol e Estadio em LV - by iDreak - 19.12.2013, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)