01.10.2013, 13:43
Hey guyz +Rep if fully HELP AND ANSWER answers like : May some bracket missing i will -Rep because i want rom you guyuz to find me the problem,Thanks
Here script
Код:
C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(397) : warning 217: loose indentation C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(401) : error 017: undefined symbol "main" C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(414) : warning 225: unreachable code C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(414) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(414) : error 004: function "zcmd_OnGameModeInit" is not implemented C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(507) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(507) : error 004: function "OnGameModeExit" is not implemented C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(512) : warning 225: unreachable code C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(512) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(512) : error 004: function "OnPlayerRequestClass" is not implemented C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(519) : error 017: undefined symbol "classid" C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(601) : warning 225: unreachable code C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(601) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(601) : error 004: function "Streamer_OnPlayerConnect" is not implemented C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(639) : warning 225: unreachable code C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(639) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(639) : error 004: function "Streamer_OnPlayerDisconnect" is not implemented C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(644) : warning 225: unreachable code C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(644) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(644) : error 004: function "OnPlayerSpawn" is not implemented C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(650) : warning 225: unreachable code C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(650) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(650) : error 004: function "OnPlayerDeath" is not implemented C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(652) : error 017: undefined symbol "killerid" C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(655) : warning 225: unreachable code C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(655) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(655) : error 004: function "zcmd_OnPlayerCommandText" is not implemented C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(659) : warning 225: unreachable code C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(659) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(659) : error 017: undefined symbol "cmd_kill" C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(659) : error 029: invalid expression, assumed zero C:\Users\Dennis Laptop\Desktop\Server\gamemodes\latw.pwn(659) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 23 Errors.
Код:
//============================================================================// #include <a_samp> #include <foreach> #include <streamer> #include <sscanf> #include <dfile> #include <zcmd> new gTeam[MAX_PLAYERS]; //==================== COLORS AND TEAMS=========// #define TEAM_GROVE 1 #define TEAM_BALLAS 2 #define TEAM_AZTECAS 3 #define TEAM_VAGOS 4 #define TEAM_LSPD 5 #define COLOR_LIGHTRED 0xFF6347AA #define COLOR_GROVES 0x00AA00FF #define COLOR_BALLAS 0xC2A2DAAA #define COLOR_VAGOS 0xFFFF00AA #define COLOR_AZTECAS 0x01FCFFC8 #define COLOR_LSPD 0x003DF5AA #define COLOR_GREY 0xAFAFAFAA #define COLOR_WELCOME 0xFFCFB53B #define COLOR_FADE1 0xFFFFFFFF #define COLOR_FADE2 0xC8C8C8C8 #define COLOR_FADE3 0xAAAAAAAA #define COLOR_FADE4 0x8C8C8C8C #define COLOR_FADE5 0x6E6E6E6E #define COLOR_WHITE 0xFFFFFFFF #define COL_GREEN2 "{33CC00}" #define COL_WHITE "{FFFFFF}" #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_LIGHTGREEN 0x9ACD32AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_LIGHTYELLOW 0xFFFF91FF #define COLOR_DBLUE 0x2641FEAA #define COLOR_ORANGE 0xFF830000 //=========== RULES ==================// #define RULE1 "Rule 1: No CR,CP or C-BUG" #define RULE2 "Rule 2: Dont insult or flame" #define RULE3 "Rule 3: No TAB to avoid!(banable)" #define RULE4 "Rule 4: Help new players learn rules and be polite." //=========== RANDOM MSG =============// new RandomMSG[][] = { ">> Advertise our server ONLY to special SERVER ad posts!(AD TO OTHER SERVERS IS BANABLE)", ">> Invite your friends here!Its a new server!You may win prizes!", ">> Join us and help us improve!http://denniser8.wix.com/eastsidegangwars!" }; forward SendMSG(); public SendMSG() { new randMSG = random(sizeof(RandomMSG)); SendClientMessageToAll(COLOR_LIGHTGREEN, RandomMSG[randMSG]); } // Wanna add a new random message? // Just add another ">> Insert random message here" line! //============================================================================// stock GetPlayerSpeed(playerid,bool:kmh) { new Float:Vx,Float:Vy,Float:Vz,Float:rtn; if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz); rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2))); return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100); } //============================================================================// new vehName[][] = { "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "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 A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune", "Cadrona", "SWAT Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan", "Blade", "Streak", "Freight", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club", "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "LSPD Car", "SFPD Car", "LVPD Car", "Police Rancher", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville", "Tiller", "Utility Trailer" }; stock ReturnVehicleModelID(string[]) { if(IsNumeric(string)) { new id = strval(string); if(id >= 400 && id <= 611) { return id; } } for(new i = 0;i < sizeof(vehName);i++) { if(strfind(vehName[i],string,true) != -1) { return i + 400; } } return 0; } //====================================// //===========================[DCMD Define]====================================// #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 //===========================[Neon]===========================================// //============== TEAMS ==============// //==================================// #define DIALOG_REGISTER 1 #define DIALOG_LOGIN 2 #define PATH "%s.ini" //=================================// strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; } IsNumeric(const string[]) { for (new i = 0, j = strlen(string); i < j; i++) { if (string[i] > '9' || string[i] < '0') return 0; } return 1; } //============================================================================== ReturnUser(text[], playerid = INVALID_PLAYER_ID) { new pos = 0; while (text[pos] < 0x21) { if (text[pos] == 0) return INVALID_PLAYER_ID; pos++; } new userid = INVALID_PLAYER_ID; if (IsNumeric(text[pos])) { userid = strval(text[pos]); if (userid >=0 && userid < MAX_PLAYERS) { if(!IsPlayerConnected(userid)) { userid = INVALID_PLAYER_ID; } else { return userid; } } } new len = strlen(text[pos]); new count = 0; new name[MAX_PLAYER_NAME]; for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { GetPlayerName(i, name, sizeof (name)); if (strcmp(name, text[pos], true, len) == 0) { if (len == strlen(name)) { return i; } else { count++; userid = i; } } } } if (count != 1) { if (playerid != INVALID_PLAYER_ID) { if (count) { SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow earch"); } else { SendClientMessage(playerid, 0xFF0000AA, "No matching user found"); } } userid = INVALID_PLAYER_ID; } return userid; } //============================================================================// stock UserPath(playerid) { new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),PATH,playername); return string; } enum pInfo { pPassword[130], pKills, pDeaths, pAdmin, pMoney, pScore, pVIP, pOnline, pBanned, pBanReason[126] } new PlayerInfo[MAX_PLAYERS][pInfo]; stock udb_hash(buf[]) { new length=strlen(buf); new s1 = 1; new s2 = 0; new n; for (n=0; n<length; n++) { s1 = (s1 + buf[n]) % 65521; s2 = (s2 + s1) % 65521; } return (s2 << 16) + s1; } native WP_Hash(buffer[], len, const str[]); OnPlayerLogin(playerid) { new File[126]; format(File, sizeof(File), "%s.ini", PlayerName(playerid)); dfile_Open(File); PlayerInfo[playerid][pAdmin] = dfile_ReadInt("Admin"); PlayerInfo[playerid][pVIP] = dfile_ReadInt("VIP"); PlayerInfo[playerid][pMoney] = dfile_ReadInt("Money"); PlayerInfo[playerid][pScore] = dfile_ReadInt("Score"); PlayerInfo[playerid][pKills] = dfile_ReadInt("Kills"); PlayerInfo[playerid][pDeaths] = dfile_ReadInt("Deaths"); PlayerInfo[playerid][pOnline] = dfile_ReadInt("Online"); PlayerInfo[playerid][pBanned] = dfile_ReadInt("Banned"); format(PlayerInfo[playerid][pBanReason],126,"%s",dfile_ReadString("BanReason")); if(PlayerInfo[playerid][pBanned] == 1) { new string[128]; format(string, sizeof(string), "%s", dfile_ReadString("BanReason")); SendClientMessage(playerid, COLOR_LIGHTRED, "This account has been banned:"); SendClientMessage(playerid, COLOR_LIGHTRED, string); Kick(playerid); return 0; } dfile_SaveFile(); dfile_CloseFile(); new string[128]; format(string, sizeof(string), "Welcome back to Los Santos Gang Wars, {FFFFFF}%s!", PlayerName(playerid)); SendClientMessage(playerid, COLOR_ORANGE, string); SendClientMessage(playerid, COLOR_ORANGE, RULE1); SendClientMessage(playerid, COLOR_ORANGE, RULE2); SendClientMessage(playerid, COLOR_ORANGE, RULE3); SendClientMessage(playerid, COLOR_ORANGE, RULE4); SetPVarInt(playerid, "Logged", 1); return 1; } OnPlayerLogout(playerid) { new File[126]; format(File, sizeof(File), "%s.ini", PlayerName(playerid)); dfile_Delete(File); dfile_Create(File); dfile_Open(File); dfile_WriteInt("Admin", PlayerInfo[playerid][pAdmin]); dfile_WriteInt("VIP", PlayerInfo[playerid][pVIP]); dfile_WriteInt("Money", PlayerInfo[playerid][pMoney]); dfile_WriteInt("Score", PlayerInfo[playerid][pScore]); dfile_WriteInt("Kills", PlayerInfo[playerid][pKills]); dfile_WriteInt("Deaths", PlayerInfo[playerid][pDeaths]); dfile_WriteInt("Online", PlayerInfo[playerid][pOnline]); dfile_WriteInt("Banned", PlayerInfo[playerid][pBanned]); dfile_WriteString("BanReason", PlayerInfo[playerid][pBanReason]); dfile_SaveFile(); dfile_CloseFile(); return 1; } forward Online(); public Online() { foreach (Player, i) { PlayerInfo[i][pOnline] += 1; } return 1; } stock GetName(playerid) { new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); return pName; } //=============================================================================// ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5) { if(IsPlayerConnected(playerid)) { new Float:posx, Float:posy, Float:posz; new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerPos(i, posx, posy, posz); tempposx = (oldposx -posx); tempposy = (oldposy -posy); tempposz = (oldposz -posz); if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)) { if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) { SendClientMessage(i, col1, string); } else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) { SendClientMessage(i, col2, string); } else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) { SendClientMessage(i, col3, string); } else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) { SendClientMessage(i, col4, string); } else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { SendClientMessage(i, col5, string); } } } } } return 1; } stock PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); return name; } SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid, COLOR_GROVES); } else if (gTeam[playerid] == TEAM_BALLAS) { SetPlayerColor(playerid, COLOR_BALLAS); } else if (gTeam[playerid] == TEAM_AZTECAS) { SetPlayerColor(playerid, COLOR_AZTECAS); } else if (gTeam[playerid] == TEAM_VAGOS) { SetPlayerColor(playerid, COLOR_VAGOS); } //============================================================================// new BlockingPM[MAX_PLAYER_NAME]; new AntiTeamKill; new Text:Classtext; //============================================================================// main() { print("_________________________"); print(" "); print(" "); print(" Los Santos Gang War "); print(" Dion "); print(" "); print("_________________________"); return 1; } public OnGameModeInit() { SetGameModeText("LS:GW V1"); SetTimer("Online",60*1000*60,1); DisableInteriorEnterExits(); UsePlayerPedAnims(); SetNameTagDrawDistance(30.0); EnableStuntBonusForAll(0); AntiTeamKill = 1; SetTimer("SendMSG", 120000, true); //Grove AddPlayerClass(105, 2478.777832, -1661.156738, 13.343750, 269.1425, 24, 150, 29, 150, 26, 150); AddPlayerClass(106, 2478.777832, -1661.156738, 13.343750, 269.1425, 24, 150, 29, 150, 30, 150); AddPlayerClass(107, 2478.777832, -1661.156738, 13.343750, 269.1425, 24, 150, 28, 150, 31, 150); AddPlayerClass(270, 2478.777832, -1661.156738, 13.343750, 269.1425, 24, 150, 32, 150, 33, 150); AddPlayerClass(271, 2478.777832, -1661.156738, 13.343750, 269.1425, 24, 150, 28, 150, 34, 150); AddPlayerClass(269, 2478.777832, -1661.156738, 13.343750, 269.1425, 24, 150, 32, 150, 26, 150); //Ballas AddPlayerClass(102, 2002.281616, -1123.249633, 26.577611, 269.1425, 22, 150, 28, 150, 30, 150); AddPlayerClass(103, 2002.281616, -1123.249633, 26.577611, 269.1425, 23, 150, 29, 150, 31, 150); AddPlayerClass(104, 2002.281616, -1123.249633, 26.577611, 269.1425, 24, 150, 32, 150, 27, 150); //Los Aztecas AddPlayerClass(114, 2785.370361, -1994.306518, 13.382812, 269.1425, 22, 150, 28, 150, 30, 150); AddPlayerClass(115, 2785.370361, -1994.306518, 13.382812, 269.1425, 23, 150, 29, 150, 31, 150); AddPlayerClass(116, 2785.370361, -1994.306518, 13.382812, 269.1425, 24, 150, 32, 150, 27, 150); //Los Santos Vagos AddPlayerClass(108, 1882.914916, -2040.028686, 13.390607, 269.1425, 22, 150, 28, 150, 30, 150); AddPlayerClass(109, 1882.914916, -2040.028686, 13.390607, 269.1425, 23, 150, 29, 150, 31, 150); AddPlayerClass(110, 1882.914916, -2040.028686, 13.390607, 269.1425, 24, 150, 32, 150, 27, 150); //LSPD AddPlayerClass(71,1544.7887,-1675.4630,13.5591,88.8707,22,1000,25,200,17,5); AddPlayerClass(265,1544.7887,-1675.4630,13.5591,88.8707,22,1000,25,200,17,5); AddPlayerClass(266,1544.7887,-1675.4630,13.5591,88.8707,24,450,25,200,17,5); AddPlayerClass(267,1544.7887,-1675.4630,13.5591,88.8707,22,1000,25,200,17,5); AddPlayerClass(280,1544.7887,-1675.4630,13.5591,88.8707,22,1000,25,20,17,5); AddPlayerClass(281,1544.7887,-1675.4630,13.5591,88.8707,24,450,25,250,17,5); AddPlayerClass(284,1544.7887,-1675.4630,13.5591,88.8707,22,1000,25,200,17,5); //Random Civ. Vehicles AddStaticVehicleEx(491, 2105.275878, -1770.154296, 13.180087, 265.294494, -1, -1, 500); AddStaticVehicleEx(475, 2297.992919, -1644.905883, 14.556998, 1.695698, -1, -1, 500); AddStaticVehicleEx(477, 2293.008056, -1682.595703, 13.689975, 179.120391, -1, -1, 500); AddStaticVehicleEx(560, 2280.392333, -1682.886474, 13.910058, 359.340118, -1, -1, 500); AddStaticVehicleEx(560, 1803.102905, -1709.444580, 13.242623, 84.428703, -1, -1, 500); AddStaticVehicleEx(561, 1841.150146, -1871.250488, 13.200323, 181.468978, -1, -1, 500); AddStaticVehicleEx(438, 1778.363891, -1851.501831, 13.420244, 91.089607, -1, -1, 500); AddStaticVehicleEx(411, 2056.083251, -1904.144287, 13.273943, 180.404937, -1, -1, 500); //Los Aztecas Vehicles AddStaticVehicleEx(412, 2774.437744, -1970.958007, 13.273279, 359.451995, 103, 103, 1000); AddStaticVehicleEx(412, 2765.600341, -1925.658447, 13.136569, 359.078308, 103, 103, 1000); AddStaticVehicleEx(534, 2765.321533, -1971.496215, 13.171584, 181.195007, 103, 103, 1000); AddStaticVehicleEx(534, 2773.708007, -1927.072631, 13.143126, 359.762542, 103, 103, 1000); AddStaticVehicleEx(535, 2781.219726, -1945.159667, 13.302146, 88.856071, 103, 103, 1000); AddStaticVehicleEx(535, 2757.317138, -1944.324096, 13.342521, 266.956451, 103, 103, 1000); AddStaticVehicleEx(535, 2774.667724, -1998.889892, 13.183719, 89.137100, 103, 103, 1000); AddStaticVehicleEx(535, 2784.859863, -1999.162109, 13.197049, 90.206283, 103, 103, 1000); AddStaticVehicleEx(461, 2781.322265, -1965.316406, 13.130114, 358.304229, 103, 103, 1000); AddStaticVehicleEx(461, 2781.565429, -1959.327636, 13.147585, 356.990447, 103, 103, 1000); AddStaticVehicleEx(461, 2757.778808, -1972.785156, 13.164703, 176.133712, 103, 103, 1000); AddStaticVehicleEx(461, 2757.975830, -1964.613891, 13.133111, 356.399139, 103, 103, 1000); //Grove Street Vehicles AddStaticVehicleEx(492, 2517.226318, -1667.982910, 13.848170, 296.366821, 86, 86, 1000); AddStaticVehicleEx(550, 2505.509765, -1678.448974, 13.245240, 329.284942, 86, 86, 1000); AddStaticVehicleEx(492, 2506.508056, -1650.795898, 13.503844, 141.985366, 86, 86, 1000); AddStaticVehicleEx(550, 2502.604736, -1658.121582, 13.204686, 218.199859, 86, 86, 1000); AddStaticVehicleEx(550, 2507.928466, -1667.810302, 13.192440, 181.054763, 86, 86, 1000); AddStaticVehicleEx(492, 2473.594238, -1689.461669, 13.314188, 172.784027, 86, 86, 1000); AddStaticVehicleEx(481, 2480.985595, -1689.479003, 13.034698, 175.593246, 86, 86, 1000); AddStaticVehicleEx(461, 2461.935058, -1672.727661, 13.105950, 21.647302, 86, 86, 1000); AddStaticVehicleEx(492, 2489.642333, -1655.281494, 13.140104, 266.579864, 86, 86, 1000); //Ballas Vehicles AddStaticVehicleEx(566, 1993.671264, -1131.689575, 25.344184, 90.339179, 186, 186, 1000); AddStaticVehicleEx(566, 2003.400756, -1131.279418, 25.079097, 270.613555, 186, 186, 1000); AddStaticVehicleEx(566, 2012.491210, -1131.612304, 24.822509, 268.841674, 186, 186, 1000); AddStaticVehicleEx(482, 1993.543212, -1140.427124, 25.688148, 87.838409, 186, 186, 1000); AddStaticVehicleEx(482, 2003.228027, -1140.174560, 25.414991, 272.959838, 186, 186, 1000); AddStaticVehicleEx(461, 1997.502563, -1117.487304, 26.378654, 224.148239, 186, 186, 1000); AddStaticVehicleEx(461, 1995.538940, -1117.995117, 26.373115, 224.962936, 186, 186, 1000); AddStaticVehicleEx(461, 1993.891479, -1118.795532, 26.372270, 240.942932, 186, 186, 1000); //Vagos Vehicles AddStaticVehicleEx(474, 1878.737426, -2039.166137, 13.274518, 358.497894, 6, 6, 1000); AddStaticVehicleEx(474, 1879.482910, -2020.976440, 13.082891, 177.765151, 6, 6, 1000); AddStaticVehicleEx(474, 1886.562500, -2020.194580, 13.094896, 177.765487, 6, 6, 1000); AddStaticVehicleEx(474, 1886.560302, -2039.570434, 13.205352, 178.780334, 6, 6, 1000); AddStaticVehicleEx(461, 1871.303344, -2032.127563, 13.148922, 273.678192, 6, 6, 1000); AddStaticVehicleEx(461, 1871.372802, -2034.372192, 13.152005, 271.296997, 6, 6, 1000); AddStaticVehicleEx(466, 1886.351684, -2057.172851, 13.258976, 269.379760, 6, 6, 1000); AddStaticVehicleEx(466, 1876.256835, -2057.578857, 13.243851, 273.254608, 6, 6, 1000); //LSPD vechiles AddStaticVehicleEx(596,1536.0603,-1676.5302,13.1054,0.6847,-1,-1,900); } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 2201.6306,1217.2319,10.8128); SetPlayerFacingAngle(playerid,178.6062); SetPlayerCameraPos(playerid, 2202.2537,1210.6444,10.8128); SetPlayerCameraLookAt(playerid, 2201.6306,1217.2319,10.8128); switch(classid) { case 0 .. 5: { TextDrawDestroy(Classtext); Classtext = TextDrawCreate(170.0, 350.0, "Grove St. Gangsters"); TextDrawLetterSize(Classtext, 1.5, 2.5); TextDrawFont(Classtext, 0); TextDrawColor(Classtext, COLOR_GROVES); TextDrawShowForPlayer(playerid,Classtext); SetPlayerPos(playerid, 2481.010253, -1654.001953, 13.317111); SetPlayerCameraPos(playerid, 2486.577880, -1665.032836, 17.404399); SetPlayerFacingAngle(playerid, 176.249954); SetPlayerArmedWeapon(playerid, 3); SetPlayerTeam(playerid, TEAM_GROVE); gTeam[playerid] = TEAM_GROVE; } case 6 .. 8: { TextDrawDestroy(Classtext); Classtext = TextDrawCreate(170.0, 350.0, "Glen Park Ballas"); TextDrawLetterSize(Classtext, 1.5, 2.5); TextDrawFont(Classtext, 0); TextDrawColor(Classtext, COLOR_BALLAS); TextDrawShowForPlayer(playerid, Classtext); SetPlayerPos(playerid, 2002.447509, -1118.322631, 26.781250); SetPlayerCameraPos(playerid, 2002.281616, -1123.249633, 26.577611); SetPlayerFacingAngle(playerid,178.756668); SetPlayerArmedWeapon(playerid, 3); SetPlayerTeam(playerid, TEAM_BALLAS); gTeam[playerid] = TEAM_BALLAS; } case 9 .. 11: { TextDrawDestroy(Classtext); Classtext = TextDrawCreate(170.0, 350.0, "Los Aztecas"); TextDrawLetterSize(Classtext, 1.5, 2.5); TextDrawFont(Classtext, 0); TextDrawColor(Classtext, COLOR_AZTECAS); TextDrawShowForPlayer(playerid,Classtext); SetPlayerPos(playerid, 2783.065673, -1989.021972, 13.554813); SetPlayerCameraPos(playerid, 2785.370361, -1994.306518, 13.3828127); SetPlayerFacingAngle(playerid, 200.376815); SetPlayerArmedWeapon(playerid, 3); SetPlayerTeam(playerid, TEAM_AZTECAS); gTeam[playerid] = TEAM_AZTECAS; } case 12 .. 14: { TextDrawDestroy(Classtext); Classtext = TextDrawCreate(170.0, 350.0, "Los Santos Vagos"); TextDrawLetterSize(Classtext, 1.5, 2.5); TextDrawFont(Classtext, 0); TextDrawColor(Classtext, COLOR_VAGOS); TextDrawShowForPlayer(playerid, Classtext); SetPlayerPos(playerid, 1882.680419, -2036.278686, 13.390607); SetPlayerCameraPos(playerid, 1882.914916, -2040.028686, 13.390607); SetPlayerFacingAngle(playerid, 177.816802); SetPlayerArmedWeapon(playerid, TEAM_VAGOS); SetPlayerTeam(playerid,4); gTeam[playerid] = TEAM_VAGOS; } case 15 .. 22: { TextDrawDestroy(Classtext); Classtext = TextDrawCreate(170.0, 350.0, "LSPD"); TextDrawLetterSize(Classtext, 1.5, 2.5); TextDrawFont(Classtext, 0); TextDrawColor(Classtext, COLOR_LSPD); TextDrawShowForPlayer(playerid, Classtext); SetPlayerPos(playerid, 1544.7887,-1675.4630,13.5591); SetPlayerCameraPos(playerid, 1541.5293,-1675.4012,13.5527); SetPlayerCameraLookAt(playerid,1541.5293,-1675.4012,13.5527); SetPlayerFacingAngle(playerid, 90.0); SetPlayerArmedWeapon(playerid, TEAM_LSPD); SetPlayerTeam(playerid,5); gTeam[playerid] = TEAM_LSPD; } } return 1; } public OnPlayerConnect(playerid) { new connectmsg[128]; format(connectmsg, sizeof(connectmsg), "%s(%d) has connected to the server!", PlayerName(playerid), playerid); SendClientMessageToAll(COLOR_WELCOME, connectmsg); new strText[104]; format(strText, 35, "%s.ini", PlayerName(playerid)); new registermsg[128]; format(registermsg, sizeof(registermsg), "Welcome to East Side Gang Wars.\n\nAccount Name: %s\nThat account is not registered, type your password below to register!", PlayerName(playerid)); new loginmsg[128]; format(loginmsg, sizeof(loginmsg), "Welcome back to East Side Gang Wars!\n\nAccount Name: %s\nThat account is registered, type your password in to return to war.", PlayerName(playerid)); if(!dfile_FileExists(strText)) { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "East Side Gang Wars", registermsg, "Register", "Exit"); } else { new File[126]; format(File, sizeof(File), "%s.ini", PlayerName(playerid)); dfile_Open(File); PlayerInfo[playerid][pAdmin] = dfile_ReadInt("Admin"); PlayerInfo[playerid][pVIP] = dfile_ReadInt("VIP"); PlayerInfo[playerid][pMoney] = dfile_ReadInt("Money"); PlayerInfo[playerid][pScore] = dfile_ReadInt("Score"); PlayerInfo[playerid][pKills] = dfile_ReadInt("Kills"); PlayerInfo[playerid][pDeaths] = dfile_ReadInt("Deaths"); PlayerInfo[playerid][pOnline] = dfile_ReadInt("Online"); PlayerInfo[playerid][pBanned] = dfile_ReadInt("Banned"); format(PlayerInfo[playerid][pBanReason],126,"%s",dfile_ReadString("BanReason")); dfile_SaveFile(); dfile_CloseFile(); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "East Side Gang Wars", loginmsg, "Login", "Exit"); } SetPVarInt(playerid, "Joinned", 1); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { SetPlayerToTeamColor(playerid); return 1; } public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { return 1; } CMD:kill(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "You cannot kill yourself in any vehicle!"); new Float:Health; GetPlayerHealth(playerid, Health); if(Health < 20) return SendClientMessage(playerid, -1, "You are too weak to kill yourself"); SetPlayerHealth(playerid, 0); SendClientMessage(playerid, -1, " You've succesfully killed yourself"); return 1; } CMD:rules(playerid, params[]) { SendClientMessage(playerid, -1,"Not Cheating"); SendClientMessage(playerid, -1,"Not insult"); SendClientMessage(playerid, -1,"don't use mods that isn't allowed"); SendClientMessage(playerid, -1,"Don't download porn while you're playing"); SendClientMessage(playerid, -1,"is only a game, we don't need flame or be racis, racism = ban"); return 1; } CMD:givecash(playerid, params[]) { new amount, str[128]; if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, -1, "Correct usage: '/givecash [playername] [amount]'"); if(!IsPlayerConnected(giveplayerid) || giveplayerid == playerid) return SendClientMessage(playerid, -1, "This player is not active."); if(amount < 1 || amount > GetPlayerMoney(playerid)) return SendClientMessage(playerid, -1, "Invalid amount!"); GetName(playerid, playername); GetName(giveplayerid, giveplayer); GivePlayerMoney(playerid, -amount); GivePlayerMoney(giveplayerid, amount); format(str, sizeof(str), "You have sent $%d to %s (%d)", amount, giveplayer, giveplayerid); SendClientMessage(playerid,-1, str); format(str, sizeof(str), "%s (%d) has sent you $%d", playername, playerid, amount); return 1; } CMD:resetstats(playerid, params[]) { if(IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, " invalid player, he's maybe office"); if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, " use /resetstats to reset the stats of any player..."); if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, " you're in a veh, get down and try again"); ResetPlayerMoney(playerid); ResetPlayerWeapons(playerid); SpawnPlayer(playerid); SetPlayerScore(playerid, 0); SetPlayerArmour(playerid, 0.0); SetPlayerSkillLevel(playerid, 1, 0); SendClientMessageToAll(playerid," %s has used /ResetStats now he's a newbie again"); return 1; } CMD:spawn(playerid, params[]) { SpawnPlayer(playerid); SendClientMessage(playerid, -1, "spawned"); return 1; } COMMAND:ep(playerid, params[]) { SendClientMessage(playerid, -1, "* Emergency parachute recieved."); GivePlayerWeapon(playerid, 46, 1); return 1; }