dendudes123 Geplaatst: 24 juni 2010 Rapport Geplaatst: 24 juni 2010 (bewerkt) een vriend had script toegevoegd en ik wil nieuwe teams toevoegen 2 nieuwe dus ik ging naar wiki samp en toen had ik dit en dat gemaakt en toen kreeg ik deze error C:\Users\bravul\Desktop\omg.pwn(175) : warning 225: unreachable code C:\Users\bravul\Desktop\omg.pwn(175) : warning 217: loose indentation C:\Users\bravul\Desktop\omg.pwn(179) : warning 217: loose indentation C:\Users\bravul\Desktop\omg.pwn(183) : warning 217: loose indentation C:\Users\bravul\Desktop\omg.pwn(208) : warning 217: loose indentation C:\Users\bravul\Desktop\omg.pwn(208) : error 017: undefined symbol "SetPlayerToTeamColor" C:\Users\bravul\Desktop\omg.pwn(209) : warning 217: loose indentation C:\Users\bravul\Desktop\omg.pwn(210) : error 017: undefined symbol "gTeam" C:\Users\bravul\Desktop\omg.pwn(210) : warning 215: expression has no effect C:\Users\bravul\Desktop\omg.pwn(210) : error 001: expected token: ";", but found "]" C:\Users\bravul\Desktop\omg.pwn(210) : error 029: invalid expression, assumed zero C:\Users\bravul\Desktop\omg.pwn(210) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors. wie zou het script wille checken en de foute verbetern want ik wou die 2 teams toevoegen rebels en air force met wapens en met gametext dat zegt dat dat de rebels of air force zijn hier is de script #include <a_samp> #define NSA 1 #define Government 2 #define TEAM_Rebels 3 #define TEAM_Air_Force 4 #define TEAM_Rebels_COLOR 0xFF00FFAA // Bright Purple #define TEAM_Air_Force_COLOR 0x00FF00AA // Bright Green #define AQUA 0x00FFFFAA #define GREY 0xAFAFAFAA #define BEIGE 0xFFF8DCAA #define BLACK 0x000000AA #define BLUE 0x0000FFAA #define BLUELIGHTER 0x00BFFFAA #define BLUELIGHT 0x1E90FFAA #define BLUEMEDIUM 0x0000CDAA #define BLUEDARK 0x00008BAA #define PINK 0xFF1493AA #define PINKDARK 0xFF00FFAA #define GREEN 0x008000AA #define GREENLIGHT 0x00FF00AA #define GREENDARK 0x006400AA #define MAROON 0x800000AA #define OKER 0x808000AA #define ORANGE 0xFF4500AA #define ORANGELIGHT 0xFF8C00AA #define PURPLE2 0x800080AA #define VIOLETDARK 0x9400D3AA #define INDIGO 0xAB0082AA #define RED 0xFF0000AA #define SAND 0xFFDEADAA #define SILVER 0xC0C0C0AA #define TEAL 0x008080AA #define WHITE 0xFFFFFFAA #define YELLOW 0xFFFF00AA #define GOLD 0xFFD700AA #define BROWN 0x8B4513AA #define BROWNLIGHT 0xA0522DAA #define GRAY 0xA9A9A9AA #define GRAYDARK 0x696969AA public OnGameModeInit() { CreateObject(987, -2309.3513183594, 2336.6157226563, 4.1328125, 0.000000, 0.000000, 0.000000); // CreateObject(987, -2252.6389160156, 2381.6977539063, 3.9811840057373, 0.000000, 0.000000, 40); // CreateObject(987, -2266.486328125, 2371.8759765625, 4.2533588409424, 0.000000, 0.000000, 39.995727539063); // CreateObject(987, -2275.5510253906, 2364.5600585938, 4.4654779434204, 0.000000, 0.000000, 39.995727539063); // CreateObject(987, -2284.3801269531, 2340.7470703125, 4.1686744689941, 0.000000, 0.000000, 90); // CreateObject(987, -2284.3186035156, 2335.2788085938, 4.3134803771973, 0.000000, 0.000000, 90); // CreateObject(2892, -2282.3666992188, 2358.4331054688, 4.3174476623535, 0.000000, 0.000000, 145); // CreateObject(3279, -2279.7944335938, 2343.9904785156, 3.9639186859131, 0.000000, 0.000000, 0.000000); // CreateObject(3279, -2258.798828125, 2370.4660644531, 4.6335868835449, 0.000000, 0.000000, 0.000000); // CreateObject(3884, -2286.6870117188, 2287.6398925781, 8.1640625, 0.000000, 0.000000, 175); // AddStaticVehicle(425, -1312.2193603516, 499.34963989258, 19.085374832153, 0.000000, -1, -1); //0 AddStaticVehicle(425, -1296.0327148438, 498.89865112305, 19.085374832153, 0.000000, -1, -1); //1 AddStaticVehicle(425, -1275.9393310547, 498.33831787109, 19.085374832153, 0.000000, -1, -1); //2 AddStaticVehicle(425, -1259.0631103516, 498.22073364258, 19.085374832153, 0.000000, -1, -1); //3 AddStaticVehicle(425, -1399.8448486328, 508.69470214844, 19.080438613892, 0.000000, -1, -1); //4 AddStaticVehicle(520, -1322.7705078125, 506.9228515625, 19.153949737549, 0.000000, -1, -1); //5 AddStaticVehicle(520, -1341.9235839844, 508.12271118164, 19.153949737549, 0.000000, -1, -1); //6 AddStaticVehicle(520, -1358.41796875, 508.26440429688, 19.153949737549, 0.000000, -1, -1); //7 AddStaticVehicle(520, -1374.1506347656, 507.9130859375, 19.153949737549, 0.000000, -1, -1); //8 AddStaticVehicle(520, -1385.9842529297, 508.29956054688, 19.149013519287, 0.000000, -1, -1); //9 AddStaticVehicle(425, -1432.4520263672, 507.79898071289, 19.080438613892, 0.000000, -1, -1); //10 AddStaticVehicle(520, -1423.5760498047, 496.35745239258, 19.149013519287, 0.000000, -1, -1); //11 AddStaticVehicle(447, -1410.7191162109, 504.61080932617, 18.33437538147, 0.000000, -1, -1); //12 AddStaticVehicle(447, -1441.9099121094, 496.29962158203, 18.33437538147, 0.000000, -1, -1); //13 AddStaticVehicle(493, -1444.6767578125, 497.35424804688, 0.000000, 90, -1, -1); //14 AddStaticVehicle(493, -1444.3869628906, 492.98739624023, 0.000000, 90, -1, -1); //15 AddStaticVehicle(493, -1445.8441162109, 505.05630493164, 0.000000, 90, -1, -1); //16 AddStaticVehicle(493, -1443.4975585938, 509.47143554688, 0.000000, 90, -1, -1); //17 AddStaticVehicle(432, -1350.7678222656, 457.65661621094, 7.2868371009827, 0.000000, -1, -1); //18 AddStaticVehicle(432, -1355.5368652344, 457.68695068359, 7.2868371009827, 0.000000, -1, -1); //19 AddStaticVehicle(470, -1359.5379638672, 455.84652709961, 7.2975115776062, 0.000000, -1, -1); //20 AddStaticVehicle(470, -1363.111328125, 455.85403442383, 7.2975115776062, 0.000000, -1, -1); //21 AddStaticVehicle(470, -1366.5687255859, 455.79666137695, 7.2975115776062, 0.000000, -1, -1); //22 AddStaticVehicle(470, -1369.5983886719, 455.87396240234, 7.2975115776062, 0.000000, -1, -1); //23 AddStaticVehicle(470, -1372.9632568359, 455.63446044922, 7.2975115776062, 0.000000, -1, -1); //24 AddStaticVehicle(432, -2270.4052734375, 2335.1904296875, 4.9118371009827, 90, -1, -1); //25 AddStaticVehicle(432, -2252.1142578125, 2334.4169921875, 4.9118371009827, 270, -1, -1); //26 AddStaticVehicle(470, -2272.4453125, 2330.3041992188, 4.9302248954773, 90, -1, -1); //27 AddStaticVehicle(470, -2251.8251953125, 2330.140625, 4.9225115776062, 270, -1, -1); //28 AddStaticVehicle(470, -2251.6376953125, 2306.076171875, 4.9225115776062, 270, -1, -1); //29 AddStaticVehicle(470, -2272.5639648438, 2306.1796875, 4.9302248954773, 90, -1, -1); //30 AddStaticVehicle(425, -2238.392578125, 2284.9736328125, 6.1122589111328, 0.000000, -1, -1); //31 AddStaticVehicle(425, -2227.5029296875, 2297.2570800781, 6.246356010437, 0.000000, -1, -1); //32 AddStaticVehicle(425, -2213.6171875, 2304.130859375, 6.0853753089905, 0.000000, -1, -1); //33 AddStaticVehicle(447, -2242.7475585938, 2349.6740722656, 5.3137187957764, 0.000000, -1, -1); //34 AddStaticVehicle(520, -2249.2915039063, 2277.4584960938, 5.9039506912231, 0.000000, -1, -1); //35 AddStaticVehicle(520, -2259.9113769531, 2277.6469726563, 5.9039506912231, 0.000000, -1, -1); //36 AddStaticVehicle(520, -2269.9636230469, 2277.646484375, 5.9039506912231, 0.000000, -1, -1); //37 AddStaticVehicle(520, -2280.1325683594, 2277.7412109375, 5.8776941299438, 0.000000, -1, -1); //38 AddStaticVehicle(520, -2204.3818359375, 2324.3815917969, 5.8961381912231, 0.000000, -1, -1); //39 AddStaticVehicle(470, -2251.6013183594, 2303.2534179688, 4.9225115776062, 270, -1, -1); //40 AddStaticVehicle(470, -2272.4145507813, 2303.373046875, 4.9302248954773, 90, -1, -1); //41 AddStaticVehicle(433, -2260.6667480469, 2355.0524902344, 5.5443553924561, 0.000000, -1, -1); //42 AddStaticVehicle(433, -2256.265625, 2355.6103515625, 5.5489540100098, 0.000000, -1, -1); //43 AddStaticVehicle(411, -2245.2080078125, 2312.177734375, 4.7696671485901, 0.000000, -1, -1); //44 AddStaticVehicle(533, -2337.4484863281, 2384.5698242188, 5.578950881958, 0.000000, -1, -1); //45 AddStaticVehicle(439, -2385.3942871094, 2338.8952636719, 4.984375, 0.000000, -1, -1); //46 AddStaticVehicle(405, -2513.9584960938, 2428.3754882813, 16.641193389893, 0.000000, -1, -1); //47 AddStaticVehicle(486, -2394.9704589844, 2359.6821289063, 5.0966658592224, 0.000000, -1, -1); //48 AddStaticVehicle(493, -2325.7309570313, 2297.3198242188, 0.000000, 180, -1, -1); //49 AddStaticVehicle(493, -2325.365234375, 2332.6899414063, 0.000000, 180, -1, -1); //50 AddStaticVehicle(524, -2407.5124511719, 2355.921875, 6.0840759277344, 0.000000, -1, -1); //51 AddStaticVehicle(455, -2544.0700683594, 2360.0334472656, 5.5543746948242, 0.000000, -1, -1); //52 AddStaticVehicle(418, -2513.818359375, 2367.08984375, 5.170033454895, 0.000000, -1, -1); //53 AddStaticVehicle(422, -2553.2404785156, 2273.08203125, 5.1240167617798, 335, -1, -1); //54 AddStaticVehicle(562, -2525.5710449219, 2255.5380859375, 4.7133746147156, 340, -1, -1); //55 AddStaticVehicle(455, -2487.673828125, 2291.1574707031, 5.5543746948242, 90, -1, -1); //56 AddStaticVehicle(470, -2272.2788085938, 2327.4147949219, 4.9302248954773, 90, -1, -1); //57 AddStaticVehicle(432, -2271.1557617188, 2323.0661621094, 4.9195504188538, 90, -1, -1); //58 AddStaticVehicle(470, -2272.048828125, 2318.7536621094, 4.9302248954773, 90, -1, -1); //59 AddStaticVehicle(432, -2271.9584960938, 2310.3923339844, 4.9195504188538, 90, -1, -1); //60 AddStaticVehicle(470, -2272.2407226563, 2315.5231933594, 4.9302248954773, 90, -1, -1); //61 AddStaticVehicle(470, -2270.7385253906, 2294.5456542969, 4.9302248954773, 90, -1, -1); //62 AddStaticVehicle(432, -2271.869140625, 2299.0595703125, 4.9195504188538, 90, -1, -1); //63 AddStaticVehicle(470, -2270.7668457031, 2291.4514160156, 4.9302248954773, 90, -1, -1); //64 AddStaticVehicle(432, -2270.87890625, 2287.015625, 4.9195504188538, 90, -1, -1); //65 AddStaticVehicle(470, -2251.7902832031, 2326.7536621094, 4.9225115776062, 270, -1, -1); //66 AddStaticVehicle(470, -2251.7568359375, 2317.67578125, 4.9225115776062, 270, -1, -1); //67 AddStaticVehicle(470, -2251.8254394531, 2315.0048828125, 4.9225115776062, 270, -1, -1); //68 AddStaticVehicle(432, -2252.5578613281, 2322.3862304688, 4.9118371009827, 270, -1, -1); //69 AddStaticVehicle(432, -2253.4162597656, 2310.423828125, 4.9118371009827, 270, -1, -1); //70 AddStaticVehicle(432, -2253.3564453125, 2298.4758300781, 4.9118371009827, 270, -1, -1); //71 AddStaticVehicle(470, -2251.6376953125, 2306.076171875, 4.9225115776062, 270, -1, -1); //72 AddStaticVehicle(470, -2252.4348144531, 2294.5168457031, 4.9225115776062, 270, -1, -1); //73 AddStaticVehicle(470, -2252.1997070313, 2290.9641113281, 4.9225115776062, 270, -1, -1); //74 AddStaticVehicle(432, -2252.5207519531, 2286.6828613281, 4.9195504188538, 270, -1, -1); //75 SetGameModeText("[<>] Splinter Cell Conviction T DM [<>]"); AddPlayerClassEx(1,124,-2259.1279,2274.6323,4.9844,6.9387,0,0,0,0,0,0); // tom clancy AddPlayerClassEx(1,285,-2259.1279,2274.6323,4.9844,6.9387,0,0,0,0,0,0); // trooper AddPlayerClassEx(2,287,-1347.7832,500.5654,18.2344,357.5435,0,0,0,0,0,0); // military AddPlayerClassEx(2,163,-1347.7832,500.5654,18.2344,357.5435,0,0,0,0,0,0); // govermentagent AddPlayerClassEx(4,283,-2901.9636,463.1479,4.9141,119.1597,346,500,349,500,352,500); // airforce2 AddPlayerClassEx(4,288,-2901.9636,463.1479,4.9141,119.1597,346,500,349,500,352,500); // airforce3 AddPlayerClassEx(3,47,-309.0945,1537.0425,75.5625,175.5119,346,500,349,500,352,500); // rebel1 AddPlayerClassEx(3,48,-309.0945,1537.0425,75.5625,175.5119,346,500,349,500,352,500); // rebel2 AddPlayerClassEx(3,73,-309.0945,1537.0425,75.5625,175.5119,346,500,349,500,352,500); // rebel3 return 1; } public OnPlayerDeath(playerid, killerid, reason) { SetPlayerScore(playerid,GetPlayerScore(playerid)-1); SetPlayerScore(killerid,GetPlayerScore(killerid)+1); return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid,AQUA,"**Splinter Cell Server(scripted by ace @ acegangwar.co.cc)"); SendClientMessage(playerid,AQUA,"**Kill the other team!! wanna teamchat put a ! before your message"); return 1; } public OnPlayerRequestClass(playerid, classid) {/*AddPlayerClass(0,222.1709,1823.0964,6.4141,274.7546,0,0,0,0,0,0); // tdmsp AddPlayerClass(0,226.7025,1822.8309,7.4141,268.3195,0,0,0,0,0,0); // tdmspcam */ SetPlayerPos(playerid,222.1709,1823.0964,6.4141); SetPlayerFacingAngle(playerid, 247.7546); SetPlayerCameraPos(playerid,226.7025,1822.8309,7.4141); SetPlayerCameraLookAt(playerid,222.1709,1823.0964,6.4141); if(GetPlayerSkin(playerid) == 124||GetPlayerSkin(playerid) == 285)//checks if the team of the player is 1. { GameTextForPlayer(playerid,"~r~NSA",5000,3);//send text to the player that shows up on the screen saying "NSA" in red text(~r~) } else if(GetPlayerSkin(playerid) == 163 || GetPlayerSkin(playerid) == 164 || GetPlayerSkin(playerid) == 73) { GameTextForPlayer(playerid,"~b~The Government",5000,3);//send text to the player that shows up on the screen saying "GOVERNMENT" in blue text(~b~) } return 1; if(GetPlayerSkin(playerid) == 283||GetPlayerSkin(playerid) == 288)//checks if the team of the player is 4. { GameTextForPlayer(playerid,"~r~Air Force",5000,3);//send text to the player that shows up on the screen saying "Air Force" in red text(~r~) } else if(GetPlayerSkin(playerid) == 47 || GetPlayerSkin(playerid) == 48|| GetPlayerSkin(playerid) == 287)//checks if the team of the player is 3. { GameTextForPlayer(playerid,"~b~Rebels",5000,3);//send text to the player that shows up on the screen saying "Rebels" in blue text(~b~) } return 1; } public OnPlayerSpawn(playerid) { if(GetPlayerSkin(playerid) == 124||GetPlayerSkin(playerid) == 285) { SetPlayerTeam(playerid,1); SetPlayerColor(playerid,0xFF0000AA); // Sets player color to RED ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 31, 500); //M4 Whit 500 Ammo GivePlayerWeapon(playerid, 28, 500); //Uzi Whit 500 Ammo GivePlayerWeapon(playerid, 23, 500); //sPistol Whit 500 Ammo GivePlayerWeapon(playerid, 44, 1); //NightVision GivePlayerWeapon(playerid, 17, 5); //15 SmokeGranades } else if(GetPlayerSkin(playerid) == 163 || GetPlayerSkin(playerid) == 164 || GetPlayerSkin(playerid) == 287) { SetPlayerTeam(playerid,2); SetPlayerColor(playerid,0x00008BAA); // Sets player color to BLUEDARK ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 30, 500); //Ak47 Whit 500 Ammo GivePlayerWeapon(playerid, 32, 500); //Tec9 Whit 500 Ammo GivePlayerWeapon(playerid, 22, 500); //9mm Pistol Whit 500 Ammo GivePlayerWeapon(playerid, 17, 5); //15 SmokeGranades SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_Rebels) { SetPlayerColor(playerid, TEAM_Rebels_COLOR); } else if (gTeam[playerid] == TEAM_Air_Force) { SetPlayerColor(playerid, TEAM_AIR_Force_COLOR); } } SendClientMessage(playerid,0xAA33AA33,"**NSA is located in bayside and The Government is located in san fierro military ship"); for(new i = 0; i<=MAX_PLAYERS; i++) { if(GetPlayerTeam(i) == 1) { SendClientMessage(playerid,0xAA33AA33,"**The Rebels are near Ls At The Big Satalite And the AiR force at the back of jizzy´s house somewhere"); } } return 1; } } SetPlayerTeamFromClass(playerid, classid) { if (classid == 0) { gTeam[playerid] = TEAM_Rebels; } else { gTeam[playerid] = TEAM_Air_Force; } } return 1; wie zou het willen fixen voor mij en willen reposten alvast thanks Bewerkt: 24 juni 2010 door dendudes123 Reageren
Wanted Geplaatst: 24 juni 2010 Rapport Geplaatst: 24 juni 2010 (bewerkt) #include <a_samp> #define NSA 1 #define Government 2 #define TEAM_Rebels 3 #define TEAM_Air_Force 4 #define TEAM_Rebels_COLOR 0xFF00FFAA // Bright Purple #define TEAM_Air_Force_COLOR 0x00FF00AA // Bright Green #define AQUA 0x00FFFFAA #define GREY 0xAFAFAFAA #define BEIGE 0xFFF8DCAA #define BLACK 0x000000AA #define BLUE 0x0000FFAA #define BLUELIGHTER 0x00BFFFAA #define BLUELIGHT 0x1E90FFAA #define BLUEMEDIUM 0x0000CDAA #define BLUEDARK 0x00008BAA #define PINK 0xFF1493AA #define PINKDARK 0xFF00FFAA #define GREEN 0x008000AA #define GREENLIGHT 0x00FF00AA #define GREENDARK 0x006400AA #define MAROON 0x800000AA #define OKER 0x808000AA #define ORANGE 0xFF4500AA #define ORANGELIGHT 0xFF8C00AA #define PURPLE2 0x800080AA #define VIOLETDARK 0x9400D3AA #define INDIGO 0xAB0082AA #define RED 0xFF0000AA #define SAND 0xFFDEADAA #define SILVER 0xC0C0C0AA #define TEAL 0x008080AA #define WHITE 0xFFFFFFAA #define YELLOW 0xFFFF00AA #define GOLD 0xFFD700AA #define BROWN 0x8B4513AA #define BROWNLIGHT 0xA0522DAA #define GRAY 0xA9A9A9AA #define GRAYDARK 0x696969AA public OnGameModeInit() { CreateObject(987, -2309.3513183594, 2336.6157226563, 4.1328125, 0.000000, 0.000000, 0.000000); // CreateObject(987, -2252.6389160156, 2381.6977539063, 3.9811840057373, 0.000000, 0.000000, 40); // CreateObject(987, -2266.486328125, 2371.8759765625, 4.2533588409424, 0.000000, 0.000000, 39.995727539063); // CreateObject(987, -2275.5510253906, 2364.5600585938, 4.4654779434204, 0.000000, 0.000000, 39.995727539063); // CreateObject(987, -2284.3801269531, 2340.7470703125, 4.1686744689941, 0.000000, 0.000000, 90); // CreateObject(987, -2284.3186035156, 2335.2788085938, 4.3134803771973, 0.000000, 0.000000, 90); // CreateObject(2892, -2282.3666992188, 2358.4331054688, 4.3174476623535, 0.000000, 0.000000, 145); // CreateObject(3279, -2279.7944335938, 2343.9904785156, 3.9639186859131, 0.000000, 0.000000, 0.000000); // CreateObject(3279, -2258.798828125, 2370.4660644531, 4.6335868835449, 0.000000, 0.000000, 0.000000); // CreateObject(3884, -2286.6870117188, 2287.6398925781, 8.1640625, 0.000000, 0.000000, 175); // AddStaticVehicle(425, -1312.2193603516, 499.34963989258, 19.085374832153, 0.000000, -1, -1); //0 AddStaticVehicle(425, -1296.0327148438, 498.89865112305, 19.085374832153, 0.000000, -1, -1); //1 AddStaticVehicle(425, -1275.9393310547, 498.33831787109, 19.085374832153, 0.000000, -1, -1); //2 AddStaticVehicle(425, -1259.0631103516, 498.22073364258, 19.085374832153, 0.000000, -1, -1); //3 AddStaticVehicle(425, -1399.8448486328, 508.69470214844, 19.080438613892, 0.000000, -1, -1); //4 AddStaticVehicle(520, -1322.7705078125, 506.9228515625, 19.153949737549, 0.000000, -1, -1); //5 AddStaticVehicle(520, -1341.9235839844, 508.12271118164, 19.153949737549, 0.000000, -1, -1); //6 AddStaticVehicle(520, -1358.41796875, 508.26440429688, 19.153949737549, 0.000000, -1, -1); //7 AddStaticVehicle(520, -1374.1506347656, 507.9130859375, 19.153949737549, 0.000000, -1, -1); //8 AddStaticVehicle(520, -1385.9842529297, 508.29956054688, 19.149013519287, 0.000000, -1, -1); //9 AddStaticVehicle(425, -1432.4520263672, 507.79898071289, 19.080438613892, 0.000000, -1, -1); //10 AddStaticVehicle(520, -1423.5760498047, 496.35745239258, 19.149013519287, 0.000000, -1, -1); //11 AddStaticVehicle(447, -1410.7191162109, 504.61080932617, 18.33437538147, 0.000000, -1, -1); //12 AddStaticVehicle(447, -1441.9099121094, 496.29962158203, 18.33437538147, 0.000000, -1, -1); //13 AddStaticVehicle(493, -1444.6767578125, 497.35424804688, 0.000000, 90, -1, -1); //14 AddStaticVehicle(493, -1444.3869628906, 492.98739624023, 0.000000, 90, -1, -1); //15 AddStaticVehicle(493, -1445.8441162109, 505.05630493164, 0.000000, 90, -1, -1); //16 AddStaticVehicle(493, -1443.4975585938, 509.47143554688, 0.000000, 90, -1, -1); //17 AddStaticVehicle(432, -1350.7678222656, 457.65661621094, 7.2868371009827, 0.000000, -1, -1); //18 AddStaticVehicle(432, -1355.5368652344, 457.68695068359, 7.2868371009827, 0.000000, -1, -1); //19 AddStaticVehicle(470, -1359.5379638672, 455.84652709961, 7.2975115776062, 0.000000, -1, -1); //20 AddStaticVehicle(470, -1363.111328125, 455.85403442383, 7.2975115776062, 0.000000, -1, -1); //21 AddStaticVehicle(470, -1366.5687255859, 455.79666137695, 7.2975115776062, 0.000000, -1, -1); //22 AddStaticVehicle(470, -1369.5983886719, 455.87396240234, 7.2975115776062, 0.000000, -1, -1); //23 AddStaticVehicle(470, -1372.9632568359, 455.63446044922, 7.2975115776062, 0.000000, -1, -1); //24 AddStaticVehicle(432, -2270.4052734375, 2335.1904296875, 4.9118371009827, 90, -1, -1); //25 AddStaticVehicle(432, -2252.1142578125, 2334.4169921875, 4.9118371009827, 270, -1, -1); //26 AddStaticVehicle(470, -2272.4453125, 2330.3041992188, 4.9302248954773, 90, -1, -1); //27 AddStaticVehicle(470, -2251.8251953125, 2330.140625, 4.9225115776062, 270, -1, -1); //28 AddStaticVehicle(470, -2251.6376953125, 2306.076171875, 4.9225115776062, 270, -1, -1); //29 AddStaticVehicle(470, -2272.5639648438, 2306.1796875, 4.9302248954773, 90, -1, -1); //30 AddStaticVehicle(425, -2238.392578125, 2284.9736328125, 6.1122589111328, 0.000000, -1, -1); //31 AddStaticVehicle(425, -2227.5029296875, 2297.2570800781, 6.246356010437, 0.000000, -1, -1); //32 AddStaticVehicle(425, -2213.6171875, 2304.130859375, 6.0853753089905, 0.000000, -1, -1); //33 AddStaticVehicle(447, -2242.7475585938, 2349.6740722656, 5.3137187957764, 0.000000, -1, -1); //34 AddStaticVehicle(520, -2249.2915039063, 2277.4584960938, 5.9039506912231, 0.000000, -1, -1); //35 AddStaticVehicle(520, -2259.9113769531, 2277.6469726563, 5.9039506912231, 0.000000, -1, -1); //36 AddStaticVehicle(520, -2269.9636230469, 2277.646484375, 5.9039506912231, 0.000000, -1, -1); //37 AddStaticVehicle(520, -2280.1325683594, 2277.7412109375, 5.8776941299438, 0.000000, -1, -1); //38 AddStaticVehicle(520, -2204.3818359375, 2324.3815917969, 5.8961381912231, 0.000000, -1, -1); //39 AddStaticVehicle(470, -2251.6013183594, 2303.2534179688, 4.9225115776062, 270, -1, -1); //40 AddStaticVehicle(470, -2272.4145507813, 2303.373046875, 4.9302248954773, 90, -1, -1); //41 AddStaticVehicle(433, -2260.6667480469, 2355.0524902344, 5.5443553924561, 0.000000, -1, -1); //42 AddStaticVehicle(433, -2256.265625, 2355.6103515625, 5.5489540100098, 0.000000, -1, -1); //43 AddStaticVehicle(411, -2245.2080078125, 2312.177734375, 4.7696671485901, 0.000000, -1, -1); //44 AddStaticVehicle(533, -2337.4484863281, 2384.5698242188, 5.578950881958, 0.000000, -1, -1); //45 AddStaticVehicle(439, -2385.3942871094, 2338.8952636719, 4.984375, 0.000000, -1, -1); //46 AddStaticVehicle(405, -2513.9584960938, 2428.3754882813, 16.641193389893, 0.000000, -1, -1); //47 AddStaticVehicle(486, -2394.9704589844, 2359.6821289063, 5.0966658592224, 0.000000, -1, -1); //48 AddStaticVehicle(493, -2325.7309570313, 2297.3198242188, 0.000000, 180, -1, -1); //49 AddStaticVehicle(493, -2325.365234375, 2332.6899414063, 0.000000, 180, -1, -1); //50 AddStaticVehicle(524, -2407.5124511719, 2355.921875, 6.0840759277344, 0.000000, -1, -1); //51 AddStaticVehicle(455, -2544.0700683594, 2360.0334472656, 5.5543746948242, 0.000000, -1, -1); //52 AddStaticVehicle(418, -2513.818359375, 2367.08984375, 5.170033454895, 0.000000, -1, -1); //53 AddStaticVehicle(422, -2553.2404785156, 2273.08203125, 5.1240167617798, 335, -1, -1); //54 AddStaticVehicle(562, -2525.5710449219, 2255.5380859375, 4.7133746147156, 340, -1, -1); //55 AddStaticVehicle(455, -2487.673828125, 2291.1574707031, 5.5543746948242, 90, -1, -1); //56 AddStaticVehicle(470, -2272.2788085938, 2327.4147949219, 4.9302248954773, 90, -1, -1); //57 AddStaticVehicle(432, -2271.1557617188, 2323.0661621094, 4.9195504188538, 90, -1, -1); //58 AddStaticVehicle(470, -2272.048828125, 2318.7536621094, 4.9302248954773, 90, -1, -1); //59 AddStaticVehicle(432, -2271.9584960938, 2310.3923339844, 4.9195504188538, 90, -1, -1); //60 AddStaticVehicle(470, -2272.2407226563, 2315.5231933594, 4.9302248954773, 90, -1, -1); //61 AddStaticVehicle(470, -2270.7385253906, 2294.5456542969, 4.9302248954773, 90, -1, -1); //62 AddStaticVehicle(432, -2271.869140625, 2299.0595703125, 4.9195504188538, 90, -1, -1); //63 AddStaticVehicle(470, -2270.7668457031, 2291.4514160156, 4.9302248954773, 90, -1, -1); //64 AddStaticVehicle(432, -2270.87890625, 2287.015625, 4.9195504188538, 90, -1, -1); //65 AddStaticVehicle(470, -2251.7902832031, 2326.7536621094, 4.9225115776062, 270, -1, -1); //66 AddStaticVehicle(470, -2251.7568359375, 2317.67578125, 4.9225115776062, 270, -1, -1); //67 AddStaticVehicle(470, -2251.8254394531, 2315.0048828125, 4.9225115776062, 270, -1, -1); //68 AddStaticVehicle(432, -2252.5578613281, 2322.3862304688, 4.9118371009827, 270, -1, -1); //69 AddStaticVehicle(432, -2253.4162597656, 2310.423828125, 4.9118371009827, 270, -1, -1); //70 AddStaticVehicle(432, -2253.3564453125, 2298.4758300781, 4.9118371009827, 270, -1, -1); //71 AddStaticVehicle(470, -2251.6376953125, 2306.076171875, 4.9225115776062, 270, -1, -1); //72 AddStaticVehicle(470, -2252.4348144531, 2294.5168457031, 4.9225115776062, 270, -1, -1); //73 AddStaticVehicle(470, -2252.1997070313, 2290.9641113281, 4.9225115776062, 270, -1, -1); //74 AddStaticVehicle(432, -2252.5207519531, 2286.6828613281, 4.9195504188538, 270, -1, -1); //75 SetGameModeText("[<>] Splinter Cell Conviction T DM [<>]"); AddPlayerClassEx(1,124,-2259.1279,2274.6323,4.9844,6.9387,0,0,0,0,0,0); // tom clancy AddPlayerClassEx(1,285,-2259.1279,2274.6323,4.9844,6.9387,0,0,0,0,0,0); // trooper AddPlayerClassEx(2,287,-1347.7832,500.5654,18.2344,357.5435,0,0,0,0,0,0); // military AddPlayerClassEx(2,163,-1347.7832,500.5654,18.2344,357.5435,0,0,0,0,0,0); // govermentagent AddPlayerClassEx(4,283,-2901.9636,463.1479,4.9141,119.1597,346,500,349,500,352,500); // airforce2 AddPlayerClassEx(4,288,-2901.9636,463.1479,4.9141,119.1597,346,500,349,500,352,500); // airforce3 AddPlayerClassEx(3,47,-309.0945,1537.0425,75.5625,175.5119,346,500,349,500,352,500); // rebel1 AddPlayerClassEx(3,48,-309.0945,1537.0425,75.5625,175.5119,346,500,349,500,352,500); // rebel2 AddPlayerClassEx(3,73,-309.0945,1537.0425,75.5625,175.5119,346,500,349,500,352,500); // rebel3 return 1; } public OnPlayerDeath(playerid, killerid, reason) { SetPlayerScore(playerid,GetPlayerScore(playerid)-1); SetPlayerScore(killerid,GetPlayerScore(killerid)+1); return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid,AQUA,"**Splinter Cell Server(scripted by ace @ acegangwar.co.cc)"); SendClientMessage(playerid,AQUA,"**Kill the other team!! wanna teamchat put a ! before your message"); return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid,222.1709,1823.0964,6.4141); SetPlayerFacingAngle(playerid, 247.7546); SetPlayerCameraPos(playerid,226.7025,1822.8309,7.4141); SetPlayerCameraLookAt(playerid,222.1709,1823.0964,6.4141); if(GetPlayerSkin(playerid) == 124||GetPlayerSkin(playerid) == 285)//checks if the team of the player is 1. { GameTextForPlayer(playerid,"~r~NSA",5000,3);//send text to the player that shows up on the screen saying "NSA" in red text(~r~) } else if(GetPlayerSkin(playerid) == 163 || GetPlayerSkin(playerid) == 164 || GetPlayerSkin(playerid) == 73) { GameTextForPlayer(playerid,"~b~The Government",5000,3);//send text to the player that shows up on the screen saying "GOVERNMENT" in blue text(~b~) } if(GetPlayerSkin(playerid) == 283||GetPlayerSkin(playerid) == 288)//checks if the team of the player is 4. { GameTextForPlayer(playerid,"~r~Air Force",5000,3);//send text to the player that shows up on the screen saying "Air Force" in red text(~r~) } else if(GetPlayerSkin(playerid) == 47 || GetPlayerSkin(playerid) == 48|| GetPlayerSkin(playerid) == 287)//checks if the team of the player is 3. { GameTextForPlayer(playerid,"~b~Rebels",5000,3);//send text to the player that shows up on the screen saying "Rebels" in blue text(~b~) } return 1; } public OnPlayerSpawn(playerid) { if(GetPlayerSkin(playerid) == 124||GetPlayerSkin(playerid) == 285) { SetPlayerTeam(playerid,1); SetPlayerColor(playerid,0xFF0000AA); // Sets player color to RED ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 31, 500); //M4 Whit 500 Ammo GivePlayerWeapon(playerid, 28, 500); //Uzi Whit 500 Ammo GivePlayerWeapon(playerid, 23, 500); //sPistol Whit 500 Ammo GivePlayerWeapon(playerid, 44, 1); //NightVision GivePlayerWeapon(playerid, 17, 5); //15 SmokeGranades } else if(GetPlayerSkin(playerid) == 163 || GetPlayerSkin(playerid) == 164 || GetPlayerSkin(playerid) == 287) { SetPlayerTeam(playerid,2); SetPlayerColor(playerid,0x00008BAA); // Sets player color to BLUEDARK ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 30, 500); //Ak47 Whit 500 Ammo GivePlayerWeapon(playerid, 32, 500); //Tec9 Whit 500 Ammo GivePlayerWeapon(playerid, 22, 500); //9mm Pistol Whit 500 Ammo GivePlayerWeapon(playerid, 17, 5); //15 SmokeGranades } SendClientMessage(playerid,0xAA33AA33,"**NSA is located in bayside and The Government is located in san fierro military ship"); for(new i = 0; i<=MAX_PLAYERS; i++) { if(GetPlayerTeam(i) == 1) { SendClientMessage(playerid,0xAA33AA33,"**The Rebels are near Ls At The Big Satalite And the AiR force at the back of jizzy´s house somewhere"); } } return 1; } stock SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_Rebels) { SetPlayerColor(playerid, TEAM_Rebels_COLOR); } else if (gTeam[playerid] == TEAM_Air_Force) { SetPlayerColor(playerid, TEAM_AIR_Force_COLOR); } return 1; } stock SetPlayerTeamFromClass(playerid, classid) { if (classid == 0) { gTeam[playerid] = TEAM_Rebels; } else { gTeam[playerid] = TEAM_Air_Force; } return 1; } Ik weet niet zeker of het werkt, maar de errors / warnings zijn er in ieder geval uit. (Klik op Show hierboven om je code te zien.) Bewerkt: 24 juni 2010 door Wanted Reageren
Recommended Posts
Een reactie plaatsen
Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.