Ayuda Tiempo en reversa
#1

Hola como estan a toda la comunidad de Samp Les queria pedir una ayudita Por favor
lo que pasa es que estoy haciendo un server de Mini misiones y en todas las misiones
cada una dura 5 minutos cuando ya se acabe el tiempo seguira la otra misiones
pero quiero que me ayuden con lo siguiente quiero que el tiempo de reversa este en un textdraw
para que asi los otros usuarios puedan ver en que tiempo se acaba la mision miren este es el code de
una de las misiones

Quote:

#include <a_samp>
#pragma tabsize 0


//noov
// Variables
new gTeam[MAX_PLAYERS];
new Text:Textdraw0;
new Text:Textdraw1;
#define COLOR_GREY 0xC0C0C0AA

new Text:textdraw10;
new Text:textdraw11;
new Text:textdraw12;
new Text:textdraw13;
#define COLOR_YELLOW 0xFFFF00AA

new Text:TextGa,Text:TextCp,Scop,Sgangsta;
new Text:Textdraw2, Text:Textdraw3;
new count = 0;
new count1 = 0;
#define MAX_TEAM_MEMBERS 10

//Mission Textdraw
new Text:Mission;
//Objectives Textdraw
new Text:ArmyO;
new Text:TerriostO;
new Timer2;
new Timer8;
new Timer5;
new Timer4;
new Timer10;

// Snow man by Zh3rO
#define V03c
#define COL_ORANGE "{FFAF00}"
#define COL_GREEN "{6EF83C}"
#define COL_RED "{FF4040}"
#define COL_BLUE "{0285FF}"
#define COL_YELLOW "{FFEA02}"
#define COL_EASY "{85D5FF}"
forward LoadTree( );
ChangeColors( );
UpdateTree( );
DestroyTree( );
HideTree( playerid );
ShowTree( playerid );
stock RGBA(R, G, B, A) return ( R * 16777216 ) + ( G * 65536 ) + ( B * 256 ) + A ;

new ArmyKills;
new TerroristKills;


forward ScoreChecker(playerid);
forward ScoreUpdater(playerid);



new
Text:ChristmasTree[23],
RedValue,
BlueValue,
GreenValue,
Phase,
PhaseTimes,
boolTree[ MAX_PLAYERS ]
;

// Army S***
#define TEAM_Army 0
#define Army_BAZOOKA 24
#define Army_PISTOL 31
#define Army_DILDO 34
#define Army_SKIN 287 // Thanks RoamPT for helping me finding a Army skin

// Terrorist S***
#define TEAM_Terrorist 1
#define Terrorist_BAZOOKA 24
#define Terrorist_PISTOL 30
#define Terrorist_DILDO 34
#define Terrorist_SKIN 47

#define COLOR_GREEN 0x33AA33AA

//Color defines
#define blue1 0x2641FEAA
#define blue 0x375FFFFF
#define lightblue 0x33CCFFAA

#define red 0xFF0000AA
#define green 0x33FF33AA
#define yellow 0xFFFF00AA
#define grey 0xC0C0C0AA


#define orange 0xFF9900AA
#define black 0x2C2727AA
#define pink 0xFF66FFAA
#define purple 0xcc55ccff
#define white 0xFFFFFFAA
#define green1 0x33AA33AA
#define brown 0xA52A2AAA
#define gold 0xFFDC00FF
#define lime 0x37FF00FF
#define COLOR_WHITE 0xFFFFFFFF
stock SetArmyTeamSetUp(playerid)
{
SetPlayerTeam( playerid , 0 ) ;
GivePlayerWeapon ( playerid , Army_BAZOOKA , 1000 ) ;
GivePlayerWeapon ( playerid , Army_PISTOL , 1000 ) ;
GivePlayerWeapon ( playerid , Army_DILDO , 1000 ) ;
SetPlayerSkin ( playerid , Army_SKIN ) ;
SetPlayerColor ( playerid , blue ) ;
}
stock SetTerroristTeamSetUp(playerid)
{
SetPlayerTeam ( playerid , 1 ) ;
GivePlayerWeapon ( playerid , Terrorist_BAZOOKA , 1000 ) ;
GivePlayerWeapon ( playerid , Terrorist_PISTOL , 1000 ) ;
GivePlayerWeapon ( playerid , Terrorist_DILDO , 1000 ) ;
SetPlayerSkin ( playerid , Terrorist_SKIN ) ;
SetPlayerColor ( playerid , green ) ;

}


main()
{
print ( "\n---------------------------------- " ) ;
print ( " Christmas Wars\n");
print ( "----------------------------------\n " ) ;
}

forward AnnounceWinner(playerid);
public OnGameModeInit()
{
SetGameModeText ( "Afghanistan" ) ;

SetWorldTime ( 12 ) ;
SetWeather ( 2 ) ;
Timer4 = SetTimer ( " ScoreChecker " , 300 , true ) ;
Timer5 = SetTimer ( " ScoreUpdater " , 300 , true ) ;
UsePlayerPedAnims();
SetTimer("AnnounceWinner",300000,0);
Timer8 = SetTimer("Next",270000,false);

//======TEXTDRAW!

TextCp = TextDrawCreate(75.0000000, 200.0000000,"0");
TextGa = TextDrawCreate(110.0, 225.0,"0");
Textdraw2 = TextDrawCreate(17.0, 200.0,"~g~Soldados:");
Textdraw3 = TextDrawCreate(17.0, 225.0,"~r~Terroristas:");
TextDrawAlignment(TextCp,0);
TextDrawAlignment(TextGa,0);
TextDrawAlignment(Textdraw2,0);
TextDrawAlignment(Textdraw3,0);
TextDrawBackgroundColor(TextCp,0x000000ff);
TextDrawBackgroundColor(TextGa,0x000000ff);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawBackgroundColor(Textdraw3,0x000000ff);
TextDrawFont(TextCp,1);
TextDrawLetterSize(TextCp,0.499999,1.100000);
TextDrawFont(TextGa,1);
TextDrawLetterSize(TextGa,0.499999,1.100000);
TextDrawFont(Textdraw2,3);
TextDrawLetterSize(Textdraw2,0.499999,1.100000);
TextDrawFont(Textdraw3,3);
TextDrawLetterSize(Textdraw3,0.399999,1.100000);
TextDrawColor(TextCp,0xFFFFFFAA);
TextDrawColor(TextGa,0xFFFFFFAA);
TextDrawColor(Textdraw2,0x0000ff99);
TextDrawColor(Textdraw3,0xFF0000FF);
TextDrawSetOutline(TextCp,1);
TextDrawSetOutline(TextGa,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetOutline(Textdraw3,1);
TextDrawSetProportional(TextCp,1);
TextDrawSetProportional(TextGa,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetProportional(Textdraw3,1);
TextDrawSetShadow(TextCp,1);
TextDrawSetShadow(TextGa,1);
TextDrawSetShadow(Textdraw2,1);
TextDrawSetShadow(Textdraw3,1);
Scop=0;
Sgangsta=0;


//Mission name
Mission = TextDrawCreate(207,435,"~w~Mision: Afghanistan");
TextDrawFont(Mission,2);
//Objectives
ArmyO = TextDrawCreate(81.000000, 325.000000, "~w~Elimina a todos los ~r~Terroristas");
TextDrawBackgroundColor(ArmyO, 255);
TextDrawFont(ArmyO, 1);
TextDrawLetterSize(ArmyO, 0.400000, 1.000000);
TextDrawColor(ArmyO, 65535);
TextDrawSetOutline(ArmyO, 0);
TextDrawSetProportional(ArmyO, 1);

TerriostO = TextDrawCreate(128.000000, 344.000000, "~w~Elimina a todos los ~g~Soldados");
TextDrawBackgroundColor(TerriostO, 255);
TextDrawFont(TerriostO, 1);
TextDrawLetterSize(TerriostO, 0.429999, 1.000000);
TextDrawColor(TerriostO, -16776961);
TextDrawSetOutline(TerriostO, 0);
TextDrawSetProportional(TerriostO, 1);
TextDrawSetShadow(TerriostO, 1);


for(new i=0; i<MAX_PLAYERS; i++)
SetTimerEx("AutoBalance",6000,true,"d", i); //600000 = 10minutes.


AddPlayerClass ( 47,2714.9746,618.8488,54.8764,130.3736,0,0,0,0,0,0 ) ; // Terrorist SPAWN
AddPlayerClass ( 287,2854.0493,723.9025,53.9756,140.2235,0,0,0,0,0, 0 ) ; // Army SPAWN


CreateObject(11440, 2812.97338800, 638.79498200, 52.44635300, 0.0, 0.0, 495.0);
CreateObject(12950, 2790.83691400, 661.77630600, 54.57166200, 0.0, 0.0, 315.0);
CreateObject(16183, 2805.07836900, 780.85766600, 52.97165600, 0.0, 0.0, 0.0);
CreateObject(16183, 2804.67797800, 726.85766600, 52.95166000, 0.0, 0.0, 0.0);
CreateObject(16183, 2804.27758700, 672.85766600, 52.92166100, 0.0, 0.0, 0.0);
CreateObject(16183, 2803.77758700, 618.85766600, 52.89165400, 0.0, 0.0, 0.0);
CreateObject(16205, 2945.15039000, 704.86486800, 53.97165600, 0.0, 0.0, 180.0);
CreateObject(16205, 2755.05029200, 519.96484300, 53.97165600, 0.0, 0.0, 451.0);
CreateObject(2455, 2791.32348600, 659.22821000, 52.95166000, 0.0, 0.0, -225.0);
CreateObject(2129, 2790.50927700, 658.40942300, 52.95166000, 0.0, 0.0, 45.0);
CreateObject(2455, 2792.62377900, 657.92828300, 52.95166000, 0.0, 0.0, -225.0);
CreateObject(2455, 2791.97363200, 658.57824700, 52.95166000, 0.0, 0.0, -225.0);
CreateObject(2455, 2793.27368100, 657.27825900, 52.95166000, 0.0, 0.0, -225.0);
CreateObject(2455, 2793.92358300, 656.62823400, 52.95166000, 0.0, 0.0, -225.0);
CreateObject(2455, 2794.57348600, 655.97821000, 52.95166000, 0.0, 0.0, -225.0);
CreateObject(16205, 2950.05029200, 624.86486800, 54.97165200, 0.0, 0.0, 180.0);
CreateObject(2454, 2796.54492100, 653.79949900, 52.93965900, 0.0, 0.0, -315.0);
CreateObject(2455, 2795.89086900, 653.14605700, 52.95166000, 0.0, 0.0, 45.0);
CreateObject(865, 2740.78613200, 702.55731200, 53.50261300, 0.0, 0.0, 0.0);
CreateObject(2416, 2793.79467700, 653.80590800, 52.95242600, 0.0, 0.0, 135.0);
CreateObject(2415, 2790.45019500, 657.22137400, 52.95166000, 0.0, 0.0, 135.0);
CreateObject(2455, 2795.22338800, 655.32818600, 52.95166000, 0.0, 0.0, -225.0);
CreateObject(2637, 2803.88964800, 654.05114700, 53.35243200, 0.0, 0.0, 45.0);
CreateObject(2455, 2795.87329100, 654.67816100, 52.95166000, 0.0, 0.0, -225.0);
CreateObject(2149, 2791.02270500, 656.06573400, 54.05242900, 0.0, 0.0, 135.0);
CreateObject(2638, 2802.53564400, 655.52093500, 53.55165400, 0.0, 0.0, 225.0);
CreateObject(2419, 2791.81909100, 655.78082200, 52.95242600, 0.0, 0.0, 135.0);
CreateObject(2638, 2799.96557600, 658.09094200, 53.56165600, 0.0, 0.0, 225.0);
CreateObject(2637, 2801.21948200, 656.72125200, 53.35243200, 0.0, 0.0, 45.0);
CreateObject(2256, 2800.47875900, 649.94250400, 54.65242700, 0.0, 0.0, 225.0);
CreateObject(2637, 2798.56958000, 659.37127600, 53.35243200, 0.0, 0.0, 45.0);
CreateObject(2639, 2797.60766600, 660.44702100, 53.47165600, 0.0, 0.0, 225.0);
CreateObject(16205, 2811.05029200, 519.96484300, 53.97165600, 0.0, 0.0, 451.0);
CreateObject(16205, 2910.05029200, 516.26477000, 55.97165200, 0.0, 0.0, 451.0);
CreateObject(16205, 2648.05029200, 559.96484300, 53.97165600, 0.0, 0.0, 721.0);
CreateObject(16205, 2649.05029200, 629.96484300, 53.97165600, 0.0, 0.0, 721.0);
CreateObject(16205, 2650.05029200, 709.96484300, 53.97165600, 0.0, 0.0, 711.0);
CreateObject(16205, 2680.05029200, 829.96484300, 53.97165200, 0.0, 0.0, 1341.0);
CreateObject(16205, 2890.05029200, 790.96484300, 53.97165200, 0.0, 0.0, 1296.0);
CreateObject(16205, 2800.05029200, 829.96484300, 53.97165200, 0.0, 0.0, 1341.0);
CreateObject(16205, 2720.05029200, 835.96484300, 53.97165200, 0.0, 0.0, 1341.0);
CreateObject(11440, 2787.27368100, 695.09515300, 52.44635300, 0.0, 0.0, 45.0);
CreateObject(12957, 2783.13354400, 691.33044400, 53.57165900, 0.0, 0.0, 25.0);
CreateObject(11444, 2768.49023400, 709.92504800, 52.97165600, 0.0, 0.0, 855.0);
CreateObject(652, 2774.67041000, 707.79986500, 52.97165600, 0.0, 0.0, 0.0);
CreateObject(11457, 2761.46337800, 730.24603200, 52.48065100, 0.0, 0.0, 315.0);
CreateObject(12957, 2783.13354400, 691.33044400, 53.57165900, 0.0, 0.0, 25.0);
CreateObject(11444, 2783.49023400, 724.92504800, 52.97165600, 0.0, 0.0, 855.0);
CreateObject(11444, 2801.49023400, 709.92504800, 52.97165600, 0.0, 0.0, 1305.0);
CreateObject(11444, 2798.25097600, 706.63476500, 52.97165600, 0.0, 0.0, 1305.0);
CreateObject(11440, 2810.27368100, 723.09515300, 52.44635300, 0.0, 0.0, 315.0);
CreateObject(11440, 2806.97338800, 739.39508000, 52.44635300, 0.0, 0.0, 495.0);
CreateObject(11444, 2828.21118100, 736.38085900, 52.97947300, 0.0, 0.0, 45.0);
CreateObject(11444, 2819.21118100, 745.38085900, 52.97947300, 0.0, 0.0, 45.0);
CreateObject(11444, 2759.34912100, 750.59539700, 52.95130500, 0.0, 0.0, 45.0);
CreateObject(11433, 2734.50097600, 750.40911800, 54.91958600, 0.0, 0.0, 45.0);
CreateObject(11440, 2780.43530200, 755.21771200, 52.47946500, 0.0, 0.0, 225.0);
CreateObject(11440, 2859.62182600, 677.79119800, 52.45166000, 0.0, 0.0, 45.0);
CreateObject(11440, 2877.62182600, 683.79119800, 52.45166000, 0.0, 0.0, 495.0);
CreateObject(11444, 2864.19458000, 697.58001700, 52.85166100, 0.0, 0.0, 315.0);
CreateObject(11444, 2869.19458000, 692.58001700, 52.85166100, 0.0, 0.0, 315.0);
CreateObject(11440, 2850.87548800, 599.05432100, 52.44979800, 0.0, 0.0, 45.0);
CreateObject(865, 2882.85302700, 647.67797800, 52.96010500, 0.0, 0.0, 0.0);
CreateObject(865, 2883.50439400, 660.57965000, 53.17932800, 0.0, 0.0, 0.0);
CreateObject(865, 2876.76806600, 655.96746800, 52.95062200, 0.0, 0.0, 0.0);
CreateObject(652, 2883.23608300, 655.01342700, 52.13833200, 0.0, 0.0, 0.0);
CreateObject(11440, 2716.94091700, 680.22906400, 52.45166000, 0.0, 0.0, 45.0);
CreateObject(11444, 2811.21118100, 751.38085900, 52.97947300, 0.0, 0.0, 135.0);
CreateObject(16183, 2805.07836900, 780.85766600, 52.97165200, 0.0, 0.0, 0.0);
CreateObject(16183, 2804.67797800, 726.85766600, 52.95166000, 0.0, 0.0, 0.0);
CreateObject(16183, 2804.27758700, 672.85766600, 52.92166100, 0.0, 0.0, 0.0);
CreateObject(16183, 2803.77758700, 618.85766600, 52.89165400, 0.0, 0.0, 0.0);
CreateObject(16205, 2945.15039000, 704.86486800, 53.97165200, 0.0, 0.0, 180.0);
CreateObject(16205, 2755.05029200, 519.96484300, 53.97165200, 0.0, 0.0, 451.0);
CreateObject(16205, 2950.05029200, 624.86486800, 54.97165200, 0.0, 0.0, 180.0);
CreateObject(16205, 2811.05029200, 519.96484300, 53.97165200, 0.0, 0.0, 451.0);
CreateObject(16205, 2910.05029200, 516.26477000, 55.97165200, 0.0, 0.0, 451.0);
CreateObject(16205, 2648.05029200, 559.96484300, 53.97165200, 0.0, 0.0, 721.0);
CreateObject(16205, 2649.05029200, 629.96484300, 53.97165200, 0.0, 0.0, 721.0);
CreateObject(16205, 2650.05029200, 709.96484300, 53.97165200, 0.0, 0.0, 711.0);
CreateObject(16205, 2680.05029200, 829.96484300, 53.97165200, 0.0, 0.0, 1341.0);
CreateObject(16205, 2890.05029200, 790.96484300, 53.97165200, 0.0, 0.0, 1296.0);
CreateObject(16205, 2800.05029200, 829.96484300, 53.97165200, 0.0, 0.0, 1341.0);
CreateObject(16205, 2720.05029200, 835.96484300, 53.97165200, 0.0, 0.0, 1341.0);
CreateObject(11440, 2787.27368100, 695.09515300, 52.44635300, 0.0, 0.0, 45.0);
CreateObject(12957, 2783.13354400, 691.33044400, 53.57165900, 0.0, 0.0, 25.0);
CreateObject(11444, 2768.49023400, 709.92504800, 52.97165200, 0.0, 0.0, 855.0);
CreateObject(652, 2774.67041000, 707.79986500, 52.97165200, 0.0, 0.0, 0.0);
CreateObject(11457, 2761.46337800, 730.24603200, 52.48065100, 0.0, 0.0, 315.0);
CreateObject(12957, 2783.13354400, 691.33044400, 53.57165900, 0.0, 0.0, 25.0);
CreateObject(11444, 2783.49023400, 724.92504800, 52.97165200, 0.0, 0.0, 855.0);
CreateObject(11444, 2801.49023400, 709.92504800, 52.97165200, 0.0, 0.0, 1305.0);
CreateObject(11444, 2798.25097600, 706.63476500, 52.97165200, 0.0, 0.0, 1305.0);
CreateObject(11440, 2810.27368100, 723.09515300, 52.44635300, 0.0, 0.0, 315.0);
CreateObject(11440, 2806.97338800, 739.39508000, 52.44635300, 0.0, 0.0, 495.0);
CreateObject(11444, 2828.21118100, 736.38085900, 52.97947300, 0.0, 0.0, 45.0);
CreateObject(12843, 2795.01196200, 658.08679100, 52.95166000, 0.0, 0.0, 135.0);
CreateObject(12844, 2797.11108300, 655.97656200, 54.92166100, 0.0, 0.0, 135.0);
CreateObject(11440, 2830.97338800, 713.39508000, 52.44635300, 0.0, 0.0, 495.0);
CreateObject(1305, 2773.34204100, 769.68072500, 52.97165600, 0.0, 0.0, 0.0);
CreateObject(652, 2827.09204100, 681.75653000, 51.98309700, 0.0, 0.0, 0.0);
CreateObject(652, 2817.87670800, 682.25921600, 52.60937500, 0.0, 0.0, 0.0);
CreateObject(652, 2807.04882800, 687.34802200, 52.76060800, 0.0, 0.0, 0.0);
CreateObject(652, 2795.70434500, 681.49902300, 51.95709600, 0.0, 0.0, 0.0);
CreateObject(652, 2804.82348600, 679.17504800, 52.12999300, 0.0, 0.0, 0.0);
CreateObject(652, 2812.30590800, 668.81860300, 51.98659800, 0.0, 0.0, 0.0);
CreateObject(652, 2813.85229400, 696.68530200, 52.15110300, 0.0, 0.0, 0.0);
CreateObject(2753, 2795.57250900, 655.02502400, 54.19863500, 0.0, 0.0, 135.0);
CreateObject(11440, 2839.97338800, 667.79498200, 52.44635300, 0.0, 0.0, 495.0);
CreateObject(2753, 2792.57250900, 658.02502400, 54.19863500, 0.0, 0.0, 135.0);
CreateObject(3644, 2864.99462800, 627.58435000, 55.38677900, 0.0, 0.0, 315.0);
CreateObject(2645, 2793.67211900, 662.12402300, 54.35165700, 0.0, 0.0, 45.0);
CreateObject(2682, 2798.70825100, 659.65576100, 53.95175900, 0.0, 0.0, 0.0);
CreateObject(2682, 2800.70825100, 656.35577300, 53.95175900, 0.0, 0.0, 180.0);
CreateObject(2646, 2792.80151300, 661.29046600, 54.35166100, 0.0, 0.0, 45.0);
CreateObject(11444, 2787.75048800, 666.13476500, 52.97165600, 0.0, 0.0, 1395.0);
CreateObject(11444, 2782.75048800, 671.13476500, 52.97165600, 0.0, 0.0, 1395.0);
CreateObject(11440, 2770.97338800, 655.59503100, 52.44635300, 0.0, 0.0, 945.0);
CreateObject(10831, 2729.00146400, 600.67413300, 57.70510800, 0.0, 0.0, 135.0);
CreateObject(1411, 2749.34082000, 611.73529000, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2745.64086900, 615.43530200, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2741.94116200, 619.13537500, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(11444, 2777.95068300, 661.73510700, 52.69165800, 0.0, 0.0, 1485.0);
CreateObject(1411, 2738.24145500, 622.83544900, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2734.54174800, 626.53552200, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(652, 2788.76074200, 641.30853200, 51.95166000, 0.0, 0.0, 0.0);
CreateObject(1411, 2730.84204100, 630.23559500, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2727.14233300, 633.93566800, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(652, 2799.60717700, 625.05908200, 51.92166100, 0.0, 0.0, 0.0);
CreateObject(1411, 2723.44238200, 637.63568100, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2719.74243100, 641.33569300, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2716.04248000, 645.03570500, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2712.34252900, 648.73571700, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2708.64257800, 652.43572900, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(3644, 2784.95141600, 600.37988200, 55.43309400, 0.0, 0.0, 225.0);
CreateObject(1411, 2704.94262600, 656.13574200, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(3594, 2792.79663000, 717.10028000, 53.37165800, 0.0, 0.0, 30.0);
CreateObject(1411, 2703.44287100, 660.73577800, 54.13188900, 0.0, 0.0, 265.0);
CreateObject(2453, 2791.32348600, 659.10070800, 54.34243000, 0.0, 0.0, 45.0);
CreateObject(864, 2793.66650300, 646.96276800, 52.55166600, 0.0, 0.0, 0.0);
CreateObject(1411, 2753.04077100, 608.03527800, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(865, 2846.77783200, 758.19305400, 52.77947200, 0.0, 0.0, 40.0);
CreateObject(1411, 2764.14062500, 596.93524100, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2767.84057600, 593.23522900, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2771.54052700, 589.53521700, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2775.24047800, 585.83520500, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2778.94042900, 582.13519200, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(1411, 2782.64038000, 578.43518000, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(864, 2786.63720700, 644.09234600, 52.55166200, 0.0, 0.0, 0.0);
CreateObject(864, 2797.41772400, 627.62609800, 52.52499700, 0.0, 0.0, 0.0);
CreateObject(864, 2816.02514600, 679.00598100, 53.24594100, 0.0, 0.0, 0.0);
CreateObject(864, 2810.74926700, 692.75482100, 53.15884700, 0.0, 0.0, 0.0);
CreateObject(864, 2802.86596600, 683.43292200, 52.74193500, 0.0, 0.0, 0.0);
CreateObject(864, 2806.69091700, 673.94738700, 52.60963800, 0.0, 0.0, 0.0);
CreateObject(864, 2810.83959900, 681.85461400, 53.29870600, 0.0, 0.0, 0.0);
CreateObject(864, 2823.59252900, 688.34338300, 52.63450600, 0.0, 0.0, 0.0);
CreateObject(864, 2825.02490200, 677.06146200, 52.57154000, 0.0, 0.0, 0.0);
CreateObject(1411, 2786.34033200, 574.73516800, 54.13188900, 0.0, 0.0, 315.0);
CreateObject(864, 2811.21337800, 663.72509700, 52.55318400, 0.0, 0.0, 0.0);
CreateObject(1411, 2790.44067300, 571.79479900, 54.13188900, 0.0, 0.0, 335.0);
CreateObject(864, 2789.96459900, 715.92779500, 52.57165900, 0.0, 0.0, 0.0);
CreateObject(968, 2761.45483300, 599.59161300, 53.62166500, 0.0, 15.0, 135.0);
CreateObject(865, 2817.98095700, 739.87432800, 53.32057500, 0.0, 0.0, 0.0);
CreateObject(966, 2761.45336900, 599.59735100, 52.92166100, 0.0, 0.0, -45.0);
CreateObject(865, 2813.97900300, 688.24835200, 53.44382000, 0.0, 0.0, 0.0);
CreateObject(865, 2800.57495100, 679.14575100, 52.75166300, 0.0, 0.0, 0.0);
CreateObject(865, 2819.46801700, 675.09393300, 52.96518700, 0.0, 0.0, 0.0);
CreateObject(865, 2812.75512600, 679.38824400, 53.36545100, 0.0, 0.0, 0.0);
CreateObject(865, 2813.04296800, 665.91247500, 52.76364100, 0.0, 0.0, 0.0);
CreateObject(865, 2787.46313400, 720.31250000, 52.77165600, 0.0, 0.0, 0.0);
CreateObject(865, 2784.34252900, 641.24102700, 52.75166300, 0.0, 0.0, 0.0);
CreateObject(865, 2791.73486300, 651.50836100, 52.75166300, 0.0, 0.0, 0.0);
CreateObject(11440, 2762.97338800, 622.59503100, 52.44635300, 0.0, 0.0, 1035.0);
CreateObject(865, 2842.44873000, 591.38769500, 52.99128700, 0.0, 0.0, 0.0);
CreateObject(11457, 2759.41284100, 638.89495800, 52.44635300, 0.0, 0.0, 1755.0);
CreateObject(865, 2846.55322200, 653.15997300, 53.32958900, 0.0, 0.0, 0.0);
CreateObject(11444, 2741.55664000, 628.40869100, 52.82066700, 0.0, 0.0, 135.0);
CreateObject(865, 2822.94409100, 653.89477500, 52.86015700, 0.0, 0.0, 0.0);
CreateObject(865, 2866.17041000, 668.51715000, 52.85166100, 0.0, 0.0, 0.0);
CreateObject(11444, 2756.55664000, 613.40869100, 52.82066700, 0.0, 0.0, 225.0);
CreateObject(865, 2836.07202100, 700.85589500, 53.06813800, 0.0, 0.0, 0.0);
CreateObject(11444, 2748.55664000, 621.40869100, 52.82066700, 0.0, 0.0, 225.0);
CreateObject(12957, 2709.07299800, 671.37628100, 53.45166700, 0.0, 0.0, 90508.0);
CreateObject(865, 2713.10522400, 673.64361500, 52.85166100, 0.0, 0.0, 0.0);
CreateObject(865, 2708.57617100, 696.62133700, 52.85166100, 0.0, 0.0, 0.0);
CreateObject(18234, 2713.96606400, 623.96081500, 52.82166200, 0.0, 0.0, 135.0);
CreateObject(865, 2731.72973600, 701.18151800, 53.22451700, 0.0, 0.0, 0.0);
CreateObject(3644, 2757.95532200, 681.32312000, 55.61631000, 0.0, 0.0, -405.0);
CreateObject(865, 2724.11572200, 704.32818600, 52.82978800, 0.0, 0.0, 0.0);
CreateObject(11440, 2744.27368100, 707.09515300, 52.44635300, 0.0, 0.0, 45.0);
CreateObject(865, 2716.23657200, 708.28460600, 52.77499000, 0.0, 0.0, 0.0);
CreateObject(865, 2723.92358300, 714.84252900, 53.16947100, 0.0, 0.0, 0.0);
CreateObject(652, 2731.81469700, 692.81323200, 51.98783100, 0.0, 0.0, 0.0);
CreateObject(652, 2721.56396400, 711.21185300, 52.08125300, 0.0, 0.0, 0.0);
CreateObject(652, 2731.65283200, 725.96075400, 52.12599100, 0.0, 0.0, 0.0);
CreateObject(11444, 2710.74194300, 725.02252100, 52.87633800, 0.0, 0.0, 135.0);
CreateObject(12957, 2705.79614200, 719.05303900, 53.57165500, 0.0, 0.0, -20.0);
CreateObject(652, 2703.96606400, 715.06060700, 51.97165600, 0.0, 0.0, 0.0);
CreateObject(865, 2706.17529200, 721.22882000, 52.77165600, 0.0, 0.0, 0.0);
CreateObject(3279, 2757.27783200, 590.04449400, 53.01220700, 0.0, 0.0, 675.0);
CreateObject(11436, 2855.63452100, 727.90753100, 52.84145700, 0.0, 0.0, 225.0);
CreateObject(3887, 2872.53222600, 590.95849600, 60.79167100, 0.0, 0.0, 315.0);
CreateObject(11444, 2770.12500000, 762.82366900, 52.77947200, 0.0, 0.0, 135.0);
CreateObject(11444, 2800.12500000, 757.82366900, 52.77947200, 0.0, 0.0, 495.0);
CreateObject(11444, 2786.12500000, 765.82366900, 52.77947200, 0.0, 0.0, 765.0);
CreateObject(11444, 2888.62182600, 694.79119800, 52.45166000, 0.0, 0.0, 585.0);
CreateObject(11444, 2875.62182600, 709.79119800, 52.45166000, 0.0, 0.0, 675.0);
CreateObject(11444, 2719.74194300, 736.52252100, 52.87633800, 0.0, 0.0, 405.0);
CreateObject(11440, 2833.77368100, 755.09515300, 52.44635300, 0.0, 0.0, 585.0);
CreateObject(11444, 2822.21118100, 764.38085900, 52.97947300, 0.0, 0.0, 315.0);
CreateObject(11440, 2851.97338800, 710.39508000, 52.44635300, 0.0, 0.0, 495.0);
CreateObject(11444, 2839.19458000, 692.58001700, 52.85166100, 0.0, 0.0, 495.0);
CreateObject(11444, 2835.66601500, 584.42199700, 52.49480000, 0.0, 0.0, 45.0);
CreateObject(11444, 2825.66601500, 597.42199700, 52.79479500, 0.0, 0.0, 135.0);
CreateObject(11444, 2828.66601500, 609.42199700, 52.79479500, 0.0, 0.0, 135.0);
CreateObject(11444, 2838.66601500, 616.42199700, 52.79479500, 0.0, 0.0, 225.0);
CreateObject(3271, 2733.82373000, 658.61834700, 53.58201200, -2.0, 0.0, 6.0);
CreateObject(11441, 2749.69311500, 655.08966000, 53.25597300, 0.0, 0.0, 315.0);
CreateObject(11442, 2715.46142500, 655.27111800, 52.89888700, 0.0, 0.0, 225.0);
CreateObject(11443, 2742.18554600, 656.15722600, 53.85850900, 0.0, 0.0, 225.0);
CreateObject(11440, 2814.87548800, 579.05432100, 52.44979800, 0.0, 0.0, 45.0);
CreateObject(3279, 2709.27783200, 638.04449400, 53.01220700, 0.0, 0.0, 675.0);
CreateObject(11444, 2826.66601500, 575.42199700, 52.79479500, 0.0, 0.0, 45.0);
CreateObject(11444, 2798.66601500, 576.42199700, 52.79479500, 0.0, 0.0, 45.0);
CreateObject(11440, 2832.97338800, 648.79498200, 52.44635300, 0.0, 0.0, 585.0);
CreateObject(11444, 2854.51074200, 655.78869600, 52.96088400, 0.0, 0.0, 225.0);
CreateObject(11444, 2741.34912100, 734.59539700, 52.95130500, 0.0, 0.0, 45.0);
CreateObject(11436, 2818.93066400, 618.14050200, 52.88425000, 0.0, 0.0, -45.0);
CreateObject(11444, 2820.50341700, 631.79907200, 52.81610100, 0.0, 0.0, 135.0);
CreateObject(12957, 2823.63208000, 656.17840500, 53.55007100, 3.0, 0.0, 288.0);
CreateObject(652, 2827.32641600, 652.77709900, 51.95696600, 0.0, 0.0, 0.0);
CreateObject(652, 2838.52124000, 597.80249000, 52.45552800, 0.0, 0.0, 0.0);
CreateObject(652, 2805.38574200, 569.99420100, 52.08781000, 0.0, 0.0, 0.0);
CreateObject(652, 2891.04125900, 591.41516100, 52.23813600, 0.0, 0.0, 0.0);
CreateObject(652, 2883.28930600, 704.45068300, 51.97758400, 0.0, 0.0, 0.0);
CreateObject(652, 2827.61572200, 762.88586400, 51.97165600, 0.0, 0.0, 0.0);
CreateObject(652, 2723.56665000, 763.92230200, 52.48421000, 0.0, 0.0, 0.0);
CreateObject(652, 2769.17065400, 741.54406700, 52.15418200, 0.0, 0.0, 0.0);
CreateObject(652, 2750.01611300, 734.58581500, 52.12576600, 0.0, 0.0, 0.0);
CreateObject(652, 2708.97167900, 677.26422100, 51.95166000, 0.0, 0.0, 0.0);
CreateObject(652, 2796.39746000, 768.11395200, 51.97946900, 0.0, 0.0, 0.0);
CreateObject(652, 2842.27734300, 719.09863200, 52.24139400, 0.0, 0.0, 0.0);
CreateObject(865, 2766.10864200, 739.05279500, 53.34673300, 0.0, 0.0, 0.0);
CreateObject(865, 2751.11499000, 741.69329800, 53.31208000, 0.0, 0.0, 0.0);
CreateObject(865, 2719.85644500, 760.46685700, 52.87165800, 0.0, 0.0, 0.0);
CreateObject(865, 2731.25463800, 758.86065600, 52.87165800, 0.0, 0.0, 0.0);
CreateObject(865, 2749.49243100, 762.54290700, 52.87165800, 0.0, 0.0, 0.0);
CreateObject(865, 2776.40429600, 771.13366600, 52.87165800, 0.0, 0.0, 0.0);
CreateObject(865, 2807.48437500, 769.96972600, 52.87947000, 0.0, 0.0, 0.0);
CreateObject(865, 2838.51269500, 722.68103000, 53.27966600, 0.0, 0.0, 0.0);
CreateObject(865, 2884.54589800, 701.60443100, 52.88711500, 0.0, 0.0, 0.0);
CreateObject(865, 2776.40429600, 771.13366600, 52.87165800, 0.0, 0.0, 0.0);
CreateObject(865, 2807.48437500, 769.96972600, 52.87947000, 0.0, 0.0, 0.0);
CreateObject(1305, 2774.34204100, 771.68072500, 52.97165600, 0.0, 0.0, 0.0);
CreateObject(1305, 2775.34204100, 772.68072500, 53.97165600, 0.0, 0.0, 0.0);
CreateObject(16500, 2800.26025300, 660.77447500, 60.25634700, 0.0, 360.0, 495.0);
CreateObject(16500, 2800.16015600, 660.87445000, 60.25634700, 0.0, 360.0, 675.0);
Textdraw0 = TextDrawCreate(496.000000, 122.000000, "~g~Soldados: ~w~0");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.490000, 2.300000);
TextDrawColor(Textdraw0, blue);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);

Textdraw1 = TextDrawCreate(489.000000, 150.000000, "~r~Terroristas: ~w~0");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.490000, 2.300000);
TextDrawColor(Textdraw1, red);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);



return 1;
}

public OnGameModeExit()
{
DestroyTree( );
TextDrawHideForAll ( Textdraw0 ) ;
TextDrawDestroy ( Textdraw0 ) ;
TextDrawHideForAll ( Textdraw1 ) ;
TextDrawDestroy ( Textdraw1 ) ;
TextDrawHideForAll ( Textdraw3 ) ;
TextDrawDestroy ( Textdraw3 ) ;
TextDrawDestroy(Mission);
TextDrawDestroy(ArmyO);
TextDrawDestroy(TerriostO);
return 1;
}



public ScoreChecker(playerid)
{
if ( TerroristKills >= 35 ) {
if(gTeam[playerid] == TEAM_Terrorist)
{
GivePlayerMoney(playerid,1000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
TerroristKills = 0 ;
ArmyKills = 0 ;
GameTextForAll ( " ~r~The Army has terminated the Terrorists" , 6000 , 5 ) ;
}
}

if ( ArmyKills >= 35 ) {
if(gTeam[playerid] == TEAM_Army)
{
GivePlayerMoney(playerid,1000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
TerroristKills = 0 ;
ArmyKills = 0 ;
GameTextForAll ( " ~r~The Army has terminated the Terrorists" , 6000 , 5 ) ;
}
}
return 1;
}


public ScoreUpdater(playerid)
{
new string[ 100 ] ;
format ( string , sizeof ( string ) , " ~g~Soldados: ~w~%s " , ArmyKills ) ;
TextDrawSetString ( Textdraw0 , string ) ;
new string2 [ 100 ] ;
format ( string2 , sizeof ( string2 ) , " ~r~Terroristas: ~w~%s " , TerroristKills ) ;
TextDrawSetString ( Textdraw1 , string2 ) ;
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage ( killerid , playerid , reason ) ;
SetPlayerScore ( killerid , GetPlayerScore( killerid ) +1 ) ;
SetPlayerColor(playerid, COLOR_GREY);
if (gTeam[playerid]==TEAM_Army)
{
Sgangsta++;
}
if(gTeam[playerid]==TEAM_Terrorist)
{
Scop++;
}
new string1[5], string[5];
valstr(string, Scop);
TextDrawSetString(TextCp, string);
valstr(string1, Sgangsta);
TextDrawSetString(TextGa, string1);

if(Scop==0)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (gTeam[playerid]==TEAM_Army)
{
}
if(gTeam[playerid]==TEAM_Terrorist)
{
GivePlayerMoney(playerid,1000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
TerroristKills = 0 ;
ArmyKills = 0 ;
GameTextForAll ( " ~r~The Terrorists have terminated the Army" , 6000 , 5 ) ;
SendClientMessageToAll(COLOR_GREEN, "The Terrorists have terminated the Army");
SetTimer("Finsh",6000,false);
}
new string2[5];
valstr(string2, Scop);
TextDrawSetString(TextCp, string2);
valstr(string2, Sgangsta);
TextDrawSetString(TextGa, string2);
}
}

if(Sgangsta==0)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (gTeam[playerid]==TEAM_Army)
{
GivePlayerMoney(playerid,1000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
TerroristKills = 0 ;
ArmyKills = 0 ;
GameTextForAll ( " ~r~The Army has terminated the Terrorists" , 6000 , 5 ) ;
SendClientMessageToAll(COLOR_GREEN, "The Terrorists have terminated the Army");
SetTimer("Finsh",6000,false);
}
if(gTeam[playerid]==TEAM_Terrorist)
{
}
new string2[5];
valstr(string2, Scop);
TextDrawSetString(TextCp, string2);
valstr(string2, Sgangsta);
TextDrawSetString(TextGa, string2);
}
}
return 1;
}


public OnPlayerRequestSpawn(playerid)
{
new team1count, team2count;
for(new i, m = GetMaxPlayers(); i < m; i++)
{
if (IsPlayerConnected(i))
{
if (gTeam[i] == TEAM_Army) team1count++;
else if (gTeam[i] == TEAM_Terrorist) team2count++;
}
}
if (gTeam[playerid] == TEAM_Army)
{
if (team1count > (team2count+1)){
SendClientMessage(playerid, COLOR_YELLOW, "This team is full, please choose the other one.");
return 0;
}

}
else if (gTeam[playerid] == TEAM_Terrorist)
{
if ((team1count+1) < team2count){
SendClientMessage(playerid, COLOR_YELLOW, "This team is full, please choose the other one.");
return 0;
}
}
return 1;
}
forward balanced(playerid);
public balanced(playerid)
{
TextDrawHideForPlayer(playerid, textdraw12);
return 1;
}




public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,-227.15220642,2662.48730469,62.26383972);
SetPlayerCameraPos(playerid, -216.19187927,2663.92211914,62.25078964);
SetPlayerCameraLookAt(playerid, -227.15220642,2662.48730469,62.26383972);

if ( classid == 1 )
{
GameTextForPlayer(playerid,"~g~Soldados",1000,5);
gTeam[playerid] = TEAM_Army;

}
if ( classid == 0 )
{
GameTextForPlayer(playerid,"~r~Terroristas",1000,5 );
gTeam[playerid] = TEAM_Terrorist;
}


return 1;
}


public AnnounceWinner(playerid)
{
if(Sgangsta > Scop)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (gTeam[i] == TEAM_Terrorist)
{
GameTextForPlayer(i, "~y~Mision Completada", 6000, 4);
GivePlayerMoney(i, 3000);
SetPlayerScore(i,GetPlayerScore(i)+3);
SetPlayerCameraPos(i, 2729.3452,627.7751,53.9227);
PlayerPlaySound(playerid, 1185, 0, 0, 0);
SetPlayerCameraLookAt(i, 2761.2925,658.2138,53.9517);
}
if (gTeam[i] == TEAM_Army)
{
GameTextForPlayer(i, "~r~Mision Fallecida", 6000, 4);
SetPlayerCameraPos(i, 2729.3452,627.7751,53.9227);
PlayerPlaySound(playerid, 1185, 0, 0, 0);
SetPlayerCameraLookAt(i, 2761.2925,658.2138,53.9517);
}

}
}
}
if(Scop > Sgangsta)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (gTeam[playerid] == TEAM_Army)
{
GameTextForPlayer(i, "~g~ Mission Completada", 6000, 4);
GivePlayerMoney(i, 3000);
SetPlayerScore(i,GetPlayerScore(i)+3);
SetPlayerCameraPos(i, 2729.3452,627.7751,53.9227);
PlayerPlaySound(playerid, 1185, 0, 0, 0);
SetPlayerCameraLookAt(i, 2761.2925,658.2138,53.9517);
}
if (gTeam[playerid] == TEAM_Terrorist)
{
GameTextForPlayer(i, "~r~ Mission Fallecida", 6000, 4);
SetPlayerCameraPos(i, 2729.3452,627.7751,53.9227);
PlayerPlaySound(playerid, 1185, 0, 0, 0);
SetPlayerCameraLookAt(i, 2761.2925,658.2138,53.9517);
}

}
}
}
if(Scop == Sgangsta)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GameTextForAll("~y~ DRAW",3000,5);
SetPlayerCameraPos(i, 2729.3452,627.7751,53.9227);
PlayerPlaySound(playerid, 1185, 0, 0, 0);
SetPlayerCameraLookAt(i, 2761.2925,658.2138,53.9517);
}
}
}
SetTimer("Finsh",8000,0);
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForAll(TextCp); TextDrawShowForAll(TextGa); TextDrawShowForAll(Textdraw2); TextDrawShowForAll(Textdraw3);
PlayerPlaySound(playerid, 1186, 0, 0, 0);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Mission);
return 1;
}


forward Next(playerid);
public Next(playerid)
{
SendClientMessageToAll(COLOR_YELLOW, "Siguiente mision will be Parkour!");
return 1;
}

forward Finsh(playerid);
public Finsh(playerid)
{
PlayerPlaySound(playerid, 1130, 0.0, 0.0, 10.0);
GameTextForPlayer(playerid,"~y~Cargando Mision...",6000,0);
SendRconCommand("changemode BMX");
return 1;
}

public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_Army)
{
SetArmyTeamSetUp(playerid);
TextDrawShowForPlayer(playerid,ArmyO);
TogglePlayerControllable(playerid,0);
TogglePlayerControllable(playerid,1);
}
if(gTeam[playerid] == TEAM_Terrorist)
{
SetTerroristTeamSetUp(playerid);
TextDrawShowForPlayer(playerid,TerriostO);
TogglePlayerControllable(playerid,0);
TogglePlayerControllable(playerid,1);
}
TextDrawShowForAll(TextCp); TextDrawShowForAll(TextGa); TextDrawShowForAll(Textdraw2); TextDrawShowForAll(Textdraw3);
return 1;
}



public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/awin", cmdtext, true, 10) == 0)
{
ArmyKills += 35 ;
SendClientMessage(playerid, red, "You let the army win!");
return 1;
}
return 0;
}


public
UpdateTree( )
{
TextDrawColor( Text:ChristmasTree[ 10 ], RGBA ( RedValue , GreenValue , BlueValue , 255 ) );
TextDrawColor( Text:ChristmasTree[ 11 ], RGBA ( RedValue , GreenValue , BlueValue , 255 ) );
TextDrawBackgroundColor( Text:ChristmasTree[ 10 ], RGBA ( RedValue , GreenValue , BlueValue , 255 ) );
TextDrawBackgroundColor( Text:ChristmasTree[ 11 ], RGBA ( RedValue , GreenValue , BlueValue , 255 ) );
TextDrawSetOutline( ChristmasTree[ 10 ], 1);
TextDrawSetOutline( ChristmasTree[ 11 ], 1);
}
public
ChangeColors( )
{
for ( new playerid = 0; playerid < MAX_PLAYERS; playerid++ )
{
if ( IsPlayerConnected( playerid ) )
{
if ( pTree[ playerid ] == false ) return 0;
}
}
if ( Phase == 0 )
{
RedValue += 5;
UpdateTree( );
if ( RedValue == 255 )Phase = 1;

}
else if ( Phase == 1 )
{
RedValue -= 5;
BlueValue += 5;

if ( BlueValue == 255 )Phase = 2;

}
else if ( Phase == 2 )
{
GreenValue += 5;
BlueValue -= 5;
if ( GreenValue == 255 )Phase = 3;
}
else if ( Phase == 3 )
{
RedValue += 5;
GreenValue -= 5;
if ( RedValue == 255 )Phase = 4;
}
else if ( Phase == 4 )
{
PhaseTimes += 1;
if ( PhaseTimes == 1 )
{
TextDrawBackgroundColor(ChristmasTree[ 16 ], -65281);
TextDrawColor(ChristmasTree[ 16 ], -36561153);
}
if ( PhaseTimes == 2 )
{
TextDrawBackgroundColor(ChristmasTree[ 16 ], -36561153);
TextDrawColor(ChristmasTree[ 16 ], -65281);
}
if ( PhaseTimes == 3 )
{
TextDrawBackgroundColor(ChristmasTree[ 16 ], -65281);
TextDrawColor(ChristmasTree[ 16 ], -36561153);
}
if ( PhaseTimes == 4 )
{
TextDrawBackgroundColor(ChristmasTree[ 16 ], -36561153);
TextDrawColor(ChristmasTree[ 16 ], -65281);
}
if ( PhaseTimes == 5 )
{
TextDrawBackgroundColor(ChristmasTree[ 16 ], -65281);
TextDrawColor(ChristmasTree[ 16 ], -36561153);
}
if ( PhaseTimes == 6 )
{
TextDrawBackgroundColor(ChristmasTree[ 16 ], -36561153);
TextDrawColor(ChristmasTree[ 16 ], -65281);
}
if ( PhaseTimes == 7 )
{
TextDrawBackgroundColor(ChristmasTree[ 16 ], -65281);
TextDrawColor(ChristmasTree[ 16 ], -36561153);
}
if ( PhaseTimes == 8 )
{
TextDrawBackgroundColor(ChristmasTree[ 16 ], -36561153);
TextDrawColor(ChristmasTree[ 16 ], -65281);
}
if ( PhaseTimes == 9 )
{
TextDrawBackgroundColor(ChristmasTree[ 16 ], -65281);
TextDrawColor(ChristmasTree[ 16 ], -36561153);
Phase = 1;
PhaseTimes = 0;
}
}
return 1;
}
public
DestroyTree( )
{
for ( new i = 0; i < 22; i ++ ) TextDrawHideForAll( Text:ChristmasTree[ i ] ),
TextDrawDestroy( Text:ChristmasTree[ i ] );
}



public
ShowTree( playerid )
{
}

forward AutoBalance(playerid);
public AutoBalance(playerid)
{
//Use 'if' statement to see how many people on team, something like this
if(gTeam[playerid] > MAX_TEAM_MEMBERS)
{
SetPlayerTeam(playerid,2); // Something like this should work.
}
return 1;
}

public
HideTree( playerid )
{
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 0 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 1 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 2 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 3 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 4 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 5 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 6 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 7 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 8 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 9 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 10 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 11 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 12 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 13 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 14 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 15 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 16 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 17 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 18 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 19 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 20 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 21 ] );
TextDrawHideForPlayer(playerid, Text:ChristmasTree[ 22 ] );
}

El Tiempo de la mision es en donde dice esto: Timer8 = SetTimer("Next",270000,false); (es por el comienzo del code)
Ayudenme por favor gracias de antemano
Reply


Messages In This Thread
Ayuda Tiempo en reversa - by leon44 - 10.10.2014, 16:55
Respuesta: Ayuda Tiempo en reversa - by Toolkit - 10.10.2014, 17:33
Respuesta: Ayuda Tiempo en reversa - by leon44 - 10.10.2014, 17:45
Respuesta: Ayuda Tiempo en reversa - by OTACON - 10.10.2014, 19:11
Respuesta: Ayuda Tiempo en reversa - by leon44 - 10.10.2014, 20:45
Respuesta: Ayuda Tiempo en reversa - by [J]ulian - 10.10.2014, 21:11
Respuesta: Ayuda Tiempo en reversa - by leon44 - 10.10.2014, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)