SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 24/12/2010, 09:46 PM   #1
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,169
Reputation: 345
Default Christmas Wars [0.3C Only]


>This is a gamemode made for christmas by kitten
>This gamemode features fallen snow from the air
>Custom Objects from SA-MP 0.3c
>Elf VS Santa
>What happens if santa wins? Christmas is going to be safe what happens if Elfs win? Christmas Will be terminated
> Limit for kills is 20 untill it announce which team wins
>This gamemode only can run in 0.3c no earlier versions of SA-MP
>Its a custom made map in the air
> Has houses
>Very good spawn points
> Santa Skin has a special feature has a santa hat also included in SA-MP new objects
> Elf Get a regular Hat special feature.
>This is a fun mode with around 6 to 10 players
>Over 200 Objects
> 2 Classes
> Santa
> Elf
> Text Draw Counter example on the pictures below will show Elf Kills: Blah Santa Kills: Blah

Video:
[ame]http://www.youtube.com/watch?v=_bH4rnaPuZk[/ame]

Pictures:












Credits:

SA-MP For Having a great release with there new objects
Me for scripting and making maps
X-Mas Tree by Zh3rO

Download

NEW: http://solidfiles.com/d/cfd7/ NEW download includes all server files
http://pastebin.com/ndLgYZ8X

or

pawn Code:
#include <a_samp>
#pragma tabsize 0

// Variables
new gTeam[MAX_PLAYERS];
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw3;
new SantaKills;
new ElfKills;
// x-mas Tree 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 ;
//forwards
forward ScoreChecker(playerid);
forward ScoreUpdater(playerid);



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

// Santa S***
#define TEAM_SANTA 0
#define SANTA_BAZOOKA 35
#define SANTA_PISTOL 22
#define SANTA_DILDO 10
#define SANTA_SKIN 264 // Thanks RoamPT for helping me finding a santa skin :D

// Elf S***
#define TEAM_ELF 1
#define ELF_BAZOOKA 36
#define ELF_PISTOL 22
#define ELF_DILDO 10
#define ELF_SKIN 209

//Color defines
#define blue 0x375FFFFF
#define red 0xFF0000AA
#define green 0x33FF33AA
#define yellow 0xFFFF00AA
#define grey 0xC0C0C0AA
#define blue1 0x2641FEAA
#define lightblue 0x33CCFFAA
#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


stock SetSantaTeamSetUp(playerid)
{
    SetPlayerTeam( playerid , 0 ) ;
    GivePlayerWeapon ( playerid , SANTA_BAZOOKA , 1 ) ;
    GivePlayerWeapon ( playerid , SANTA_PISTOL , 100 ) ;
    GivePlayerWeapon ( playerid , SANTA_DILDO , 1 ) ;
    SetPlayerSkillLevel ( playerid , WEAPONSKILL_PISTOL , 1 ) ;
    SendClientMessage ( playerid , gold , " Kill ELFS to have a sucessfull Christmas. " ) ;
    SetPlayerAttachedObject ( playerid , 1 , 19065 , 15 , -0.025 , -0.04 , 0.23 , 0 , 0 , 270 , 2 , 2 , 2 ) ;
    SetPlayerSkin ( playerid , SANTA_SKIN ) ;
    SetPlayerColor ( playerid , red ) ;
}
stock SetElfTeamSetUp(playerid)
{
    SetPlayerTeam ( playerid , 1 ) ;
    GivePlayerWeapon ( playerid , ELF_BAZOOKA , 1 ) ;
    GivePlayerWeapon ( playerid , ELF_PISTOL , 100 ) ;
    GivePlayerWeapon ( playerid , ELF_DILDO , 1 ) ;
    SetPlayerSkillLevel ( playerid , WEAPONSKILL_PISTOL , 1 ) ;
    SendClientMessage ( playerid , gold , " Kill Santa to Stop Christmas. " ) ;
    SetPlayerAttachedObject ( playerid , 1 , 19067 , 15 , -0.025 , -0.04 , 0.23 , 0 , 0 , 270 , 2 , 2 , 2 ) ;
    SetPlayerSkin ( playerid , ELF_SKIN ) ;
    SetPlayerColor ( playerid , green ) ;
   
}


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


public OnGameModeInit()
{
    SetGameModeText ( " Christmas Wars  " ) ;
    AddPlayerClass ( 209,418.8819,2517.1404,69.9747,89.0319,0,0,0,0,0,0 ) ; // ELF SPAWN
    AddPlayerClass ( 264,-17.1829,2565.3298,71.1247,267.3206,0,0,0,0,0,0 ) ; // Santa SPAWN
    SetWorldTime ( 20 ) ;
    SetWeather ( 32 ) ;
    SetTimer(  "ChangeColors" , 300, true   );
    LoadTree(  );
    SetTimer ( " ScoreChecker " , 1000 , true ) ;
    SetTimer ( " ScoreUpdater " , 1000 , true ) ;

    CreateObject(18749,311.01214599609, 2495.560546875, 15.57421875, 0, 0, 0);
    CreateObject(18750,487.09216308594, 2492.041015625, 104.09466552734, 87.171813964844, 314.98159790039, 314.98342895508);
    CreateObject(18769,469.49401855469, 2487.3259277344, 86.114105224609, 0, 0, 0);
    CreateObject(18783,343.37878417969, 2532.3442382813, 65.072692871094, 0, 0, 0);
    CreateObject(18783,343.12557983398, 2513.0251464844, 65.064880371094, 0, 0, 0);
    CreateObject(18783,324.69174194336, 2513.1306152344, 65.130378723145, 0, 0, 0);
    CreateObject(18783,324.64215087891, 2532.08984375, 65.022605895996, 0, 0, 0);
    CreateObject(18785,307.30422973633, 2531.7880859375, 69.913597106934, 0, 0, 270);
    CreateObject(18785,307.06155395508, 2513.3720703125, 69.880378723145, 0, 0, 270);
    CreateObject(18809,376.55938720703, 2518.1071777344, 72.404884338379, 0.069793701171875, 268.00122070313, 358.00122070313);
    CreateObject(18783,411.15838623047, 2517.8984375, 66.47469329834, 0, 0, 0);
    CreateObject(18846,476.18045043945, 2494.4274902344, 91.711120605469, 0, 358, 304);
    CreateObject(18846,473.14404296875, 2480.2958984375, 92.013046264648, 1.9940185546875, 357.98950195313, 234.06372070313);
    CreateObject(18848,405.42544555664, 2524.998046875, 68.849403381348, 0, 0, 82);
    CreateObject(18848,404.98919677734, 2509.4113769531, 68.849403381348, 0, 0, 81.996459960938);
    CreateObject(18904,412.32781982422, 2516.8212890625, 69.95703125, 0, 0, 0);
    CreateObject(18905,411.31262207031, 2526.4172363281, 69.438705444336, 0, 0, 270);
    CreateObject(18864,403.74752807617, 2517.1296386719, 70.216117858887, 0, 0, 0);
    CreateObject(18862,334.40841674805, 2525.5666503906, 68.578483581543, 0, 0, 0);
    CreateObject(18863,415.42712402344, 2520.4067382813, 69.673027038574, 0, 0, 0);
    CreateObject(18863,413.1891784668, 2522.0576171875, 69.673027038574, 0, 0, 0);
    CreateObject(18863,341.82168579102, 2525.3278808594, 68.521026611328, 0, 0, 0);
    CreateObject(18754,173.0078125, 2543.94921875, 71.609283447266, 0, 0, 0);
    CreateObject(18809,23.059593200684, 2562.8981933594, 75.448173522949, 0.06591796875, 268.00048828125, 358.00048828125);
    CreateObject(18783,-11.676980018616, 2566.716796875, 67.624717712402, 0, 0, 0);
    CreateObject(18768,411.20269775391, 2518.1057128906, 68.97469329834, 0, 0, 0);
    CreateObject(18768,-11.415197372437, 2566.5632324219, 69.624717712402, 0, 0, 0);
    CreateObject(18774,349.15002441406, 2518.2607421875, 70.111755371094, 0, 0, 90);
    CreateObject(18849,341.54727172852, 2534.6140136719, 74.794410705566, 0, 0, 0);
    CreateObject(18649,418.78485107422, 2521.2041015625, 68.99813079834, 0, 0, 0);
    CreateObject(18654,418.62640380859, 2531.74609375, 69.63875579834, 0, 0, 34);
    CreateObject(18685,528.36682128906, 2478.2995605469, 72.035629272461, 0, 0, 0);
    CreateObject(18723,340.54739379883, 2507.8115234375, 67.614883422852, 0, 0, 0);
    CreateObject(18771,348.56072998047, 2532.4047851563, 67.572692871094, 0, 0, 0);
    CreateObject(8392,253.5272064209, 2451.6970214844, 101.13553619385, 0, 0, 40);
    CreateObject(8421,82.12003326416, 2458.9577636719, 98.921585083008, 0, 0, 0);
    CreateObject(3310,146.85453796387, 2509.8559570313, 74.942001342773, 0, 0, 270);
    CreateObject(3310,171.30952453613, 2509.71875, 74.942947387695, 0, 0, 270);
    CreateObject(3313,196.22094726563, 2511.1843261719, 75.497611999512, 0, 0, 180);
    CreateObject(3316,221.22059631348, 2500.3474121094, 75.569564819336, 0, 0, 179.99450683594);
    CreateObject(3316,146.07458496094, 2552.1865234375, 75.913581848145, 0, 0, 0);
    CreateObject(3351,170.17602539063, 2552.7141113281, 76.011054992676, 0, 0, 0);
    CreateObject(3351,194.36846923828, 2552.4777832031, 75.775466918945, 0, 0, 0);
    CreateObject(3353,223.64431762695, 2552.5642089844, 73.509201049805, 0, 0, 0);
    CreateObject(3457,218.18730163574, 2610.4641113281, 75.142860412598, 0, 0, 0);
    CreateObject(3457,160.46183776855, 2611.9350585938, 74.775329589844, 0, 0, 0);
    CreateObject(3486,247.25343322754, 2550.8205566406, 79.321212768555, 0, 0, 0);
    CreateObject(3487,243.53741455078, 2500.6030273438, 78.849792480469, 0, 0, 179.99450683594);
    CreateObject(3313,122.52496337891, 2509.1455078125, 75.527893066406, 0, 0, 179.99450683594);
    CreateObject(3313,121.83437347412, 2545.7221679688, 75.223495483398, 0, 0, 1.9945068359375);
    CreateObject(3580,104.5154800415, 2515.435546875, 77.216659545898, 0, 0, 0);
    CreateObject(3599,95.942802429199, 2539.6806640625, 76.403800964355, 0, 0, 4);
    CreateObject(3605,164.85241699219, 2437.6791992188, 78.850936889648, 0, 0, 180);
    CreateObject(3762,195.61074829102, 2447.6242675781, 77.986328125, 0, 0, 270);
    CreateObject(18483,228.2078704834, 2527.6826171875, 72.53010559082, 0, 0, 0);
    CreateObject(18483,158.93492126465, 2527.5524902344, 72.45735168457, 0, 0, 0);
    CreateObject(18483,94.655265808105, 2527.6901855469, 72.244644165039, 0, 0, 0);
    CreateObject(18483,154.56002807617, 2589.1655273438, 72.499176025391, 0, 0, 0);
    CreateObject(18483,223.31336975098, 2589.0693359375, 72.527236938477, 0, 0, 0);
    CreateObject(8875,251.42808532715, 2591.7634277344, 78.489929199219, 0, 0, 0);
    CreateObject(8875,251.50415039063, 2587.0979003906, 78.487007141113, 0, 0, 0);
    CreateObject(7017,257.85220336914, 2604.0322265625, 72.39395904541, 0, 0, 92);
    CreateObject(7017,257.79058837891, 2597.1411132813, 76.523429870605, 0, 0, 91.99951171875);
    CreateObject(7017,258.74624633789, 2569.7749023438, 73.705108642578, 0, 0, 91.99951171875);
    CreateObject(7017,221.14056396484, 2597.5095214844, 72.461463928223, 0, 0, 179.99951171875);
    CreateObject(7017,156.6028137207, 2597.5625, 72.538604736328, 0, 0, 179.99450683594);
    CreateObject(7017,221.91368103027, 2578.8503417969, 73.363052368164, 0, 0, 359.99450683594);
    CreateObject(7017,156.78601074219, 2579.421875, 73.272613525391, 0, 0, 359.98901367188);
    CreateObject(17016,131.87072753906, 2607.5983886719, 129.96032714844, 0, 0, 0);
    CreateObject(3707,83.854057312012, 2652.0119628906, 79.699111938477, 0, 0, 270);
    CreateObject(3707,153.83399963379, 2650.1286621094, 81.476211547852, 0, 0, 270);
    CreateObject(3707,221.63766479492, 2649.7846679688, 81.194679260254, 0, 0, 270);
    CreateObject(3707,276.61465454102, 2604.3112792969, 80.496505737305, 0, 0, 180);
    CreateObject(3707,273.08990478516, 2636.6403808594, 81.914138793945, 0, 356, 189.99450683594);
    CreateObject(3707,172.39567565918, 2405.0661621094, 80.126220703125, 0, 0, 269.99450683594);
    CreateObject(3707,105.40854644775, 2405.61328125, 80.211875915527, 0, 0, 269.98901367188);
    CreateObject(3707,66.833671569824, 2521.1149902344, 79.63158416748, 0, 0, 179.98901367188);
    CreateObject(3707,65.388175964355, 2601.9753417969, 79.736434936523, 0, 0, 179.98352050781);
    CreateObject(3707,66.519577026367, 2462.6335449219, 79.226142883301, 0, 0, 179.98352050781);
    CreateObject(3707,279.4453125, 2485.8369140625, 79.784942626953, 0, 0, 179.98352050781);
    CreateObject(8065,332.99682617188, 2472.6997070313, 69.792922973633, 0, 350, 180);
    CreateObject(8065,333.95523071289, 2473.2446289063, 75.549705505371, 0, 349.99694824219, 179.99450683594);
    CreateObject(8065,333.9875793457, 2473.5461425781, 81.972068786621, 0, 349.99694824219, 179.99450683594);
    CreateObject(8065,327.26779174805, 2572.5009765625, 71.650848388672, 0, 349.99694824219, 359.99450683594);
    CreateObject(8065,331.10534667969, 2572.4758300781, 79.444473266602, 0, 349.99145507813, 359.98901367188);
    CreateObject(8065,330.70379638672, 2572.1584472656, 82.857055664063, 0, 349.99145507813, 359.98901367188);
    CreateObject(8065,329.73516845703, 2571.9558105469, 89.03441619873, 0, 349.99145507813, 359.98901367188);
    CreateObject(3707,277.08142089844, 2573.8696289063, 80.411918640137, 0, 0, 179.99450683594);
    CreateObject(18783,404.74499511719, 2536.3205566406, 77.63094329834, 82, 0, 0);
    CreateObject(18783,420.53497314453, 2536.4704589844, 78.255393981934, 81.996459960938, 0, 0);
    CreateObject(18783,429.50927734375, 2523.3005371094, 78.63094329834, 81.058349609375, 333.33316040039, 296.38684082031);
    CreateObject(18783,428.98861694336, 2506.5930175781, 79.198699951172, 81.05712890625, 333.33068847656, 296.38366699219);
    CreateObject(18783,416.15295410156, 2498.8405761719, 77.028968811035, 81.996459960938, 0, 180);
    CreateObject(18783,398.02233886719, 2499.251953125, 77.617416381836, 81.996459960938, 0, 179.99450683594);
    CreateObject(18783,392.90441894531, 2501.5749511719, 75.63094329834, 81.996459960938, 0, 89.994506835938);
    CreateObject(18783,393.86947631836, 2533.0935058594, 77.88094329834, 81.996459960938, 0, 91.994506835938);
    CreateObject(8065,313.31463623047, 2573.8237304688, 70.926109313965, 0, 0, 0);
    CreateObject(8065,333.22250366211, 2473.7316894531, 72.85311126709, 0, 0, 180);
    CreateObject(8069,373.53518676758, 2541.6962890625, 73.509010314941, 0, 274, 88);
    CreateObject(8069,368.43597412109, 2501.3449707031, 83.242286682129, 0, 273.99899291992, 267.99499511719);
    CreateObject(18783,-4.6907806396484, 2583.8356933594, 79.530967712402, 90, 180, 180);
    CreateObject(18783,-20.384706497192, 2583.4504394531, 79.030967712402, 90, 180.00549316406, 179.98352050781);
    CreateObject(18783,-29.518285751343, 2572.5302734375, 79.030967712402, 90, 180.00549316406, 269.98352050781);
    CreateObject(18783,-28.898513793945, 2557.623046875, 79.030967712402, 90, 180.00549316406, 269.97802734375);
    CreateObject(18783,-16.42749786377, 2548.9819335938, 72.780967712402, 90, 179.99450683594, 359.98901367188);
    CreateObject(18783,0.86355829238892, 2549.0346679688, 72.780967712402, 90, 180.00549316406, 359.97805786133);
    CreateObject(8069,32.206413269043, 2547.3420410156, 78.766815185547, 0, 273.99353027344, 267.99499511719);
    CreateObject(8069,26.632135391235, 2583.3601074219, 78.15210723877, 0, 273.9990234375, 87.994995117188);
    CreateObject(18783,4.8344521522522, 2547.9108886719, 71.523719787598, 90, 179.99450683594, 89.983520507813);
    CreateObject(18783,3.9368193149567, 2579.041015625, 75.563568115234, 90, 179.99450683594, 89.983520507813);
    CreateObject(18864,336.08627319336, 2517.7136230469, 67.564880371094, 0, 0, 0);
    CreateObject(18864,284.19750976563, 2543.2834472656, 72.552543640137, 0, 0, 0);
    CreateObject(18864,225.91804504395, 2528.8979492188, 72.39729309082, 0, 0, 0);
    CreateObject(18864,248.0796661377, 2432.7854003906, 48.110363006592, 0, 0, 0);
    CreateObject(18864,217.03875732422, 2442.7492675781, 37.005859375, 0, 0, 0);
    CreateObject(18864,184.95291137695, 2525.8122558594, 72.327430725098, 0, 0, 0);
    CreateObject(18864,215.31451416016, 2533.7822265625, 72.580825805664, 0, 0, 0);
    CreateObject(18864,242.15286254883, 2579.1477050781, 73.086212158203, 0, 0, 0);
    CreateObject(18864,178.82556152344, 2588.4328613281, 72.370109558105, 0, 0, 0);
    CreateObject(18864,135.95965576172, 2633.9865722656, 23.92733001709, 0, 0, 0);
    CreateObject(18864,143.3899230957, 2587.8625488281, 72.366363525391, 0, 0, 0);
    CreateObject(18864,93.456558227539, 2643.8190917969, 71.839736938477, 0, 0, 0);
    CreateObject(18864,107.53851318359, 2628.9130859375, 16.930610656738, 0, 0, 0);
    CreateObject(18864,136.50469970703, 2523.3310546875, 72.32453918457, 0, 0, 0);
    CreateObject(18864,121.90687561035, 2526.1362304688, 72.109519958496, 0, 0, 0);
    CreateObject(18864,17.165550231934, 2587.8059082031, 51.874008178711, 0, 0, 0);
    CreateObject(18864,28.804229736328, 2556.2785644531, 20.085178375244, 0, 0, 0);
    CreateObject(18864,-9.5836944580078, 2562.7722167969, 21.546920776367, 0, 0, 0);
    CreateObject(18864,31.483818054199, 2547.0187988281, 66.262504577637, 0, 0, 0);
    CreateObject(18864,1.5067615509033, 2567.3356933594, 78.671401977539, 0, 0, 0);
    CreateObject(18864,1.6427364349365, 2567.3591308594, 78.652366638184, 0, 0, 0);
    CreateObject(18864,21.913721084595, 2562.6313476563, 80.825439453125, 0, 0, 0);
    CreateObject(18864,145.31311035156, 2417.6882324219, 43.172679901123, 0, 0, 0);
    CreateObject(18864,197.64753723145, 2443.9946289063, 82.607490539551, 0, 0, 0);
    CreateObject(18864,102.95338439941, 2394.44140625, 33.447898864746, 0, 0, 0);
    CreateObject(18864,51.783721923828, 2458.6645507813, 40.811679840088, 0, 0, 0);
    CreateObject(18754,226.33792114258, 2534.2109375, 53.218597412109, 0, 0, 0);
    CreateObject(18754,173.23799133301, 2505.5100097656, 70.323593139648, 0, 0, 0);
   
    Textdraw0 = TextDrawCreate(496.000000, 122.000000, "~r~Santa Kills~w~: 0");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.490000, 2.300000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);

    Textdraw1 = TextDrawCreate(489.000000, 150.000000, "~g~ Elf Kills~w~: 0");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.580000, 2.200000);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetShadow(Textdraw1, 1);

    Textdraw3 = TextDrawCreate(499.000000, 4.000000, "MERRY CHRISTMAS");
    TextDrawBackgroundColor(Textdraw3, 255);
    TextDrawFont(Textdraw3, 1);
    TextDrawLetterSize(Textdraw3, 0.440000, 1.000000);
    TextDrawColor(Textdraw3, 842795570);
    TextDrawSetOutline(Textdraw3, 0);
    TextDrawSetProportional(Textdraw3, 1);
    TextDrawSetShadow(Textdraw3, 1);

    return 1;
}

public OnGameModeExit()
{
    DestroyTree(  );
    TextDrawHideForAll ( Textdraw0 ) ;
    TextDrawDestroy ( Textdraw0 ) ;
    TextDrawHideForAll ( Textdraw1 ) ;
    TextDrawDestroy ( Textdraw1 ) ;
    TextDrawHideForAll ( Textdraw3 ) ;
    TextDrawDestroy ( Textdraw3 ) ;
    return 1;
}
public ScoreChecker(playerid)
{
    if ( ElfKills >= 20 ) {
        SantaKills = 0 ;
        ElfKills = 0 ;
        GameTextForAll ( " ~g~Elfs has won Christmas has been terminated " , 6000 , 5) ;
        SetPlayerHealth(playerid, 0);
        }

    if ( SantaKills >= 20 ) {
        ElfKills = 0 ;
        SantaKills = 0 ;
        GameTextForAll ( " ~r~Santa has won Christmas is safe now " , 6000 , 5 ) ;
        SetPlayerHealth ( playerid , 0 ) ;
        }

    return 1;
}
public ScoreUpdater(playerid)
{
    new string[ 100 ] ;
    format ( string , sizeof ( string ) , " ~r~Santa Kills~w~: %s " , SantaKills ) ;
    TextDrawSetString ( Textdraw0 , string ) ;
    new string2 [ 100 ] ;
    format ( string2 , sizeof ( string2 ) , " ~g~Elf Kills~w~: %s " , ElfKills ) ;
    TextDrawSetString ( Textdraw1 , string2 ) ;
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage ( killerid , playerid , reason ) ;
    SetPlayerScore ( killerid , GetPlayerScore( killerid ) +1 ) ;

    if ( killerid == TEAM_SANTA )
    {
        SantaKills += 1 ;
    }
    if ( killerid == TEAM_ELF )
    {
        ElfKills += 1 ;
    }
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos ( playerid, 476.4256,2487.6355,87.7782 ) ;
    SetPlayerCameraPos ( playerid, 460.7386,2488.2778,87.7782 ) ;
    SetPlayerCameraLookAt ( playerid, 476.4256,2487.6355,87.7782 );
    SetPlayerFacingAngle ( playerid , 80.8913 ) ;
   
    if ( classid == 1 )
    {
        GameTextForPlayer ( playerid , " ~r~ SANTA " , 6000 , 4 ) ;
        gTeam[playerid] = TEAM_SANTA;
    }
    if ( classid == 0 )
    {
        GameTextForPlayer ( playerid , " ~g~ ELF " , 6000 , 4 ) ;
        gTeam[playerid] = TEAM_ELF;
    }
   
   
    return 1;
}

public OnPlayerConnect(playerid)
{
    pTree[ playerid ] = true ;
    ShowTree(   playerid   );
    TextDrawShowForPlayer ( playerid , Textdraw0 ) ;
    TextDrawShowForPlayer ( playerid , Textdraw1 ) ;
    TextDrawShowForPlayer ( playerid , Textdraw3 ) ;
    return 1;
}

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

public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == TEAM_SANTA)
    {
        SetSantaTeamSetUp(playerid);
    }
    if(gTeam[playerid] == TEAM_ELF)
    {
        SetElfTeamSetUp(playerid);
    }

    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("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        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( );
                TextDrawShowForAll(Text:ChristmasTree[ 10 ] );
                TextDrawShowForAll(Text:ChristmasTree[ 11 ] );
                if ( RedValue == 255 )Phase = 1;

        }
        else if ( Phase == 1 )
        {
                RedValue -= 5;
            BlueValue += 5;
                UpdateTree( );
                TextDrawShowForAll(Text:ChristmasTree[ 10 ] );
                TextDrawShowForAll(Text:ChristmasTree[ 11 ] );
                if ( BlueValue == 255  )Phase = 2;

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

public LoadTree(  )
{

        ChristmasTree[ 0 ] = TextDrawCreate(585.000000, 403.000000, "~n~");
        TextDrawBackgroundColor(ChristmasTree[ 0 ], 255);
        TextDrawFont(ChristmasTree[ 0 ], 1);
        TextDrawLetterSize(ChristmasTree[ 0 ], 0.500000, 4.799999);
        TextDrawColor(ChristmasTree[ 0 ], -1);
        TextDrawSetOutline(ChristmasTree[ 0 ], 0);
        TextDrawSetProportional(ChristmasTree[ 0 ], 1);
        TextDrawSetShadow(ChristmasTree[ 0 ], 1);
        TextDrawUseBox(ChristmasTree[ 0 ], 1);
        TextDrawBoxColor(ChristmasTree[ 0 ], -1975123713);
        TextDrawTextSize(ChristmasTree[ 0 ], 564.000000, 20.000000);

        ChristmasTree[ 1 ] = TextDrawCreate(542.000000, 404.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 1 ], 255);
        TextDrawFont(ChristmasTree[ 1 ], 1);
        TextDrawLetterSize(ChristmasTree[ 1 ], 2.499999, 3.199999);
        TextDrawColor(ChristmasTree[ 1 ], 934019327);
        TextDrawSetOutline(ChristmasTree[ 1 ], 0);
        TextDrawSetProportional(ChristmasTree[ 1 ], 1);
        TextDrawSetShadow(ChristmasTree[ 1 ], 0);

        ChristmasTree[ 2 ] = TextDrawCreate(607.000000, 404.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 2 ], 255);
        TextDrawFont(ChristmasTree[ 2 ], 1);
        TextDrawLetterSize(ChristmasTree[ 2 ], -2.499999, 3.199999);
        TextDrawColor(ChristmasTree[ 2 ], 934019327);
        TextDrawSetOutline(ChristmasTree[ 2 ], 0);
        TextDrawSetProportional(ChristmasTree[ 2 ], 1);
        TextDrawSetShadow(ChristmasTree[ 2 ], 0);

        ChristmasTree[ 3 ] = TextDrawCreate(599.000000, 391.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 3 ], 255);
        TextDrawFont(ChristmasTree[ 3 ], 1);
        TextDrawLetterSize(ChristmasTree[ 3 ], -1.789999, 3.199999);
        TextDrawColor(ChristmasTree[ 3 ], 934019327);
        TextDrawSetOutline(ChristmasTree[ 3 ], 0);
        TextDrawSetProportional(ChristmasTree[ 3 ], 1);
        TextDrawSetShadow(ChristmasTree[ 3 ], 0);

        ChristmasTree[ 4 ] = TextDrawCreate(549.000000, 391.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 4 ], 255);
        TextDrawFont(ChristmasTree[ 4 ], 1);
        TextDrawLetterSize(ChristmasTree[ 4 ], 1.799999, 3.199999);
        TextDrawColor(ChristmasTree[ 4 ], 934019327);
        TextDrawSetOutline(ChristmasTree[ 4 ], 0);
        TextDrawSetProportional(ChristmasTree[ 4 ], 1);
        TextDrawSetShadow(ChristmasTree[ 4 ], 0);

        ChristmasTree[ 5 ] = TextDrawCreate(596.000000, 379.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 5 ], 255);
        TextDrawFont(ChristmasTree[ 5 ], 1);
        TextDrawLetterSize(ChristmasTree[ 5 ], -1.679998, 3.199999);
        TextDrawColor(ChristmasTree[ 5 ], 934019327);
        TextDrawSetOutline(ChristmasTree[ 5 ], 0);
        TextDrawSetProportional(ChristmasTree[ 5 ], 1);
        TextDrawSetShadow(ChristmasTree[ 5 ], 0);

        ChristmasTree[ 6 ] = TextDrawCreate(553.000000, 379.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 6 ], 255);
        TextDrawFont(ChristmasTree[ 6 ], 1);
        TextDrawLetterSize(ChristmasTree[ 6 ], 1.500000, 3.199999);
        TextDrawColor(ChristmasTree[ 6 ], 934019327);
        TextDrawSetOutline(ChristmasTree[ 6 ], 0);
        TextDrawSetProportional(ChristmasTree[ 6 ], 1);
        TextDrawSetShadow(ChristmasTree[ 6 ], 0);

        ChristmasTree[ 7 ] = TextDrawCreate(594.000000, 363.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 7 ], 255);
        TextDrawFont(ChristmasTree[ 7 ], 0);
        TextDrawLetterSize(ChristmasTree[ 7 ], -1.359998, 4.199998);
        TextDrawColor(ChristmasTree[ 7 ], 934019327);
        TextDrawSetOutline(ChristmasTree[ 7 ], 0);
        TextDrawSetProportional(ChristmasTree[ 7 ], 1);
        TextDrawSetShadow(ChristmasTree[ 7 ], 0);

        ChristmasTree[ 8 ] = TextDrawCreate(554.000000, 361.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 8 ], 255);
        TextDrawFont(ChristmasTree[ 8 ], 0);
        TextDrawLetterSize(ChristmasTree[ 8 ], 1.500000, 4.499999);
        TextDrawColor(ChristmasTree[ 8 ], 934019327);
        TextDrawSetOutline(ChristmasTree[ 8 ], 0);
        TextDrawSetProportional(ChristmasTree[ 8 ], 1);
        TextDrawSetShadow(ChristmasTree[ 8 ], 0);

        ChristmasTree[ 9 ] = TextDrawCreate(585.000000, 382.000000, "~n~");
        TextDrawBackgroundColor(ChristmasTree[ 9 ], 255);
        TextDrawFont(ChristmasTree[ 9 ], 1);
        TextDrawLetterSize(ChristmasTree[ 9 ], 0.509998, 4.299999);
        TextDrawColor(ChristmasTree[ 9 ], -1);
        TextDrawSetOutline(ChristmasTree[ 9 ], 0);
        TextDrawSetProportional(ChristmasTree[ 9 ], 1);
        TextDrawSetShadow(ChristmasTree[ 9 ], 1);
        TextDrawUseBox(ChristmasTree[ 9 ], 1);
        TextDrawBoxColor(ChristmasTree[ 9 ], 934019327);
        TextDrawTextSize(ChristmasTree[ 9 ], 564.000000, 20.000000);

        ChristmasTree[ 10 ] = TextDrawCreate(549.000000, 420.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 10 ], 65535);
        TextDrawFont(ChristmasTree[ 10 ], 0);
        TextDrawLetterSize(ChristmasTree[ 10 ], 3.109998, -1.700000);
        TextDrawColor(ChristmasTree[ 10 ], 65535);
        TextDrawSetOutline(ChristmasTree[ 10 ], 1);
        TextDrawSetProportional(ChristmasTree[ 10 ], 1);

        ChristmasTree[ 11 ] = TextDrawCreate(555.000000, 400.000000, "/");
        TextDrawBackgroundColor(ChristmasTree[ 11 ], 65535);
        TextDrawFont(ChristmasTree[ 11 ], 0);
        TextDrawLetterSize(ChristmasTree[ 11 ], 2.589998, -1.700000);
        TextDrawColor(ChristmasTree[ 11 ], 65535);
        TextDrawSetOutline(ChristmasTree[ 11 ], 1);
        TextDrawSetProportional(ChristmasTree[ 11 ], 1);

        ChristmasTree[ 12 ] = TextDrawCreate(554.000000, 435.000000, "~w~~h~T~n~  ~p~~h~T~n~~n~ ~r~~h~T   ~b~~h~T");
        TextDrawBackgroundColor(ChristmasTree[ 12 ], -65281);
        TextDrawFont(ChristmasTree[ 12 ], 1);
        TextDrawLetterSize(ChristmasTree[ 12 ], 0.300000, -1.100000);
        TextDrawColor(ChristmasTree[ 12 ], -65281);
        TextDrawSetOutline(ChristmasTree[ 12 ], 0);
        TextDrawSetProportional(ChristmasTree[ 12 ], 1);
        TextDrawSetShadow(ChristmasTree[ 12 ], 0);

        ChristmasTree[ 13 ] = TextDrawCreate(565.000000, 411.000000, "~y~~h~T~n~~n~~r~~h~T");
        TextDrawBackgroundColor(ChristmasTree[ 13 ], -65281);
        TextDrawFont(ChristmasTree[ 13 ], 1);
        TextDrawLetterSize(ChristmasTree[ 13 ], 0.300000, -1.100000);
        TextDrawColor(ChristmasTree[ 13 ], -65281);
        TextDrawSetOutline(ChristmasTree[ 13 ], 0);
        TextDrawSetProportional(ChristmasTree[ 13 ], 1);
        TextDrawSetShadow(ChristmasTree[ 13 ], 0);

        ChristmasTree[ 14 ] = TextDrawCreate(544.000000, 440.000000, "~y~~h~T          ~b~~h~~h~T");
        TextDrawBackgroundColor(ChristmasTree[ 14 ], -65281);
        TextDrawFont(ChristmasTree[ 14 ], 1);
        TextDrawLetterSize(ChristmasTree[ 14 ], 0.300000, -1.100000);
        TextDrawColor(ChristmasTree[ 14 ], -65281);
        TextDrawSetOutline(ChristmasTree[ 14 ], 0);
        TextDrawSetProportional(ChristmasTree[ 14 ], 1);
        TextDrawSetShadow(ChristmasTree[ 14 ], 0);

        ChristmasTree[ 15 ] = TextDrawCreate(524.000000, 427.000000, "O");
        TextDrawBackgroundColor(ChristmasTree[ 15 ], 255);
        TextDrawFont(ChristmasTree[ 15 ], 1);
        TextDrawLetterSize(ChristmasTree[ 15 ], 3.499998, 8.000000);
        TextDrawColor(ChristmasTree[ 15 ], -1);
        TextDrawSetOutline(ChristmasTree[ 15 ], 0);
        TextDrawSetProportional(ChristmasTree[ 15 ], 1);
        TextDrawSetShadow(ChristmasTree[ 15 ], 1);

        ChristmasTree[ 16 ] = TextDrawCreate(561.000000, 358.000000, "]");
        TextDrawBackgroundColor(ChristmasTree[ 16 ], -65281);
        TextDrawFont(ChristmasTree[ 16 ], 0);
        TextDrawLetterSize(ChristmasTree[ 16 ], 0.800000, 2.499999);
        TextDrawColor(ChristmasTree[ 16 ], -36561153);
        TextDrawSetOutline(ChristmasTree[ 16 ], 0);
        TextDrawSetProportional(ChristmasTree[ 16 ], 1);
        TextDrawSetShadow(ChristmasTree[ 16 ], 1);

        ChristmasTree[ 17 ] = TextDrawCreate(581.000000, 422.000000, "~r~~h~~h~T");
        TextDrawBackgroundColor(ChristmasTree[ 17 ], -65281);
        TextDrawFont(ChristmasTree[ 17 ], 1);
        TextDrawLetterSize(ChristmasTree[ 17 ], 0.300000, -1.100000);
        TextDrawColor(ChristmasTree[ 17 ], -65281);
        TextDrawSetOutline(ChristmasTree[ 17 ], 0);
        TextDrawSetProportional(ChristmasTree[ 17 ], 1);
        TextDrawSetShadow(ChristmasTree[ 17 ], 0);

        ChristmasTree[ 18 ] = TextDrawCreate(582.000000, 422.000000, "O");
        TextDrawBackgroundColor(ChristmasTree[ 18 ], -1);
        TextDrawFont(ChristmasTree[ 18 ], 1);
        TextDrawLetterSize(ChristmasTree[ 18 ], 3.499998, 8.000000);
        TextDrawColor(ChristmasTree[ 18 ], -1);
        TextDrawSetOutline(ChristmasTree[ 18 ], 0);
        TextDrawSetProportional(ChristmasTree[ 18 ], 1);
        TextDrawSetShadow(ChristmasTree[ 18 ], 3);

        ChristmasTree[ 19 ] = TextDrawCreate(569.000000, 384.000000, "O");
        TextDrawBackgroundColor(ChristmasTree[ 19 ], 934019327);
        TextDrawFont(ChristmasTree[ 19 ], 1);
        TextDrawLetterSize(ChristmasTree[ 19 ], 0.409999, -0.800000);
        TextDrawColor(ChristmasTree[ 19 ], 934019327);
        TextDrawSetOutline(ChristmasTree[ 19 ], 1);
        TextDrawSetProportional(ChristmasTree[ 19 ], 1);

        ChristmasTree[ 20 ] = TextDrawCreate(560.000000, 430.000000, "~r~~h~Merry~n~~i~xmas");
        TextDrawBackgroundColor(ChristmasTree[ 20 ], -1);
        TextDrawFont(ChristmasTree[ 20 ], 3);
        TextDrawLetterSize(ChristmasTree[ 20 ], 0.360000, 1.000000);
        TextDrawColor(ChristmasTree[ 20 ], 255);
        TextDrawSetOutline(ChristmasTree[ 20 ], 0);
        TextDrawSetProportional(ChristmasTree[ 20 ], 1);
        TextDrawSetShadow(ChristmasTree[ 20 ], -1);

        ChristmasTree[ 21 ] = TextDrawCreate(539.000000, 400.000000, ".     ~n~  .  .    .      . ~n~ .   .   .     . .  .~n~     .    . ~n~ .    .       .       . ~n~    .    .     .  . ~n~ .  .   ");
        TextDrawBackgroundColor(ChristmasTree[ 21 ], 255);
        TextDrawFont(ChristmasTree[ 21 ], 1);
        TextDrawLetterSize(ChristmasTree[ 21 ], 0.240000, 0.699999);
        TextDrawColor(ChristmasTree[ 21 ], -1);
        TextDrawSetOutline(ChristmasTree[ 21 ], 0);
        TextDrawSetProportional(ChristmasTree[ 21 ], 1);
        TextDrawSetShadow(ChristmasTree[ 21 ], 0);

        ChristmasTree[ 22 ] = TextDrawCreate(638.000000, 360.000000, ".     ~n~  .  .    .      . ~n~ .   .   .     . .  .~n~     .    . ~n~ .    .       .       . ~n~    .    .     .  . ~n~ .  .   ");
        TextDrawAlignment(ChristmasTree[ 22 ], 3);
        TextDrawBackgroundColor(ChristmasTree[ 22 ], -1);
        TextDrawFont(ChristmasTree[ 22 ], 0);
        TextDrawLetterSize(ChristmasTree[ 22 ], 0.270000, 1.000000);
        TextDrawColor(ChristmasTree[ 22 ], -1);
        TextDrawSetOutline(ChristmasTree[ 22 ], 0);
        TextDrawSetProportional(ChristmasTree[ 22 ], 1);
        TextDrawSetShadow(ChristmasTree[ 22 ], -8);

        for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
        {
                if(IsPlayerConnected(playerid))
                {
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 0 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 1 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 2 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 3 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 4 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 5 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 6 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 7 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 8 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 9 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 10 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 11 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 12 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 13 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 14 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 15 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 16 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 17 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 18 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 19 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 20 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 21 ] );
                        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 22 ] );
                }
        }
}

public
                ShowTree( playerid )
{
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 0 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 1 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 2 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 3 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 4 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 5 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 6 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 7 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 8 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 9 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 10 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 11 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 12 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 13 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 14 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 15 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 16 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 17 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 18 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 19 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 20 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 21 ] );
        TextDrawShowForPlayer(playerid, Text:ChristmasTree[ 22 ] );
}
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 ] );
}

Last edited by Kitten; 24/12/2010 at 10:55 PM.
Kitten is offline   Reply With Quote
Old 24/12/2010, 09:48 PM   #2
CyNiC
High-roller
 
Join Date: Jan 2009
Location: Brazil
Posts: 1,420
Reputation: 203
Default Re: Christmas Wars [0.3C Only]

Nice, man.
__________________
My scripts
Brazucas'Server
CyNiC is offline   Reply With Quote
Old 24/12/2010, 09:49 PM   #3
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,169
Reputation: 345
Default Re: Christmas Wars [0.3C Only]

Quote:
Originally Posted by cynic View Post
Nice, man.
Thanks
Kitten is offline   Reply With Quote
Old 24/12/2010, 10:12 PM   #4
Mean
High-roller
 
Join Date: Jul 2010
Location: 14th annual lemon party
Posts: 2,726
Reputation: 229
Default Re: Christmas Wars [0.3C Only]

Wow, Kitten, this rocks!
__________________
I'm pretty much the creator of the PUB: macro used in many scripts today, therefore I'm a legitimate genius.

Ground breaking stuff
Quote:
Originally Posted by ******
I've met Mean on a few occasions in real life, a true genius and a 400 pound all-muscle gorilla alpha male. He has had a great influence on my life.
Quote:
Originally Posted by Kalcor
I don't know where I'd be today without Mean. He has helped me through some tough times in my life. He always brings a smile to my face. Such a positive lad!
Mean is offline   Reply With Quote
Old 24/12/2010, 10:12 PM   #5
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,169
Reputation: 345
Default Re: Christmas Wars [0.3C Only]

Quote:
Originally Posted by Mean View Post
Wow, Kitten, this rocks!
Thanks any bugs please report
Kitten is offline   Reply With Quote
Old 24/12/2010, 10:16 PM   #6
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,169
Reputation: 345
Default Re: Christmas Wars [0.3C Only]

Quote:
Originally Posted by Las Venturas CNR View Post
Wow, very nice Kitten. Your game modes are truly awesome considering your knowledge level a few months back.
Thanks by level you mean is it better than my last gamemodes i released ?
Kitten is offline   Reply With Quote
Old 24/12/2010, 10:33 PM   #7
WillyP
High-roller
 
WillyP's Avatar
 
Join Date: Jul 2010
Location: England
Posts: 2,027
Reputation: 63
Default Re: Christmas Wars [0.3C Only]

Where are my credits?
__________________
once average now terrible
WillyP is offline   Reply With Quote
Old 24/12/2010, 10:39 PM   #8
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,169
Reputation: 345
Default Re: Christmas Wars [0.3C Only]

Quote:
Originally Posted by [FU]Victious View Post
Where are my credits?
Wait what ? For ?
Kitten is offline   Reply With Quote
Old 24/12/2010, 10:46 PM   #9
vyper
Huge Clucker
 
vyper's Avatar
 
Join Date: Jul 2009
Location: Hell. x_x
Posts: 276
Reputation: 68
Default Re: Christmas Wars [0.3C Only]

nice gm
vyper is offline   Reply With Quote
Old 24/12/2010, 10:55 PM   #10
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,169
Reputation: 345
Default Re: Christmas Wars [0.3C Only]

Video added
[ame]http://www.youtube.com/watch?v=_bH4rnaPuZk[/ame]
Kitten is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Map] [MAP] Christmas Tree (NEW:LS) (Merry Christmas) (LS&LV) Karlip Maps 73 28/11/2014 08:43 AM
What do you wish for christmas? Ravia_Devaia Everything and Nothing 38 20/12/2010 02:56 PM
Here comes Christmas... cmg4life Everything and Nothing 15 30/11/2008 09:19 AM


All times are GMT. The time now is 12:32 AM.


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