Morph1 Geplaatst: 27 juli 2009 Rapport Geplaatst: 27 juli 2009 hallo, ik heb 2 teams, Army en Holbewoners, als je army joint staat er bestrijd de ~g~holbewonders! volg met boten de boeien, maar als je de holbewoners joint krijg je dat ook en ze hebben allebij de kleur blauw terwijl army grijs moet en de holbewoners olijfgroen, kan iemand dit fixen alvast bedankt. hier is het script: #include <a_samp> #define TEAM_ARMY 0 #define TEAM_HOLBEWONERS 1 #define TEAM_ARMY_COLOR 0x0000FFAA #define TEAM_HOLBEWONERS_COLOR 0x0000FFAA #define COLOR_GREY 0xA9A9A9AA #define SetPlayerToTeamColor A0x228B22A new gTeam[MAX_PLAYERS]; main() { print("\n----------------------------------"); print(" Eiland DM by Morph"); print("----------------------------------\n"); } forward SetPlayerTeamFromClass(playerid, classid); forward SetPlayerToTeamColor(playerid); forward SetupPlayerForClassSelection(playerid); public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Eiland DM"); //OBJECTEN //------------------------------------------------------------------------------ CreateObject(10166, 2720.812256, -4527.056152, 4.692905, -362.68176907, 0, -44.9999906894); // object CreateObject(18228, 2716.850098, -4504.871094, 2.373139, 0, 0, 146.249998389); // object (4) CreateObject(18227, 2753.549561, -4513.597168, -10.805813, 0, 0, 0); // object (5) CreateObject(17299, 2725.408691, -4541.300293, -0.805550, 0, -27.5019741977, -20.6264806483); // object (6) CreateObject(620, 2741.032471, -4517.572754, 12.521744, 0, 0, 0); // object (7) CreateObject(18228, 2685.424561, -4524.225098, 7.589257, 0, 0, -123.749945748); // object (8) CreateObject(17030, 2793.596924, -4535.766113, -3.832699, 0, 0, 33.750021665); // object (10) CreateObject(17030, 2798.518799, -4569.424316, -2.979739, 0, 0, 213.749927127); // object (11) CreateObject(17958, 2731.364258, -4529.476563, 14.010436, 0, 0, 0); // object (12) CreateObject(14468, 2747.665283, -4563.926758, 7.911938, 0, 0, 0); // object (13) CreateObject(14468, 2742.876953, -4549.204590, 14.379506, 0, 0, 0); // object (14) CreateObject(623, 2740.516602, -4554.916992, 10.221861, 0, 0, 0); // object (15) CreateObject(621, 2722.015137, -4548.965820, 17.348785, 0, 0, 0); // object (16) CreateObject(618, 2736.150146, -4535.208984, 14.936138, 0, 0, 0); // object (17) CreateObject(3461, 2763.333740, -4554.149902, 15.220681, 0, 0, 0); // object (18) CreateObject(3461, 2758.026367, -4561.387207, 10.723750, 0, 0, 56.2500170097); // object (19) CreateObject(3461, 2755.661377, -4566.041016, 5.859005, 0, 0, 0); // object (20) CreateObject(3461, 2750.446289, -4570.535645, 5.390420, 0, 0, 0); // object (21) CreateObject(3461, 2748.308594, -4572.668457, 5.475895, 0, 0, 0); // object (22) CreateObject(3461, 2746.821777, -4555.622559, 15.541526, 0, 0, 0); // object (23) CreateObject(3461, 2753.634521, -4536.640137, 17.104599, 0, 0, 0); // object (24) CreateObject(3461, 2742.254883, -4537.371094, 17.593290, 0, 0, 0); // object (25) CreateObject(3524, 2743.006836, -4541.384766, 17.548664, 0, 0, -22.4999953447); // object (26) CreateObject(3528, 2692.991211, -4523.263672, 25.098658, 0, 0, 0); // object (27) CreateObject(3528, 2729.438232, -4548.856934, 14.855814, 0, 0, 0); // object (28) CreateObject(6865, 2721.044678, -4511.467773, 19.979141, 0, 0, 33.750021665); // object (29) CreateObject(7392, 2688.215820, -4506.966797, 34.233673, 0, 0, 0); // object (31) CreateObject(1243, 2789.866211, -2618.902344, -2.655633, 0, 0, -89.9999813789); // object (27) CreateObject(1243, 2702.666016, -2618.827637, -2.655633, 0, 0, -89.9999813789); // object (28) CreateObject(1243, 2701.965820, -2694.327637, -2.655633, 0, 0, -89.9999813789); // object (29) CreateObject(1243, 2787.215820, -2694.327637, -2.655633, 0, 0, -89.9999813789); // object (30) CreateObject(1243, 2786.990723, -2787.409912, -2.579090, 0, 0, -89.9999813789); // object (31) CreateObject(1243, 2701.693848, -2791.659424, -2.236416, 0, 0, -89.9999813789); // object (32) CreateObject(1243, 2701.593262, -2885.038574, -2.583282, 0, 0, -89.9999813789); // object (33) CreateObject(1243, 2785.452393, -2884.496338, -2.374589, 0, 0, -89.9999813789); // object (34) CreateObject(1243, 2785.452393, -2988.996338, -2.374589, 0, 0, -89.9999813789); // object (35) CreateObject(1243, 2701.481201, -2988.996338, -2.374589, 0, 0, -89.9999813789); // object (36) CreateObject(1243, 2701.481201, -3102.518311, -2.374589, 0, 0, -89.9999813789); // object (37) CreateObject(1243, 2701.481201, -3102.518311, -2.374589, 0, 0, -89.9999813789); // object (38) CreateObject(1243, 2786.481201, -3102.518311, -2.374589, 0, 0, -89.9999813789); // object (39) CreateObject(1243, 2786.331299, -3209.427002, -2.384950, 0, 0.859436693678, -753.7498154); // object (40) CreateObject(1243, 2701.583252, -3209.427002, -2.384950, 0, 0.859436693678, -753.7498154); // object (41) CreateObject(1243, 2701.583252, -3294.451904, -2.384950, 0, 0.859436693678, -753.7498154); // object (42) CreateObject(1243, 2787.133057, -3294.451904, -2.384950, 0, 0.859436693678, -753.7498154); // object (43) CreateObject(1243, 2787.133057, -3389.701904, -2.384950, 0, 0.859436693678, -753.7498154); // object (44) CreateObject(1243, 2700.798584, -3387.270020, -2.534190, 0, 0.859436693678, -753.7498154); // object (45) CreateObject(1243, 2700.798584, -3495.044922, -2.534190, 0, 0.859436693678, -753.7498154); // object (46) CreateObject(1243, 2791.315674, -3495.044922, -2.534190, 0, 0.859436693678, -753.7498154); // object (47) CreateObject(1243, 2791.315674, -3597.544922, -2.534190, 0, 0.859436693678, -753.7498154); // object (48) CreateObject(1243, 2702.515869, -3597.544922, -2.534190, 0, 0.859436693678, -753.7498154); // object (49) CreateObject(1243, 2702.515869, -3683.294922, -2.534190, 0, 0.859436693678, -753.7498154); // object (50) CreateObject(1243, 2788.115479, -3683.294922, -2.534190, 0, 0.859436693678, -753.7498154); // object (51) CreateObject(1243, 2788.115479, -3767.344727, -2.534190, 0, 0.859436693678, -753.7498154); // object (52) CreateObject(1243, 2703.439209, -3767.344727, -2.534190, 0, 0.859436693678, -753.7498154); // object (53) CreateObject(1243, 2703.439209, -3842.594727, -2.534190, 0, 0.859436693678, -753.7498154); // object (54) CreateObject(1243, 2788.489014, -3842.594727, -2.534190, 0, 0.859436693678, -753.7498154); // object (55) CreateObject(1243, 2788.489014, -3921.344727, -2.534190, 0, 0.859436693678, -753.7498154); // object (56) CreateObject(1243, 2703.214111, -3921.344727, -2.534190, 0, 0.859436693678, -753.7498154); // object (57) CreateObject(1243, 2703.214111, -4017.344727, -2.534190, 0, 0.859436693678, -753.7498154); // object (58) CreateObject(1243, 2787.538818, -4017.344727, -2.534190, 0, 0.859436693678, -753.7498154); // object (59) CreateObject(1243, 2787.538818, -4139.344727, -2.534190, 0, 0.859436693678, -753.7498154); // object (60) CreateObject(1243, 2701.117432, -4139.546875, -2.534190, 0, 0.859436693678, -753.7498154); // object (61) CreateObject(1243, 2701.117432, -4250.296875, -2.534190, 0, 0.859436693678, -753.7498154); // object (62) CreateObject(1243, 2788.966064, -4250.296875, -2.534190, 0, 0.859436693678, -753.7498154); // object (63) CreateObject(1243, 2700.104004, -4352.047363, -2.951749, 0, 0.859436693678, -753.7498154); // object (64) CreateObject(1243, 2786.128906, -4352.047363, -2.951749, 0, 0.859436693678, -753.7498154); // object (65) CreateObject(18227, 2723.396973, -4565.955566, -1.114225, 0, 0, 0); // object (66) CreateObject(17026, 2680.039307, -4490.896484, -7.357904, 0, 0, -258.749975112); // object (67) //--------------------------------------------------------------------------------------------------------- //PLAYERCLASSES //--------------------------------------------------------------------------------------------------------- AddPlayerClass(78,2691.6938,-4523.1011,28.4478,268.4969,30,500,26,500,22,500); // holbewoners AddPlayerClass(79,2691.6938,-4523.1011,28.4478,268.4969,30,500,26,500,22,500); // holbewoners AddPlayerClass(137,2691.6938,-4523.1011,28.4478,268.4969,30,500,26,500,22,500); // holbewoners AddPlayerClass(135,2691.6938,-4523.1011,28.4478,268.4969,30,500,26,500,22,500); // holbewoners AddPlayerClass(159,2691.6938,-4523.1011,28.4478,268.4969,30,500,26,500,22,500); // holbewoners AddPlayerClass(200,2691.6938,-4523.1011,28.4478,268.4969,30,500,26,500,22,500); // holbewoners AddPlayerClass(285,2757.6040,-2572.4778,14.1749,183.6658,28,500,31,500,24,500); // army AddPlayerClass(288,2757.6040,-2572.4778,14.1749,183.6658,28,500,31,500,24,500); // army AddPlayerClass(287,2757.6040,-2572.4778,14.1749,183.6658,28,500,31,500,24,500); // army AddPlayerClass(166,2757.6040,-2572.4778,14.1749,183.6658,28,500,31,500,24,500); // army AddPlayerClass(164,2757.6040,-2572.4778,14.1749,183.6658,28,500,31,500,24,500); // army AddPlayerClass(163,2757.6040,-2572.4778,14.1749,183.6658,28,500,31,500,24,500); // army //--------------------------------------------------------------------------------------------------------- //VEHICELS //--------------------------------------------------------------------------------------------------------- AddStaticVehicle(446,2727.5525,-2588.3516,-0.6156,180.1885,1,22); // bootje AddStaticVehicle(446,2737.6416,-2588.2053,-0.7661,181.8979,1,22); // bootje AddStaticVehicle(446,2746.8940,-2587.7378,-0.6050,179.8629,1,22); // bootje AddStaticVehicle(446,2757.1245,-2587.1433,-0.4234,186.8466,1,22); // bootje AddStaticVehicle(446,2767.9026,-2590.5010,-0.7870,179.4697,1,22); // bootje AddStaticVehicle(446,2766.8911,-2616.9907,-0.2037,175.7180,1,22); // bootje AddStaticVehicle(446,2757.4458,-2617.6643,-0.4969,184.1089,1,22); // bootje AddStaticVehicle(446,2745.1360,-2625.0483,-0.9397,175.5119,1,22); // bootje AddStaticVehicle(446,2734.5823,-2622.5352,-0.7169,175.9411,1,22); // boojte AddStaticVehicle(446,2731.2312,-2618.0891,-0.2232,186.2745,1,22); // bootje AddStaticVehicle(446,2744.7031,-2588.0762,-0.4996,180.4015,1,53); // bootje AddStaticVehicle(446,2780.0847,-4550.0840,-0.1941,253.9787,1,53); // bootje AddStaticVehicle(446,2782.6172,-4542.4810,-0.4740,235.7620,1,53); // bootje AddStaticVehicle(446,2801.0315,-4551.1675,-0.2514,247.8834,1,53); // bootje AddStaticVehicle(446,2803.6230,-4559.8159,-1.1149,240.9670,1,53); // bootje AddStaticVehicle(446,2823.5955,-4569.5239,-0.2894,246.8362,1,53); // bootje return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public SetPlayerTeamFromClass(playerid, classid) { if (classid == 0,1,2,3,4,5) { gTeam[playerid] = TEAM_ARMY; } else { gTeam[playerid] = TEAM_HOLBEWONERS; } } public SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_ARMY) { SetPlayerColor(playerid, TEAM_ARMY_COLOR); } else if (gTeam[playerid] == TEAM_HOLBEWONERS) { SetPlayerColor(playerid, TEAM_HOLBEWONERS_COLOR); } } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerRequestClass(playerid, classid) { //Positions SetPlayerPos(playerid,2322.7075,1283.3170,96.3392); SetPlayerCameraPos(playerid,2317.7075,1283.3170,99.33927); SetPlayerCameraLookAt(playerid,2322.7075,1283.3170,96.3392); SetPlayerFacingAngle(playerid, 95.0000); return 1; } public OnPlayerInfoChange(playerid) { return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public SetupPlayerForClassSelection(playerid) { SetPlayerInterior(playerid,280); SetPlayerPos(playerid,1660.312,-2402.307,13.55469); SetPlayerCameraPos(playerid,1660.312,-2402.307,13.55469); SetPlayerCameraLookAt(playerid,1660.312,-2406.307,13.55469); SetPlayerFacingAngle(playerid,548.8462); } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerConnect(playerid) { SetPlayerColor(playerid,COLOR_GREY); // Kleur GameTextForPlayer(playerid,"~r~Island DeathMatch",2000,5); // Text return 1; } public OnPlayerSpawn(playerid) { SetPlayerToTeamColor(playerid); SetPlayerInterior(playerid,0); if(gTeam[playerid] == TEAM_ARMY) { GameTextForPlayer(playerid,"bestrijd de ~g~holbewonders! volg met boten de boeien!",6000,5); } else if(gTeam[playerid] == TEAM_HOLBEWONERS) { GameTextForPlayer(playerid,"bescherm je tegen de aanval van ~b~army!",6000,5); } return 1; } Reageren
Remcconen Geplaatst: 27 juli 2009 Rapport Geplaatst: 27 juli 2009 Gebruik de [ CODEBOX] tags. #define TEAM_ARMY_COLOR 0x0000FFAA #define TEAM_HOLBEWONERS_COLOR 0x0000FFAA Je gebruikt de zelfde kleur. Het gaat om de kleur tussen 0x en AA. Reageren
Morph1 Geplaatst: 27 juli 2009 Auteur Rapport Geplaatst: 27 juli 2009 Gebruik de [ CODEBOX] tags. #define TEAM_ARMY_COLOR 0x0000FFAA #define TEAM_HOLBEWONERS_COLOR 0x0000FFAA Je gebruikt de zelfde kleur. Het gaat om de kleur tussen 0x en AA. oh ja, stomme fout , maar bedankt maar nu heb ik nog steeds het probleem dat er bij de holbewoners ook dezelfde text komt te staan als bij army kan iemand dat even fixen alstublieft alvast bedankt, (script staat boven) Reageren
disaster9876 Geplaatst: 29 juli 2009 Rapport Geplaatst: 29 juli 2009 (bewerkt) OH,, srry ik heb iets fout gezegd (bewerkt) Bewerkt: 29 juli 2009 door disaster9876 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.