Én úgy gondoltam hogy dobd fel ide a módot hogy rakd fel ide a módot....
A knight meg úgy gondolta hogy próbálkozz egy egyszerubb moddal kezdésnek...
Pl:Lvdm, et írj vagy ami szeretnél.
Ha kérdés van segítek... adok egy alap modot amit kurtis csinált...
Tessék itt a forrás
Kijavítottam 3 hibát benne...!
/*-----------------
LSTDM mod by Kurtis
Javította:Pöpec15
-----------------*/
#include <a_samp>
#include <core>
#include <float>
static gTeam[MAX_PLAYERS];
new gPlayerClass[MAX_PLAYERS];
//Színek Definiálása (az az melyik csapthoz,szöveghez melyik szín kell)
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
//Csapatok Definiálása pl: [#define TEAM_DROGOS] // Utána majd olvasod tovább és rá jössz mindenre.
#define TEAM_GROVE 0
#define TEAM_BALLAS 1
#define TEAM_VAGOS 2
#define TEAM_ALCETAS 3
forward SetupPlayerForClassSelection(playerid);
//------------------------------------------------------------------------------
main()
{
print(\"\\n------------------------\");
print(\" LSTDM by Kurtis (2007)\\n\"); // A mód neve/készítoje [Ha átalakítod és átírogatod nyugodtan átírhatod a modod nevét]
print(\"------------------------\\n\");
}
//------------------------------------------------------------------------------
public OnGameModeInit()
{
SetGameModeText(\"Los Santos TDM by Kurtis\"); // Mód neve és készítoje
SetTeamCount(4);
ShowNameTags(1);
ShowPlayerMarkers(1);
SetWorldTime(12);
AllowInteriorWeapons(1);
EnableTirePopping(1);
EnableZoneNames(1);
UsePlayerPedAnims();
EnableStuntBonusForAll(1);
//Grove [Ezek a helyzetek hogy hova rakja le az embert pl:AddPlayerClass(105,2518.1255,-1674.8496,14.2629,80.3910,31,1700,32,1400,26,600); mint láttod ez egy groove-os ember 105 ös skin. (minden embernek más skin, az utolsó 6 darab szám a fegyver,loszer)Itt jelenleg ezek a fegyverek és loszerek 31,1700,32,1400,26,600!
AddPlayerClass(105,2518.1255,-1674.8496,14.2629,80.3910,31,1700,32,1400,26,600);
AddPlayerClass(106,2518.1255,-1674.8496,14.2629,80.3910,31,1700,32,1400,26,600);
AddPlayerClass(107,2518.1255,-1674.8496,14.2629,80.3910,31,1700,32,1400,26,600);
//Ballas
AddPlayerClass(102,1956.1855,-1120.7092,26.8481,182.0521,31,1700,32,1400,26,600);
AddPlayerClass(103,1956.1855,-1120.7092,26.8481,182.0521,31,1700,32,1400,26,600);
AddPlayerClass(104,1956.1855,-1120.7092,26.8481,182.0521,31,1700,32,1400,26,600);
//Vagos
AddPlayerClass(108,2345.0479,-1167.9254,27.8450,12.1068,31,1700,32,1400,26,600);
AddPlayerClass(109,2345.0479,-1167.9254,27.8450,12.1068,31,1700,32,1400,26,600);
AddPlayerClass(110,2345.0479,-1167.9254,27.8450,12.1068,31,1700,32,1400,26,600);
//Acetas
AddPlayerClass(114,1747.5767,-2095.1057,13.5469,175.6753,31,1700,32,1400,26,600);
AddPlayerClass(115,1747.5767,-2095.1057,13.5469,175.6753,31,1700,32,1400,26,600);
AddPlayerClass(116,1747.5767,-2095.1057,13.5469,175.6753,31,1700,32,1400,26,600);
//Kocsik ezeket betudod debugolni.
AddStaticVehicle(451,2507.3464,-1677.1471,13.1640,328.7691,125,125); //
AddStaticVehicle(451,2499.8499,-1655.0427,13.1323,65.9011,36,36); //
AddStaticVehicle(451,2474.3425,-1680.2544,13.0615,241.1621,16,16); //
AddStaticVehicle(567,2482.2791,-1653.9404,13.2535,88.2778,88,64); //
AddStaticVehicle(567,2494.0254,-1684.2410,13.2747,279.2693,90,96); //
AddStaticVehicle(567,2468.7122,-1669.2911,13.2559,19.9506,93,64); //
AddStaticVehicle(567,2509.2905,-1667.0922,13.3513,4.6342,97,96); //
AddStaticVehicle(481,2510.3594,-1685.6689,13.0828,26.2603,3,3); //
AddStaticVehicle(481,2509.4143,-1686.2137,13.0831,37.8716,6,6); //
AddStaticVehicle(481,2508.4790,-1686.8480,13.0785,43.2289,46,46); //
AddStaticVehicle(481,2510.8816,-1688.1079,13.0756,112.0446,14,1); //
AddStaticVehicle(481,2512.0183,-1686.6387,13.0819,66.5655,65,9); //
AddStaticVehicle(522,2443.0540,-1664.5990,13.0383,90.1781,6,25); //
AddStaticVehicle(522,2426.4524,-1652.7402,13.1194,86.5497,7,79); //
AddStaticVehicle(492,2446.4133,-1653.7834,13.1049,92.5292,77,26); //
AddStaticVehicle(492,2467.0139,-1653.4275,13.1773,269.9123,81,27); //
AddStaticVehicle(566,1905.5442,-1131.0315,24.3162,90.6361,30,8); //
AddStaticVehicle(566,1890.3575,-1140.8479,23.9326,270.7470,95,1); //
AddStaticVehicle(566,1917.0922,-1140.5931,24.6018,268.7423,84,8); //
AddStaticVehicle(566,1944.9135,-1130.7858,25.2998,271.2799,83,1); //
AddStaticVehicle(533,1966.5801,-1121.2960,25.5458,353.5102,74,1); //
AddStaticVehicle(533,1979.3898,-1095.2471,25.0813,173.2315,75,1); //
AddStaticVehicle(566,1988.6454,-1140.7856,25.4788,269.1120,72,8); //
AddStaticVehicle(533,2000.3250,-1130.8672,25.1121,89.6166,77,1); //
AddStaticVehicle(533,2020.1317,-1141.0806,24.5513,90.6855,79,1); //
AddStaticVehicle(566,2045.8295,-1130.4800,23.9026,273.1131,71,1); //
AddStaticVehicle(468,2051.0708,-1151.6382,23.4680,232.4906,46,46); //
AddStaticVehicle(468,2051.6953,-1150.7363,23.4829,236.8226,53,53); //
AddStaticVehicle(468,2048.5923,-1164.9246,22.9298,111.5154,3,3); //
AddStaticVehicle(481,2022.1384,-1152.2437,22.8137,243.8037,3,3); //
AddStaticVehicle(481,2046.1661,-1170.3501,22.6770,214.1698,12,9); //
AddStaticVehicle(481,2031.0480,-1173.7506,21.8369,241.7468,1,1); //
AddStaticVehicle(481,2017.4619,-1166.7065,21.0682,28.1785,26,1); //
AddStaticVehicle(475,2348.5474,-1167.1907,27.4771,2.5103,6,6); //
AddStaticVehicle(536,2369.7449,-1149.0399,27.2684,86.6266,12,1); //
AddStaticVehicle(536,2365.7744,-1176.2776,27.2460,179.3594,26,96); //
AddStaticVehicle(475,2341.1238,-1149.4401,26.8656,270.0884,17,1); //
AddStaticVehicle(475,2329.5659,-1159.3811,26.6867,82.1596,21,1); //
AddStaticVehicle(536,2332.0256,-1137.0564,27.1188,157.5087,30,96); //
AddStaticVehicle(536,2332.4182,-1116.7806,28.6868,315.1306,32,1); //
AddStaticVehicle(475,2321.6262,-1135.5903,27.0916,166.0658,33,0); //
AddStaticVehicle(468,2389.3054,-1145.5509,28.1708,207.5528,6,6); //
AddStaticVehicle(468,2400.7920,-1139.7737,29.6738,159.6686,46,46); //
AddStaticVehicle(468,2371.2871,-1141.2299,28.0452,233.9799,3,3); //
AddStaticVehicle(468,2379.5779,-1163.0204,27.2793,170.5041,53,53); //
AddStaticVehicle(533,1779.2018,-2117.5569,13.1738,91.4932,83,1); //
AddStaticVehicle(536,1745.5313,-2107.7019,13.1987,271.0476,37,1); //
AddStaticVehicle(567,1714.8981,-2117.5557,13.3277,89.3248,99,81); //
AddStaticVehicle(536,1694.9818,-2107.7927,13.1983,87.7862,57,96); //
AddStaticVehicle(533,1688.7830,-2117.9614,13.1959,269.6750,84,1); //
AddStaticVehicle(536,1721.9298,-2107.2637,13.1982,270.6390,71,96); //
AddStaticVehicle(567,1746.8423,-2117.6113,13.3665,269.3265,102,114); //
AddStaticVehicle(567,1785.7083,-2107.8005,13.3269,90.7704,114,1); //
AddStaticVehicle(492,1804.3594,-2117.6865,13.2462,267.1512,24,55); //
AddStaticVehicle(492,1800.6506,-2108.1367,13.2446,86.9273,28,56); //
AddStaticVehicle(522,1797.5842,-2122.0791,13.1188,301.3161,39,106); //
AddStaticVehicle(522,1757.7933,-2107.1609,13.1192,272.5044,2,6); //
AddStaticVehicle(522,1762.8722,-2118.6792,13.1289,88.0733,36,105); //
AddStaticVehicle(522,1732.7792,-2118.2446,13.1176,267.3286,16,65); //
AddStaticVehicle(481,1810.4205,-2104.3357,13.0660,150.1714,6,6); //
AddStaticVehicle(481,1809.6798,-2104.0264,13.0621,156.5802,14,1); //
AddStaticVehicle(481,1811.3397,-2121.2534,13.0698,227.2572,12,9); //
AddStaticVehicle(481,1813.6804,-2125.8762,13.0490,195.4645,65,9); //
AddStaticVehicle(481,1790.2677,-2120.0667,13.0623,287.8542,46,46); //
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,\"~w~SA-MP mod by ~b~Kurtis\",2500,5); //Ide írhatsz többet is itt jelenleg a kurtis neve áll de ide írhatod azt is h pl
GivePlayerMoney(playerid, 2000); //Pénzt állítod
SetPlayerColor(playerid, COLOR_GREY);
SendClientMessage(playerid,0xAA3333AA,\"*** Automatikus üzenet amit ki írjon a szerver***\");
SendClientMessage(playerid,0xDDDD2357,\"---SZintén---\");
SendClientMessage(playerid,0x33AA33AA,\"...:Szintén:...\");
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerSpawn(playerid) // Szóval itt definiálod a választható csapatokat
{
SetPlayerInterior(playerid,0);
if(gTeam[playerid] == TEAM_GROVE) { //Ezt a csapatot definiáljuk TEAM_GROVE [Groove csapatot]
SetPlayerColor(playerid,COLOR_GREEN); // Zöld színu csapat
}
else if(gTeam[playerid] == TEAM_BALLAS) {
SetPlayerColor(playerid,COLOR_PINK); // Pink
}
else if(gTeam[playerid] == TEAM_VAGOS) {
SetPlayerColor(playerid,COLOR_YELLOW); // Sárga
}
else if(gTeam[playerid] == TEAM_ALCETAS) {
SetPlayerColor(playerid,COLOR_LIGHTBLUE); // Lájtos kék xD
}
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
} else {
if(gTeam[killerid] != gTeam[playerid]) {
// Ha kinyírsz valakit mennyi pénzt kapjon meg ienek
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
GivePlayerMoney(killerid, 1000);
}
else {
//Csapat társad ha megölik:
new warning[256];
format(warning, sizeof(warning), \"Ne öld meg a csapattársad!\");
SendClientMessage(killerid, 0xFFFF00AA, warning);
SendDeathMessage(killerid,playerid,reason);
GivePlayerMoney(killerid, -1000);
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
}
}
return 1;
}
//------------------------------------------------------------------------------
public SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,244.9726,1115.5012,1080.9995);
SetPlayerFacingAngle(playerid, 270);
SetPlayerCameraPos(playerid,247.9726,1115.5012,1081.6995);
SetPlayerCameraLookAt(playerid,244.9726,1115.5012,1080.9995);
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerClass(playerid, classid);
SetupPlayerForClassSelection(playerid);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
GameTextForPlayer(playerid, \"~g~Grove\", 500, 6); //g az a szín jelenleg zöld szín 500,6 ez azt jelenti hogy hol írja ki !
}
case 1: //az embert választod amit felül megadtál
{
GameTextForPlayer(playerid, \"~g~Grove\", 500, 6);
}
case 2:
{
GameTextForPlayer(playerid, \"~g~Grove\", 500, 6);
}
case 3:
{
GameTextForPlayer(playerid, \"~p~Ballas\", 500, 6);
}
case 4:
{
GameTextForPlayer(playerid, \"~p~Ballas\", 500, 6);
}
case 5:
{
GameTextForPlayer(playerid, \"~p~Ballas\", 500, 6);
}
case 6:
{
GameTextForPlayer(playerid, \"~y~Vagos\", 500, 6);
}
case 7:
{
GameTextForPlayer(playerid, \"~y~Vagos\", 500, 6);
}
case 8:
{
GameTextForPlayer(playerid, \"~y~Vagos\", 500, 6);
}
case 9:
{
GameTextForPlayer(playerid, \"~b~Alcetas\", 500, 6);
}
case 10:
{
GameTextForPlayer(playerid, \"~b~Alcetas\", 500, 6);
}
case 11:
{
GameTextForPlayer(playerid, \"~b~Alcetas\", 500, 6);
}
}
return 1;
}
//------------------------------------------------------------------------------
public OnGameModeExit()
{
GameModeExit();
return 1;
}
//------------------------------------------------------------------------------
SetPlayerClass(playerid, classid) { // Ez meg logikus:D
if(classid == 0 || classid == 1 || classid == 2) {
gTeam[playerid] = TEAM_GROVE;
} else if(classid == 3 || classid == 4 || classid == 5) {
gTeam[playerid] = TEAM_BALLAS;
} else if(classid == 6 || classid == 7 || classid == {
gTeam[playerid] = TEAM_VAGOS;
} else if(classid == 9 || classid == 10 || classid == 11) {
gTeam[playerid] = TEAM_ALCETAS;
}
}
Hát remélem érted úgy ahogy próbáltam elmagyarázni....
Ezt szerkezd át meg tegyél bele dolgokat egyéb kérdésre próbálok válaszolni !Ha kérdezel