Thursday, October 18, 2012

Halloween Zombie-Mod - NEW ADDON Trick or Treat



Warning you need this includes and plugins:
Include:http://forum.sa-mp.com/showthread.php?t=92679
plugin:http://forum.sa-mp.com/showthread.php?t=102865

Credits: Kitten for scripting , Incognito For streamer , Y_Less for foreach include, Who ever made the language script

This is a mode i made for Halloween special it has 6 classes

Survivors:
Medic
Survivor (Civilian)
Solider
Cops
Zombies:
Zombie 1 (162 id)
Zombie 2

Zombies get a special knife effect when u are near a human u press your knife button it loses there hp
This gamemode have cool textdraws
Good map edit in San fierro
A little bit of construction site

Weapons(survivors):
sorry im lazy:P
Code:
#define AK47 30
#define M4 31
#define MP5 29
#define DEAGLE 24
#define GRENADE 16
#define TEC9 32
#define SHOTGUN 25
#define BASEBALL 5
Zombies(infected):
sorry im lazy still ha
Code:
#define KNIFE 4
This gamemode features a good EXP system made by kitten
Survivors Skin ids:
still lazy:P
Code:
 AddPlayerClass(275, -2036.4352,179.3066,28.8429,266.0225,0,0,0,0,0,0); //MEDIC
 AddPlayerClass(287, -1979.9567,138.0153,27.6875,91.8412,0,0,0,0,0,0);// SOLIDER
 AddPlayerClass(280, -2019.7849,-46.1203,35.3375,270.1827,0,0,0,0,0,0);// POLICE
 AddPlayerClass(2,   -1978.7373,564.7525,38.6038,152.8846,0,0,0,0,0,0);// SURVIVOR
Zombies Skin ids:
Code:
        AddPlayerClass(162, -1950.8861,696.2945,46.5625,355.4216,0,0,0,0,0,0);// ZOMBIE 1
        AddPlayerClass(137, -1950.8861,696.2945,46.5625,355.4216,0,0,0,0,0,0);// ZOMBIE 2

Thats enough info now for some pictures?









Download:
http://pastebin.com/seUN08a0

or get it here
Code:
//Gamemode by kitten 10/29/10 2:30 AM
// Made for Halloween by kitten
// So far some credits to playbox12 for making the Accent FS converted into this gamemode
#include <a_samp>
#include <streamer>
#include <foreach>
//--TEAMS--//
new cTeam[MAX_PLAYERS];
#define TEAM_MEDIC 0
#define TEAM_SOLIDER 1
#define TEAM_POLICE 2
#define TEAM_SURVIVOR 3
#define TEAM_ZOMBIE 4
#define TEAM_ZOMBIE2 5
//--WEAPONS--//
#define AK47 30
#define M4 31
#define MP5 29
#define DEAGLE 24
#define GRENADE 16
#define TEC9 32
#define SHOTGUN 25
#define BASEBALL 5
#define KNIFE 4
//--COLORS--//
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_RED 0xAA3333AA
//--TEAM COLORS--//
#define TEAMMEDICSOLIDERPOLICESURVIVOR_COLOR 0x33CCFFAA
#define TEAM_COLORZOMBIE 0xFFFF00AA
//--Varaibles--//
new Text:Death;
new Text:ZMMESSAGE;
new Text:Deaths[MAX_PLAYERS];
new Text:cHP[MAX_PLAYERS];
new Text:Money[MAX_PLAYERS];
new Text:Score[MAX_PLAYERS];
new Text:Textdraw5;
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Bar[MAX_PLAYERS];
new Text:EXPNUM[MAX_PLAYERS];
new Deathss[MAX_PLAYERS];
new string[128];
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
//--Forwards--//
forward NearbyMessageForPlayers( playerid, stringcolour, text[]);
//--Dialogs--//
#define DialogIDChangeOnProblems 1928


main()
{
 print("\n----------------------------------");
 print(" Zombie-Mod V1.0 SF");
 print("----------------------------------\n");
}

public OnGameModeInit()
{
 // Don't use these lines if it's a filterscript
 SetGameModeText("Halloween Zombie-Mod");
 AddPlayerClass(275, -2036.4352,179.3066,28.8429,266.0225,0,0,0,0,0,0); //MEDIC
 AddPlayerClass(162, -1950.8861,696.2945,46.5625,355.4216,0,0,0,0,0,0);// ZOMBIE 1
 AddPlayerClass(287, -1979.9567,138.0153,27.6875,91.8412,0,0,0,0,0,0);// SOLIDER
 AddPlayerClass(137, -1950.8861,696.2945,46.5625,355.4216,0,0,0,0,0,0);// ZOMBIE 2
 AddPlayerClass(280, -2019.7849,-46.1203,35.3375,270.1827,0,0,0,0,0,0);// POLICE
 AddPlayerClass(2,   -1978.7373,564.7525,38.6038,152.8846,0,0,0,0,0,0);// SURVIVOR

 
 //--CARS--//
 AddStaticVehicle(481,-2001.14855957,191.51016235,27.14783859,0.00000000,-1,-1); //BMX
 AddStaticVehicle(481,-2000.90405273,193.13311768,27.14783859,0.00000000,-1,-1); //BMX
 AddStaticVehicle(481,-2000.85705566,194.85237122,27.14783859,0.00000000,-1,-1); //BMX
 AddStaticVehicle(481,-2000.51403809,196.48480225,27.14783859,0.00000000,-1,-1); //BMX
 AddStaticVehicle(481,-2000.62243652,199.00923157,27.14016533,0.00000000,-1,-1); //BMX
 AddStaticVehicle(481,-2030.83471680,171.84078979,28.44471359,273.99987793,-1,-1); //BMX
 AddStaticVehicle(597,-2010.13940430,-57.55938721,35.03497696,0.00000000,-1,1); //Police Car (SFPD)
 AddStaticVehicle(597,-2010.10949707,-51.39652634,35.03497696,0.00000000,-1,1); //Police Car (SFPD)
 AddStaticVehicle(597,-2009.96496582,-45.44446564,35.04187393,0.00000000,-1,1); //Police Car (SFPD)
 AddStaticVehicle(597,-2009.99194336,-38.89971161,35.02678299,0.00000000,-1,1); //Police Car (SFPD)
 AddStaticVehicle(597,-2002.32812500,-21.70625877,34.88402939,0.00000000,-1,1); //Police Car (SFPD)
 AddStaticVehicle(597,-2002.52661133,-33.21662140,34.97959518,0.00000000,-1,1); //Police Car (SFPD)
 AddStaticVehicle(597,-2002.73022461,-40.48923111,35.03497696,0.00000000,-1,1); //Police Car (SFPD)
 AddStaticVehicle(533,-2009.73657227,154.29324341,27.33906174,0.00000000,-1,-1); //Feltzer
 AddStaticVehicle(533,-2010.02624512,160.68347168,27.33906174,0.00000000,-1,-1); //Feltzer
 AddStaticVehicle(533,-2010.00012207,167.99829102,27.33906174,0.00000000,-1,-1); //Feltzer
 AddStaticVehicle(533,-2010.03308105,175.05853271,27.33906174,0.00000000,-1,-1); //Feltzer
 AddStaticVehicle(533,-2010.43811035,181.43998718,27.33906174,0.00000000,-1,-1); //Feltzer
 AddStaticVehicle(466,-1997.47583008,710.11846924,45.21687317,180.00000000,-1,-1); //Glendale
 AddStaticVehicle(466,-1997.29504395,703.10711670,45.21687317,180.00000000,-1,-1); //Glendale
 AddStaticVehicle(466,-1997.55139160,695.92315674,45.21687317,180.00000000,-1,-1); //Glendale
 AddStaticVehicle(466,-1997.60876465,717.14312744,45.21687317,180.00000000,-1,-1); //Glendale
 AddStaticVehicle(489,-1978.91589355,555.88452148,35.57931137,90.00000000,-1,-1); //Rancher
 AddStaticVehicle(489,-1979.34326172,552.20745850,35.56148148,90.00000000,-1,-1); //Rancher
 AddStaticVehicle(489,-1979.63903809,548.88006592,35.56408310,90.00000000,-1,-1); //Rancher
 AddStaticVehicle(579,-1979.79711914,543.48034668,35.31917191,90.00000000,-1,-1); //Huntley
 AddStaticVehicle(579,-1979.66760254,540.60186768,35.30284119,90.00000000,-1,-1); //Huntley
 AddStaticVehicle(579,-1979.66699219,540.60156250,35.30284119,90.00000000,-1,-1); //Huntley
 AddStaticVehicle(579,-1979.76330566,537.61016846,35.30368423,90.00000000,-1,-1); //Huntley
 AddStaticVehicle(445,-1997.63684082,533.79815674,35.00562668,0.00000000,-1,-1); //Admiral
 AddStaticVehicle(445,-1996.67724609,527.94769287,35.00562668,0.00000000,-1,-1); //Admiral

 //--OBJECTS--//
 CreateDynamicObject(18450,298.25851440,2137.56518555,19.43712234,1.95626831,347.99291992,354.41601562); //object(cs_roadbridge04) (1)
 CreateDynamicObject(18450,375.74612427,2129.23632812,35.78060913,359.99926758,347.99902344,353.99743652); //object(cs_roadbridge04) (2)
 CreateDynamicObject(8390,482.57897949,2118.03686523,63.79504395,0.00000000,0.00000000,266.00000000); //object(multicarpark01_lvs) (1)
 CreateDynamicObject(18450,391.13177490,2102.32812500,78.55854797,359.99438477,359.99743652,355.99707031); //object(cs_roadbridge04) (3)
 CreateDynamicObject(1634,435.67501831,2102.22216797,77.78767395,0.00000000,0.00000000,84.00000000); //object(landjump2) (1)
 CreateDynamicObject(1634,435.24066162,2098.42553711,77.78767395,0.00000000,0.00000000,83.99597168); //object(landjump2) (2)
 CreateDynamicObject(1634,434.78421021,2094.44262695,77.78767395,0.00000000,0.00000000,83.99597168); //object(landjump2) (3)
 CreateDynamicObject(1634,428.78424072,2098.43115234,77.70126343,0.00000000,0.00000000,263.99597168); //object(landjump2) (4)
 CreateDynamicObject(1634,429.13684082,2102.69091797,77.70111084,0.00000000,0.00000000,263.99047852); //object(landjump2) (5)
 CreateDynamicObject(1634,428.57635498,2094.48046875,77.95186615,0.00000000,0.00000000,263.99047852); //object(landjump2) (6)
 CreateDynamicObject(18450,356.08535767,2105.97558594,81.46905518,359.98974609,19.99450684,347.99926758); //object(cs_roadbridge04) (4)
 CreateDynamicObject(8420,246.42150879,2128.88330078,17.47566223,0.00000000,0.00000000,0.00000000); //object(arprtcrprk04_lvs) (1)
 CreateDynamicObject(6997,284.68167114,2090.84326172,99.80050659,1.99877930,357.99877930,82.06982422); //object(strfshcpark69) (1)
 CreateDynamicObject(18450,281.78811646,2123.04760742,85.38455200,1.92913818,345.98156738,346.47509766); //object(cs_roadbridge04) (5)
 CreateDynamicObject(10629,309.34936523,2111.73779297,25.15957260,0.00000000,0.00000000,0.00000000); //object(queens_04_sfs) (1)
 CreateDynamicObject(7555,240.50645447,2239.35498047,53.01930237,0.00000000,0.00000000,90.00000000); //object(bballcpark1) (1)
 CreateDynamicObject(18450,205.66430664,2204.25268555,45.57309341,1.73132324,329.98394775,86.99758911); //object(cs_roadbridge04) (6)
 CreateDynamicObject(18450,203.25660706,2173.75708008,31.82683182,1.82559204,335.98205566,86.80786133); //object(cs_roadbridge04) (8)
 CreateDynamicObject(10394,261.75668335,2055.61596680,19.38010788,0.00000000,0.00000000,0.00000000); //object(plot1_sfs) (1)
 CreateDynamicObject(3303,273.22204590,2067.99926758,18.73773575,0.00000000,0.00000000,0.00000000); //object(des_bighus03) (1)
 CreateDynamicObject(3303,273.49493408,2051.70556641,18.73773575,0.00000000,0.00000000,0.00000000); //object(des_bighus03) (2)
 CreateDynamicObject(3303,249.39376831,2068.24121094,18.73773575,0.00000000,0.00000000,180.00000000); //object(des_bighus03) (3)
 CreateDynamicObject(3303,249.34230042,2043.95043945,18.73773575,0.00000000,0.00000000,179.99450684); //object(des_bighus03) (4)
 CreateDynamicObject(1634,262.95816040,2084.27734375,17.43794250,11.99707031,0.00000000,181.98449707); //object(landjump2) (16)
 CreateDynamicObject(1634,262.46105957,2078.80981445,17.25675392,11.99157715,0.00000000,357.98303223); //object(landjump2) (17)
 CreateDynamicObject(4199,228.04954529,2143.53417969,20.72752762,0.00000000,0.00000000,270.00000000); //object(garages1_lan) (1)
 CreateDynamicObject(6910,102.56044769,2036.48327637,21.90613556,0.00000000,0.00000000,0.00000000); //object(vgnprtlstation_01) (1)
 CreateDynamicObject(14776,494.87713623,2077.00781250,83.35222626,0.00000000,0.00000000,176.00000000); //object(int3int_carupg_int) (1)
 CreateDynamicObject(17064,143.59333801,2058.28637695,15.71645737,0.00000000,0.00000000,288.00000000); //object(cw2_garage) (1)
 CreateDynamicObject(10282,143.44694519,2124.25805664,18.75538635,0.00000000,0.00000000,0.00000000); //object(mich_int_sfe) (1)
 CreateDynamicObject(10282,133.15161133,2123.32202148,18.76105118,0.00000000,0.00000000,0.00000000); //object(mich_int_sfe) (2)
 CreateDynamicObject(11391,149.47048950,2104.13403320,18.23409081,0.00000000,0.00000000,0.00000000); //object(hubprops6_sfse) (1)
 CreateDynamicObject(11391,165.34185791,2123.88549805,19.22067451,0.00000000,0.00000000,180.00000000); //object(hubprops6_sfse) (2)
 CreateDynamicObject(14826,140.93786621,2113.45312500,17.99884987,0.00000000,0.00000000,0.00000000); //object(int_kbsgarage2) (1)
 CreateDynamicObject(14826,141.43107605,2108.93066406,17.76234245,0.00000000,0.00000000,0.00000000); //object(int_kbsgarage2) (2)
 CreateDynamicObject(14826,142.44447327,2103.52563477,17.48217964,0.00000000,0.00000000,0.00000000); //object(int_kbsgarage2) (3)
 CreateDynamicObject(11677,124.66296387,2053.03686523,21.13662720,0.00000000,0.00000000,68.00000000); //object(xen2_countn) (1)
 CreateDynamicObject(1443,133.37615967,2066.67822266,16.47530365,0.00000000,0.00000000,80.00000000); //object(dyn_street_sign_1) (1)
 CreateDynamicObject(2047,68.13633728,2020.91503906,22.45834732,0.00000000,0.00000000,0.00000000); //object(cj_flag1) (1)
 CreateDynamicObject(2745,127.49699402,2128.51391602,17.84615707,0.00000000,0.00000000,0.00000000); //object(cj_stat_3) (1)
 CreateDynamicObject(3554,157.64064026,2140.23413086,27.67276764,0.00000000,0.00000000,0.00000000); //object(visagesign04) (1)
 CreateDynamicObject(3554,170.94183350,2140.16113281,27.61890030,0.00000000,0.00000000,0.00000000); //object(visagesign04) (2)
 CreateDynamicObject(3521,181.53425598,2140.55102539,19.05852699,0.00000000,0.00000000,0.00000000); //object(vgsn_rbstiff) (1)
 CreateDynamicObject(3715,38.39371109,2066.64062500,25.63639069,0.00000000,0.00000000,274.00000000); //object(arch_sign) (1)
 CreateDynamicObject(3715,37.16772079,2094.69384766,25.89540100,0.00000000,0.00000000,273.99902344); //object(arch_sign) (2)
 CreateDynamicObject(3715,35.47429276,2123.49780273,25.82915497,0.00000000,0.00000000,273.99902344); //object(arch_sign) (3)
 CreateDynamicObject(5811,67.56576538,2060.98095703,20.92096710,0.00000000,0.00000000,60.00000000); //object(lawnmallsign1) (1)
 CreateDynamicObject(966,180.53903198,2137.49389648,16.22656250,0.00000000,0.00000000,100.00000000); //object(bar_gatebar01) (1)
 CreateDynamicObject(1634,209.84910583,2247.45703125,56.54318237,11.99157715,0.00000000,181.98303223); //object(landjump2) (18)
 CreateDynamicObject(1634,209.80651855,2241.85009766,61.85724258,23.97604370,2.18896484,181.09318542); //object(landjump2) (19)
 CreateDynamicObject(1634,205.55078125,2247.25683594,56.54318237,11.99157715,0.00000000,181.98303223); //object(landjump2) (20)
 CreateDynamicObject(1634,205.53028870,2241.50512695,62.04318237,25.99157715,0.00000000,181.98303223); //object(landjump2) (21)
 CreateDynamicObject(3257,256.10452271,2143.40942383,18.61241913,0.00000000,0.00000000,272.00000000); //object(refinerybox1) (1)
 CreateDynamicObject(1676,102.16468811,2041.24035645,18.78657150,0.00000000,0.00000000,0.00000000); //object(washgaspump) (1)
 CreateDynamicObject(1676,97.99192810,2042.75854492,18.83782578,0.00000000,0.00000000,0.00000000); //object(washgaspump) (2)
 CreateDynamicObject(7073,215.65289307,2140.10644531,41.10772324,0.00000000,0.00000000,30.00000000); //object(vegascowboy1) (1)
 CreateDynamicObject(7392,315.87710571,2102.80712891,39.33208466,0.00000000,0.00000000,0.00000000); //object(vegcandysign1) (1)
 CreateDynamicObject(3522,227.61605835,2109.04541016,17.73376656,0.00000000,0.00000000,90.00000000); //object(vgsn_flwbdcrb) (1)
 CreateDynamicObject(7520,84.06965637,2077.76147461,16.51736832,0.00000000,0.00000000,0.00000000); //object(vgnlowbuild203) (1)
 CreateDynamicObject(11439,-2026.49316406,318.99707031,24.66406250,0.00000000,0.00000000,90.00000000); //object(des_woodbr_) (2)
 CreateDynamicObject(11439,-1910.03869629,342.57656860,21.70567131,0.00000000,0.00000000,329.99450684); //object(des_woodbr_) (5)
 CreateDynamicObject(8875,-2005.13403320,300.69418335,39.79613876,0.00000000,0.00000000,92.00000000); //object(vgsecnstrct14) (1)
 CreateDynamicObject(8875,-2001.32092285,299.40856934,39.75499344,0.00000000,0.00000000,51.99951172); //object(vgsecnstrct14) (2)
 CreateDynamicObject(18275,-2016.54003906,308.70422363,36.35875702,0.00000000,0.00000000,0.00000000); //object(cw2_mtbfinish) (1)
 CreateDynamicObject(18275,-1992.18334961,295.03848267,35.79204559,0.00000000,0.00000000,0.00000000); //object(cw2_mtbfinish) (2)
 CreateDynamicObject(7089,-1979.37170410,289.56588745,40.03011322,0.00000000,0.00000000,90.00000000); //object(newscafldvegs02) (1)
 CreateDynamicObject(7089,-1978.62670898,281.62863159,50.16832733,0.00000000,0.00000000,90.00000000); //object(newscafldvegs02) (2)
 CreateDynamicObject(7089,-1932.59973145,242.63481140,41.53011322,0.00000000,0.00000000,180.00000000); //object(newscafldvegs02) (3)
 CreateDynamicObject(7089,-1977.24609375,281.28875732,55.93228149,0.00000000,0.00000000,91.99450684); //object(newscafldvegs02) (4)
 CreateDynamicObject(7089,-1975.65332031,279.43597412,66.27954865,0.00000000,0.00000000,89.99401855); //object(newscafldvegs02) (5)
 CreateDynamicObject(7089,-1935.28625488,332.96240234,43.14525604,0.00000000,0.00000000,359.98901367); //object(newscafldvegs02) (6)
 CreateDynamicObject(7089,-1937.40136719,332.71182251,53.74611664,0.00000000,0.00000000,359.98352051); //object(newscafldvegs02) (7)
 CreateDynamicObject(7089,-1936.23583984,331.77819824,62.59697723,0.00000000,0.00000000,359.98352051); //object(newscafldvegs02) (8)
 CreateDynamicObject(7089,-1973.92565918,282.06170654,66.52148438,0.00000000,0.00000000,87.98352051); //object(newscafldvegs02) (10)
 CreateDynamicObject(7089,-1933.94543457,245.80827332,50.31136322,0.00000000,359.99450684,177.97851562); //object(newscafldvegs02) (11)
 CreateDynamicObject(7089,-1925.14550781,247.55636597,60.57613373,0.00000000,359.98901367,177.97851562); //object(newscafldvegs02) (12)
 CreateDynamicObject(7089,-1891.66406250,258.16134644,40.46036530,0.00000000,359.98901367,255.97851562); //object(newscafldvegs02) (13)
 CreateDynamicObject(7089,-1894.69311523,254.04504395,50.11331940,0.00000000,359.98352051,255.97595215); //object(newscafldvegs02) (14)
 CreateDynamicObject(7089,-1897.67004395,203.81265259,46.84244537,0.00000000,359.98352051,275.97595215); //object(newscafldvegs02) (15)
 CreateDynamicObject(7089,-1905.12207031,206.23698425,44.76448822,0.00000000,359.97802734,85.97106934); //object(newscafldvegs02) (16)
 CreateDynamicObject(7089,-1914.82971191,287.85104370,43.72650909,0.00000000,359.97802734,291.96801758); //object(newscafldvegs02) (17)
 CreateDynamicObject(7089,-1909.88745117,288.57443237,53.15531921,0.00000000,359.97802734,281.96716309); //object(newscafldvegs02) (18)
 CreateDynamicObject(7089,-1905.74414062,287.80484009,51.66159439,0.00000000,359.97802734,281.96411133); //object(newscafldvegs02) (19)
 CreateDynamicObject(7089,-1902.54101562,288.17596436,56.87502289,0.00000000,359.97802734,281.96411133); //object(newscafldvegs02) (20)
 CreateDynamicObject(7089,-1976.92492676,279.73062134,64.66889191,0.00000000,359.97802734,89.96411133); //object(newscafldvegs02) (21)
 CreateDynamicObject(7017,-1988.89672852,276.13507080,34.17935562,0.00000000,0.00000000,89.99938965); //object(circusconstruct07) (2)
 CreateDynamicObject(7017,-1998.39062500,221.90898132,26.74085236,0.00000000,356.00000000,87.99450684); //object(circusconstruct07) (3)
 CreateDynamicObject(7017,-1999.84692383,188.95301819,27.17833328,0.00000000,359.99548340,87.98950195); //object(circusconstruct07) (4)
 CreateDynamicObject(7017,-2001.23510742,118.07251740,27.53138924,0.00000000,359.98901367,89.97851562); //object(circusconstruct07) (5)
 CreateDynamicObject(7017,-2017.75000000,61.69335938,27.82507133,0.00000000,359.98901367,267.98400879); //object(circusconstruct07) (6)
 CreateDynamicObject(6867,-2079.90698242,192.52803040,54.07432556,0.00000000,0.00000000,0.00000000); //object(vegasplant06) (1)
 CreateDynamicObject(12986,-2006.82641602,139.92024231,28.06169319,0.00000000,0.00000000,0.00000000); //object(sw_well1) (1)
 CreateDynamicObject(4848,-1985.26379395,450.63107300,37.05813599,0.00000000,0.00000000,270.00000000); //object(sanpedbeaut) (1)
 CreateDynamicObject(7089,-1976.73791504,288.50738525,50.68478775,0.00000000,0.00000000,90.00000000); //object(newscafldvegs02) (22)
 CreateDynamicObject(8875,-1993.36364746,244.91836548,40.26737976,0.00000000,0.00000000,351.99829102); //object(vgsecnstrct14) (3)
 CreateDynamicObject(5142,-1969.86486816,543.99151611,40.80715561,0.00000000,0.00000000,90.00000000); //object(las2plaza1bit) (1)
 CreateDynamicObject(5729,-1983.47009277,410.76522827,38.24286270,0.00000000,0.00000000,180.00000000); //object(melblok02_lawn) (1)
 CreateDynamicObject(5729,-1983.34899902,488.31799316,38.24286270,0.00000000,0.00000000,179.99450684); //object(melblok02_lawn) (2)
 CreateDynamicObject(1384,-1976.74145508,244.20945740,67.43803406,0.00000000,0.00000000,50.00000000); //object(twrcrane_m_01) (1)
 CreateDynamicObject(5126,-2028.15795898,282.45794678,48.60133362,0.00000000,0.00000000,0.00000000); //object(dockcranescale0) (1)
 CreateDynamicObject(11406,-2002.03283691,282.29147339,45.36168289,0.00000000,0.00000000,0.00000000); //object(acwinch1b_sfs01) (2)
 CreateDynamicObject(7017,-1993.64099121,-72.95140076,33.71890259,0.00000000,359.98901367,87.98400879); //object(circusconstruct07) (6)
 CreateDynamicObject(5424,-1989.29248047,-6.64309692,33.39360428,0.00000000,93.99993896,356.00030518); //object(laejeffers04) (1)
 CreateDynamicObject(5424,-1989.36682129,-61.71216202,40.13883209,0.00000000,93.99905396,355.99542236); //object(laejeffers04) (2)
 CreateDynamicObject(5424,-1991.25231934,-117.66154480,37.83666611,0.00000000,93.99905396,355.99542236); //object(laejeffers04) (3)
 CreateDynamicObject(5424,-2021.31054688,-146.47409058,36.44706345,0.00000000,93.99905396,265.99548340); //object(laejeffers04) (4)
 CreateDynamicObject(5424,-2044.28564453,-111.19506073,38.73023987,0.00000000,93.99905396,265.99548340); //object(laejeffers04) (5)
 CreateDynamicObject(5424,-2014.71386719,-128.69227600,35.02549744,0.00000000,93.99905396,185.99546814); //object(laejeffers04) (6)
 CreateDynamicObject(5424,-2079.09643555,-64.15837860,35.90800095,0.00000000,93.99905396,177.99298096); //object(laejeffers04) (7)
 CreateDynamicObject(5424,-2079.15087891,-114.33666229,35.90800095,0.00000000,93.99902344,177.98950195); //object(laejeffers04) (8)
 CreateDynamicObject(5424,-2101.40771484,-33.14077759,35.75956345,0.00000000,93.99905396,267.98950195); //object(laejeffers04) (9)
 CreateDynamicObject(5424,-2101.50097656,-34.36285782,73.79785156,0.00000000,93.99902344,267.98400879); //object(laejeffers04) (10)
 CreateDynamicObject(5424,-2158.06689453,30.38822937,35.75956345,0.00000000,93.99905396,173.98400879); //object(laejeffers04) (11)
 CreateDynamicObject(5424,-2150.29687500,108.70333862,48.42109299,0.00000000,93.99905396,173.97949219); //object(laejeffers04) (12)
 CreateDynamicObject(5424,-2139.16381836,225.73214722,34.75450897,0.00000000,93.99905396,173.97949219); //object(laejeffers04) (13)
 CreateDynamicObject(5424,-2137.17431641,279.41885376,42.83180237,0.00000000,93.99905396,173.97949219); //object(laejeffers04) (14)
 CreateDynamicObject(5424,-2139.24267578,320.26919556,35.75956345,0.00000000,93.99905396,187.97949219); //object(laejeffers04) (15)
 CreateDynamicObject(5424,-2110.42822266,395.81546021,44.11596298,0.00000000,93.99905396,173.97949219); //object(laejeffers04) (16)
 CreateDynamicObject(5424,-2133.97119141,503.95465088,35.60331345,0.00000000,93.99905396,173.97949219); //object(laejeffers04) (17)
 CreateDynamicObject(5424,-2128.14477539,463.64215088,35.39604950,0.00000000,93.99905396,223.97946167); //object(laejeffers04) (18)
 CreateDynamicObject(5424,-2129.39257812,565.10626221,35.60331345,0.00000000,93.99905396,183.97822571); //object(laejeffers04) (19)
 CreateDynamicObject(5424,-1885.73876953,595.68078613,34.69449615,0.00000000,93.99905396,353.97705078); //object(laejeffers04) (20)
 CreateDynamicObject(5424,-1905.51098633,561.66564941,35.69831467,0.00000000,93.99905396,283.97399902); //object(laejeffers04) (21)
 CreateDynamicObject(5424,-1878.47546387,736.24694824,45.88456345,0.00000000,93.99905396,3.96911621); //object(laejeffers04) (22)
 CreateDynamicObject(5424,-1897.71716309,746.44427490,45.88456345,0.00000000,93.99905396,83.96606445); //object(laejeffers04) (23)
 CreateDynamicObject(5424,-2017.98608398,749.66790771,46.03300095,0.00000000,93.99905396,83.96301270); //object(laejeffers04) (24)
 CreateDynamicObject(5424,-2121.26928711,736.89306641,87.47831726,0.00000000,93.99905396,183.96295166); //object(laejeffers04) (25)
 CreateDynamicObject(5424,-2117.79199219,651.12628174,61.28823090,0.00000000,93.99905396,183.96058655); //object(laejeffers04) (26)
 CreateDynamicObject(5424,-1911.79431152,352.18341064,45.10140610,0.00000000,93.99905396,13.96057129); //object(laejeffers04) (27)
 CreateDynamicObject(5424,-1913.85998535,399.61312866,35.97790909,0.00000000,93.99905396,13.95812988); //object(laejeffers04) (28)
 CreateDynamicObject(5424,-1898.84582520,450.86367798,35.75956345,0.00000000,93.99905396,313.95816040); //object(laejeffers04) (29)
 CreateDynamicObject(5424,-1899.79760742,511.90859985,44.22634888,0.00000000,93.99905396,63.95629883); //object(laejeffers04) (30)
 CreateDynamicObject(5424,-1924.60681152,329.60861206,32.36769867,0.00000000,93.99905396,1.95141602); //object(laejeffers04) (31)
 CreateDynamicObject(5424,-2138.96093750,311.61218262,40.50051880,0.00000000,93.99902344,173.97949219); //object(laejeffers04) (32)
 CreateDynamicObject(5424,-1986.58837891,47.70615387,27.47074318,0.00000000,93.99905396,355.99545288); //object(laejeffers04) (33)
 CreateDynamicObject(5424,-1957.94921875,93.02339935,26.72236061,0.00000000,93.99905396,355.99542236); //object(laejeffers04) (34)
 CreateDynamicObject(5424,-1958.98608398,63.74965668,28.65760231,0.00000000,93.99905396,265.99548340); //object(laejeffers04) (35)
 CreateDynamicObject(5424,-1954.90747070,188.23022461,24.11762619,0.00000000,93.99905396,355.99548340); //object(laejeffers04) (36)
 CreateDynamicObject(5424,-1955.04772949,138.68986511,38.73103333,0.00000000,93.99905396,355.98995972); //object(laejeffers04) (3)
 
 // Textdraws
 
 Death = TextDrawCreate(130.000000, 141.000000, "~r~ YOU HAVE ~b~DIED~n~~w~ EPIC FAIL");
 TextDrawBackgroundColor(Death, 255);
 TextDrawFont(Death, 1);
 TextDrawLetterSize(Death, 1.510000, 9.000000);
 TextDrawColor(Death, -1);
 TextDrawSetOutline(Death, 0);
 TextDrawSetProportional(Death, 1);
 TextDrawSetShadow(Death, 1);
 
 SetTimer("MoneyM",2000,true);
 SetTimer("ScoreM",2000,true);
 SetTimer("cHealth",2000,true);

 ZMMESSAGE = TextDrawCreate(427.000000, 390.000000, "~w~Halloween~n~~r~ZOMBIE-MOD");
 TextDrawBackgroundColor(ZMMESSAGE, 255);
 TextDrawFont(ZMMESSAGE, 1);
 TextDrawLetterSize(ZMMESSAGE, 0.500000, 2.899999);
 TextDrawColor(ZMMESSAGE, -1);
 TextDrawSetOutline(ZMMESSAGE, 0);
 TextDrawSetProportional(ZMMESSAGE, 1);
 TextDrawSetShadow(ZMMESSAGE, 1);

 for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
  Deaths[playerid] = TextDrawCreate(20.000000, 414.000000, "~r~Deaths~w~[]");
  TextDrawBackgroundColor(Deaths[playerid], 255);
  TextDrawFont(Deaths[playerid], 1);
  TextDrawLetterSize(Deaths[playerid], 0.500000, 1.000000);
  TextDrawColor(Deaths[playerid], -1);
  TextDrawSetOutline(Deaths[playerid], 0);
  TextDrawSetProportional(Deaths[playerid], 1);
  TextDrawSetShadow(Deaths[playerid], 1);

  cHP[playerid] = TextDrawCreate(20.000000, 429.000000, "~b~CurrentHP~w~[100]");
  TextDrawBackgroundColor(cHP[playerid], 255);
  TextDrawFont(cHP[playerid], 1);
  TextDrawLetterSize(cHP[playerid], 0.500000, 1.000000);
  TextDrawColor(cHP[playerid], -1);
  TextDrawSetOutline(cHP[playerid], 0);
  TextDrawSetProportional(cHP[playerid], 1);
  TextDrawSetShadow(cHP[playerid], 1);

  Money[playerid] = TextDrawCreate(150.000000, 430.000000, "~r~Money~w~[]");
  TextDrawBackgroundColor(Money[playerid], 255);
  TextDrawFont(Money[playerid], 1);
  TextDrawLetterSize(Money[playerid], 0.500000, 1.000000);
  TextDrawColor(Money[playerid], -1);
  TextDrawSetOutline(Money[playerid], 0);
  TextDrawSetProportional(Money[playerid], 1);
  TextDrawSetShadow(Money[playerid], 1);

  Score[playerid] = TextDrawCreate(150.000000, 411.000000, "~b~Score~w~[]");
  TextDrawBackgroundColor(Score[playerid], 255);
  TextDrawFont(Score[playerid], 1);
  TextDrawLetterSize(Score[playerid], 0.500000, 1.000000);
  TextDrawColor(Score[playerid], -1);
  TextDrawSetOutline(Score[playerid], 0);
  TextDrawSetProportional(Score[playerid], 1);
  TextDrawSetShadow(Score[playerid], 1);
  
  // exp number
  EXPNUM[playerid] = TextDrawCreate(274.000000, 378.000000, "~w~ 0/~r~20");
  TextDrawBackgroundColor(EXPNUM[playerid], 255);
  TextDrawFont(EXPNUM[playerid], 1);
  TextDrawLetterSize(EXPNUM[playerid], 0.500000, 1.100000);
  TextDrawColor(EXPNUM[playerid], -1);
  TextDrawSetOutline(EXPNUM[playerid], 0);
  TextDrawSetProportional(EXPNUM[playerid], 1);
  TextDrawSetShadow(EXPNUM[playerid], 1);
  //bar
  Bar[playerid] = TextDrawCreate(220.000000, 385.000000, "~b~ GET A KILL");
  TextDrawBackgroundColor(Bar[playerid], 255);
  TextDrawFont(Bar[playerid], 1);
  TextDrawLetterSize(Bar[playerid], 0.500000, 1.900000);
  TextDrawColor(Bar[playerid], -1);
  TextDrawSetOutline(Bar[playerid], 0);
  TextDrawSetProportional(Bar[playerid], 1);
  TextDrawSetShadow(Bar[playerid], 1);
 }

 Textdraw5 = TextDrawCreate(425.000000, 370.000000, "~r~Current~b~Verison~n~~w~V1.0 SA-MP 0.3b");
 TextDrawBackgroundColor(Textdraw5, 255);
 TextDrawFont(Textdraw5, 1);
 TextDrawLetterSize(Textdraw5, 0.500000, 1.200000);
 TextDrawColor(Textdraw5, -1);
 TextDrawSetOutline(Textdraw5, 0);
 TextDrawSetProportional(Textdraw5, 1);
 TextDrawSetShadow(Textdraw5, 1);
 
 Textdraw0 = TextDrawCreate(230.000000, 390.000000, "~n~");
 TextDrawBackgroundColor(Textdraw0, 255);
 TextDrawFont(Textdraw0, 1);
 TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
 TextDrawColor(Textdraw0, -1);
 TextDrawSetOutline(Textdraw0, 0);
 TextDrawSetProportional(Textdraw0, 1);
 TextDrawSetShadow(Textdraw0, 1);
 TextDrawUseBox(Textdraw0, 1);
 TextDrawBoxColor(Textdraw0, 840829490);
 TextDrawTextSize(Textdraw0, 401.000000, 0.000000);

 Textdraw1 = TextDrawCreate(267.000000, 368.000000, "~r~ EXP");
 TextDrawBackgroundColor(Textdraw1, 255);
 TextDrawFont(Textdraw1, 1);
 TextDrawLetterSize(Textdraw1, 0.919999, 1.200000);
 TextDrawColor(Textdraw1, -1);
 TextDrawSetOutline(Textdraw1, 0);
 TextDrawSetProportional(Textdraw1, 1);
 TextDrawSetShadow(Textdraw1, 1);

 for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
 {
  TextDrawShowForPlayer(playerid, Deaths[playerid]);
  TextDrawShowForPlayer(playerid, cHP[playerid]);
  TextDrawShowForPlayer(playerid, Money[playerid]);
  TextDrawShowForPlayer(playerid, Score[playerid]);
 }

 for(new i; i < MAX_PLAYERS; i ++)
 {
  if(IsPlayerConnected(i))
  {
   TextDrawShowForPlayer(i, ZMMESSAGE);
   TextDrawShowForPlayer(i, Textdraw5);
   TextDrawShowForPlayer(i, Textdraw0);
   TextDrawShowForPlayer(i, Textdraw1);
   TextDrawShowForPlayer(i, Bar[i]);
   TextDrawShowForPlayer(i, EXPNUM[i]);
  }
 }
 
 return 1;
}

public OnGameModeExit()
{
    TextDrawHideForAll(Death);
 TextDrawDestroy(Death);
 TextDrawHideForAll(Textdraw0);
 TextDrawDestroy(Textdraw0);
 TextDrawHideForAll(Textdraw1);
 TextDrawDestroy(Textdraw1);
 TextDrawHideForAll(ZMMESSAGE);
 TextDrawDestroy(ZMMESSAGE);
 TextDrawHideForAll(Textdraw5);
 TextDrawDestroy(Textdraw5);
 for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
  TextDrawHideForAll(EXPNUM[playerid]);
  TextDrawDestroy(EXPNUM[playerid]);
  TextDrawHideForAll(Bar[playerid]);
  TextDrawDestroy(Bar[playerid]);
  TextDrawHideForAll(Deaths[playerid]);
  TextDrawDestroy(Deaths[playerid]);
  TextDrawHideForAll(cHP[playerid]);
  TextDrawDestroy(cHP[playerid]);
  TextDrawHideForAll(Money[playerid]);
  TextDrawDestroy(Money[playerid]);
  TextDrawHideForAll(Score[playerid]);
  TextDrawDestroy(Score[playerid]);
 }
 return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
 if(newkeys & KEY_FIRE)
 {
  if(GetPlayerWeapon(playerid) == 4)
  {
   new victimid = GetClosestPlayer(playerid);
   if(IsPlayerConnected(victimid))
   {
    if(GetDistanceBetweenPlayers(playerid,victimid) < 2)
    {
     new Float:health;
     GetPlayerHealth(victimid, health);
     SetPlayerHealth(victimid, health - 20.0);
     return 1;
    }
   }
  }
 }
 return 1;
}
forward Float:GetDistanceBetweenPlayers(p1,p2); // Up top of script

forward GetClosestPlayer(p1); // Up top of script

public Float:GetDistanceBetweenPlayers(p1,p2)
{
 new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
 if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
 {
  return -1.00;
 }
 GetPlayerPos(p1,x1,y1,z1);
 GetPlayerPos(p2,x2,y2,z2);
 return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}

public GetClosestPlayer(p1)
{
 new x,Float:dis,Float:dis2,player;
 player = -1;
 dis = 99999.99;
 for (x=0;x<MAX_PLAYERS;x++)
 {
  if(IsPlayerConnected(x))
  {
   if(x != p1)
   {
    dis2 = GetDistanceBetweenPlayers(x,p1);
    if(dis2 < dis && dis2 != -1.00)
    {
     dis = dis2;
     player = x;
    }
   }
  }
 }
 return player;
}
forward MoneyM(playerid);
public MoneyM(playerid)
{
 new Mon = GetPlayerMoney(playerid);
 new string5[48];
  format(string5, sizeof(string), "~r~Money~w~[$%d]", Mon);
    TextDrawSetString(Money[playerid],string5);
    return 1;
}
forward ScoreM(playerid);
public ScoreM(playerid)
{
     new string2[128];
     new ScoreMM = GetPlayerScore(playerid);
     format(string2, sizeof(string), "~b~Score~w~[%d]",ScoreMM);
     TextDrawSetString(Score[playerid],string2);
     return 1;
}
forward cHealth(playerid);
public cHealth(playerid)
{
    new Float:health;
  new string3[128];
  GetPlayerHealth(playerid,health);
 if (health < 100.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[100]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 95.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[95]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 90.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[90]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 85.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[85]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 80.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[80]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 75.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[75]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 70.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[70]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 65.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[65]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 60.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[60]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 55.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[55]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 50.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[50]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 45.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[45]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 40.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[40]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 35.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[35]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 30.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[30]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 25.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[25]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 20.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[20]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 15.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[15]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 10.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[10]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 5.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[5]");
  TextDrawSetString(cHP[playerid],string3);
 }
 if (health < 0.0)
 {
  format(string3, sizeof(string), "~b~CurrentHP~w~[0]");
  TextDrawSetString(cHP[playerid],string3);
 }
 
 return 1;
}
forward HideMessage(playerid);
public HideMessage(playerid)
{
 TextDrawHideForPlayer(playerid, Death);
 TextDrawDestroy(Death);
 return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
 TextDrawShowForPlayer(playerid, Death);
 SetTimerEx("HideMessage", 2000, 0, "i", killerid);
  new string10[48];
    Deathss[playerid] ++;
 format(string10, sizeof(string), "~r~Deaths~w~[%d]",Deathss[playerid]);
 TextDrawSetString(Deaths[playerid],string10);

    new msg[64];
    new score = GetPlayerScore(killerid);
    SetPlayerScore(killerid, score+1);
    format(msg, sizeof(msg),"EXP: %d/20",score+1);
    TextDrawSetString(EXPNUM[killerid],msg);
    GivePlayerMoney(killerid, 12000);
    GameTextForPlayer(killerid, "~p~1+ ~w~EXP Experience! ~n~~g~+$12000!!",6000,4);

 switch(GetPlayerScore(killerid))
 {
     case 1:
  {
      TextDrawSetString(Bar[killerid],"~b~l");
      TextDrawSetString(EXPNUM[killerid],"~w~ 1/~r~20");
     }
  case 2:
  {
      TextDrawSetString(Bar[killerid],"~b~ll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 2/~r~20");
  }
    case 3:
  {
      TextDrawSetString(Bar[killerid],"~b~lll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 3/~r~20");
     }
  case 4:
  {
      TextDrawSetString(Bar[killerid],"~b~llll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 4/~r~20");
  }
    case 5:
  {
      TextDrawSetString(Bar[killerid],"~b~lllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 5/~r~20");
     }
  case 6:
  {
      TextDrawSetString(Bar[killerid],"~b~llllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 6/~r~20");
  }
    case 7:
  {
      TextDrawSetString(Bar[killerid],"~b~lllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 7/~r~20");
     }
  case 8:
  {
      TextDrawSetString(Bar[killerid],"~b~llllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 8/~r~20");
  }
    case 9:
  {
      TextDrawSetString(Bar[killerid],"~b~lllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 9/~r~20");
     }
  case 10:
  {
      TextDrawSetString(Bar[killerid],"~b~llllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 10/~r~20");
  }
    case 11:
  {
      TextDrawSetString(Bar[killerid],"~b~lllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 11/~r~20");
     }
  case 12:
  {
      TextDrawSetString(Bar[killerid],"~b~llllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 12/~r~20");
  }
    case 13:
  {
      TextDrawSetString(Bar[killerid],"~b~lllllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 13/~r~20");
     }
  case 14:
  {
      TextDrawSetString(Bar[killerid],"~b~llllllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 14/~r~20");
  }
  case 15:
  {
      TextDrawSetString(Bar[killerid],"~b~lllllllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 15/~r~20");
  }
  case 16:
  {
      TextDrawSetString(Bar[killerid],"~b~llllllllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 16/~r~20");
  }
  case 17:
  {
      TextDrawSetString(Bar[killerid],"~b~lllllllllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 17/~r~20");
  }
  case 18:
  {
      TextDrawSetString(Bar[killerid],"~b~llllllllllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 18/~r~~20");
  }
  case 19:
  {
      TextDrawSetString(Bar[killerid],"~b~lllllllllllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 19/~r~20");
  }
  case 20:
  {
      TextDrawSetString(Bar[killerid],"~b~lllllllllllllllllllll");
      TextDrawSetString(EXPNUM[killerid],"~w~ 20/~r~20");
        new name[MAX_PLAYER_NAME], string6[100];
         GetPlayerName(playerid, name, sizeof(name));
         format(string6, sizeof(string), "Player * %s Has been finshed with the EXP System ** Desert Eagle unlocked for him", name);
         SendClientMessageToAll(COLOR_ORANGE, string6);
         GivePlayerWeapon(playerid,24,100);
   SetPlayerHealth(playerid,100.0);
  }
 }
    return 1;
}


public OnPlayerRequestClass(playerid, classid)
{
 SetPlayerPos(playerid, -1959.4025,700.4174,46.5625);
  SetPlayerCameraPos(playerid, -1958.2029,711.0995,53.6375);
   SetPlayerCameraLookAt(playerid,  -1959.4025,700.4174,46.5625);
   SetPlayerFacingAngle(playerid,357.4232);
 
 if(classid == 0)
 {
     GameTextForPlayer(playerid,"~b~ Human- Medic~w~Objective:Survive the Infection",1000,4);
  cTeam[playerid] = TEAM_MEDIC;
 }
 else if(classid == 1)
 {
     GameTextForPlayer(playerid,"~r~ Zombie ~w~Objective: Eat brains",1000,4);
     cTeam[playerid] = TEAM_ZOMBIE;
 }
  else if(classid == 2)
 {
     GameTextForPlayer(playerid,"~b~ Human- Solider ~w~Objective:Survive the Infection",1000,4);
  cTeam[playerid] = TEAM_SOLIDER;
 }
 else if(classid == 3)
 {
     GameTextForPlayer(playerid,"~r~ Zombie 2 ~w~Objective: Eat brains",1000,4);
     cTeam[playerid] = TEAM_ZOMBIE2;
 }
 else if(classid == 4)
 {
     GameTextForPlayer(playerid,"~b~ Human- Police ~w~Objective:Survive the Infection",1000,4);
  cTeam[playerid] = TEAM_POLICE;
 }
 else if(classid == 5)
 {
     GameTextForPlayer(playerid,"~b~ Human- Survivor ~w~Objective:Survive the Infection",1000,4);
  cTeam[playerid] = TEAM_SURVIVOR;
 }
 
 
 
 return 1;
}

public OnPlayerConnect(playerid)
{
    SetPVarString(playerid,"Language","American");


 //--Weapon Skills--//
 SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 0);
 SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 0);
 

 return 1;
}

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

public OnPlayerSpawn(playerid)
{
 SetPlayerTime(playerid,20,0);
 SetPlayerWeather(playerid, 32);
 GameTextForPlayer(playerid,"~r~ Type ~n~ ~w~ /obj ~n~ ~r~ For The objectives",6000,3);
 TextDrawShowForPlayer(playerid, Textdraw1);
 TextDrawShowForPlayer(playerid, Textdraw0);
 TextDrawShowForPlayer(playerid, Bar[playerid]);
 TextDrawShowForPlayer(playerid, EXPNUM[playerid]);
 TextDrawShowForPlayer(playerid, ZMMESSAGE);
 TextDrawShowForPlayer(playerid, Deaths[playerid]);
 TextDrawShowForPlayer(playerid, cHP[playerid]);
 TextDrawShowForPlayer(playerid, Money[playerid]);
 TextDrawShowForPlayer(playerid, Score[playerid]);
 TextDrawShowForPlayer(playerid, Textdraw5);

 if(cTeam[playerid] == TEAM_MEDIC)
 {
     GivePlayerWeapon(playerid,M4,500);
     GivePlayerWeapon(playerid,SHOTGUN,10);
     GivePlayerWeapon(playerid,DEAGLE,50);
     SetPlayerTeam(playerid,TEAM_MEDIC);
     SetPlayerColor(playerid,TEAMMEDICSOLIDERPOLICESURVIVOR_COLOR);
     SendClientMessage(playerid,COLOR_WHITE,"SERVER: You are a MEDIC you can heal others or heal your self by typing /heal or /healhim id");
        SetPlayerHealth(playerid,35.0);
 }
 else if(cTeam[playerid] == TEAM_SOLIDER)
 {
     GivePlayerWeapon(playerid,AK47,500);
     GivePlayerWeapon(playerid,MP5,1000);
     GivePlayerWeapon(playerid,DEAGLE,50);
     SetPlayerTeam(playerid,TEAM_SOLIDER);
     SetPlayerColor(playerid,TEAMMEDICSOLIDERPOLICESURVIVOR_COLOR);
     SetPlayerHealth(playerid,100.0);
 }
 else if(cTeam[playerid] == TEAM_POLICE)
 {
     GivePlayerWeapon(playerid,M4,500);
     GivePlayerWeapon(playerid,TEC9,1000);
     GivePlayerWeapon(playerid,GRENADE,50);
     SetPlayerTeam(playerid,TEAM_POLICE);
     SetPlayerColor(playerid,TEAMMEDICSOLIDERPOLICESURVIVOR_COLOR);
     SetPlayerHealth(playerid,100.0);
 }
 else if(cTeam[playerid] == TEAM_SURVIVOR)
 {
     GivePlayerWeapon(playerid,AK47,500);
     GivePlayerWeapon(playerid,MP5,1000);
     GivePlayerWeapon(playerid,BASEBALL,50);
     SetPlayerTeam(playerid,TEAM_SURVIVOR);
     SetPlayerColor(playerid,TEAMMEDICSOLIDERPOLICESURVIVOR_COLOR);
  SetPlayerHealth(playerid,100.0);
 }
 else if(cTeam[playerid] == TEAM_ZOMBIE)
 {
     GivePlayerWeapon(playerid,KNIFE,1000);
     SetPlayerTeam(playerid,TEAM_ZOMBIE);
     SetPlayerColor(playerid,TEAM_COLORZOMBIE);
     SetPlayerHealth(playerid,65.0);
 }
 else if(cTeam[playerid] == TEAM_ZOMBIE2)
 {
     GivePlayerWeapon(playerid,KNIFE,1000);
     SetPlayerTeam(playerid,TEAM_ZOMBIE);
     SetPlayerColor(playerid,TEAM_COLORZOMBIE);
        SetPlayerHealth(playerid,100.0);
 }



 return 1;
}



public OnPlayerText(playerid, text[])
{
    new playername[MAX_PLAYER_NAME], PlayersLanguage[12];
    GetPlayerName(playerid, playername, sizeof(playername));
    GetPVarString(playerid, "Language", PlayersLanguage, 12);
    format(string, sizeof(string), "[%s Language] %s: %s", PlayersLanguage, playername, text);
    NearbyMessageForPlayers(playerid, 0xFFFFFFAA, string);
    return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{


 if(strcmp("/heal", cmdtext, true, 10) == 0)
 if(cTeam[playerid] == TEAM_MEDIC)
 {
  SetPlayerHealth(playerid,100);
  SendClientMessageToAll(COLOR_LIGHTBLUE,"MEDIC: Has healed him self");
  return 1;
 }

 if(strcmp("/class", cmdtext, true, 10) == 0)
 {
     ForceClassSelection(playerid);
     return 1;
 }

 if(strcmp("/kill", cmdtext, true, 10) == 0)
 {
     SetPlayerHealth(playerid,0);
     return 1;
 }

 if (strcmp("/lang", cmdtext, true, 10) == 0)
  {
        ShowPlayerDialog(playerid, DialogIDChangeOnProblems, DIALOG_STYLE_LIST, "Language selection", "American\nRussian\nBritish\nItalian\nDutch\nFrance\nAustralian\nAfrican\nChinese", "Select", "Quit");
        return 1;
  }
  
  if(strcmp("/cmds", cmdtext, true, 10) == 0)
  {
      SendClientMessage(playerid,COLOR_RED,"-----COMMANDS-----");
        SendClientMessage(playerid,COLOR_LIGHTBLUE,"MEDIC: /heal /healhim");
      SendClientMessage(playerid,COLOR_LIGHTBLUE,"SOLIDER: Coming soon");
      SendClientMessage(playerid,COLOR_LIGHTBLUE,"POLICE: Coming soon");
      SendClientMessage(playerid,COLOR_LIGHTBLUE,"SURVIVOR: Coming soon");
      SendClientMessage(playerid,COLOR_LIGHTBLUE,"ZOMBIE: Coming soon");
      return 1;
 }

 if(strcmp("/help", cmdtext, true, 10) == 0)
 {
     SendClientMessage(playerid,COLOR_RED,"-----HELP-----");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Welcome to San Fierro Zombie Infection Made for halloween");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"This is a server with fully self scripted by kitten");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"What do you do in this server / gamemode");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"There are 5 teams");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Medic,Solider,Police,Survivor,Zombie");
     SendClientMessage(playerid,COLOR_LIGHTBLUE," For Objectives for each team please goto /obj");
     return 1;
 }
 
 if(strcmp("/obj", cmdtext, true, 10) == 0)
 {
     SendClientMessage(playerid,COLOR_RED,"-----TEAM OBJECTIVES-----");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Medic: Heal others survive the Infection");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"SOLIDER: Keep the survivors, police , medics alive");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Police: Do not let any civilian DIE and survive the Infection");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Survivor: Survive the Infection");
     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Zombie: Eat human brains by knifing them if u knife the humans they lose 50 hp for 1 hit");
     return 1;
 }
  
 new
 index,
 cmd[20];
 cmd = strtok(cmdtext, index);
 if (strcmp(cmd, "/healhim", true) == 0)
 if(cTeam[playerid] == TEAM_MEDIC)
 {
  new
  tmp[20],
  id;
  tmp = strtok(cmdtext, index);
  if (strlen(tmp))
  {
   id = strval(tmp);
   if (IsPlayerConnected(id))
   {
    SetPlayerHealth(id, 35.0);
    SendClientMessage(id, 0x00FF00AA, "You have been healed by medic survivor");
    SendClientMessage(playerid, 0x00FF00AA, "you have healed the survivor");
   }
   else
   {
    SendClientMessage(playerid, 0xFF0000AA, "Player not found");
   }
  }
  else
  {
   SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
  }
  return 1;
 }
 return 0;
}



public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DialogIDChangeOnProblems)
    {
        switch( listitem )
        {
                        case 0:
                        {
                            SetPVarString(playerid,"Language", "American");
                        }
                        case 1:
                        {
                            SetPVarString(playerid,"Language", "Russian");
                        }
                        case 2:
                        {
                            SetPVarString(playerid,"Language","British");
                        }
                        case 3:
                        {
                            SetPVarString(playerid,"Language","Italian");
                        }
                        case 4:
                        {
                            SetPVarString(playerid,"Language","Dutch");
                        }
                        case 5:
                        {
                            SetPVarString(playerid,"Language","France");
                        }
                        case 6:
                        {
                            SetPVarString(playerid,"Language","Australian");
                        }
                        case 7:
                        {
                            SetPVarString(playerid,"Language","African");
                        }
                        case 8:
                        {
                            SetPVarString(playerid,"Language","Chinese");
                        }
                }
        }
}

public NearbyMessageForPlayers( playerid, stringcolour, text[])
{
        new Float:PosX, Float:PosY, Float:PosZ;
        for(new p = 0; p < MAX_PLAYERS; p++)
        {
                if(IsPlayerConnected( p ))
                {
                        GetPlayerPos( playerid, PosX, PosY, PosZ );
                        if(IsPlayerInRangeOfPoint(p, 12, PosX, PosY, PosZ) )
                        {
                            if(GetPlayerInterior( playerid ) == GetPlayerInterior( p ) && GetPlayerVirtualWorld( playerid ) == GetPlayerVirtualWorld( p ) )
                    {
                                SendClientMessage(p, stringcolour, text);
                        }
                }
                }
        }
        return 1;
}

//--Stuff not using only codes--//
strtok(const string2[], &index)
{
 new length = strlen(string2);
 while ((index < length) && (string2[index] <= ' '))
 {
  index++;
 }

 new offset = index;
 new result[20];
 while ((index < length) && (string2[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
 {
  result[index - offset] = string2[index];
  index++;
 }
 result[index - offset] = EOS;
 return result;
}

No comments:

Post a Comment