//------------------------------------------------------------------------------ //Warriors World. Gamemode for SA-MP 0.2.2 //Author Tornado. //by Tornado and Herbis. //Banks by Herbis. //Teleports by Tornado. //Bizness by Tornado //Coyrights Tornado and Herbis. Dont change this green thingy . //------------------------------------------------------------------------------ forward KickTimer(playerid); forward MoneyScore(); forward zinja(); forward zinja2(); forward RandomColour(); forward DropPlayerWeapons(playerid); forward DeletePickup(pickupid); forward GetWeaponModel(weaponid); forward SetPlayerRandomColour(playerid); forward SetPlayersHashedColour(playerid); forward CountDown(playerid); forward time(); forward NearGatels(); forward NearGatelsn(); forward NearGatelv(); forward NearGatelvn(); forward NearGatelv2(); forward NearGatesf(); forward NearGatesfn(); forward ExtractParametersFromString(const string[], number, out[]); forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); forward PropertyScoreUpdate(); forward getCheckpointType(playerID); forward checkpointUpdate(); forward PirateShipScoreUpdate(); forward isPlayerInArea(playerID, Float:data[4]); forward PayPlayerInArea(playerID, Float:x1, Float:y1, Float:x2, Float:y2, cash); #pragma tabsize 0 #include #include #include #include #include #include #include #define LT 10000 #define SLOTS 28 #define GIVECASH_DELAY 5000 #define IsPlayerInInvalidNosVehicle #define INACTIVE_PLAYER_ID 255 #define CP_BANK 0 #define CP_PIRATE 1 #define CP_AMMU 2 #define CP_WANGEXPORTS 3 #define CP_HEAVENS 4 #define CP_HELL 5 #define CP_DRAGON 6 #define CP_CALIGULA 7 #define CP_SEXSHOP 8 #define CP_BAR 9 #define CP_ZIP 10 #define CP_BINCO 11 #define CP_TATOO 12 #define CP_BOTIQUE 13 #define CP_STRIPCLUB 14 #define CP_WANGCARS 15 #define CP_AIRSTRIP 16 #define CP_EMERALD 17 #define CP_VISAGE 18 #define CP_SPREADRANCH 19 #define P_DRAGON 0 #define P_CALIGULA 1 #define P_SEXSHOP 2 #define P_BAR 3 #define P_ZIP 4 #define P_BINCO 5 #define P_TATOO 6 #define P_BOTIQUE 7 #define P_STRIPCLUB 8 #define P_WANGCARS 9 #define P_AIRSTRIP 10 #define P_EMERALD 11 #define P_VISAGE 12 #define P_SPREADRANCH 13 #define P_OFFSET 6 //------------------------------------------------------------------------------ #define MAX_POINTS 20 new Float:checkCoords[MAX_POINTS][4] = { {-36.5483,-57.9948,-17.2655,-49.2967}, //BANK {1894.6128,1445.3431,2084.9739,1637.8186}, //PIRATE {284.0546,-86.4384,302.9315,-56.6674}, //AMMUNATION {-1924.2008,245.8384,-1897.0090,310.0460}, //WANG EXPORTS {2301.1162,1260.2860,2346.1741,1305.4763}, //HEAVENS SKYDIVE {-2549.7979,-1660.4034,-2339.2673,-1589.3324}, //HELL FALL {1925.1511,968.2358,2019.0715,1067.4276}, //DRAGON {2216.7971,1638.0493,2255.2097,1714.0806}, //CALIGULA {-115.9544,-24.2706,-99.1631,-7.1391}, //SEXSHOP {487.6558,-88.5900,512.0635, -67.7503}, //BAR {144.9131,-96.0927,177.4128,-70.7923}, //ZIP {201.4462,-112.4556,218.5237,-95.1238}, //BINCO {-204.7623,-44.0326,-200.2330,-39.8128}, //TATOO {416.7485,-84.4242,422.6890,-74.0611}, //BOTIQUE {1201.1422,-16.6343,1223.4420,12.6656}, //STRIPCLUB {-1996.0801,253.4684,-1942.0564,310.0717}, //WANG CARS {413.4203,2534.9907,421.4078,2542.7031}, //VERDANT MEADOWS AIR STRIP {2099.1985,2328.5200,2179.1382,2405.8721}, //EMERALD ISLE {1998.3783,1875.9679,2066.3425,1957.0034}, //THE VISAGE {1205.7026,-41.1453,1216.8755,-23.9896} //THE BIG SPREAD RANCH }; new Float:checkpoints[MAX_POINTS][3] = { {-22.2549,-55.6575,1003.5469}, {2000.3132,1538.6012,13.5859}, {291.0004,-84.5168,1001.5156}, {-1920.6711,303.1555,41.0469}, {2323.7454,1283.1440,97.5579}, {-2432.6628,-1620.0771,526.8676}, {1989.0619,1005.5241,994.4688}, {2235.5408,1679.0402,1008.3594}, {-103.5525,-22.4661,1000.7188}, {501.4927,-75.4323,998.7578}, {161.1875,-79.9915,1001.8047}, {207.5640,-97.8188,1005.2578}, {-203.4864,-41.2045,1002.2734}, {418.5547,-80.1667,1001.8047}, {1212.3918,-10.9459,1000.9219}, {-1957.5327,300.2131,35.4688}, {418.1210,2536.8762,10.0000}, {2127.5940,2370.4255,10.8203}, {2022.5179,1916.6848,12.3397}, {1208.5027,-32.6044,1000.9531} }; new checkpointType[MAX_POINTS] = { CP_BANK, CP_PIRATE, CP_AMMU, CP_WANGEXPORTS, CP_HEAVENS, CP_HELL, CP_DRAGON, CP_CALIGULA, CP_SEXSHOP, CP_BAR, CP_ZIP, CP_BINCO, CP_TATOO, CP_BOTIQUE, CP_STRIPCLUB, CP_WANGCARS, CP_AIRSTRIP, CP_EMERALD, CP_VISAGE, CP_SPREADRANCH }; #define MAX_PROPERTIES 14 new propertyNames[MAX_PROPERTIES][32] = { "Four Dragons", "Caligula", "Sex Shop", "Shithole Bar", "Zip Shop", "Binco Shop", "Tatoo Parlor", "Botique", "Strip Club", "Wang Cars", "Verdant Meadows Air Strip", "Emerald Isle", "The Visage", "The Big Spread Ranch" }; new propertyValues[MAX_PROPERTIES] = { 75000, 100000, 25000, 20000, 15000, 15000, 10000, 20000, 30000, 20000, 25000, 60000, 110000, 25000 }; new propertyEarnings[MAX_PROPERTIES] = { 5000, 7000, 2000, 1500, 1000, 1000, 700, 1500, 2500, 1500, 2000, 6000, 8000, 2000 }; new propertyOwner[MAX_PROPERTIES] = {999,999,999,999,999,999,999,999,999,999,999,999,999,999}; //--------------------------------------------------------------------------------------------- //Global stuff and defines for our gamemode static gTeam[MAX_PLAYERS]; // Tracks the team assignment for each player new gPlayerClass[MAX_PLAYERS]; new WarriorsZone; new TopBaze; new PlayerInfo[250][250]; new logged; new bounty[MAX_PLAYERS]; new bounty2[MAX_PLAYERS][MAX_PLAYERS]; new money[150]; new Count = 5; new dancestyle; new mydist; new gatetimersf; new gatetimersfn; new gatetimerlv; new gatetimerlvn; new gatetimerlv2; new gatetimerls; new gatetimerlsn; new pdgateLS; new pdngateLS; new pdgateLV; new pdngateLV; new pdngate2LV; new pdgateSF; new pdngateSF; new HasPGP[MAX_PLAYERS]; new dmPlayers[MAX_PLAYERS]; new DropLimit=6; new Float:Position[200][4]; new PlayerPosition[200]; new bank[MAX_PLAYERS]; new playerCheckpoint[MAX_PLAYERS]; new Float:ROOM[6][3] = { {-969.2187,1090.2563,1345.0137}, {-1127.2655,1066.3616,1345.7346}, {-1055.0894,1025.1340,1343.2161}, {-984.0290,1040.0510,1343.0482}, {-1007.3942,1098.1549,1341.8386}, {-1030.8473,1076.7891,1343.1639} }; new Float:MINIGUN[3][3] = { {986.3726,2324.8044,11.4609}, {973.9619,2324.6694,11.4609}, {977.8196,2308.7046,11.4609} }; new Float:CHAINSAW[2][3] = { {1178.5675,-1186.1246,86.9123}, {1170.3607,-1176.1276,86.9063} }; new Float:DOME[3][3] = { {2421.6685,1825.2721,16.3222}, {2437.5686,1798.4474,16.3222}, {2421.3862,1796.9625,16.3222} }; new Float:MINIGUN2[8][3] = { {272.6700,118.4600,1004.6172}, {237.8951,121.4745,1003.2188}, {268.9403,118.3280,1004.6172}, {274.3726,122.2736,1004.6172}, {255.3159,114.6506,1008.8130}, {274.8344,109.6851,1008.8203}, {228.0238,122.8828,1010.2188}, {221.0308,108.1872,1010.2188} }; new Float:KNIFE[3][3] = { {2005.8356,2967.0225,4.0703}, {2005.4150,2926.8484,42.9287}, {2005.9008,2939.8586,35.4111} }; new Float:SHOTGUN[2][3] = { {-2517.4036,-690.6722,139.3203}, {-2538.1929,-716.0716,139.3203} }; new Float:UZI[7][3] = { {1886.9753,2842.5605,10.8359}, {1882.6857,2822.1887,10.8359}, {1882.9895,2876.2842,10.8359}, {1865.9904,2836.3394,10.8359}, {1836.9553,2874.2249,10.8359}, {1838.0114,2835.3040,10.8359}, {1857.5885,2853.7559,10.8359} }; new Float:KATANA[3][3] = { {1960.9849,1594.7543,75.7188}, {1895.6827,1628.2109,75.7188}, {1960.4968,1661.9376,75.7188} }; new Float:BATTLE2[17][3] = { {2543.0774,-1318.7151,1031.4219}, {2562.6006,-1283.6122,1031.4219}, {2572.2090,-1284.1630,1031.4219}, {2532.5264,-1304.3209,1031.4219}, {2569.1968,-1283.3182,1037.7734}, {2575.4282,-1283.1234,1044.1250}, {2566.5361,-1282.6898,1044.1250}, {2533.1855,-1304.5682,1044.1250}, {2569.4973,-1282.1111,1048.2891}, {2526.7871,-1285.7592,1048.2891}, {2541.5662,-1284.7285,1054.6406}, {2560.8896,-1304.0948,1054.6406}, {2561.4875,-1283.2468,1054.6406}, {2574.8708,-1282.6295,1054.6406}, {2574.3330,-1282.3905,1060.9844}, {2551.1985,-1294.2020,1060.9844}, {2580.6733,-1284.9515,1065.3582} }; new Float:KATANA2[1][3] = { {247.0137,302.7300,999.1484} }; new Float:BASEBALL[4][3] = { {960.9415,-55.8886,1001.1172}, {963.8344,-45.0824,1001.1172}, {945.6254,-43.9732,1001.1166}, {952.7191,-56.4865,1001.1172} }; new Float:DEAGLE2[4][3] = { {938.1593,-4.0285,1000.9322}, {940.9220,-16.5882,1000.9297}, {961.2857,0.0979,1001.1558}, {973.2642,6.4709,1001.1484} }; new Float:CHAINSAW2[4][3] = { {748.3768,1438.1169,1102.9531}, {760.0775,1440.1095,1102.7031}, {727.0394,1436.3156,1102.2734}, {740.2420,1435.9623,1102.7031} }; new CountText[5][5] ={ "~w~1", "~w~2", "~w~3", "~w~4", "~w~5" }; new VehiclesName[][] = { "Landstalker", "Bravura", "Buffalo", "Linerunner", "Pereniel", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat", "Mr Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster Truck", "Admiral", "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic", "Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX", "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer", "Hotring Racer", "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropdust", "Stunt", "Tanker", "RoadTrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune", "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster Truck", "Monster Truck", "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight", "Trailer", "Kart", "Mower", "Duneride", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "Newsvan", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club", "Trailer", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car (LSPD)", "Police Car (SFPD)", "Police Car (LVPD)", "Police Ranger", "Picador", "S.W.A.T. Van", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage Trailer", "Luggage Trailer", "Stair Trailer", "Boxville", "Farm Plow", "Utility Trailer" }; new vehname[128]; forward VehNameTime(playerid); forward VehNameTime2(playerid); //------------------------------------------------------------------------------ //Color Defines #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_PURPLE 0x9900FFAA #define COLOR_BROWN 0x993300AA #define COLOR_ORANGE 0xFF9933AA #define COLOR_CYAN 0x99FFFFAA #define COLOR_TAN 0xFFFFCCAA #define COLOR_PINK 0xFF66FFAA #define COLOR_KHAKI 0x999900AA #define COLOR_LIME 0x99FF00AA #define COLOR_BLACK 0x000000AA #define COLOR_TURQ 0x00A3C0AA #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_MAGENTA 0xFF00FFFF #define COLOR_NAVY 0x000080AA #define COLOR_AQUA 0xF0F8FFAA #define COLOR_CRIMSON 0xDC143CAA #define COLOR_FLBLUE 0x6495EDAA #define COLOR_GOLD 0xB8860BAA #define COLOR_GREENYELLOW 0xADFF2FAA #define COLOR_INDIGO 0x4B00B0AA #define COLOR_IVORY 0xFFFF82AA #define COLOR_LAWNGREEN 0x7CFC00AA #define COLOR_SEAGREEN 0x20B2AAAA #define COLOR_LIMEGREEN 0x32CD32AA #define COLOR_MIDNIGHTBLUE 0X191970AA #define COLOR_MAROON 0x800000AA #define COLOR_OLIVE 0x808000AA #define COLOR_ORANGERED 0xFF4500AA #define COLOR_TOMATO 0xFF6347AA #define COLOR_YELLOWGREEN 0x9ACD32AA #define COLOR_MEDIUMAQUA 0x83BFBFAA #define COLOR_MEDIUMMAGENTA 0x8B008BAA #define COLOR_BLUE 0x0000FFAA #define TextColor "~0xB8860BAA~" //------------------------------------------------------------------------------ //Team Defines #define TEAM_GANGSTER 0 #define TEAM_POLICE 1 #define TEAM_DRIFTER 2 #define TEAM_GIRLS 3 #define TEAM_RACER 4 #define TEAM_BALLAS 5 #define TEAM_VAGOS 6 #define TEAM_STUNTER 7 #define TEAM_PARAMEDIC 8 #define TEAM_FIREMAN 9 #define TEAM_CIVILIAN 10 #define TEAM_ARMY 11 #define TEAM_BUM 12 #define TEAM_MAFIA 13 #define TEAM_DISCO 14 #define TEAM_PILOT 15 #define TEAM_WORKER 16 #define TEAM_SAMURAI 17 //------------------------------------------------------------------------------------------------------ public PropertyScoreUpdate() { new owners[MAX_PROPERTIES]; new payments[MAX_PROPERTIES]; for(new i=0; i < MAX_PROPERTIES; i++) owners[i]=999; for(new i=0; i < MAX_PROPERTIES; i++) { if(propertyOwner[i] < 999) { for(new j=0; j < MAX_PROPERTIES; j++) { if(owners[j]==propertyOwner[i]) { payments[j]+=propertyEarnings[i]; j = MAX_PROPERTIES; } else if (owners[j]==999) { owners[j]=propertyOwner[i]; payments[j]+=propertyEarnings[i]; j = MAX_PROPERTIES; } } } } for(new i=0; i < MAX_PROPERTIES; i++) { if(owners[i] < 999 && IsPlayerConnected(owners[i])) { new string[256]; if(dmPlayers[owners[i]]!=999) { bank[owners[i]]+=payments[i]; } else { GivePlayerMoney(owners[i], payments[i]); format(string, sizeof(string), "You earned $%d from your properties.", payments[i]); SendClientMessage(owners[i], COLOR_GREEN, string); } } } } //------------------------------------------------------------------------------ public getCheckpointType(playerID) { return checkpointType[playerCheckpoint[playerID]]; } //------------------------------------------------------------------------------ public PirateShipScoreUpdate() { for(new i=0; i= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3]) { return 1; } return 0; } public PayPlayerInArea(playerID, Float:x1, Float:y1, Float:x2, Float:y2, cash) { if(IsPlayerConnected(playerID)) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerID, X, Y, Z); if(X >= x1 && X <= x2 && Y >= y1 && Y <= y2) { GivePlayerMoney(playerID, cash); return 1; } } return 0; } //------------------------------------------------------------------------------ main() { print("\n----------------------------------"); print(" Warriors World (2007)\n"); print("----------------------------------\n"); } //------------------------------------------------------------------------------ public MoneyScore(){ for(new i=0; i -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } return 0; } //------------------------------------------------------------------------------ public NearGatels() { for(new i=0; i0){ GetPlayerName(playerid, killedplayer, sizeof(killedplayer)); format(string, sizeof(string), "You earned a bounty of %d for killing %s.", bounty[playerid], killedplayer); SendClientMessage(killerid, COLOR_GREEN, string); GivePlayerMoney(killerid,bounty[playerid]); bounty[playerid]=0; for(new i=0; iDropLimit) times=DropLimit; for(new a=0;a~", 500, 3); } case 1: { GameTextForPlayer(playerid, "~g~~<~GANGSTER~>~", 500, 3); } case 2: { GameTextForPlayer(playerid, "~g~~<~GANGSTER~>~", 500, 3); } case 3: { GameTextForPlayer(playerid, "~g~~<~GANGSTER~>~", 500, 3); } case 4: { GameTextForPlayer(playerid, "~o~~<~POLICE~>~", 500, 3); } case 5: { GameTextForPlayer(playerid, "~o~~<~POLICE~>~", 500, 3); } case 6: { GameTextForPlayer(playerid, "~g~~<~DRIFTER~>~", 500, 3); } case 7: { GameTextForPlayer(playerid, "~g~~<~DRIFTER~>~", 500, 3); } case 8: { GameTextForPlayer(playerid, "~p~~<~GIRLS~>~", 500, 3); } case 9: { GameTextForPlayer(playerid, "~p~~<~GIRLS~>~", 500, 3);} case 10: { GameTextForPlayer(playerid, "~p~~<~GIRLS~>~", 500, 3);} case 11: { GameTextForPlayer(playerid, "~r~~<~RACER~>~", 500, 3);} case 12: { GameTextForPlayer(playerid, "~r~~<~RACER~>~", 500, 3);} case 13: { GameTextForPlayer(playerid, "~r~~<~RACER~>~", 500, 3);} case 14: { GameTextForPlayer(playerid, "~p~~<~BALLAS~>~", 500, 3);} case 15: { GameTextForPlayer(playerid, "~p~~<~BALLAS~>~", 500, 3);} case 16: { GameTextForPlayer(playerid, "~p~~<~BALLAS~>~", 500, 3);} case 17: { GameTextForPlayer(playerid, "~y~~<~VAGOS~>~", 500, 3);} case 18: { GameTextForPlayer(playerid, "~y~~<~VAGOS~>~", 500, 3);} case 19: { GameTextForPlayer(playerid, "~y~~<~VAGOS~>~", 500, 3);} case 20: { GameTextForPlayer(playerid, "~g~~<~STUNTER~>~", 500, 3);} case 21: { GameTextForPlayer(playerid, "~g~~<~STUNTER~>~", 500, 3);} case 22: { GameTextForPlayer(playerid, "~w~~<~PARAMEDIC~>~", 500, 3);} case 23: { GameTextForPlayer(playerid, "~w~~<~PARAMEDIC~>~", 500, 3);} case 24: { GameTextForPlayer(playerid, "~w~~<~FIREMAN~>~", 500, 3);} case 25: { GameTextForPlayer(playerid, "~w~~<~FIREMAN~>~", 500, 3);} case 26: { GameTextForPlayer(playerid, "~w~~<~CIVILIAN~>~", 500, 3);} case 27: { GameTextForPlayer(playerid, "~w~~<~CIVILIAN~>~", 500, 3);} case 28: { GameTextForPlayer(playerid, "~w~~<~CIVILIAN~>~", 500, 3);} case 29: { GameTextForPlayer(playerid, "~w~~<~CIVILIAN~>~", 500, 3);} case 30: { GameTextForPlayer(playerid, "~w~~<~CIVILIAN~>~", 500, 3);} case 31: { GameTextForPlayer(playerid, "~w~~<~CIVILIAN~>~", 500, 3);} case 32: { GameTextForPlayer(playerid, "~w~~<~CIVILIAN~>~", 500, 3);} case 33: { GameTextForPlayer(playerid, "~r~~<~ARMY~>~", 500, 3);} case 34: { GameTextForPlayer(playerid, "~g~~<~BUM~>~", 500, 3);} case 35: { GameTextForPlayer(playerid, "~g~~<~BUM~>~", 500, 3);} case 36: { GameTextForPlayer(playerid, "~g~~<~BUM~>~", 500, 3);} case 37: { GameTextForPlayer(playerid, "~g~~<~BUM~>~", 500, 3);} case 38: { GameTextForPlayer(playerid, "~g~~<~BUM~>~", 500, 3);} case 39: { GameTextForPlayer(playerid, "~g~~<~BUM~>~", 500, 3);} case 40: { GameTextForPlayer(playerid, "~r~~<~MAFIA~>~", 500, 3);} case 41: { GameTextForPlayer(playerid, "~r~~<~MAFIA~>~", 500, 3);} case 42: { GameTextForPlayer(playerid, "~r~~<~MAFIA~>~", 500, 3);} case 43: { GameTextForPlayer(playerid, "~r~~<~MAFIA~>~", 500, 3);} case 44: { GameTextForPlayer(playerid, "~r~~<~MAFIA~>~", 500, 3);} case 45: { GameTextForPlayer(playerid, "~r~~<~MAFIA~>~", 500, 3);} case 46: { GameTextForPlayer(playerid, "~g~~<~DISCO~>~", 500, 3);} case 47: { GameTextForPlayer(playerid, "~g~~<~DISCO~>~", 500, 3);} case 48: { GameTextForPlayer(playerid, "~g~~<~DISCO~>~", 500, 3);} case 49: { GameTextForPlayer(playerid, "~g~~<~DISCO~>~", 500, 3);} case 50: { GameTextForPlayer(playerid, "~g~~<~DISCO~>~", 500, 3);} case 51: { GameTextForPlayer(playerid, "~w~~<~PILOT~>~", 500, 3);} case 52: { GameTextForPlayer(playerid, "~w~~<~PILOT~>~", 500, 3);} case 53: { GameTextForPlayer(playerid, "~w~~<~PILOT~>~", 500, 3);} case 54: { GameTextForPlayer(playerid, "~p~~<~WORKER~>~", 500, 3);} case 55: { GameTextForPlayer(playerid, "~p~~<~WORKER~>~", 500, 3);} case 56: { GameTextForPlayer(playerid, "~p~~<~WORKER~>~", 500, 3);} case 57: { GameTextForPlayer(playerid, "~p~~<~WORKER~>~", 500, 3);} case 58: { GameTextForPlayer(playerid, "~p~~<~WORKER~>~", 500, 3);} case 59: { GameTextForPlayer(playerid, "~p~~<~WORKER~>~", 500, 3);} case 60: { GameTextForPlayer(playerid, "~p~~<~WORKER~>~", 500, 3);} case 61: { GameTextForPlayer(playerid, "~p~~<~WORKER~>~", 500, 3);} case 62: { GameTextForPlayer(playerid, "~w~~<~SAMURAI~>~", 500, 3);} case 63: { GameTextForPlayer(playerid, "~w~~<~SAMURAI~>~", 500, 3);} case 64: { GameTextForPlayer(playerid, "~w~~<~SAMURAI~>~", 500, 3);} } return 1; } //--------------------------------------------------------------------------------- SetPlayerClass(playerid, classid) { if(classid == 0) { gTeam[playerid] = TEAM_GANGSTER; } else if(classid == 1) { gTeam[playerid] = TEAM_GANGSTER; } else if(classid == 2) { gTeam[playerid] = TEAM_GANGSTER; } else if(classid == 3) { gTeam[playerid] = TEAM_GANGSTER; } else if(classid == 4) { gTeam[playerid] = TEAM_POLICE; } else if(classid == 5) { gTeam[playerid] = TEAM_POLICE; } else if(classid == 6) { gTeam[playerid] = TEAM_DRIFTER; } else if(classid == 7) { gTeam[playerid] = TEAM_DRIFTER; } else if(classid == 8) { gTeam[playerid] = TEAM_GIRLS; } else if(classid == 9) { gTeam[playerid] = TEAM_GIRLS; } else if(classid == 10) { gTeam[playerid] = TEAM_GIRLS; } else if(classid == 11) { gTeam[playerid] = TEAM_RACER; } else if(classid == 12) { gTeam[playerid] = TEAM_RACER; } else if(classid == 13) { gTeam[playerid] = TEAM_RACER; } else if(classid == 14) { gTeam[playerid] = TEAM_BALLAS; } else if(classid == 15) { gTeam[playerid] = TEAM_BALLAS; } else if(classid == 16) { gTeam[playerid] = TEAM_BALLAS; } else if(classid == 17) { gTeam[playerid] = TEAM_VAGOS; } else if(classid == 18) { gTeam[playerid] = TEAM_VAGOS; } else if(classid == 19) { gTeam[playerid] = TEAM_VAGOS; } else if(classid == 20) { gTeam[playerid] = TEAM_STUNTER; } else if(classid == 21) { gTeam[playerid] = TEAM_STUNTER; } else if(classid == 22) { gTeam[playerid] = TEAM_PARAMEDIC; } else if(classid == 23) { gTeam[playerid] = TEAM_PARAMEDIC; } else if(classid == 24) { gTeam[playerid] = TEAM_FIREMAN; } else if(classid == 25) { gTeam[playerid] = TEAM_FIREMAN; } else if(classid == 26) { gTeam[playerid] = TEAM_CIVILIAN; } else if(classid == 27) { gTeam[playerid] = TEAM_CIVILIAN; } else if(classid == 28) { gTeam[playerid] = TEAM_CIVILIAN; } else if(classid == 29) { gTeam[playerid] = TEAM_CIVILIAN; } else if(classid == 30) { gTeam[playerid] = TEAM_CIVILIAN; } else if(classid == 31) { gTeam[playerid] = TEAM_CIVILIAN; } else if(classid == 32) { gTeam[playerid] = TEAM_CIVILIAN; } else if(classid == 33) { gTeam[playerid] = TEAM_ARMY; } else if(classid == 34) { gTeam[playerid] = TEAM_BUM; } else if(classid == 35) { gTeam[playerid] = TEAM_BUM; } else if(classid == 36) { gTeam[playerid] = TEAM_BUM; } else if(classid == 37) { gTeam[playerid] = TEAM_BUM; } else if(classid == 38) { gTeam[playerid] = TEAM_BUM; } else if(classid == 39) { gTeam[playerid] = TEAM_BUM; } else if(classid == 40) { gTeam[playerid] = TEAM_MAFIA; } else if(classid == 41) { gTeam[playerid] = TEAM_MAFIA; } else if(classid == 42) { gTeam[playerid] = TEAM_MAFIA; } else if(classid == 43) { gTeam[playerid] = TEAM_MAFIA; } else if(classid == 44) { gTeam[playerid] = TEAM_MAFIA; } else if(classid == 45) { gTeam[playerid] = TEAM_MAFIA; } else if(classid == 46) { gTeam[playerid] = TEAM_DISCO; } else if(classid == 47) { gTeam[playerid] = TEAM_DISCO; } else if(classid == 48) { gTeam[playerid] = TEAM_DISCO; } else if(classid == 49) { gTeam[playerid] = TEAM_DISCO; } else if(classid == 50) { gTeam[playerid] = TEAM_DISCO; } else if(classid == 51) { gTeam[playerid] = TEAM_PILOT; } else if(classid == 52) { gTeam[playerid] = TEAM_PILOT; } else if(classid == 53) { gTeam[playerid] = TEAM_PILOT; } else if(classid == 54) { gTeam[playerid] = TEAM_WORKER; } else if(classid == 55) { gTeam[playerid] = TEAM_WORKER; } else if(classid == 56) { gTeam[playerid] = TEAM_WORKER; } else if(classid == 57) { gTeam[playerid] = TEAM_WORKER; } else if(classid == 58) { gTeam[playerid] = TEAM_WORKER; } else if(classid == 59) { gTeam[playerid] = TEAM_WORKER; } else if(classid == 60) { gTeam[playerid] = TEAM_WORKER; } else if(classid == 61) { gTeam[playerid] = TEAM_WORKER; } else if(classid == 62) { gTeam[playerid] = TEAM_SAMURAI; } else if(classid == 63) { gTeam[playerid] = TEAM_SAMURAI; } else if(classid == 64) { gTeam[playerid] = TEAM_SAMURAI; } return 1; } //------------------------------------------------------------------------------- public OnPlayerEnterCheckpoint(playerid) { new string[256]; new ownplayer[MAX_PLAYER_NAME]; switch(getCheckpointType(playerid)) { case CP_BANK: { SendClientMessage(playerid, COLOR_YELLOW, "You are at an ATM. To store money use '/bank amount', to withdraw"); SendClientMessage(playerid, COLOR_YELLOW, "money use '/withdraw amount', and '/balance' to see your balance."); } case CP_PIRATE: { SendClientMessage(playerid, COLOR_YELLOW, "You can hold the pirate ship area to gain money."); } case CP_AMMU: { SendClientMessage(playerid, COLOR_GREEN, "You can purchase weapons here so that you have them every"); SendClientMessage(playerid, COLOR_GREEN, "time you spawn. You can purchase more than once for more ammo."); SendClientMessage(playerid, COLOR_YELLOW, "Type /buyweapon [weapon number] and /weaponlist for a list of weapons."); } case CP_HEAVENS: { SendClientMessage(playerid, COLOR_YELLOW, "It's a stairway to heaven baby."); SetPlayerPos(playerid,2096.1462,1285.2556,1000.000); } case CP_HELL: { SendClientMessage(playerid, COLOR_YELLOW, "It's a gateway to hell baby."); SetPlayerPos(playerid,-2458.7756,-1399.5762,1000.000); } } if(getCheckpointType(playerid)>= P_OFFSET) { format(string, sizeof(string), "You can buy the %s for $%d with /buy.", propertyNames[playerCheckpoint[playerid]-P_OFFSET], propertyValues[playerCheckpoint[playerid]-P_OFFSET]); SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "You will earn $%d regularly.", propertyEarnings[playerCheckpoint[playerid]-P_OFFSET]); SendClientMessage(playerid, COLOR_YELLOW, string); if(propertyOwner[playerCheckpoint[playerid]-P_OFFSET]<999) { GetPlayerName(propertyOwner[playerCheckpoint[playerid]-P_OFFSET], ownplayer, sizeof(ownplayer)); format(string, sizeof(string), "This property is currently owned by %s.", ownplayer); SendClientMessage(playerid, COLOR_RED, string); } } } //------------------------------------------------------------------------------ //banku komandas public OnPlayerCommandText(playerid, cmdtext[]) { new string[256]; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new cmd[256]; new giveplayerid, moneys, idx; cmd = strtok(cmdtext, idx); ExtractParametersFromString(cmdtext, 1, cmd); if (strcmp("/vehid",cmdtext,true) == 0) { if (IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid,0x33AA33AA,"-----------------------------------------"); SendClientMessage(playerid,0x33AA33AA,"Information about vehivle!!!"); format(vehname,128,"Name - %s",VehiclesName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); SendClientMessage(playerid,0x33AA33AA,vehname); format(vehname,128,"Model ID - %d",GetVehicleModel(GetPlayerVehicleID(playerid))); SendClientMessage(playerid,0x33AA33AA,vehname); format(vehname,128,"Vehicle ID - %d",GetPlayerVehicleID(playerid)); SendClientMessage(playerid,0x33AA33AA,vehname); SendClientMessage(playerid,0x33AA33AA,"-----------------------------------------"); } else SendClientMessage(playerid,0xAA3333AA,"You're not inside a vehicle"); return 1; } //------------------- /hitman if(strcmp(cmd, "/hitman", true) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hitman [playerid] [amount]"); return 1; } giveplayerid = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hitman [playerid] [amount]"); return 1; } moneys = strval(tmp); if(moneys > GetPlayerMoney(playerid)) { SendClientMessage(playerid, COLOR_RED, "You don't have enough money!"); return 1; } if(moneys < 1) { SendClientMessage(playerid, COLOR_YELLOW, "Hey what are you trying to pull here."); return 1; } if(IsPlayerConnected(giveplayerid)==0) { SendClientMessage(playerid, COLOR_RED, "No such player exists."); return 1; } bounty[giveplayerid]+=moneys; GivePlayerMoney(playerid, 0-moneys); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); // format(string, sizeof(string), "You have put a $%d bounty on the head of %s (id: %d).", moneys, giveplayer,giveplayerid); // SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "%s has had a $%d bounty put on his head from %s (total: $%d).", giveplayer, moneys, sendername, bounty[giveplayerid]); SendClientMessageToAll(COLOR_ORANGE, string); format(string, sizeof(string), "You have had a $%d bounty put on you from %s (id: %d).", moneys, sendername, playerid); SendClientMessage(giveplayerid, COLOR_RED, string); return 1; } //------------------- /bounty if(strcmp(cmd, "/bounty", true) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bounty [playerid]"); return 1; } giveplayerid = strval(tmp); if(IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "Player %s (id: %d) has a $%d bounty on his head.", giveplayer,giveplayerid,bounty[giveplayerid]); SendClientMessage(playerid, COLOR_YELLOW, string); } else { SendClientMessage(playerid, COLOR_RED, "No such player exists!"); } return 1; } //------------------- /bounties if(strcmp(cmd, "/bounties", true) == 0) { // new tmp[256]; new x; SendClientMessage(playerid, COLOR_GREEN, "Current Bounties:"); for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && bounty[i] > 0) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%s%s(%d): $%d", string,giveplayer,i,bounty[i]); x++; if(x > 3) { SendClientMessage(playerid, COLOR_YELLOW, string); x = 0; format(string, sizeof(string), ""); } else { format(string, sizeof(string), "%s, ", string); } } } if(x <= 3 && x > 0) { string[strlen(string)-2] = '.'; SendClientMessage(playerid, COLOR_YELLOW, string); } return 1; } if(strcmp(cmd, "/bank", true) == 0) { if(PlayerToPoint(100, playerid,827.9430,4.9825,1004.1870) || PlayerToPoint(100, playerid,212.6392,-8.1615,1001.2109) || PlayerToPoint(100, playerid,346.4020,172.5660,1014.1875) || PlayerToPoint(100, playerid,-2662.8271,1411.1824,906.2734) || PlayerToPoint(100, playerid,-26.9156,-55.3495,1003.5469)) { new nummoney2[256]; new nummoney; new oldmoney; new pmoney; new newmoney; new playername[256]; new str[256]; new text[256]; GetPlayerName(playerid, playername, 256); if(!ExtractParametersFromString(cmdtext, 2, nummoney2)) { SendClientMessage(playerid, COLOR_GREEN, "Enter the sum"); return 1; } else { nummoney = strval(nummoney2); } if(GetPlayerMoney(playerid) < nummoney) { SendClientMessage(playerid, COLOR_GREEN, "You don't have that money"); } else { format(str,sizeof(str),"bank/%s", playername); oldmoney = dini_Int(str,"bank"); newmoney = nummoney+oldmoney; dini_IntSet(str, "bank",newmoney); pmoney = GetPlayerMoney(playerid); ResetPlayerMoney(playerid); GivePlayerMoney(playerid, pmoney-nummoney); SendClientMessage(playerid, 0xF0F0F0FF, "|______ Banker's check ______|"); format(string,sizeof(string)," You old cash: %d$", oldmoney); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string)," Deposit: %d$", nummoney); SendClientMessage(playerid, COLOR_WHITE, string); format(text,sizeof(text)," New cash: %d$", newmoney); SendClientMessage(playerid, COLOR_WHITE, text); } } else { SendClientMessage(playerid, COLOR_WHITE, "Entered in bank"); } return 1; } if(strcmp(cmd, "/whitdraw", true) == 0) { if(PlayerToPoint(100, playerid,827.9430,4.9825,1004.1870) || PlayerToPoint(100, playerid,212.6392,-8.1615,1001.2109) || PlayerToPoint(100, playerid,346.4020,172.5660,1014.1875) || PlayerToPoint(100, playerid,-2662.8271,1411.1824,906.2734) || PlayerToPoint(100, playerid,-26.9156,-55.3495,1003.5469)) { new nummoney2[256]; new nummoney; new oldmoney; new newmoney; new playername[256]; new str[256]; new text[256]; GetPlayerName(playerid, playername, 256); if(!ExtractParametersFromString(cmdtext, 2, nummoney2)) { SendClientMessage(playerid, COLOR_GREEN, "Enter the sum"); } else { nummoney = strval(nummoney2); } format(str,sizeof(str),"bank/%s", playername); oldmoney = dini_Int(str,"bank"); if(oldmoney < nummoney) { SendClientMessage(playerid, COLOR_GREEN, "You don't have that money"); } else { newmoney = oldmoney-nummoney; dini_IntSet(str, "bank",newmoney); GivePlayerMoney(playerid, nummoney); SendClientMessage(playerid, 0xF0F0F0FF, "|______ Banker's check ______|"); format(string,sizeof(string)," You old cash: %d$", oldmoney); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string)," Have taken: %d$", nummoney); SendClientMessage(playerid, COLOR_WHITE, string); format(text,sizeof(text)," New cash: %d$", newmoney); SendClientMessage(playerid, COLOR_WHITE, text); } } else { SendClientMessage(playerid, COLOR_WHITE, "Please enter a bank"); } return 1; } if(strcmp(cmd, "/balance", true) == 0) { new playername[256]; new str[256]; new money2; GetPlayerName(playerid, playername, 256); format(str,sizeof(str),"bank/%s", playername); money2 = dini_Int(str,"bank"); format(str,sizeof(str)," Your is cash: %d$", money2); SendClientMessage(playerid, 0xF0F0F0FF, "|______ Banker's check ______|"); SendClientMessage(playerid, COLOR_WHITE, str); return 1; } // strat countdown if (strcmp(cmdtext, "/count", true)==0) { if(Count >= 5) { SendClientMessageToAll(COLOR_LIGHTBLUE, "Race will start after.."); return 1; } else { SendClientMessage(playerid, COLOR_YELLOW, "Sorry but race is satrted"); return 1; } } //------------------------------------------------------------------------------ //------------------- /buy if(strcmp(cmd, "/buy", true) == 0) { new property=999; new pbGameText; if(IsPlayerInCheckpoint(playerid)) { switch (playerCheckpoint[playerid]) { case CP_DRAGON:{ property = P_DRAGON; } case CP_CALIGULA:{ property = P_CALIGULA; } case CP_SEXSHOP:{ property = P_SEXSHOP; } case CP_BAR:{ property = P_BAR; } case CP_ZIP:{ property = P_ZIP; } case CP_BINCO:{ property = P_BINCO; } case CP_TATOO:{ property = P_TATOO; } case CP_BOTIQUE:{ property = P_BOTIQUE; } case CP_STRIPCLUB:{ property = P_STRIPCLUB; } case CP_WANGCARS:{ property = P_WANGCARS; } case CP_AIRSTRIP:{ property = P_AIRSTRIP; } case CP_EMERALD:{ property = P_EMERALD; } case CP_VISAGE:{ property = P_VISAGE; } case CP_SPREADRANCH:{ property = P_SPREADRANCH; } } if(property==999) { SendClientMessage(playerid, COLOR_YELLOW, "You need to be in a property checkpoint to /buy it."); return 1; } // property--; if(GetPlayerMoney(playerid) < propertyValues[property]) { SendClientMessage(playerid, COLOR_RED, "You don't have enough money to buy this property."); return 1; } if(propertyOwner[property]==playerid) { SendClientMessage(playerid, COLOR_RED, "You already own this property."); return 1; } if(propertyOwner[property] < 999) { GetPlayerName(playerid, giveplayer, sizeof(giveplayer)); GivePlayerMoney(propertyOwner[property], propertyValues[property]); format (string, sizeof(string), "Your property, the %s, has been bought out by %s (id: %d).",propertyNames[property],giveplayer,playerid); SendClientMessage(propertyOwner[property], COLOR_RED, string); } GivePlayerMoney(playerid, 0-propertyValues[property]); propertyOwner[property]=playerid; format(string, sizeof(string), "You have purchased the %s!", propertyNames[property]); SendClientMessage(playerid, COLOR_GREEN, string); if(property==P_DRAGON || property==P_CALIGULA) { if(pbGameText) { format(string, sizeof(string),"~y~%s is the ~g~Pit Boss ~y~of %s",giveplayer,propertyNames[property]); GameTextForAll(string,5000,3); } else { format(string, sizeof(string),"%s is the Pit Boss of %s",giveplayer,propertyNames[property]); SendClientMessageToAll(COLOR_LIGHTBLUE, string); } format(string, sizeof(string),"Sir, your %s limousine's are now available to you and any gang members.",propertyNames[property]); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } } else { SendClientMessage(playerid, COLOR_YELLOW, "You need to be in a property checkpoint to /buy it."); return 1; } return 1; } //------------------- /properties1 if(strcmp(cmd, "/properties1", true) == 0 || strcmp(cmd, "/properties", true) == 0) { new propertiestemp = MAX_PROPERTIES; if(propertiestemp>9) { propertiestemp = 9; } SendClientMessage(playerid, COLOR_GREEN, "Property Set 1/2 Owners:"); for(new i = 0; i < propertiestemp; i++) { if(propertyOwner[i] < 999) { GetPlayerName(propertyOwner[i], giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%d. %s - %s", i, propertyNames[i], giveplayer); } else format(string, sizeof(string), "%d. %s - None", i, propertyNames[i]); SendClientMessage(playerid, COLOR_YELLOW, string); } return 1; } //------------------- /properties2 if(strcmp(cmd, "/properties2", true) == 0) { SendClientMessage(playerid, COLOR_GREEN, "Property Set 2/2 Owners:"); for(new i = 9; i < MAX_PROPERTIES; i++) { if(propertyOwner[i] < 999) { GetPlayerName(propertyOwner[i], giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%d. %s - %s", i, propertyNames[i], giveplayer); } else format(string, sizeof(string), "%d. %s - None", i, propertyNames[i]); SendClientMessage(playerid, COLOR_YELLOW, string); } return 1; } //-------------------------------------------------------------------------------- // end countdown //------------------------------------------- HELP ORANGE #pragma tabsize 0 if (strcmp(cmdtext, "/rules", true)== 0 && IsPlayerAdmin(playerid) == 1){ SendClientMessageToAll(0xFF9933AA, "Rules"); SendClientMessageToAll(0xFF9933AA, "1)Dont cheat or BAN"); SendClientMessageToAll(0xFF9933AA, "2)No spawn killing or kick/ban"); SendClientMessageToAll(0xFF9933AA, "3)Do not use bad words or wire/jail"); return 1;} //------------------------------------------- commands if (strcmp(cmdtext, "/bankhelp", true)==0){ SendClientMessage(playerid, COLOR_WHITE, "---------------------------------"); SendClientMessage(playerid, COLOR_WHITE, "Bankhelp List"); SendClientMessage(playerid, COLOR_WHITE, "/bank - to deposite your money"); SendClientMessage(playerid, COLOR_WHITE, "/withdraw - to take out your money"); SendClientMessage(playerid, COLOR_WHITE, "/balance - to see cash in bank"); SendClientMessage(playerid, COLOR_WHITE, "To use banks enter in any 24/7 shop."); SendClientMessage(playerid, COLOR_WHITE, "----------------------------------"); return 1;} if (strcmp(cmdtext, "/cmd", true)==0){ SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cmd 1-4"); return 1;} if (strcmp(cmdtext, "/cmd 1", true)==0){ SendClientMessage(playerid, COLOR_YELLOW, "---------------------------------------------------------"); SendClientMessage(playerid, COLOR_YELLOW, "CMD 1 commands"); SendClientMessage(playerid, COLOR_YELLOW, "/teleports - all teleports list "); SendClientMessage(playerid, COLOR_YELLOW, "/register - register your account on server"); SendClientMessage(playerid, COLOR_YELLOW, "/admins - to see which admins are online"); SendClientMessage(playerid, COLOR_YELLOW, "/animlist - all animations"); SendClientMessage(playerid, COLOR_YELLOW, "/bankhelp - bank commands"); SendClientMessage(playerid, COLOR_YELLOW, "/buyhealth - buy health"); SendClientMessage(playerid, COLOR_YELLOW, "/buyarmour - buy armour"); SendClientMessage(playerid, COLOR_YELLOW, "---------------------------------------------------------"); return 1;} if (strcmp(cmdtext, "/cmd 2", true)==0){ SendClientMessage(playerid, COLOR_YELLOW, "---------------------------------------------------------"); SendClientMessage(playerid, COLOR_YELLOW, "CMD 2 commands"); SendClientMessage(playerid, COLOR_YELLOW, "/blood, /dirtbike, /kart - speciall teleports"); SendClientMessage(playerid, COLOR_YELLOW, "/lock - lock car"); SendClientMessage(playerid, COLOR_YELLOW, "/unlock - unlock car"); SendClientMessage(playerid, COLOR_YELLOW, "/savepos - save your current position(admins only)"); SendClientMessage(playerid, COLOR_YELLOW, "/gotopos - teleport to your saved position(admins only)"); SendClientMessage(playerid, COLOR_YELLOW, "/kill - kill yourselfe(suicide)"); SendClientMessage(playerid, COLOR_YELLOW, "----------------------------------------------------------"); return 1;} if (strcmp(cmdtext, "/cmd 3", true)==0){ SendClientMessage(playerid, COLOR_YELLOW, "----------------------------------------------------------"); SendClientMessage(playerid, COLOR_YELLOW, "CMD 3 commands"); SendClientMessage(playerid, COLOR_YELLOW, "/dive - jump with parachute"); SendClientMessage(playerid, COLOR_YELLOW, "/countdown - start countdown"); SendClientMessage(playerid, COLOR_YELLOW, "/infoo - server info"); SendClientMessage(playerid, COLOR_YELLOW, "/para - get free parachute"); SendClientMessage(playerid, COLOR_YELLOW, "/fix - repair your car"); SendClientMessage(playerid, COLOR_YELLOW, "/vehid - display information about vehicle"); SendClientMessage(playerid, COLOR_YELLOW, "/rules - server rules"); SendClientMessage(playerid, COLOR_YELLOW, "----------------------------------------------------------"); return 1;} if (strcmp(cmdtext, "/cmd 4", true)==0){ SendClientMessage(playerid, COLOR_YELLOW, "----------------------------------------------------------"); SendClientMessage(playerid, COLOR_YELLOW, "CMD 4 commands"); SendClientMessage(playerid, COLOR_YELLOW, "/jailme - get in jail"); SendClientMessage(playerid, COLOR_YELLOW, "/DM - Deathamch list"); SendClientMessage(playerid, COLOR_YELLOW, "/hitman - put a bounty on head somebody"); SendClientMessage(playerid, COLOR_YELLOW, "/bounties - to see which players have bounty"); SendClientMessage(playerid, COLOR_YELLOW, "/bounty - to see how big bounty is on your head"); SendClientMessage(playerid, COLOR_YELLOW, "----------------------------------------------------------"); return 1;} if (strcmp(cmdtext, "/animlist", true)==0){ SendClientMessage(playerid, COLOR_YELLOW, "----------------------------------------------------------"); SendClientMessage(playerid, COLOR_YELLOW, "Animation list:"); SendClientMessage(playerid, COLOR_YELLOW, "/dance1-3, /drunk, /chat, /fu, /smoke, /piss, /death, /drugsbuy"); SendClientMessage(playerid, COLOR_YELLOW, "/slapass, /vomit, /injured, /arrested, /eat, /watch, /plant"); SendClientMessage(playerid, COLOR_YELLOW, "/laugh, /sitdrink, /spray, /swim, /under, /phone, /smoke2, /walksexy"); SendClientMessage(playerid, COLOR_YELLOW, "/kickt, /tank, /lafin, /strip1, /strip2, /vortex, /shout, /pool"); SendClientMessage(playerid, COLOR_YELLOW, "/copmove, /sitread, /cuthair, /mtb, /mtb1"); SendClientMessage(playerid, COLOR_YELLOW, "---------------------------------------------------------"); return 1;} if (strcmp(cmdtext, "/help", true)==0){ //SendClientMessage(playerid, 0xFFFF00AA, tmpbuf); SendClientMessage(playerid, 0xFF9933AA, "*** Type /cmd and you will see all commands"); return 1;} if (strcmp(cmdtext, "/DM", true)==0){ SendClientMessage(playerid, COLOR_ORANGE, "================================="); SendClientMessage(playerid, COLOR_ORANGE, "Deathmach List:"); SendClientMessage(playerid, COLOR_ORANGE, "/dildo, /fight, /deagle, /battle, /minigun"); SendClientMessage(playerid, COLOR_ORANGE, "/chainsaw, /dome, /minigun2, /knife"); SendClientMessage(playerid, COLOR_ORANGE, "/shotgun, /uzi, /katana, /battle2, /chainsaw2"); SendClientMessage(playerid, COLOR_ORANGE, "/deagle2, /katana2, /baseball"); SendClientMessage(playerid, COLOR_ORANGE, "================================="); return 1;} if (strcmp(cmdtext, "/rules", true)==0){ SendClientMessage(playerid, COLOR_RED, "================================="); SendClientMessage(playerid, COLOR_RED, "Server rules:"); SendClientMessage(playerid, COLOR_RED, "1) DONT cheat(BAN)"); SendClientMessage(playerid, COLOR_RED, "2) DONT use bad words(kick)"); SendClientMessage(playerid, COLOR_RED, "3) DONT shout players on spawn places 10 sec(kick,jail)"); SendClientMessage(playerid, COLOR_RED, "4) NO drivebys without reason(kick)"); SendClientMessage(playerid, COLOR_RED, "Have a good time :)"); SendClientMessage(playerid, COLOR_RED, "================================="); return 1;} if (strcmp(cmdtext, "/buyarmour", true)==0){ SetPlayerArmour(playerid,100); GivePlayerMoney(playerid,-500); return 1;} if (strcmp(cmdtext, "/buyhealth", true)==0){ SetPlayerHealth(playerid,100); GivePlayerMoney(playerid,-500); return 1;} if (strcmp(cmdtext, "/para", true)==0){ GivePlayerWeapon(playerid,46,1); return 1;} if(strcmp("/fix", cmdtext, true, 10) == 0) //fix { if(IsPlayerInAnyVehicle(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000); SendClientMessage(playerid, 0xFFFF00AA, "Successfully repaired"); GivePlayerMoney(playerid,-100); } else return SendClientMessage(playerid, 0xFF0000FF, "You must be in a vehicle"); return 1; } if (strcmp(cmdtext, "/jailme", true)==0){ SetPlayerInterior(playerid,10); SetPlayerPos(playerid,223.5607,110.4992,999.0156); return 1;} //------------------------------------------------------------------------------ //------------------------------DEATHCMACHES------------------------------------ //------------------------------------------------------------------------------ if (strcmp(cmdtext, "/dildo", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,0); SetPlayerPos(playerid,154.1813,-1950.8678,10.7188); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 12, 1); GameTextForPlayer(playerid,"~g~Welcome to ~r~DILDO DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the DILDO DM (/dildo)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the DILDO type /kill"); return 1;} if (strcmp(cmdtext, "/fight", true)==0){ new name[MAX_PLAYER_NAME+1]; format(string, sizeof(string), "*** %s has entered the FIGHT DM (/fight)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the FIGHT type /kill"); SetPlayerInterior(playerid,5); SetPlayerPos(playerid,762.6447,-1.6480,1001.5942); GameTextForPlayer(playerid,"~g~Welcome to ~r~FIGHT DM!!!",2500,5); ResetPlayerWeapons(playerid); return 1;} if (strcmp(cmdtext, "/deagle", true)==0){ new name[MAX_PLAYER_NAME+1]; format(string, sizeof(string), "*** %s has entered the DEAGLE DM (/deagle)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the DEAGLE type /kill"); GameTextForPlayer(playerid,"~g~Welcome to DEAGLE DM!",2500,5); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1231.5277,53.2773,14.2328); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 500); return 1;} if (strcmp(cmdtext, "/battle", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,10); new randomize=random(sizeof(ROOM)); SetPlayerPos(playerid, ROOM[randomize][0],ROOM[randomize][1],ROOM[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 27, 200); GivePlayerWeapon(playerid, 34, 150); GivePlayerWeapon(playerid, 31, 400); GivePlayerWeapon(playerid, 35, 100); GivePlayerWeapon(playerid, 28, 500); GameTextForPlayer(playerid,"~g~Welcome to ~r~BATTLE DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the BATTLE DM (/battle)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the BATTLE type /kill"); return 1;} if (strcmp(cmdtext, "/battle2", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,2); new randomize=random(sizeof(BATTLE2)); SetPlayerPos(playerid, BATTLE2[randomize][0],BATTLE2[randomize][1],BATTLE2[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 27, 200); GivePlayerWeapon(playerid, 34, 500); GivePlayerWeapon(playerid, 31, 400); GivePlayerWeapon(playerid, 35, 100); GivePlayerWeapon(playerid, 28, 500); GivePlayerWeapon(playerid, 18, 100); GameTextForPlayer(playerid,"~g~Welcome to ~r~BATTLE2 DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the BATTLE2 DM (/battle2)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the BATTLE2 type /kill"); return 1;} if (strcmp(cmdtext, "/minigun", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,0); new randomize=random(sizeof(MINIGUN)); SetPlayerPos(playerid, MINIGUN[randomize][0],MINIGUN[randomize][1],MINIGUN[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 38, 9000); GetPlayerName(playerid, name, sizeof(name)); GameTextForPlayer(playerid,"~g~Welcome to ~r~MINIGUN DM!!!",2500,5); format(string, sizeof(string), "*** %s has entered the MINIGUN DM (/minigun)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the MINIGUN DM type /kill"); return 1;} if (strcmp(cmdtext, "/chainsaw", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,0); new randomize=random(sizeof(CHAINSAW)); GameTextForPlayer(playerid,"~g~Welcome to ~r~CHAINSAW DM!!!",2500,5); SetPlayerPos(playerid, CHAINSAW[randomize][0],CHAINSAW[randomize][1],CHAINSAW[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 9, 10); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the CHAINSAW DM (/chainsaw)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the CHAINSAW DM type /kill"); return 1;} if (strcmp(cmdtext, "/dome", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,0); new randomize=random(sizeof(DOME)); SetPlayerPos(playerid, DOME[randomize][0],DOME[randomize][1],DOME[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 25, 500); GivePlayerWeapon(playerid, 32, 500); GivePlayerWeapon(playerid, 41, 500); GivePlayerWeapon(playerid, 5, 1); GameTextForPlayer(playerid,"~g~Welcome to ~r~DOME DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the DOME DM (/dome)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the DOME DM type /kill"); return 1;} if (strcmp(cmdtext, "/minigun2", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,10); new randomize=random(sizeof(MINIGUN2)); SetPlayerPos(playerid, MINIGUN2[randomize][0],MINIGUN2[randomize][1],MINIGUN2[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 38, 9000); GetPlayerName(playerid, name, sizeof(name)); GameTextForPlayer(playerid,"~g~Welcome to ~r~MINGUN2 DM!!!",2500,5); format(string, sizeof(string), "*** %s has entered the MINIGUN2 DM (/minigun2)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the MINIGUN2 DM type /kill"); return 1;} if (strcmp(cmdtext, "/knife", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,0); new randomize=random(sizeof(KNIFE)); SetPlayerPos(playerid, KNIFE[randomize][0],KNIFE[randomize][1],KNIFE[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 4, 10); GetPlayerName(playerid, name, sizeof(name)); GameTextForPlayer(playerid,"~g~Welcome to ~r~KNIFE DM!!!",2500,5); format(string, sizeof(string), "*** %s has entered the KNIFE DM (/knife)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the KNIFE DM type /kill"); return 1;} if (strcmp(cmdtext, "/shotgun", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,0); new randomize=random(sizeof(SHOTGUN)); SetPlayerPos(playerid, SHOTGUN[randomize][0],SHOTGUN[randomize][1],SHOTGUN[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 25, 500); GivePlayerWeapon(playerid, 26, 500); GivePlayerWeapon(playerid, 27, 500); GameTextForPlayer(playerid,"~g~Welcome to ~r~SHOTGUN DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the SHOTGUN DM (/shotgun)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the SHOTGUN DM type /kill"); return 1;} if (strcmp(cmdtext, "/uzi", true)==0){ new name[MAX_PLAYER_NAME+1]; SetPlayerInterior(playerid,0); new randomize=random(sizeof(UZI)); SetPlayerPos(playerid, UZI[randomize][0],UZI[randomize][1],UZI[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 28, 500); GivePlayerWeapon(playerid, 32, 500); GameTextForPlayer(playerid,"~g~Welcome to ~r~UZI DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the UZI DM (/uzi)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the UZI DM type /kill"); return 1;} if (strcmp(cmdtext, "/katana", true)==0){ SetPlayerInterior(playerid,0); new name[MAX_PLAYER_NAME+1]; new randomize=random(sizeof(KATANA)); SetPlayerPos(playerid, KATANA[randomize][0],KATANA[randomize][1],KATANA[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 8, 1); GivePlayerWeapon(playerid, 5, 1); GivePlayerWeapon(playerid, 2, 1); GameTextForPlayer(playerid,"~g~Welcome to ~r~KATANA DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the KATANA DM (/katana)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the KATANA DM type /kill"); return 1;} if (strcmp(cmdtext, "/katana2", true)==0){ SetPlayerInterior(playerid,1); new name[MAX_PLAYER_NAME+1]; new randomize=random(sizeof(KATANA2)); SetPlayerPos(playerid, KATANA2[randomize][0],KATANA2[randomize][1],KATANA2[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 8, 1); GameTextForPlayer(playerid,"~g~Welcome to ~r~KATANA2 DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the KATANA2 DM (/katana2)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the KATANA2 DM type /kill"); return 1;} if (strcmp(cmdtext, "/baseball", true)==0){ SetPlayerInterior(playerid,3); new name[MAX_PLAYER_NAME+1]; new randomize=random(sizeof(BASEBALL)); SetPlayerPos(playerid, BASEBALL[randomize][0],BASEBALL[randomize][1],BASEBALL[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 5, 1); GivePlayerWeapon(playerid, 4, 1); GameTextForPlayer(playerid,"~g~Welcome to ~r~BASEBALL DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the BASEBALL DM (/baseball)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the BASEBALL DM type /kill"); return 1;} if (strcmp(cmdtext, "/deagle2", true)==0){ SetPlayerInterior(playerid,3); new name[MAX_PLAYER_NAME+1]; new randomize=random(sizeof(DEAGLE2)); SetPlayerPos(playerid, DEAGLE2[randomize][0],DEAGLE2[randomize][1],DEAGLE2[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 500); GameTextForPlayer(playerid,"~g~Welcome to ~r~DEAGLE2 DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the DEAGLE2 DM (/deagle2)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the DEAGLE2 DM type /kill"); return 1;} if (strcmp(cmdtext, "/chainsaw2", true)==0){ SetPlayerInterior(playerid,6); new name[MAX_PLAYER_NAME+1]; new randomize=random(sizeof(CHAINSAW2)); SetPlayerPos(playerid, CHAINSAW2[randomize][0],CHAINSAW2[randomize][1],CHAINSAW2[randomize][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 9, 1); GameTextForPlayer(playerid,"~g~Welcome to ~r~CHAINSAW2DM!!!",2500,5); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s has entered the CHAINSAW2 DM (/chainsaw2)", name); SendClientMessageToAll(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_GOLD, "To left the CHAINSAW2 DM type /kill"); return 1;} //------------------------------------------------------------------------------ if (strcmp(cmdtext, "/infoo", true)==0){ //SendClientMessage(playerid, 0xFFFF00AA, tmpbuf); SendClientMessage(playerid, 0xFF9933AA, "This is Warrors Clan PUB server on 0.2.2 R2 verion"); SendClientMessage(playerid, 0xFF9933AA, "Newiest version of gamemode is 1.1.7"); SendClientMessage(playerid, 0xFF9933AA, "Server host - Warriors_Mikelis. Main admins Tornado, Herbis"); SendClientMessage(playerid, 0xFF9933AA, "Server is using Xtreme Admin2 script"); SendClientMessage(playerid, 0xFF9933AA, "More information about clan in gta.outlaw.lv"); return 1;} //------------------------------------------- Stunt Zone commands cyan if (strcmp(cmdtext, "/teleports", true)==0){ SendClientMessage(playerid, 0x33CCFFAA, "--------------------------------------------------------------------"); SendClientMessage(playerid, 0x33CCFFAA, "Teleports:"); SendClientMessage(playerid, 0x33CCFFAA, "/drag, /drag2, /bigjump, /sf, /docks"); SendClientMessage(playerid, 0x33CCFFAA, "/chilliad, /drift, /drift2, /dive,"); SendClientMessage(playerid, 0x33CCFFAA, "/lv, /ls, /blood, /kart, /jump, /groove"); SendClientMessage(playerid, 0x33CCFFAA, "/dirtbike, /drift3, /drag3, /beach, beach2"); SendClientMessage(playerid, 0x33CCFFAA, "/boatschool, /satelite, /catalina, /jizzy, /underwater 1-3"); SendClientMessage(playerid, 0x33CCFFAA, "/flyschool"); SendClientMessage(playerid, 0x33CCFFAA, "---------------------------------------------------------------------"); return 1;} //---------------------------------------------------------------------------- if ( strcmp( cmdtext, "/blood", true, 5 ) == 0 ) { SetPlayerInterior(playerid,15); { SetPlayerPos(playerid,-1487.3318,952.6232,1036.8984); } return 1; } //---------------------------------------------------------------------------- if (strcmp(cmdtext, "/dirtbike", true)==0) { SetPlayerInterior(playerid,4); { SetPlayerPos(playerid,-1293.9851,-619.7903,1055.8171); } return 1; } //---------------------------------------------------------------------------- if (strcmp(cmdtext, "/kart", true)==0) { SetPlayerInterior(playerid,7); { SetPlayerPos(playerid,-1386.4100,-244.8205,1043.5297); } return 1; } //----------------------------------- TELEPORTI--------------------------------- if(strcmp(cmdtext, "/chilliad", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-2245.3813,-1715.3920,480.3623); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-2245.3813,-1715.3920,480.3623); } return 1; } if(strcmp(cmdtext, "/lv", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,2148.3208,1029.1511,10.8203); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,2148.3208,1029.1511,10.8203); } return 1; } if(strcmp(cmdtext, "/drift4", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-2398.6326,-603.6674,132.2224); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-2398.6326,-603.6674,132.2224); } return 1; } if(strcmp(cmdtext, "/jump", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,363.2564,2519.7869,797.8304); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,363.2564,2519.7869,797.8304); } return 1; } if(strcmp(cmdtext, "/drift3", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-353.8616,1530.5092,75.1320); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-353.8616,1530.5092,75.1320); } return 1; } if(strcmp(cmdtext, "/ls", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,1880.9452,-1394.7611,13.1246); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,1880.9452,-1394.7611,13.1246); } return 1; } if(strcmp(cmdtext, "/drag3", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,1595.1031,1612.9384,10.8203); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,1595.1031,1612.9384,10.8203); } return 1; } if(strcmp(cmdtext, "/drag2", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,1527.3297,-2455.9033,13.5547); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,1527.3297,-2455.9033,13.5547); } return 1; } if(strcmp(cmdtext, "/drag", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-1645.2598,-201.1026,13.9188); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-1645.2598,-201.1026,13.9188); } return 1; } if(strcmp(cmdtext, "/drift", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,2265.6292,1398.5432,42.4766); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,2265.6292,1398.5432,42.4766); } return 1; } if(strcmp(cmdtext, "/sf", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-1974.2872,270.7369,35.1719); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-1974.2872,270.7369,35.1719); } return 1; } if(strcmp(cmdtext, "/drift2", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,2235.1140,1963.4467,31.6547); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,2235.1140,1963.4467,31.6547); } return 1; } if(strcmp(cmdtext, "/drag", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,1282.6499,1267.8385,10.8203); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,1282.6499,1267.8385,10.8203); } return 1; } if(strcmp(cmdtext, "/bigjump", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-669.7441,2306.3635,135.4752); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-669.7441,2306.3635,135.4752); } return 1; } if(strcmp(cmdtext, "/groove", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,2492.4844,-1670.3538,13.3359); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,2492.4844,-1670.3538,13.3359); } return 1; } if(strcmp(cmdtext, "/beach", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,489.2594,-1850.3350,4.0330); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,489.2594,-1850.3350,4.0330); } return 1; } if(strcmp(cmdtext, "/boatschool", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-2259.1338,2319.0344,4.8125); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-2259.1338,2319.0344,4.8125); } return 1; } if(strcmp(cmdtext, "/beach2", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-2661.9629,-2627.5112,7.7616); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-2661.9629,-2627.5112,7.7616); } return 1; } if(strcmp(cmdtext, "/satelite", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-324.2758,1527.1509,75.3570); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-324.2758,1527.1509,75.3570); } return 1; } if(strcmp(cmdtext, "/catalina", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,877.2900,-35.2242,63.1953); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,877.2900,-35.2242,63.1953); } return 1; } if(strcmp(cmdtext, "/jizzy", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-2627.4529,1360.0419,7.0911); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-2627.4529,1360.0419,7.0911); } return 1; } if(strcmp(cmdtext, "/underwater 1", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,551.1112,-2494.9800,-28.6329); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,551.1112,-2494.9800,-28.6329); } return 1; } if(strcmp(cmdtext, "/underwater 2", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-2231.3047,1773.1666,-58.6626); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,-2231.3047,1773.1666,-58.6626); } return 1; } if(strcmp(cmdtext, "/underwater 3", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,262.6519,387.7681,-36.8302); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,262.6519,387.7681,-36.8302); } return 1; } if(strcmp(cmdtext, "/flyschool", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,378.3781,2501.6621,16.4844); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,378.3781,2501.6621,16.4844); } return 1; } if(strcmp(cmdtext, "/docks", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,2762.4727,-2466.3516,13.5336); } else { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid,2762.4727,-2466.3516,13.5336); } return 1; } //----------------------------ANIMATIONS---------------------------------------- // HANDSUP if(strcmp(cmd, "/handsup", true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP); return 1; } } // Drunk if(strcmp(cmd, "/drunk", true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { ApplyAnimation(playerid,"PED", "WALK_DRUNK",4.1,1,1,1,1,1); return 1; } } // Laugh if (strcmp("/laugh", cmdtext, true) == 0) { ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 1, 1, 1, 1, 1); // Laugh return 1; } if (strcmp("/eat", cmdtext, true) == 0) { ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,1,1,1,1,1); return 1; } if (strcmp("/watch", cmdtext, true) == 0) { ApplyAnimation(playerid,"MISC","SEAT_watch",4.1,1,1,1,1,1); return 1; } if (strcmp("/plant", cmdtext, true) == 0) { ApplyAnimation(playerid,"BOMBER","BOM_Plant_In",4.1,1,1,1,1,1); return 1; } if (strcmp("/deal", cmdtext, true) == 0) { ApplyAnimation(playerid,"GANGS","DEALER_DEAL",4.1,1,1,1,1,1); return 1; } if (strcmp("/drugsbuy", cmdtext, true) == 0) { ApplyAnimation(playerid,"GANGS","DRUGS_BUY",4.1,1,1,1,1,1); return 1; } if (strcmp("/sitdrink", cmdtext, true) == 0) { ApplyAnimation(playerid,"INT_OFFICE","OFF_Sit_Drink",4.1,1,1,1,1,1); return 1; } if (strcmp("/spray", cmdtext, true) == 0) { ApplyAnimation(playerid,"SPRAYCAN","spraycan_fire",4.1,1,1,1,1,1); return 1; } if (strcmp("/swim", cmdtext, true) == 0) { ApplyAnimation(playerid,"SWIM","SWIM_crawl",4.1,1,1,1,1,1); return 1; } // Arrested if (strcmp("/arrested", cmdtext, true) == 0) { ApplyAnimation(playerid, "POLICE", "crm_drgbst_01", 4.0, 1, 1 , 1, 1, 1); // Arrested return 1; } // Injury if (strcmp("/injured", cmdtext, true) == 0) { ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 1, 1, 1, 1); // Injured return 1; } // Vomit if (strcmp("/vomit", cmdtext, true) == 0) { ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 1, 1, 1, 1, 1); // Vomit BAH! return 1; } // Slap Ass if (strcmp("/slapass", cmdtext, true) == 0) { ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 1, 1, 1, 1, 1); // Ass Slapping return 1; } // Death Crawling if (strcmp("/death", cmdtext, true) == 0) { ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.0, 1, 1, 1, 1, 1); // Dead Crawling return 1; } // Kiss if (strcmp("/kiss", cmdtext, true, 5) == 0) { ApplyAnimation(playerid, "KISSING", "Playa_Kiss_02", 3.0, 1, 1, 1, 1, 1); // Kiss return 1; } if (strcmp("/under", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"SWIM","Swim_Dive_Under",4.1,1,1,1,1,1); return 1; } if (strcmp("/phone", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"PED","phone_talk",4.1,1,1,1,1,1); return 1; } if (strcmp("/smoke2", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"PED","Smoke_in_car",4.1,1,1,1,1,1); return 1; } if (strcmp("/kickt", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"WAYFARER","WF_kick",4.1,1,1,1,1,1); return 1; } if (strcmp("/tank", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"TANK","TANK_getin_LHS",4.1,1,1,1,1,1); return 1; } if (strcmp("/lafin", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"SWEET","LaFin_Player",4.1,1,1,1,1,1); return 1; } if (strcmp("/strip", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"STRIP","STR_Loop_C",4.1,1,1,1,1,1); return 1; } if (strcmp("/strip2", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"STRIP","strip_A",4.1,1,1,1,1,1); return 1; } if (strcmp("/vortex", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"VORTEX","CAR_jumpin_RHS",4.1,1,1,1,1,1); return 1; } if (strcmp("/shout", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"SHOTGUN","shotgun_fire",4.1,1,1,1,1,1); return 1; } if (strcmp("/pool", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"POOL","POOL_Walk",4.1,1,1,1,1,1); return 1; } if (strcmp("/copmove", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"POLICE","Cop_move_FWD",4.1,1,1,1,1,1); return 1; } if (strcmp("/sitread", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"INT_OFFICE","OFF_Sit_Read",4.1,1,1,1,1,1); return 1; } if (strcmp("/cuthair", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"HAIRCUTS","BRB_Cut",4.1,1,1,1,1,1); return 1; } if (strcmp("/mtb", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"MTB","MTB_getoffBACK",4.1,1,1,1,1,1); return 1; } if (strcmp("/mtb1", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"MTB","MTB_sprint",4.1,1,1,1,1,1); return 1; } if (strcmp("/walksexy", cmdtext, true, 5) == 0) { ApplyAnimation(playerid,"PED","WOMAN_walksexy",4.1,1,1,1,1,1); return 1; } // Piss if (strcmp("/piss", cmdtext, true, 8) == 0) { ApplyAnimation(playerid, "PAULNMAC", "Piss_in", 4.1, 1, 1, 1, 1, 1); // Pissing return 1; } // Male Smoking if (strcmp("/smoke", cmdtext, true, 4) == 0) { ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 0, 0, 0, 0, 0); // Smoke return 1; } // Sit if (strcmp("/sit", cmdtext, true, 4) == 0) { ApplyAnimation(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 1, 1, 1, 1); // Sit return 1; } if(strcmp(cmd, "/chat", true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { ApplyAnimation(playerid,"PED","IDLE_CHAT",60.1,0,1,1,1,1); return 1; } } // SUICIDE COMMAND if(strcmp(cmd, "/kill", true) == 0) { SetPlayerHealth(playerid,0.0); return 1; } // START DANCING if(strcmp(cmd, "/dance", true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { new tmp[256]; // Get the dance style param tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid,0xFFFF00AA,"Pielietojums: /dance [style 1-3]"); return 1; } dancestyle = strval(tmp); if(dancestyle < 1 || dancestyle > 3) { SendClientMessage(playerid,0xFFFF00AA,"Pielietojums: /dance [style 1-3]"); return 1; } if(dancestyle == 1) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1); } else if(dancestyle == 2) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2); } else if(dancestyle == 3) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3); } return 1; } } //------------------------------------------------------------------------------ new vehicleid = GetPlayerVehicleID(playerid); // lock car attempt if (strcmp(cmdtext, "/lock", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Stat5 ; Stat5=GetPlayerState(playerid); if(Stat5!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_GREY,"Only driver can lock car!"); return 1; } new i; for(i=0;i 0){ GameTextForAll( CountText[Count-1], 2500, 3); Count--; SetTimer("CountDown", 1000, 0); } else{ GameTextForAll("~g~Go!!!", 2500, 3); Count = 5; } return 1; }