[FilterScript] Sistema de Futebol e Estadio em "LS"
#1

Sistema de Jogar FUTEBOL + Estadio em "LS"

*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:

/EstadioLS - Ver os Comandos!
-----------
/AbrirELsNorte - Abrir a Entrada Norte.
/FeicharELsNorte - Feichar a Entrada Norte.
-----------
/AbrirELsSUL - Abrir a Entrada Sul.
/FecharELsSUL- Feichar a Entrada Sul.
-----------
/JogarLS - Para Consegir Chutar a Bola do Estadio LS.
/CampoELS - Ir Para o Campo (Vestiario)!
/RbolaLS - 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];
new 
GZEstadioLS;
//==== [Entradas] ========
//Norte
new LSEntradaNor1;
new 
LSEntradaNor2;
new 
LSEntradaNor3;
new 
LSEntradaNor4;
new 
LSEntradaNor5;
new 
LSEntradaNor6;
new 
LSEntradaNor7;
new 
LSEntradaNor8;
new 
LSEntradaNor9;
new 
LSEntradaNor10;
new 
SaidaELsNor;
//Sul
new LSEntradaSUL1;
new 
LSEntradaSUL2;
new 
LSEntradaSUL3;
new 
LSEntradaSUL4;
new 
LSEntradaSUL5;
new 
LSEntradaSUL6;
new 
LSEntradaSUL7;
new 
LSEntradaSUL8;
new 
LSEntradaSUL9;
new 
LSEntradaSUL10;
new 
SaidaELsSUL;
//Subida/Desida
new SubirJuizLS;
new 
DescerJuizLS;
new 
PortaoNorte1;
new 
PortaoNorte2;
new 
PortaoSUL1;
new 
PortaoSUL2;
//=====================
// === [Color Defines] ===
#define COLOR_BLUE 0x33AAFFFF
#define COR_VermelhoEscuro 0xF60000AA
#define COR_Azul 0x0050F6AA
#define COLOR_RED 0xAA3333AA
#define COR_VERDEESTADIO 0x784E00AA
#define COR_AzulClaro 0x33CCFFAA
#define COR_Cinza 0xAFAFAFAA
// === [Forward] ===
forward IsStringAName(string[]);
forward GetPlayerID(string[]);
forward Restart();
forward PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z);
// === [Loops] ===
new bolafutebolLS;
public 
OnFilterScriptInit()
{
    print(
"  *****************************************************  ");
    print(
"  *|             Sistema de Estadio LS               |*  ");
    print(
"  *|            Feito Por Lucas Topazio              |*  ");
    print(
"  *****************************************************  ");
    
}
public 
OnPlayerConnectplayerid )
{
    
SetPlayerMapIconplayerid12, -219215719190MAPICON_GLOBAL );
}
public 
OnPlayerSpawn(playerid)
{
    
GangZoneShowForPlayer(playeridGZEstadioLSCOR_VERDEESTADIO);
}
public 
OnGameModeInit()
{
    
UsePlayerPedAnims();
//Entradas[PK]
//Norte[OK]
    
Create3DTextLabel("Entrada Norte\n01"0xDFB0FFFF2928, -1920340,0);//01
    
LSEntradaNor1 CreatePickup(131812928, -192030);
    
Create3DTextLabel("Entrada Norte\n02"0xDFB0FFFF2928, -1924340,0);//02
    
LSEntradaNor2 CreatePickup(131812928, -192430);
    
Create3DTextLabel("Entrada Norte\n03"0xDFB0FFFF2928, -1933340,0);//03
    
LSEntradaNor3 CreatePickup(131812928, -193330);
    
Create3DTextLabel("Entrada Norte\n04"0xDFB0FFFF2928, -1937340,0);//04
    
LSEntradaNor4 CreatePickup(131812928, -193730);
    
Create3DTextLabel("Entrada Norte\n05"0xDFB0FFFF2928, -1944340,0);//05
    
LSEntradaNor5 CreatePickup(131812928, -194430);
    
Create3DTextLabel("Entrada Norte\n06"0xDFB0FFFF2928, -1948340,0);//06
    
LSEntradaNor6 CreatePickup(131812928, -194830);
    
Create3DTextLabel("Entrada Norte\n07"0xDFB0FFFF2928, -1957340,0);//07
    
LSEntradaNor7 CreatePickup(131812928, -195730);
    
Create3DTextLabel("Entrada Norte\n08"0xDFB0FFFF2928, -1960340,0);//08
    
LSEntradaNor8 CreatePickup(131812928, -196030);
    
Create3DTextLabel("Entrada Norte\n09"0xDFB0FFFF2928, -1969340,0);//09
    
LSEntradaNor9 CreatePickup(131812928, -196930);
    
Create3DTextLabel("Entrada Norte\n10"0xDFB0FFFF2928, -1972340,0);//10
    
LSEntradaNor10 CreatePickup(131812928, -197230);
    
//Saida
    
SaidaELsNor CreatePickup(131812952, -195830);//Norte
    
Create3DTextLabel("Saida"0xDFB0FFFF2952, -1958340,0);//Norte
//Sul
    
Create3DTextLabel("Entrada Sul\n01"0xDFB0FFFF2976, -2030340,0);//Sul
    
LSEntradaSUL1 CreatePickup(131812976, -203030);
    
Create3DTextLabel("Entrada Sul\n02"0xDFB0FFFF2980, -2030340,0);//2
    
LSEntradaSUL2 CreatePickup(131812980, -203030);
    
Create3DTextLabel("Entrada Sul\n03"0xDFB0FFFF2992, -2030340,0);//3
    
LSEntradaSUL3 CreatePickup(131812992, -203030);
    
Create3DTextLabel("Entrada Sul\n04"0xDFB0FFFF2995, -2030340,0);//4
    
LSEntradaSUL4 CreatePickup(131812995, -203030);
    
Create3DTextLabel("Entrada Sul\n05"0xDFB0FFFF3006, -2030340,0);//5
    
LSEntradaSUL5 CreatePickup(131813006, -203030);
    
Create3DTextLabel("Entrada Sul\n06"0xDFB0FFFF3010, -2030340,0);//6
    
LSEntradaSUL6 CreatePickup(131813010, -203030);
    
Create3DTextLabel("Entrada Sul\n07"0xDFB0FFFF3020, -2030340,0);//7
    
LSEntradaSUL7 CreatePickup(131813020, -203030);
    
Create3DTextLabel("Entrada Sul\n08"0xDFB0FFFF3023, -2030340,0);//8
    
LSEntradaSUL8 CreatePickup(131813023, -203030);
    
Create3DTextLabel("Entrada Sul\n09"0xDFB0FFFF3033, -2030340,0);//9
    
LSEntradaSUL9 CreatePickup(131813033, -203030);
    
Create3DTextLabel("Entrada Sul\n10"0xDFB0FFFF3036, -2030340,0);//10
    
LSEntradaSUL10 CreatePickup(131813036, -203030);
    
//Saidas
    
SaidaELsSUL CreatePickup(131813013, -200830);//Sul
    
Create3DTextLabel("Saida"0xDFB0FFFF3013, -2008340,0);//Sul
//------------------
//SUir/deser
    
DescerJuizLS CreatePickup(131812956, -199826.50);//Sul
    
Create3DTextLabel("Campo"0xDFB0FFFF2956, -199826.510.000);//Sul
    
SubirJuizLS CreatePickup(131812970, -1991.530);//Sul
    
Create3DTextLabel("Vestiario"0xDFB0FFFF2972, -1991.535.000);//Sul
//======BOLA==========
    
bolafutebolLS CreateObject(1598,3009.6999512,-1950.1999512,1.9000000,0.0000000,0.0000000,0.0000000); //object(beachball) (1)
//=====GZ=============
    
GZEstadioLS GangZoneCreate(-2293.9697261376.440551, -2045.9697261736.440551);
//=====Estadio========
    
CreateObject(4866,2915.5000000,-1991.8994141,1.5100000,0.0000000,0.0000000,0.0000000); //object(lasrnway1_las) (1)
    
CreateObject(4866,2912.7998047,-1937.3994141,1.5000000,0.0000000,0.0000000,0.0000000); //object(lasrnway1_las) (2)
    
CreateObject(7416,3010.0996094,-1950.5000000,1.7000000,0.0000000,0.0000000,0.0000000); //object(vegasstadgrnd) (1)
    
CreateObject(3452,3024.5000000,-1900.6992188,7.1999998,0.0000000,0.0000000,179.9945068); //object(bballintvgn1) (2)
    
CreateObject(3452,2994.9199219,-1900.6992188,7.1999998,0.0000000,0.0000000,179.9945068); //object(bballintvgn1) (3)
    
CreateObject(3453,3054.7399902,-1906.1999512,7.1999998,0.0000000,0.0000000,89.9945068); //object(bballintvgn2) (1)
    
CreateObject(3452,3061.1000977,-1935.5300293,7.1999998,0.0000000,0.0000000,89.9945068); //object(bballintvgn1) (4)
    
CreateObject(3452,3061.0996094,-1965.1500244,7.1999998,0.0000000,0.0000000,89.9945068); //object(bballintvgn1) (5)
    
CreateObject(3453,3055.6201172,-1995.3900146,7.1999998,0.0000000,0.0000000,359.9945068); //object(bballintvgn2) (2)
    
CreateObject(3452,3026.2990723,-2001.7700195,7.1999998,0.0000000,0.0000000,359.9945068); //object(bballintvgn1) (6)
    
CreateObject(4866,2923.0000000,-1991.8000488,1.4000000,0.0000000,0.0000000,0.0000000); //object(lasrnway1_las) (4)
    
CreateObject(3452,2996.7500000,-2001.7695312,7.1999998,0.0000000,0.0000000,359.9890137); //object(bballintvgn1) (7)
    
CreateObject(3452,2967.1999512,-2001.7695312,7.1999998,0.0000000,0.0000000,359.9945068); //object(bballintvgn1) (8)
    
CreateObject(4585,2949.5000000,-2011.6992188,-60.0000000,0.0000000,0.0000000,0.0000000); //object(towerlan2) (1)
    
CreateObject(3452,2967.1992188,-2019.6999512,15.6999998,0.0000000,0.0000000,359.9890137); //object(bballintvgn1) (13)
    
CreateObject(3452,2958.0000000,-1928.0000000,7.1999998,0.0000000,0.0000000,269.9835205); //object(bballintvgn1) (1)
    
CreateObject(3452,2958.0000000,-1957.5000000,7.1999998,0.0000000,0.0000000,269.9835205); //object(bballintvgn1) (14)
    
CreateObject(3452,2958.0000000,-1987.0996094,7.1999998,0.0000000,0.0000000,269.9835205); //object(bballintvgn1) (15)
    
CreateObject(17550,2884.8999023,-2061.0000000,10.0000000,0.0000000,358.7500000,199.7500000); //object(easbebrij1_lae2) (1)
    
CreateObject(3452,2996.7500000,-2019.6992188,15.6999998,0.0000000,0.0000000,359.9890137); //object(bballintvgn1) (16)
    
CreateObject(3452,3026.2990723,-2019.6992188,15.6999998,0.0000000,0.0000000,359.9890137); //object(bballintvgn1) (18)
    
CreateObject(4585,2948.8994141,-1891.1992188,-60.0000000,0.0000000,0.0000000,0.0000000); //object(towerlan2) (2)
    
CreateObject(3452,2965.3000488,-1900.6992188,7.1999998,0.0000000,0.0000000,179.9945068); //object(bballintvgn1) (19)
    
CreateObject(3452,2939.8898926,-1987.0996094,15.3000002,0.0000000,0.0000000,269.9780273); //object(bballintvgn1) (21)
    
CreateObject(3452,2939.8898926,-1957.5000000,15.3000002,0.0000000,0.0000000,269.9780273); //object(bballintvgn1) (22)
    
CreateObject(3452,2939.8898926,-1928.0000000,15.3000002,0.0000000,0.0000000,269.9780273); //object(bballintvgn1) (23)
    
CreateObject(4866,2930.6000977,-1963.1999512,-135.0000000,0.0000000,270.0000000,0.0000000); //object(lasrnway1_las) (5)
    
CreateObject(13651,3016.6999512,-2031.0000000,24.6000004,0.0000000,90.0000000,99.9986572); //object(otunnel) (2)
    
CreateObject(13651,3060.3999023,-2035.4000244,24.6000004,0.0000000,90.0000000,147.9954834); //object(otunnel) (4)
    
CreateObject(13651,3056.3999023,-2058.0000000,24.6000004,0.0000000,90.0000000,179.9968872); //object(otunnel) (5)
    
CreateObject(13651,3085.5000000,-2015.6999512,24.6000004,0.0000000,90.0000000,269.9936218); //object(otunnel) (6)
    
CreateObject(13651,3100.1999512,-2015.8000488,24.6000004,0.0000000,90.0000000,269.9890137); //object(otunnel) (7)
    
CreateObject(13651,3067.3999023,-1971.6999512,24.6000004,0.0000000,90.0000000,357.9840088); //object(otunnel) (9)
    
CreateObject(3452,3079.2099609,-1965.1494141,15.3000002,0.0000000,0.0000000,89.9945068); //object(bballintvgn1) (24)
    
CreateObject(3452,3079.2099609,-1935.5300293,15.3000002,0.0000000,0.0000000,89.9945068); //object(bballintvgn1) (25)
    
CreateObject(3452,3079.2099609,-1994.8000488,15.3000002,0.0000000,0.0000000,89.9945068); //object(bballintvgn1) (26)
    
CreateObject(13651,3041.8999023,-2039.5999756,24.6000004,0.0000000,90.0000000,129.9970093); //object(otunnel) (3)
    
CreateObject(13651,3042.5000000,-2003.0999756,24.6000004,0.0000000,90.0000000,85.9907227); //object(otunnel) (10)
    
CreateObject(13651,3075.5000000,-1963.0999756,24.6000004,0.0000000,90.0000000,357.9892883); //object(otunnel) (11)
    
CreateObject(13651,3075.0000000,-1975.5000000,24.6000004,0.0000000,90.0000000,357.9840088); //object(otunnel) (12)
    
CreateObject(13651,3114.6000977,-2015.0999756,24.6000004,0.0000000,90.0000000,269.9890137); //object(otunnel) (15)
    
CreateObject(13651,3074.5000000,-1984.9000244,24.6000004,0.0000000,90.0000000,357.9840088); //object(otunnel) (16)
    
CreateObject(13651,3059.8999023,-1978.0999756,24.6000004,0.0000000,90.0000000,357.9839478); //object(otunnel) (17)
    
CreateObject(13651,3067.1000977,-1980.0000000,24.6000004,0.0000000,90.0000000,357.9840088); //object(otunnel) (18)
    
CreateObject(13651,3025.8000488,-2036.0999756,24.6000004,0.0000000,90.0000000,101.9832153); //object(otunnel) (19)
    
CreateObject(3452,2965.3000488,-1882.5899658,15.3000002,0.0000000,0.0000000,179.9945068); //object(bballintvgn1) (27)
    
CreateObject(3452,3024.5000000,-1882.5898438,15.3000002,0.0000000,0.0000000,179.9945068); //object(bballintvgn1) (28)
    
CreateObject(3452,2994.9199219,-1882.5898438,15.3000002,0.0000000,0.0000000,179.9945068); //object(bballintvgn1) (29)
    
CreateObject(3452,3053.9990234,-1882.5898438,15.3000002,0.0000000,0.0000000,179.9945068); //object(bballintvgn1) (30)
    
CreateObject(3452,3079.2099609,-1905.8890381,15.3000002,0.0000000,0.0000000,89.9945068); //object(bballintvgn1) (31)
    
CreateObject(13651,3113.6999512,-1901.0999756,24.6000004,0.0000000,90.0000000,271.9905090); //object(otunnel) (20)
    
CreateObject(13651,3095.1999512,-1937.6999512,24.6000004,0.0000000,90.0000000,201.9877472); //object(otunnel) (21)
    
CreateObject(13651,3096.8999023,-1919.1999512,24.6000004,0.0000000,90.0000000,219.9832611); //object(otunnel) (22)
    
CreateObject(13651,3093.3000488,-1902.6999512,24.6000004,0.0000000,90.0000000,235.9786377); //object(otunnel) (23)
    
CreateObject(13651,3064.1999512,-1917.8000488,24.6000004,0.0000000,90.0000000,179.9749146); //object(otunnel) (24)
    
CreateObject(13651,3022.1992188,-1888.5996094,24.6000004,0.0000000,90.0000000,89.9670410); //object(otunnel) (25)
    
CreateObject(13651,3035.3000488,-1888.5999756,24.6000004,0.0000000,90.0000000,89.9670410); //object(otunnel) (26)
    
CreateObject(13651,3043.8999023,-1888.5999756,24.6000004,0.0000000,90.0000000,89.9670410); //object(otunnel) (27)
    
CreateObject(13651,3074.5000000,-1873.1999512,24.6000004,0.0000000,91.9999695,359.9621582); //object(otunnel) (29)
    
CreateObject(13651,3074.6000977,-1858.5999756,24.6000004,0.0000000,91.9995117,359.9615479); //object(otunnel) (30)
    
CreateObject(13651,3074.6999512,-1846.5999756,24.6000004,0.0000000,91.9995117,359.9615479); //object(otunnel) (31)
    
CreateObject(13651,3029.1999512,-1896.5999756,24.6000004,0.0000000,90.0000000,89.9670410); //object(otunnel) (32)
    
CreateObject(13651,3088.3999023,-1926.8000488,24.6000004,0.0000000,90.0000000,181.9664307); //object(otunnel) (33)
    
CreateObject(13651,3089.1000977,-1939.4000244,24.6000004,0.0000000,90.0000000,181.9610596); //object(otunnel) (34)
    
CreateObject(13651,3098.3999023,-1919.0999756,24.6000004,0.0000000,90.0000000,211.9608612); //object(otunnel) (35)
    
CreateObject(4866,3088.2998047,-1942.3994141,-135.0000000,0.0000000,270.0000000,179.9937134); //object(lasrnway1_las) (5)
    
CreateObject(4866,3014.5000000,-2028.8994141,-135.0000000,0.0000000,270.0000000,89.9835205); //object(lasrnway1_las) (5)
    
CreateObject(4866,3004.6000977,-2054.8000488,-155.1999969,0.0000000,270.0000000,89.9835205); //object(lasrnway1_las) (5)
    
CreateObject(4866,3017.5000000,-2055.1999512,-155.1999969,0.0000000,270.0000000,89.9835205); //object(lasrnway1_las) (5)
    
CreateObject(4866,3080.3994141,-1993.6992188,-155.1999969,0.0000000,270.0000000,179.9725342); //object(lasrnway1_las) (5)
    
CreateObject(8650,2966.8999023,-1915.8000488,3.5000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (1)
    
CreateObject(8650,2966.8999023,-1976.5996094,1.5000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (2)
    
CreateObject(8650,2966.8999023,-1976.5996094,3.5000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (3)
    
CreateObject(8650,2966.8999023,-1946.2294922,3.5000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (4)
    
CreateObject(8650,2966.8999023,-1946.2294922,1.5000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (5)
    
CreateObject(8650,2966.8999023,-1915.8000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (6)
    
CreateObject(8650,2970.5000000,-1909.6999512,3.5000000,0.0000000,0.0000000,270.0000000); //object(shbbyhswall06_lvs) (7)
    
CreateObject(8650,3031.2998047,-1909.6992188,3.5000000,0.0000000,0.0000000,269.9945068); //object(shbbyhswall06_lvs) (8)
    
CreateObject(8650,3000.9199219,-1909.6992188,3.5000000,0.0000000,0.0000000,269.9945068); //object(shbbyhswall06_lvs) (9)
    
CreateObject(8650,2970.5000000,-1909.6992188,1.5000000,0.0000000,0.0000000,269.9945068); //object(shbbyhswall06_lvs) (10)
    
CreateObject(8650,3000.9199219,-1909.6992188,1.5000000,0.0000000,0.0000000,269.9945068); //object(shbbyhswall06_lvs) (11)
    
CreateObject(8650,3031.2998047,-1909.6992188,1.5000000,0.0000000,0.0000000,269.9945068); //object(shbbyhswall06_lvs) (12)
    
CreateObject(8650,3052.1000977,-1930.5000000,3.5000000,0.0000000,0.0000000,179.9945679); //object(shbbyhswall06_lvs) (13)
    
CreateObject(8650,3052.0996094,-1971.9000244,3.5000000,0.0000000,0.0000000,179.9945068); //object(shbbyhswall06_lvs) (14)
    
CreateObject(8650,3052.0996094,-1950.0000000,3.5000000,0.0000000,0.0000000,179.9945068); //object(shbbyhswall06_lvs) (15)
    
CreateObject(8650,3031.3999023,-1992.6999512,3.5000000,0.0000000,0.0000000,89.9945068); //object(shbbyhswall06_lvs) (16)
    
CreateObject(8650,3001.0000000,-1992.6992188,3.5000000,0.0000000,0.0000000,89.9945068); //object(shbbyhswall06_lvs) (17)
    
CreateObject(8650,2972.0000000,-1992.6992188,3.5000000,0.0000000,0.0000000,89.9945068); //object(shbbyhswall06_lvs) (18)
    
CreateObject(8650,3052.0996094,-1930.5000000,1.5000000,0.0000000,0.0000000,179.9945068); //object(shbbyhswall06_lvs) (19)
    
CreateObject(8650,3052.0996094,-1950.0000000,1.5000000,0.0000000,0.0000000,179.9945068); //object(shbbyhswall06_lvs) (20)
    
CreateObject(8650,3052.0996094,-1971.8994141,1.5000000,0.0000000,0.0000000,179.9945068); //object(shbbyhswall06_lvs) (21)
    
CreateObject(8650,3031.3994141,-1992.6992188,1.5000000,0.0000000,0.0000000,89.9945068); //object(shbbyhswall06_lvs) (22)
    
CreateObject(8650,3001.0000000,-1992.6992188,1.5000000,0.0000000,0.0000000,89.9945068); //object(shbbyhswall06_lvs) (23)
    
CreateObject(8650,2972.0000000,-1992.6992188,1.5000000,0.0000000,0.0000000,89.9945068); //object(shbbyhswall06_lvs) (24)
    
CreateObject(8650,3051.6000977,-1988.0000000,-10.6000004,90.0000000,180.0000000,329.9938965); //object(shbbyhswall06_lvs) (25)
    
CreateObject(8650,3050.6000977,-1989.6999512,-10.6000004,90.0000000,179.9945068,323.9908142); //object(shbbyhswall06_lvs) (26)
    
CreateObject(8650,3049.3999023,-1991.1999512,-10.6000004,90.0000000,179.9945068,313.9868164); //object(shbbyhswall06_lvs) (27)
    
CreateObject(8650,3047.6000977,-1992.4000244,-10.6000004,90.0000000,179.9945068,293.9837646); //object(shbbyhswall06_lvs) (28)
    
CreateObject(8650,3051.8000488,-1914.5000000,-10.6000004,90.0000000,179.9945068,23.9908447); //object(shbbyhswall06_lvs) (29)
    
CreateObject(8650,3050.8000488,-1913.0999756,-10.6000004,90.0000000,180.0054932,41.9776611); //object(shbbyhswall06_lvs) (30)
    
CreateObject(8650,3049.6000977,-1911.8000488,-10.6000004,90.0000000,179.9945068,41.9842529); //object(shbbyhswall06_lvs) (31)
    
CreateObject(8650,3048.3999023,-1910.6999512,-10.6000004,90.0000000,180.0054932,53.9677734); //object(shbbyhswall06_lvs) (32)
    
CreateObject(8650,3047.0000000,-1909.9000244,-10.6000004,90.0000000,179.9945068,69.9758301); //object(shbbyhswall06_lvs) (33)
    
CreateObject(10832,3026.5000000,-1870.5000000,22.0000000,0.0000000,0.0000000,270.0000000); //object(gatehouse2_sfse) (1)
    
CreateObject(10832,3045.3994141,-1870.5000000,22.0000000,0.0000000,0.0000000,269.9945068); //object(gatehouse2_sfse) (2)
    
CreateObject(10832,3036.0000000,-1870.5000000,22.0000000,0.0000000,0.0000000,269.9945068); //object(gatehouse2_sfse) (3)
    
CreateObject(10832,3017.0000000,-1870.5000000,22.0000000,0.0000000,0.0000000,269.9945068); //object(gatehouse2_sfse) (4)
    
CreateObject(10832,3007.8999023,-1870.5000000,22.0000000,0.0000000,0.0000000,269.9945068); //object(gatehouse2_sfse) (5)
    
CreateObject(10832,2998.5000000,-1870.5000000,22.0000000,0.0000000,0.0000000,269.9945068); //object(gatehouse2_sfse) (6)
    
CreateObject(10832,2989.3000488,-1870.5000000,22.0000000,0.0000000,0.0000000,269.9945068); //object(gatehouse2_sfse) (7)
    
CreateObject(10832,2980.0000000,-1870.5000000,22.0000000,0.0000000,0.0000000,269.9945068); //object(gatehouse2_sfse) (8)
    
CreateObject(10832,2971.0000000,-1870.5000000,22.0000000,0.0000000,0.0000000,269.9945068); //object(gatehouse2_sfse) (9)
    
CreateObject(13651,3006.3999023,-1878.8199463,5.5999999,0.0000000,90.0000000,89.9670410); //object(otunnel) (25)
    
CreateObject(13651,2993.0000000,-1878.8199463,5.5999999,0.0000000,90.0000000,89.9670410); //object(otunnel) (25)
    
CreateObject(13651,2980.0000000,-1878.8199463,5.5999999,0.0000000,90.0000000,89.9670410); //object(otunnel) (25)
    
CreateObject(13651,2968.0000000,-1878.8199463,5.5999999,0.0000000,90.0000000,89.9670410); //object(otunnel) (25)
    
CreateObject(13651,2955.0000000,-1878.8199463,5.5999999,0.0000000,90.0000000,89.9670410); //object(otunnel) (25)
    
CreateObject(13651,2942.0000000,-1878.8199463,5.5999999,0.0000000,90.0000000,89.9670410); //object(otunnel) (25)
    
CreateObject(13651,2929.8999023,-1887.5000000,5.5999999,0.0000000,90.0000000,101.9668884); //object(otunnel) (25)
    
CreateObject(13651,3017.1000977,-1863.9000244,5.5999999,0.0000000,90.0000000,61.9666138); //object(otunnel) (25)
    
CreateObject(7504,3034.0000000,-2054.8000488,3.0999999,0.0000000,0.0000000,0.0000000); //object(glfcrsgate2_vgn) (1)
    
CreateObject(7504,2941.2998047,-2054.7998047,3.0999999,0.0000000,0.0000000,0.0000000); //object(glfcrsgate2_vgn) (2)
    
CreateObject(7504,3080.0000000,-2009.4000244,3.0999999,0.0000000,0.0000000,90.0000000); //object(glfcrsgate2_vgn) (4)
    
CreateObject(971,2973.0996094,-1909.7998047,5.5000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    
CreateObject(971,2982.0000000,-1909.7998047,5.5000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    
CreateObject(971,2990.7998047,-1909.7998047,5.5000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    
CreateObject(971,2999.5000000,-1909.7998047,5.5000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    
CreateObject(971,3008.1992188,-1909.7998047,5.5000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    
CreateObject(971,3017.0000000,-1909.7998047,5.5000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    
CreateObject(971,3025.6992188,-1909.7998047,5.5000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    
CreateObject(971,3034.0000000,-1909.7998047,5.5000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    
CreateObject(971,3042.6992188,-1909.7998047,5.5000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    
CreateObject(2933,3048.3999023,-1910.6999512,4.6999998,0.0000000,270.0000000,323.9996948); //object(pol_comp_gate) (1)
    
CreateObject(2933,3050.6999512,-1913.0000000,4.6999998,0.0000000,270.0000000,309.9972229); //object(pol_comp_gate) (2)
    
CreateObject(2933,3051.8999023,-1915.8000488,4.6999998,0.0000000,270.0000000,275.9956055); //object(pol_comp_gate) (3)
    
CreateObject(971,3052.0000000,-1921.6999512,5.5000000,0.0000000,0.0000000,269.9999695); //object(airportgate) (2)
    
CreateObject(971,3052.0000000,-1930.4000244,5.5000000,0.0000000,0.0000000,269.9945068); //object(airportgate) (2)
    
CreateObject(971,3052.0000000,-1939.0000000,5.5000000,0.0000000,0.0000000,269.9945068); //object(airportgate) (2)
    
CreateObject(971,3052.0000000,-1947.6999512,5.5000000,0.0000000,0.0000000,269.9945068); //object(airportgate) (2)
    
CreateObject(971,3052.0000000,-1956.4000244,5.5000000,0.0000000,0.0000000,269.9945068); //object(airportgate) (2)
    
CreateObject(971,3052.0000000,-1965.1999512,5.5000000,0.0000000,0.0000000,269.9945068); //object(airportgate) (2)
    
CreateObject(971,3052.0000000,-1974.0000000,5.5000000,0.0000000,0.0000000,269.9945068); //object(airportgate) (2)
    
CreateObject(971,3052.0000000,-1982.5000000,5.5000000,0.0000000,0.0000000,269.9945068); //object(airportgate) (2)
    
CreateObject(2933,3051.3000488,-1988.5000000,4.6999998,0.0000000,270.0000000,247.9966583); //object(pol_comp_gate) (4)
    
CreateObject(2933,3049.5000000,-1991.0000000,4.6999998,0.0000000,270.0000000,221.9939728); //object(pol_comp_gate) (5)
    
CreateObject(2933,3046.6999512,-1992.5000000,4.6999998,0.0000000,270.0000000,193.9889984); //object(pol_comp_gate) (6)
    
CreateObject(971,3040.6999512,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,3040.6992188,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,3023.1999512,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,3032.0000000,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,3014.8000488,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,3005.8999023,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,2997.0000000,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,2988.3000488,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,2979.5000000,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,2970.5000000,-1993.0000000,5.5000000,0.0000000,0.0000000,179.9945068); //object(airportgate) (2)
    
CreateObject(971,2966.6999512,-1915.0000000,5.5000000,0.0000000,0.0000000,89.9945068); //object(airportgate) (2)
    
CreateObject(971,2966.6992188,-1985.0000000,5.5000000,0.0000000,0.0000000,89.9945068); //object(airportgate) (2)
    
CreateObject(971,2966.6992188,-1976.5000000,5.5000000,0.0000000,0.0000000,89.9945068); //object(airportgate) (2)
    
CreateObject(971,2966.6992188,-1967.5000000,5.5000000,0.0000000,0.0000000,89.9945068); //object(airportgate) (2)
    
CreateObject(971,2966.6992188,-1958.8994141,5.5000000,0.0000000,0.0000000,89.9945068); //object(airportgate) (2)
    
CreateObject(971,2966.6992188,-1949.9892578,5.5000000,0.0000000,0.0000000,89.9945068); //object(airportgate) (2)
    
CreateObject(971,2966.6992188,-1941.0996094,5.5000000,0.0000000,0.0000000,89.9945068); //object(airportgate) (2)
    
CreateObject(971,2966.6992188,-1932.5000000,5.5000000,0.0000000,0.0000000,89.9945068); //object(airportgate) (2)
    
CreateObject(971,2966.6992188,-1923.8994141,5.5000000,0.0000000,0.0000000,89.9945068); //object(airportgate) (2)
    
CreateObject(1501,2967.6999512,-1989.6999512,1.7000000,0.0000000,0.0000000,318.0000000); //object(gen_doorext04) (1)
    
CreateObject(1501,2969.3000488,-1992.0000000,1.7000000,0.0000000,0.0000000,111.9987793); //object(gen_doorext04) (2)
    
CreateObject(1523,2979.3000488,-1992.5999756,1.7000000,0.0000000,0.0000000,88.0000000); //object(gen_doorext10) (1)
    
CreateObject(1523,2979.3000488,-1989.6800537,1.7000000,0.0000000,0.0000000,269.9954834); //object(gen_doorext10) (2)
    
CreateObject(8948,2970.8000488,-1989.4000244,2.4800000,0.0000000,0.0000000,268.0000000); //object(lckupgrgdoor_lvs) (1)
    
CreateObject(8948,2970.6999512,-1991.0999756,4.1999998,0.0000000,90.0000000,267.9949951); //object(lckupgrgdoor_lvs) (2)
    
CreateObject(8948,2975.8000488,-1991.3000488,4.1999998,0.0000000,90.0000000,267.9949951); //object(lckupgrgdoor_lvs) (4)
    
CreateObject(8948,2976.0000000,-1989.5999756,2.5000000,0.0000000,0.0000000,267.9949951); //object(lckupgrgdoor_lvs) (5)
    
CreateObject(7617,2862.0000000,-1859.8000488,22.0000000,0.0000000,0.0000000,266.0000000); //object(vgnbballscorebrd) (1)
    
CreateObject(7617,2850.3999023,-2072.8999023,21.7999992,0.0000000,0.0000000,264.0000000); //object(vgnbballscorebrd) (2)
    
CreateObject(2960,3049.6000977,-1945.6999512,3.8000000,0.0000000,270.0000000,0.0000000); //object(kmb_beam) (8)
    
CreateObject(2960,3049.5996094,-1954.5996094,3.8000000,0.0000000,270.0000000,0.0000000); //object(kmb_beam) (10)
    
CreateObject(2960,3049.6992188,-1947.8994141,6.1999998,0.0000000,0.0000000,270.0000000); //object(kmb_beam) (13)
    
CreateObject(2960,3049.6992188,-1952.3994141,6.1999998,0.0000000,359.9945068,270.0000000); //object(kmb_beam) (14)
    
CreateObject(2960,2969.3000488,-1945.6999512,3.9000001,0.0000000,270.0000000,1.9986267); //object(kmb_beam) (38)
    
CreateObject(2960,2969.2998047,-1954.5996094,3.9000001,0.0000000,270.0000000,1.9885254); //object(kmb_beam) (39)
    
CreateObject(2960,2969.5000000,-1952.4000244,6.0000000,0.0000000,180.0000000,270.0000000); //object(kmb_beam) (40)
    
CreateObject(2960,2969.5000000,-1947.8994141,6.0000000,0.0000000,180.0000000,270.0000000); //object(kmb_beam) (41)
    
CreateObject(14789,2964.5000000,-2020.6999512,30.0000000,0.0000000,0.0000000,180.0000000); //object(ab_sfgymmain1) (1)
    
CreateObject(10182,2944.8000488,-1996.2399902,26.7299995,0.0000000,0.0000000,270.0000000); //object(michdr) (1)
    
CreateObject(11319,2930.6000977,-1922.5999756,4.4000001,0.0000000,0.0000000,0.0000000); //object(sprayshpdr2_sfse) (1)
    
CreateObject(11319,2930.5996094,-1935.0000000,4.4000001,0.0000000,0.0000000,0.0000000); //object(sprayshpdr2_sfse) (2)
    
CreateObject(11319,2930.5996094,-1947.0000000,4.4000001,0.0000000,0.0000000,0.0000000); //object(sprayshpdr2_sfse) (3)
    
CreateObject(11319,2930.5996094,-1959.0000000,4.4000001,0.0000000,0.0000000,0.0000000); //object(sprayshpdr2_sfse) (4)
    
CreateObject(11319,2930.5996094,-1971.0000000,4.4000001,0.0000000,0.0000000,0.0000000); //object(sprayshpdr2_sfse) (5)
    
CreateObject(11319,2930.5996094,-1983.0000000,4.4000001,0.0000000,0.0000000,0.0000000); //object(sprayshpdr2_sfse) (6)
    
CreateObject(987,2907.1999512,-1913.0999756,1.5000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (1)
    
CreateObject(987,2919.0996094,-1913.0996094,1.5000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (3)
    
CreateObject(987,2907.2998047,-1925.1494141,1.5000000,0.0000000,0.0000000,89.9945068); //object(elecfence_bar) (4)
    
CreateObject(987,2907.2998047,-1937.0000000,1.5000000,0.0000000,0.0000000,89.9945068); //object(elecfence_bar) (5)
    
CreateObject(987,2919.0996094,-1990.5000000,1.5000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (6)
    
CreateObject(987,2907.1992188,-1990.5000000,1.5000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (7)
    
CreateObject(987,2907.2998047,-1990.5999756,1.5000000,0.0000000,0.0000000,90.0000000); //object(elecfence_bar) (8)
    
CreateObject(987,2907.2998047,-1978.8000488,1.5000000,0.0000000,0.0000000,89.9945068); //object(elecfence_bar) (9)
    
CreateObject(994,2924.1000977,-1919.1999512,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (1)
    
CreateObject(994,2923.8999023,-1922.5000000,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (2)
    
CreateObject(994,2924.0000000,-1925.8000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (3)
    
CreateObject(994,2924.1000977,-1931.8000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (4)
    
CreateObject(994,2924.1999512,-1935.3000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (5)
    
CreateObject(994,2924.1999512,-1938.3000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (6)
    
CreateObject(994,2924.3000488,-1943.5000000,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (7)
    
CreateObject(994,2924.3000488,-1946.5000000,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (8)
    
CreateObject(994,2924.1000977,-1950.3000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (9)
    
CreateObject(994,2924.1999512,-1955.8000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (10)
    
CreateObject(994,2924.3000488,-1959.0000000,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (11)
    
CreateObject(994,2924.1000977,-1962.5000000,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (12)
    
CreateObject(994,2924.1999512,-1967.8000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (13)
    
CreateObject(994,2924.1999512,-1970.8000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (14)
    
CreateObject(994,2924.3000488,-1974.3000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (15)
    
CreateObject(994,2924.1000977,-1979.8000488,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (16)
    
CreateObject(994,2924.1000977,-1982.5000000,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (17)
    
CreateObject(994,2924.1999512,-1986.0000000,1.5000000,0.0000000,0.0000000,0.0000000); //object(lhouse_barrier2) (18)
    
CreateObject(11319,3034.0000000,-2028.8990479,4.4000001,0.0000000,0.0000000,90.0000000); //object(sprayshpdr2_sfse) (7)
    
CreateObject(987,3042.0000000,-2046.1999512,1.5000000,0.0000000,0.0000000,90.0000000); //object(elecfence_bar) (10)
    
CreateObject(11319,2978.0000000,-2028.8984375,4.4000001,0.0000000,0.0000000,90.0000000); //object(sprayshpdr2_sfse) (10)
    
CreateObject(11319,2993.0000000,-2028.8984375,4.4000001,0.0000000,0.0000000,90.0000000); //object(sprayshpdr2_sfse) (11)
    
CreateObject(11319,3007.5000000,-2028.8984375,4.4000001,0.0000000,0.0000000,90.0000000); //object(sprayshpdr2_sfse) (12)
    
CreateObject(11319,3021.0000000,-2028.8984375,4.4000001,0.0000000,0.0000000,90.0000000); //object(sprayshpdr2_sfse) (13)
    
CreateObject(987,2965.0000000,-2046.1992188,1.5000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (11)
    
CreateObject(987,2977.0000000,-2046.1992188,1.5000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (12)
    
CreateObject(987,2965.0000000,-2046.1992188,1.5000000,0.0000000,0.0000000,90.0000000); //object(elecfence_bar) (13)
    
CreateObject(987,3042.0000000,-2034.5000000,1.5000000,0.0000000,0.0000000,90.0000000); //object(elecfence_bar) (14)
    
CreateObject(987,3030.1000977,-2046.1992188,1.5000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (15)
    
CreateObject(987,3018.1999512,-2046.1992188,1.5000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (16)
    
CreateObject(994,2974.3000488,-2028.6999512,1.5000000,0.0000000,0.0000000,269.9999695); //object(lhouse_barrier2) (19)
    
CreateObject(994,2977.8999023,-2028.1999512,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (20)
    
CreateObject(994,2981.6000977,-2028.4000244,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (21)
    
CreateObject(994,2989.6000977,-2028.5000000,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (22)
    
CreateObject(994,2993.1000977,-2028.6999512,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (23)
    
CreateObject(994,2996.6000977,-2028.5999756,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (24)
    
CreateObject(994,3003.8999023,-2028.4000244,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (25)
    
CreateObject(994,3007.3999023,-2028.5999756,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (26)
    
CreateObject(994,3010.8999023,-2028.5000000,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (27)
    
CreateObject(994,3017.6000977,-2028.8000488,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (28)
    
CreateObject(994,3021.1000977,-2028.8000488,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (29)
    
CreateObject(994,3024.6000977,-2028.5000000,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (30)
    
CreateObject(994,3030.6000977,-2028.5000000,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (31)
    
CreateObject(994,3033.8999023,-2028.0999756,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (32)
    
CreateObject(994,3037.3999023,-2028.3000488,1.5000000,0.0000000,0.0000000,269.9945068); //object(lhouse_barrier2) (33)
    
CreateObject(10244,2975.3000488,-2009.9000244,9.1000004,0.0000000,0.0000000,180.0000000); //object(vicjump_sfe) (1)
    
CreateObject(10244,3069.3999023,-1985.0999756,9.1000004,0.0000000,0.0000000,269.9945068); //object(vicjump_sfe) (2)
    
CreateObject(10244,3044.1000977,-1892.5000000,9.1999998,0.0000000,0.0000000,359.9890137); //object(vicjump_sfe) (3)
    
CreateObject(10244,2949.6999512,-1920.1999512,9.1000004,0.0000000,0.0000000,89.9890442); //object(vicjump_sfe) (5)
//Portoes
    
PortaoNorte1 CreateObject(972,2904.1000977,-1956.5000000,0.5000000,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (1)
    
PortaoNorte2 CreateObject(972,2904.1000977,-1951.5000000,0.5000000,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (2)
    
PortaoSUL1 CreateObject(972,3007.8999023,-2049.5000000,0.4000000,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (3)
    
PortaoSUL2 CreateObject(972,3003.3994141,-2049.5000000,0.4000000,0.0000000,0.0000000,89.9945068); //object(tunnelentrance) (4)
//===================
    
return 1;
}
public 
KeyChanges()
{
    new 
keysupdownleftright;
    for(new 
playerid 0playerid MAX_PLAYERSplayerid++)
    {
        if(
IsPlayerConnected(playerid))
        {
    
GetPlayerKeys(playeridkeysupdownleftright);
    new 
Float:oxFloat:oyFloat:oz;
    
GetObjectPos(bolafutebolLSoxoyoz);
    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(playeridpxpy1.9);
                
MoveObject(bolafutebolLS,px,py,1.9,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(playeridpxpy1.9);
                
MoveObject(bolafutebolLS,px,py,1.9,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 == SubirJuizLS)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -201227);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Esta no Vestiario!");
        }
    }
    if(
pickupid == DescerJuizLS)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2975, -19923);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D}Vocк Esta no Campo! {88AA88}/JogarLS");
        }
    }
//-------------Norte---------------------------------------------------------
    
if(pickupid == LSEntradaNor1)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaNor2)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaNor3)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaNor4)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaNor5)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaNor6)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaNor7)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaNor8)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaNor9)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaNor10)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid2952, -19443);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == SaidaELsNor)
    {
        
SetPlayerPos(playerid2905, -19703);
    }
//-------------Sul--------------------------------------------------------
    
if(pickupid == LSEntradaSUL1)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaSUL2)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaSUL3)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaSUL4)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaSUL5)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaSUL6)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaSUL7)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaSUL8)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaSUL9)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == LSEntradaSUL10)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOR_VermelhoEscuro"Nгo Pode Entrar no Estadio de Carro/Moto");
        }
        else
        {
            
SetPlayerPos(playerid3000, -20073);
            
GivePlayerMoney(playerid, -50);
            
SendClientMessage(playerid0x33CCFFAA"{88AA88}[Infor]:{D0C07D} Vocк Comprou um Ingresso Por {88AA88}R$50,00!");
        }
    }
    if(
pickupid == SaidaELsSUL)
    {
        
SetPlayerPos(playerid3021, -20493);
    }
    return 
1;
}
//==============================================================================
public OnPlayerCommandText(playeridcmdtext[])
{
    new 
cmd[256];
    new 
idx;
     
cmd strtok(cmdtextidx);
//===========================ABRIR ESTADIO======================================
//Norte
    
if(strcmp(cmd"/AbrirELsSUL"true) == 0)
    {
        if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOR_VermelhoEscuro"Sу Administradores logados na RCON podem usar este comando!");
        
MoveObject(PortaoSUL1,3007.8999023,-2049.5000000,-105);
        
MoveObject(PortaoSUL2,3003.3994141,-2049.5000000,-105);
        
SendClientMessageToAll0x33CCFFAA"{88AA88}[INFOR]:{D0C07D} A Entrada SUL do Estadio LS Foi Aberta.");
        return 
1;
    }
       if(
strcmp(cmd"/FecharELsSUL"true) == 0)
    {
        if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOR_VermelhoEscuro"Sу Administradores logados na RCON podem usar este comando!");
        
MoveObject(PortaoSUL1,3007.8999023,-2049.5000000,0.400000018);
        
MoveObject(PortaoSUL2,3003.3994141,-2049.5000000,0.400000018);
        
SendClientMessageToAll0x33CCFFAA"{88AA88}[INFOR]:{D0C07D} A Entrada SUL do Estadio LS Foi Fechada.");
        return 
1;
    }
//Sul---------------------------------------------------------------------
    
if(strcmp(cmd"/AbrirELSNorte"true) == 0)
    {
        if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOR_VermelhoEscuro"Sу Administradores logados na RCON podem usar este comando!");
        
MoveObject(PortaoNorte1,2904.1000977,-1956.5000000,-105);
        
MoveObject(PortaoNorte2,2904.1000977,-1951.5000000,-105);
        
SendClientMessageToAll0x33CCFFAA"{88AA88}[INFOR]:{D0C07D} A Entrada Norte do Estadio LS Foi Aberta");
        return 
1;
    }
       if(
strcmp(cmd"/FecharELSNorte"true) == 0)
    {
        if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOR_VermelhoEscuro"Sу Administradores logados na RCON podem usar este comando!");
        
MoveObject(PortaoNorte1,2904.1000977,-1956.5000000,0.500000018);
        
MoveObject(PortaoNorte2,2904.1000977,-1951.5000000,0.500000018);
        
SendClientMessageToAll0x33CCFFAA"{88AA88}[INFOR]:{D0C07D} A Entrada Norte do Estadio LS Foi Fechada.");
        return 
1;
    }
//==================================================
    
if(strcmp(cmd"/rbolaLS"true) == 0)
    {
          
DestroyObject(bolafutebolLS);
          
bolafutebolLS CreateObject(1598,3009.6999512,-1950.1999512,1.9000000,0.0000000,0.0000000,0.0000000); //object(beachball) (1)
        
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 do Estadio LS"pname);
        
SendClientMessageToAll(0xF0FFB8AAstring);
        return 
1;
    }
       if(!
strcmp(cmdtext"/jogarLS"true))
    {
        
SetTimerEx("KeyChanges"1001"i"playerid);
        
playingfootball[playerid]=1;
        return 
1;
    }
    
       if(!
strcmp(cmdtext"/EstadioLS"true))
    {
        
SendClientMessage(playeridCOR_Cinza"{AFAFAF}======================{D0C07D}|| {88AA88}Comandos do Estadio LS {D0C07D}||{AFAFAF}======================");
        
SendClientMessage(playeridCOR_AzulClaro,"{88AA88}/AbrirELsNorte {D0C07D}- Abrir a Entrada Norte, {88AA88}/FeicharELsNorte {D0C07D}- Feichar a Entrada Norte");
        
SendClientMessage(playeridCOR_AzulClaro,"{88AA88}/AbrirELsSUL {D0C07D}- Abrir a Entrada SUL, {88AA88}/FecharELsSUL {D0C07D}- Feichar a Entrada SUL");
        
SendClientMessage(playeridCOR_AzulClaro,"{88AA88}/JogarLS {D0C07D}- Para Consegir Chutar a Bola, {88AA88}/CampoLS {D0C07D}- Ir Para o Campo{88AA88}(Vestiario)!");
        
SendClientMessage(playeridCOR_AzulClaro,"{88AA88}[FS/Mapa] {D0C07D}- Feito Por Lucas Topazio [L.s.T]!");
        return 
1;
    }
    if(!
strcmp(cmdtext"/CampoLS"true))
    {
        
SetTimerEx("KeyChanges"1001"i"playerid);
        
playingfootball[playerid]=1;
        
SetPlayerPos(playerid2952, -201227);
        return 
1;
    }
    
    if(!
strcmp(cmdtext"/SairELS"true))
    {
        
SetPlayerPos(playerid2905, -19703);
        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;

Sistema de Jogar FUTEBOL + Estadio em "LV"
Sistema de Jogar FUTEBOL + Estadio em "SF"
Reply
#2

podia ter usado o outro topico la para postar isto na mesma..

enfim, como eu ja disse no outro seu la vc pode otimizar mais os seus script's

pawn Код:
//==== [Entradas] ========
//Norte
new LSEntradaNor[10];
new SaidaELsNor;

//Sul
new LSEntradaSUL[10];
new SaidaELsSUL;

//Subida/Desida
new SubirJuizLS;
new DescerJuizLS;

new PortaoNorte[2];
new PortaoSUL[2];
Reply
#3

PT, vou posta o de SF dps edito todos os 3 kkk vlw pela dica!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)