Jump to content
  • 0

pomoc ked dam /warps padne server


mimo1188

Dotaz

čawte ked dma /warps padne server co ej v tom?

 

//Include:

#include

#include

#include

#include

#include

#include

#include

//Pragma:

#pragma tabsize 0

#define COLOR_BLUE 0xAFAFAFAA

#define COLOR_WHITE 0xAFAFAFAA

#define COLOR_RED 0xAFAFAFAA

 

#define Text_Under_Minimap "~g~Menu warps~r~by MiNNo]" //Definicia Minimapky

 

new Menu:tut, Text:text;

 

//STATICS:

static gTeam[MAX_PLAYERS];

 

//FORWARDS:

forward SetupPlayerForClassSelection(playerid);

forward Tip();

 

//NEWS:

new gPlayerClass[MAX_PLAYERS];

new ScoreKill2;

new ScoreKill;

new ScoreKillW;

new ScoreKill2W;

new unkill[MAX_PLAYERS];

new connect[MAX_PLAYERS];

new homep[MAX_PLAYERS];

new awayp[MAX_PLAYERS];

 

//NEWS-MENU:

new Menu:Home;

new Menu:Away;

 

//DEFINE:

#define gRandomPlayerSpawns

#define TEAM_Home 0

#define TEAM_Away 1

#define TEAM_GUEST 2

#define TEAM_Homet 3

#define TEAM_Aways 4

//colors:

#define COLOR_TERR 0x004B97FF

#define COLOR_VRAH 0x50987BFF

#define COLOR_POKLADNU 0x7EFE88FF

#define COLOR_ALCATRAZ 0x00009DFF

#define COLOR_TIP 0x9B9BFFFF

#define COLOR_EEE 0xD1F8C7FF

#define COLOR_AUTOBUSAK 0x47478FFF

#define COLOR_HOOLIGAN 0x8D4895FF

#define COLOR_YAKUZA 0x8C288EFF

#define COLOR_YELOWBLACK 0xC1AE44FF

#define COLOR_LGHTORANGE 0xE27B3DFF

#define COLOR_GREY 0xAFAFAFAA

#define COLOR_GREEN 0x33AA33AA

#define COLOR_LTGREEN 0x00FF00FF

#define COLOR_YELLOW 0xFFFF00AA

#define YELLOW 0xFFFF00AA

#define COLOR_LIGHTBLUE 0x33CCFFAA

#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_RED2 0xFF1A1AFF

#define COLOR_GREEN2 0x139B27FF

#define COLOR_BLUE4 0x0080FFFF

 

main()

{

print(">by and thx St1R_xP<");

print(">>a_C<<");

}

 

public OnFilterScriptInit()

{

tut = CreateMenu("Tutorial", 1, 50.0, 180.0, 200.0, 200.0);//vytvori menu

//Menuitemy

AddMenuItem(tut, 0, "car sumo");

AddMenuItem(tut, 0, "tg1");

AddMenuItem(tut, 0, "tg2");

AddMenuItem(tut, 0, "Lod SF");

AddMenuItem(tut, 0, "Carpark SF");

AddMenuItem(tut, 0, "Pole");

AddMenuItem(tut, 0, "Otos");

AddMenuItem(tut, 0, "Mt.Chiliad");

AddMenuItem(tut, 0, "Skatepark");

AddMenuItem(tut, 0, "Area51");

 

//Minimapkaa

 

text = TextDrawCreate(5.0, 400.0,Text_Under_Minimap);

TextDrawUseBox(text, 0);

TextDrawFont(text, 3);

TextDrawSetShadow(text,0);

TextDrawSetOutline(text,1);

TextDrawBackgroundColor(text,0x000000FF);

TextDrawColor(text,0xFFFFFFFF);

return 1;

}

 

public OnGameModeInit()

{

//Mod name:

SetGameModeText("*cw/tg a_C*");

//(Pro jistotu)

UsePlayerPedAnims();

//SetTimer:

SetTimer("Tip",180000,1);

//Skins:

//TEAM

AddPlayerClass(21, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(271, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(40, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(103, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);

//TEAM Away>

AddPlayerClass(47, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(49, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(102, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(105, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);

 

//GUEST

AddPlayerClass(155, 1411.0851,2183.2483,12.0156,91.7352, 0, 0, 0, 0, 0, 0);

 

//Klece

CreateObject(985,152.598,2482.552,17.195,0.0,0.0,-90.000);

CreateObject(985,152.592,2490.412,17.195,0.0,0.0,-90.000);

CreateObject(985,152.588,2498.257,17.195,0.0,0.0,-90.000);

CreateObject(985,152.586,2506.096,17.195,0.0,0.0,-90.000);

CreateObject(985,152.645,2513.934,17.302,0.0,0.0,-90.000);

CreateObject(985,152.677,2521.793,17.413,0.0,0.0,-90.000);

CreateObject(985,156.531,2478.617,17.195,0.0,0.0,0.0);

CreateObject(985,164.421,2478.615,17.195,0.0,0.0,0.0);

CreateObject(985,172.262,2478.575,17.195,0.0,0.0,0.0);

CreateObject(985,180.089,2478.543,17.195,0.0,0.0,0.0);

CreateObject(985,187.939,2478.490,17.195,0.0,0.0,0.0);

CreateObject(985,195.780,2478.442,17.203,0.0,0.0,0.0);

CreateObject(985,203.617,2478.420,17.203,0.0,0.0,0.0);

CreateObject(985,156.686,2525.644,17.476,0.0,0.0,0.0);

CreateObject(985,164.464,2525.719,17.485,0.0,0.0,0.0);

CreateObject(985,172.328,2525.709,17.493,0.0,0.0,0.0);

CreateObject(985,180.135,2525.680,17.497,0.0,0.0,0.0);

CreateObject(985,187.957,2525.640,17.499,0.0,0.0,0.0);

CreateObject(985,195.769,2525.670,17.502,0.0,0.0,0.0);

CreateObject(985,203.515,2524.879,17.489,0.0,0.0,-11.250);

CreateObject(985,207.482,2482.294,17.195,0.0,0.0,-270.000);

CreateObject(985,207.471,2490.154,17.195,0.0,0.0,-90.000);

CreateObject(985,207.497,2497.991,17.195,0.0,0.0,-90.000);

CreateObject(985,207.569,2505.773,17.195,0.0,0.0,-90.000);

CreateObject(985,207.608,2513.593,17.307,0.0,0.0,-90.000);

CreateObject(985,206.864,2521.419,17.436,0.0,0.0,-78.750);

CreateObject(986,-59.280,2478.398,17.195,0.0,0.0,0.0);

CreateObject(986,-51.294,2478.381,17.195,0.0,0.0,0.0);

CreateObject(986,-43.308,2478.347,17.195,0.0,0.0,0.0);

CreateObject(986,-35.275,2478.403,17.195,0.0,0.0,0.0);

CreateObject(986,-27.268,2478.406,17.203,0.0,0.0,0.0);

CreateObject(986,-19.295,2478.425,17.203,0.0,0.0,0.0);

CreateObject(986,-11.343,2478.419,17.195,0.0,0.0,0.0);

CreateObject(986,-3.372,2478.441,17.195,0.0,0.0,0.0);

CreateObject(986,4.585,2478.466,17.195,0.0,0.0,0.0);

CreateObject(986,8.591,2482.433,17.195,0.0,0.0,-90.000);

CreateObject(986,8.614,2490.370,17.195,0.0,0.0,-90.000);

CreateObject(986,8.644,2498.352,17.195,0.0,0.0,-90.000);

CreateObject(986,8.658,2506.323,17.195,0.0,0.0,-90.000);

CreateObject(986,8.679,2514.302,17.195,0.0,0.0,-90.000);

CreateObject(986,8.680,2522.303,17.195,0.0,0.0,-90.000);

CreateObject(986,4.701,2526.208,17.195,0.0,0.0,-180.000);

CreateObject(986,-3.280,2526.279,17.203,0.0,0.0,0.0);

CreateObject(986,-11.284,2526.275,17.195,0.0,0.0,0.0);

CreateObject(986,-19.324,2526.271,17.195,0.0,0.0,0.0);

CreateObject(986,-27.304,2526.313,17.195,0.0,0.0,0.0);

CreateObject(986,-35.251,2526.387,17.195,0.0,0.0,0.0);

CreateObject(986,-43.266,2526.392,17.203,0.0,0.0,0.0);

CreateObject(986,-51.235,2526.376,17.195,0.0,0.0,0.0);

CreateObject(986,-63.283,2482.405,17.195,0.0,0.0,-90.000);

CreateObject(986,-63.280,2490.363,17.195,0.0,0.0,-90.000);

CreateObject(986,-63.234,2498.331,17.195,0.0,0.0,-90.000);

CreateObject(986,-63.200,2506.287,17.195,0.0,0.0,-90.000);

CreateObject(986,-63.212,2514.259,17.203,0.0,0.0,-90.000);

CreateObject(986,-63.231,2522.258,17.203,0.0,0.0,-90.000);

CreateObject(986,-59.307,2526.382,17.195,0.0,0.0,0.0);

CreateObject(970, 1390.627075, 2177.069824, 10.574919, 0.0000, 0.0000, 90.0000);

CreateObject(970, 1390.672485, 2159.883545, 10.574919, 0.0000, 0.0000, 90.0000);

CreateObject(970, 1377.786865, 2192.227783, 10.574919, 0.0000, 0.0000, 0.0000);

CreateObject(970, 1360.305908, 2192.118164, 10.574919, 0.0000, 0.0000, 0.0000);

CreateObject(5005, 1398.185425, 2178.129639, 17.191921, 0.0000, 0.0000, 90.0000);

CreateObject(5822, 1414.968750, 2177.949463, 23.378710, 0.0000, 0.0000, 0.0000);

CreateObject(3279, 1422.439697, 2156.590820, 28.766356, 0.0000, 0.0000, 0.0000);

CreateObject(3279, 1424.021851, 2111.287354, 28.766356, 0.0000, 0.0000, 0.0000);

CreateObject(3268, 1448.046021, 2140.197754, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(5005, 1458.587891, 2153.541992, 32.242252, 0.0000, 0.0000, 90.0000);

CreateObject(987, 1446.346069, 2074.049072, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(987, 1434.673828, 2074.072998, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(987, 1424.904663, 2080.507568, 28.690739, 0.0000, 0.0000, 326.2500);

CreateObject(987, 1418.167725, 2089.678467, 28.690739, 0.0000, 0.0000, 303.7500);

CreateObject(987, 1418.191650, 2101.311035, 28.690739, 0.0000, 0.0000, 270.0000);

CreateObject(987, 1398.356567, 2100.457520, 15.921789, 0.0000, 0.0000, 0.0000);

CreateObject(987, 1411.092041, 2099.180664, 20.173462, 0.0000, 0.0000, 0.0000);

CreateObject(987, 1398.356689, 2213.439209, 19.056313, 0.0000, 0.0000, 78.7500);

CreateObject(987, 1398.356689, 2200.023682, 17.471024, 0.0000, 0.0000, 90.0000);

CreateObject(14537, 1446.839111, 2140.137939, 30.637100, 0.0000, 0.0000, 0.0000);

CreateObject(2780, 1456.838623, 2128.270508, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(2780, 1454.114014, 2152.894287, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(3461, 1438.594482, 2131.634521, 30.265751, 0.0000, 0.0000, 0.0000);

CreateObject(3461, 1438.409424, 2149.373535, 30.265751, 0.0000, 0.0000, 0.0000);

CreateObject(3528, 1438.046021, 2140.228516, 38.524845, 0.0000, 0.0000, 180.0000);

CreateObject(3864, 1438.266235, 2119.546631, 34.787766, 0.0000, 0.0000, 326.2500);

CreateObject(3864, 1437.237549, 2160.135254, 34.787766, 0.0000, 0.0000, 45.0000);

CreateObject(2064, 1418.625488, 2134.793457, 29.319960, 0.0000, 0.0000, 270.0000);

CreateObject(2064, 1418.586548, 2142.845215, 29.319960, 0.0000, 0.0000, 270.0000);

CreateObject(2061, 1418.639038, 2135.647217, 28.982668, 0.0000, 0.0000, 0.0000);

CreateObject(2061, 1418.629639, 2135.914551, 28.982668, 0.0000, 0.0000, 315.0000);

CreateObject(2061, 1419.300293, 2142.266846, 28.982668, 0.0000, 0.0000, 315.0000);

CreateObject(2061, 1418.851685, 2142.201660, 28.982668, 0.0000, 0.0000, 33.7500);

CreateObject(1654, 1438.047974, 2149.622314, 30.494343, 0.0000, 0.0000, 270.0000);

CreateObject(1654, 1437.922852, 2130.670654, 30.563734, 0.0000, 0.0000, 258.7500);

CreateObject(902, 1426.267822, 2131.653320, 28.623499, 0.0000, 0.0000, 0.0000);

CreateObject(14791, 1423.160767, 2122.541992, 30.735800, 0.0000, 0.0000, 0.0000);

CreateObject(11544, 1422.116699, 2123.772217, 29.799467, 0.0000, 0.0000, 180.0000);

CreateObject(956, 1444.002441, 2128.775879, 29.094751, 0.0000, 0.0000, 202.5000);

CreateObject(16152, 1441.639893, 2154.120361, 28.750248, 0.0000, 0.0000, 270.0000);

CreateObject(3657, 1419.390747, 2130.159180, 29.208950, 0.0000, 0.0000, 270.0000);

CreateObject(3657, 1419.063721, 2150.406494, 29.208950, 0.0000, 0.0000, 270.0000);

CreateObject(2596, 1441.358643, 2140.450684, 32.505577, 0.0000, 0.0000, 270.0000);

CreateObject(2232, 1438.047974, 2129.557129, 32.917625, 0.0000, 0.0000, 258.7500);

CreateObject(2232, 1438.047974, 2150.139893, 33.027039, 0.0000, 0.0000, 270.0000);

CreateObject(2232, 1420.255249, 2157.669434, 45.442360, 0.0000, 0.0000, 56.2500);

CreateObject(2232, 1422.591187, 2109.722412, 45.442360, 0.0000, 0.0000, 135.0000);

CreateObject(987, 1437.956299, 2223.387939, 28.710938, 0.0000, 0.0000, 45.0000);

CreateObject(987, 1429.411621, 2215.062012, 28.710938, 0.0000, 0.0000, 45.0000);

CreateObject(987, 1425.010620, 2204.436523, 28.710938, 0.0000, 0.0000, 67.5000);

CreateObject(987, 1418.641479, 2194.635986, 28.690739, 0.0000, 0.0000, 56.2500);

CreateObject(987, 1446.101318, 2231.707031, 32.187500, 0.0000, 0.0000, 0.0000);

CreateObject(3525, 1380.074463, 2198.950195, 11.149943, 0.0000, 0.0000, 45.0000);

CreateObject(3525, 1397.515625, 2179.618896, 12.024570, 0.0000, 0.0000, 303.7500);

CreateObject(3864, 1377.043335, 2190.606201, 16.120464, 0.0000, 0.0000, 90.0000);

CreateObject(3864, 1391.215210, 2108.527588, 16.112652, 0.0000, 0.0000, 315.0000);

CreateObject(971, 1411.439575, 2180.738037, 14.510559, 0.0000, 0.0000, 0.0000);

CreateObject(971, 1410.927490, 2190.770020, 14.460560, 0.0000, 0.0000, 0.0000);

CreateObject(13607, 890.182983, 3012.871094, 13.301063, 0.0000, 0.0000, 0.0000);

 

//MENU>

 

return 1;

}

 

public OnPlayerSelectedMenuRow(playerid, row)

{

//Tu uz je samotne menu

 

new Menu:current = GetPlayerMenu(playerid);

 

if(current == tut)

{

switch(row)

{

case 0:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol k car sumo."); //Co sa vsetko stane ked hrac vybere port k jizzy clubu,plati pri vsetkych portoch

SetPlayerPos(playerid,67.9426,2497.4429,27.4898);

}

case 1:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol k tg1.");

SetPlayerPos(playerid,-23.8165,2512.0649,17.8281);

}

case 2:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na baseball.");

SetPlayerPos(playerid,1375.2051,2181.2126,11.0234);

}

case 3:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na tg2.");

SetPlayerPos(playerid,-158.1445,2508.9302,28.6533);

}

case 4:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na parkovisko v SF,pri železnićnej stanici.");

SetPlayerPos(playerid,1777.3083,-1933.1324,13.3862);

}

case 5:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na pole.");

SetPlayerPos(playerid,-1111.2880,-957.3068,129.2188);

}

case 6:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol k otos clubu.");

SetPlayerPos(playerid,-1661.7772,1214.0844,7.2500);

}

case 7:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na Mount Chiliad.");

SetPlayerPos(playerid,-2321.6743,-1628.5787,483.7034);

}

case 8:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do skateparku v LS.");

SetPlayerPos(playerid,1880.1451,-1377.6034,13.5716);

}

case 9:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do arei 51.");

SetPlayerPos(playerid,179.8973,1925.9773,17.9937);

}

}

}

return 1;

}

 

public OnGameModeExit()

{

return 1;

}

 

public OnPlayerRequestClass(playerid, classid)

{

gPlayerClass[playerid] = classid;

SetupPlayerForClassSelection(playerid);

switch (classid) {

 

case 0:

{

GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);

}

case 1:

{

GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);

}

case 2:

{

GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);

}

case 3:

{

GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);

}

case 4:

{

GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);

}

case 5:

{

GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);

}

case 6:

{

GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);

}

case 7:

{

GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);

}

case 8:

{

GameTextForPlayer(playerid, "~y~GUEST", 5000, 3);

}

}

return 1;

}

 

public SetupPlayerForClassSelection(playerid)

{

SetPlayerInterior(playerid,14);

SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);

SetPlayerFacingAngle(playerid, 270.0);

SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);

SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);

}

 

public OnPlayerRequestSpawn(playerid)

{

return 1;

}

 

public OnPlayerConnect(playerid)

{

GameTextForPlayer(playerid,"~g~Home ~w~vs. ~r~Away",5000,5);

SendClientMessage(playerid, COLOR_LIGHTBLUE,"==============================================");

SendClientMessage(playerid, COLOR_YELLOW,"Info o CW nalezneš /help");

SendClientMessage(playerid, COLOR_YELLOW,"Pro zobrazení všech příkazů napiš /cmd");

SendClientMessage(playerid, COLOR_LIGHTBLUE,"==============================================");

new pName[30], string[256];

connect[playerid] = 0;

GetPlayerName(playerid, pName, 30);

format(string, 256, "Hráč/ka %s se připojil/a na CW mod.", pName);

SendClientMessageToAll(COLOR_TAN, string);

 

new Text:text2 = TextDrawCreate(0,435," mod by ~b~St1R_xP poupravil Cr3ative |a_C server www.ac.7u.cz");

TextDrawUseBox(text2, 1); //nastaví TD v Boxu

TextDrawFont(text2, 3); //nastaví písmo

TextDrawSetOutline(text2, 1); //neznámé

TextDrawShowForPlayer(playerid, text2); //nastaví aby text oběvil

TextDrawBoxColor(Text:text2,0xFF1A1AFF); //nastaví barvu

return 1;

}

 

public OnPlayerDisconnect(playerid, reason)

{

new pName[30], string[256];

GetPlayerName(playerid, pName, 30);

format(string, 256, "Hráč/ka %s opustil/a CW mod.", pName);

SendClientMessageToAll(COLOR_TAN, string);

return 1;

}

 

public OnPlayerSpawn(playerid)

{

SetPlayerInterior(playerid,0);

 

//=================TEAM Home:==============================================

if (gPlayerClass[playerid]==0) {

gTeam[playerid] = TEAM_Home;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0x33AA33AA);

unkill[playerid] = 1;

homep[playerid]=1;

awayp[playerid]=0;

}

if (gPlayerClass[playerid]==1) {

gTeam[playerid] = TEAM_Home;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0x33AA33AA);

unkill[playerid] = 1;

homep[playerid]=1;

awayp[playerid]=0;

}

if (gPlayerClass[playerid]==2) {

gTeam[playerid] = TEAM_Home;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0x33AA33AA);

unkill[playerid] = 1;

homep[playerid]=1;

awayp[playerid]=0;

}

if (gPlayerClass[playerid]==3) {

gTeam[playerid] = TEAM_Home;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0x33AA33AA);

unkill[playerid] = 1;

homep[playerid]=1;

awayp[playerid]=0;

}

//=================TEAM Away:===============================================

if (gPlayerClass[playerid]==4) {

gTeam[playerid] = TEAM_Away;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFF1A1AFF);

unkill[playerid] = 1;

homep[playerid]=0;

awayp[playerid]=1;

}

if (gPlayerClass[playerid]==5) {

gTeam[playerid] = TEAM_Away;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFF1A1AFF);

unkill[playerid] = 1;

homep[playerid]=0;

awayp[playerid]=1;

}

if (gPlayerClass[playerid]==6) {

gTeam[playerid] = TEAM_Away;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFF1A1AFF);

unkill[playerid] = 1;

homep[playerid]=0;

awayp[playerid]=1;

}

if (gPlayerClass[playerid]==7) {

gTeam[playerid] = TEAM_Away;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFF1A1AFF);

unkill[playerid] = 1;

homep[playerid]=0;

awayp[playerid]=1;

}

//=================TEAM GUEST:=============================================

if (gPlayerClass[playerid]==8) {

gTeam[playerid] = TEAM_GUEST;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFFFF00AA);

unkill[playerid] = 0;

homep[playerid]=0;

awayp[playerid]=0;

}

//MENU SPAWN:

//Home>

if(gTeam[playerid] == TEAM_Homet) {

if(connect[playerid] == 0) {

ShowMenuForPlayer(Home, playerid);

}

}

//Away>

if(gTeam[playerid] == TEAM_Away) {

if(connect[playerid] == 0) {

ShowMenuForPlayer(Away, playerid);

}

}

return 1;

}

 

public OnPlayerDeath(playerid, killerid, reason)

{

SendDeathMessage(killerid, playerid, reason);

 

new string[256];

connect[playerid] = 1;

SetPlayerScore(killerid, GetPlayerScore(killerid)+1);

 

if(gTeam[playerid] == TEAM_Home ) {

ScoreKill2++;

format(string, 256,"Home %d : %d Away",ScoreKill,ScoreKill2);

SendClientMessageToAll(COLOR_YELLOW,string);

}

 

if(gTeam[playerid] == TEAM_Away) {

ScoreKill++;

format(string, 256,"Home %d : %d Away",ScoreKill,ScoreKill2);

SendClientMessageToAll(COLOR_YELLOW,string);

}

 

if(ScoreKill2 == 30) {

ScoreKill = 0;

ScoreKill2 = 0;

ScoreKill2W++;

GameTextForAll("~r~Away ~w~win ~g~round", 5000, 3);

format(string,sizeof(string),"Score round: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessageToAll(COLOR_ORANGE,string);

}

 

if(ScoreKill == 30) {

ScoreKill = 0;

ScoreKill2 = 0;

ScoreKillW++;

GameTextForAll("~g~Home ~w~win ~r~round", 5000, 3);

format(string,sizeof(string),"Score round: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessageToAll(COLOR_ORANGE,string);

}

 

if(ScoreKill2W == 3) {

ScoreKill = 0;

ScoreKill2 = 0;

GameTextForAll("~g~Vitezem ~w~CW se stava ~r~Away", 5000, 3);

SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");

format(string,sizeof(string),"TOTAL score: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");

SendClientMessageToAll(COLOR_BLUE4,string);

ScoreKillW = 0;

ScoreKill2W = 0;

}

 

if(ScoreKillW == 3) {

ScoreKill = 0;

ScoreKill2 = 0;

GameTextForAll("~r~Vitezem ~w~CW se stava ~g~Home", 5000, 3);

SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");

format(string,sizeof(string),"TOTAL score: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");

SendClientMessageToAll(COLOR_BLUE4,string);

ScoreKillW = 0;

ScoreKill2W = 0;

}

}

 

public OnVehicleSpawn(vehicleid)

{

return 1;

}

 

public OnVehicleDeath(vehicleid, killerid)

{

return 1;

}

 

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/warps",cmdtext, true, 10) == 0) //Prikaz pre menu,warpy

{

ShowMenuForPlayer(tut, playerid);

return 1;

}

new string[256];

 

 

if(strcmp(cmdtext, "/kill", true) == 0) {

if (unkill[playerid]==0) {

SetPlayerHealth(playerid,0);

}else{

SendClientMessage(playerid,COLOR_GREEN,"Jen guest může použít /kill !");

}

return 1;

}

if(strcmp(cmdtext, "/rall", true) == 0) {

ScoreKill = 0;

ScoreKill2 = 0;

ScoreKillW = 0;

ScoreKill2W = 0;

SendClientMessageToAll(COLOR_GREEN,"All score bylo vymazano!");

return 1;

}

if(strcmp(cmdtext, "/rround", true) == 0) {

ScoreKill = 0;

ScoreKill2 = 0;

SendClientMessageToAll(COLOR_GREEN,"Round score bylo vymazano!");

return 1;

}

 

if(strcmp(cmdtext, "/cmd", true) == 0) {

SendClientMessage(playerid,COLOR_RED,"Commands:");

SendClientMessage(playerid,COLOR_GREY,"/help , /jetpack");

SendClientMessage(playerid,COLOR_GREY,"/kill ");

SendClientMessage(playerid,COLOR_GREY,"/warps Teleporty");

return 1;

}

if(strcmp(cmdtext,"/jetpack",true)==0) {

SetPlayerSpecialAction(playerid,2);

return 1;

}

 

if(strcmp(cmdtext, "/help", true) == 0) {

SendClientMessage(playerid,COLOR_RED,"Help:");

SendClientMessage(playerid,COLOR_GREY,"Tento CW mod je určen na 3 celkové body.V každém kole musí ");

SendClientMessage(playerid,COLOR_GREY,"klan udělat 30 bodů, aby vyhráli kolo.");

SendClientMessage(playerid,COLOR_GREY,"Na výběr máte ze 2 CW teamů a 1 team GUEST.");

SendClientMessage(playerid,COLOR_GREY,"GUEST team nesmí zasahovat do CW v opačném případě Kick/Ban! ");

format(string,sizeof(string),"Současný stav CW je: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessage(playerid,COLOR_GREY,string);

return 1;

}

return 0;

}

 

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 OnPlayerExitedMenu(playerid)

{

return 1;

}

 

public Tip()

{

new genhint = random(5);

switch(genhint)

{

case 0: SendClientMessageToAll(COLOR_TIP, "*[TIP]*:Všecky příkazy najdeš .../cmd");

case 1: SendClientMessageToAll(COLOR_TIP, "*[TIP]*EN:All commands in .../cmd");

}

}

 

Link to comment
Share on other sites

10 odpovědí na tuto otázku

Recommended Posts

  • 0

nevim skus takto ..upravil jsem ti tam hodne veci hlavne pragma tabsize :wtf:

 

//EDIT ( TEDA TAKTO )

 

//Include:
#include 

#define COLOR_BLUE 0xAFAFAFAA
#define COLOR_WHITE 0xAFAFAFAA
#define COLOR_RED 0xAFAFAFAA

#define Text_Under_Minimap "~g~Menu warps~r~by MiNNo]" //Definicia Minimapky

new Menu:tut;
new Text:text;

//STATICS:
static gTeam[MAX_PLAYERS];

//FORWARDS:
forward SetupPlayerForClassSelection(playerid);
forward Tip();

//NEWS:
new gPlayerClass[MAX_PLAYERS];
new ScoreKill2;
new ScoreKill;
new ScoreKillW;
new ScoreKill2W;
new unkill[MAX_PLAYERS];
new connect[MAX_PLAYERS];
new homep[MAX_PLAYERS];
new awayp[MAX_PLAYERS];
new Text:text2;

//NEWS-MENU:
new Menu:Home;
new Menu:Away;

//DEFINE:
#define gRandomPlayerSpawns
#define TEAM_Home 0
#define TEAM_Away 1
#define TEAM_GUEST 2
#define TEAM_Homet 3
#define TEAM_Aways 4
//colors:
#define COLOR_TERR 0x004B97FF
#define COLOR_VRAH 0x50987BFF
#define COLOR_POKLADNU 0x7EFE88FF
#define COLOR_ALCATRAZ 0x00009DFF
#define COLOR_TIP 0x9B9BFFFF
#define COLOR_EEE 0xD1F8C7FF
#define COLOR_AUTOBUSAK 0x47478FFF
#define COLOR_HOOLIGAN 0x8D4895FF
#define COLOR_YAKUZA 0x8C288EFF
#define COLOR_YELOWBLACK 0xC1AE44FF
#define COLOR_LGHTORANGE 0xE27B3DFF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_LTGREEN 0x00FF00FF
#define COLOR_YELLOW 0xFFFF00AA
#define YELLOW 0xFFFF00AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#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_RED2 0xFF1A1AFF
#define COLOR_GREEN2 0x139B27FF
#define COLOR_BLUE4 0x0080FFFF

main()
{
print(">by and thx St1R_xP<");
print(">>a_C<<");
}

public OnGameModeInit()
{
//Mod name:
SetGameModeText("*cw/tg a_C*");
//(Pro jistotu)
UsePlayerPedAnims();
//SetTimer:
SetTimer("Tip",180000,1);
//Skins:
//TEAM
AddPlayerClass(21, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);
AddPlayerClass(271, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);
AddPlayerClass(40, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);
AddPlayerClass(103, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);
//TEAM Away>
AddPlayerClass(47, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);
AddPlayerClass(49, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);
AddPlayerClass(102, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);
AddPlayerClass(105, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);

//GUEST
AddPlayerClass(155, 1411.0851,2183.2483,12.0156,91.7352, 0, 0, 0, 0, 0, 0);

//Klece
CreateObject(985,152.598,2482.552,17.195,0.0,0.0,-90.000);
CreateObject(985,152.592,2490.412,17.195,0.0,0.0,-90.000);
CreateObject(985,152.588,2498.257,17.195,0.0,0.0,-90.000);
CreateObject(985,152.586,2506.096,17.195,0.0,0.0,-90.000);
CreateObject(985,152.645,2513.934,17.302,0.0,0.0,-90.000);
CreateObject(985,152.677,2521.793,17.413,0.0,0.0,-90.000);
CreateObject(985,156.531,2478.617,17.195,0.0,0.0,0.0);
CreateObject(985,164.421,2478.615,17.195,0.0,0.0,0.0);
CreateObject(985,172.262,2478.575,17.195,0.0,0.0,0.0);
CreateObject(985,180.089,2478.543,17.195,0.0,0.0,0.0);
CreateObject(985,187.939,2478.490,17.195,0.0,0.0,0.0);
CreateObject(985,195.780,2478.442,17.203,0.0,0.0,0.0);
CreateObject(985,203.617,2478.420,17.203,0.0,0.0,0.0);
CreateObject(985,156.686,2525.644,17.476,0.0,0.0,0.0);
CreateObject(985,164.464,2525.719,17.485,0.0,0.0,0.0);
CreateObject(985,172.328,2525.709,17.493,0.0,0.0,0.0);
CreateObject(985,180.135,2525.680,17.497,0.0,0.0,0.0);
CreateObject(985,187.957,2525.640,17.499,0.0,0.0,0.0);
CreateObject(985,195.769,2525.670,17.502,0.0,0.0,0.0);
CreateObject(985,203.515,2524.879,17.489,0.0,0.0,-11.250);
CreateObject(985,207.482,2482.294,17.195,0.0,0.0,-270.000);
CreateObject(985,207.471,2490.154,17.195,0.0,0.0,-90.000);
CreateObject(985,207.497,2497.991,17.195,0.0,0.0,-90.000);
CreateObject(985,207.569,2505.773,17.195,0.0,0.0,-90.000);
CreateObject(985,207.608,2513.593,17.307,0.0,0.0,-90.000);
CreateObject(985,206.864,2521.419,17.436,0.0,0.0,-78.750);
CreateObject(986,-59.280,2478.398,17.195,0.0,0.0,0.0);
CreateObject(986,-51.294,2478.381,17.195,0.0,0.0,0.0);
CreateObject(986,-43.308,2478.347,17.195,0.0,0.0,0.0);
CreateObject(986,-35.275,2478.403,17.195,0.0,0.0,0.0);
CreateObject(986,-27.268,2478.406,17.203,0.0,0.0,0.0);
CreateObject(986,-19.295,2478.425,17.203,0.0,0.0,0.0);
CreateObject(986,-11.343,2478.419,17.195,0.0,0.0,0.0);
CreateObject(986,-3.372,2478.441,17.195,0.0,0.0,0.0);
CreateObject(986,4.585,2478.466,17.195,0.0,0.0,0.0);
CreateObject(986,8.591,2482.433,17.195,0.0,0.0,-90.000);
CreateObject(986,8.614,2490.370,17.195,0.0,0.0,-90.000);
CreateObject(986,8.644,2498.352,17.195,0.0,0.0,-90.000);
CreateObject(986,8.658,2506.323,17.195,0.0,0.0,-90.000);
CreateObject(986,8.679,2514.302,17.195,0.0,0.0,-90.000);
CreateObject(986,8.680,2522.303,17.195,0.0,0.0,-90.000);
CreateObject(986,4.701,2526.208,17.195,0.0,0.0,-180.000);
CreateObject(986,-3.280,2526.279,17.203,0.0,0.0,0.0);
CreateObject(986,-11.284,2526.275,17.195,0.0,0.0,0.0);
CreateObject(986,-19.324,2526.271,17.195,0.0,0.0,0.0);
CreateObject(986,-27.304,2526.313,17.195,0.0,0.0,0.0);
CreateObject(986,-35.251,2526.387,17.195,0.0,0.0,0.0);
CreateObject(986,-43.266,2526.392,17.203,0.0,0.0,0.0);
CreateObject(986,-51.235,2526.376,17.195,0.0,0.0,0.0);
CreateObject(986,-63.283,2482.405,17.195,0.0,0.0,-90.000);
CreateObject(986,-63.280,2490.363,17.195,0.0,0.0,-90.000);
CreateObject(986,-63.234,2498.331,17.195,0.0,0.0,-90.000);
CreateObject(986,-63.200,2506.287,17.195,0.0,0.0,-90.000);
CreateObject(986,-63.212,2514.259,17.203,0.0,0.0,-90.000);
CreateObject(986,-63.231,2522.258,17.203,0.0,0.0,-90.000);
CreateObject(986,-59.307,2526.382,17.195,0.0,0.0,0.0);
CreateObject(970, 1390.627075, 2177.069824, 10.574919, 0.0000, 0.0000, 90.0000);
CreateObject(970, 1390.672485, 2159.883545, 10.574919, 0.0000, 0.0000, 90.0000);
CreateObject(970, 1377.786865, 2192.227783, 10.574919, 0.0000, 0.0000, 0.0000);
CreateObject(970, 1360.305908, 2192.118164, 10.574919, 0.0000, 0.0000, 0.0000);
CreateObject(5005, 1398.185425, 2178.129639, 17.191921, 0.0000, 0.0000, 90.0000);
CreateObject(5822, 1414.968750, 2177.949463, 23.378710, 0.0000, 0.0000, 0.0000);
CreateObject(3279, 1422.439697, 2156.590820, 28.766356, 0.0000, 0.0000, 0.0000);
CreateObject(3279, 1424.021851, 2111.287354, 28.766356, 0.0000, 0.0000, 0.0000);
CreateObject(3268, 1448.046021, 2140.197754, 28.690739, 0.0000, 0.0000, 0.0000);
CreateObject(5005, 1458.587891, 2153.541992, 32.242252, 0.0000, 0.0000, 90.0000);
CreateObject(987, 1446.346069, 2074.049072, 28.690739, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1434.673828, 2074.072998, 28.690739, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1424.904663, 2080.507568, 28.690739, 0.0000, 0.0000, 326.2500);
CreateObject(987, 1418.167725, 2089.678467, 28.690739, 0.0000, 0.0000, 303.7500);
CreateObject(987, 1418.191650, 2101.311035, 28.690739, 0.0000, 0.0000, 270.0000);
CreateObject(987, 1398.356567, 2100.457520, 15.921789, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1411.092041, 2099.180664, 20.173462, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1398.356689, 2213.439209, 19.056313, 0.0000, 0.0000, 78.7500);
CreateObject(987, 1398.356689, 2200.023682, 17.471024, 0.0000, 0.0000, 90.0000);
CreateObject(14537, 1446.839111, 2140.137939, 30.637100, 0.0000, 0.0000, 0.0000);
CreateObject(2780, 1456.838623, 2128.270508, 28.690739, 0.0000, 0.0000, 0.0000);
CreateObject(2780, 1454.114014, 2152.894287, 28.690739, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 1438.594482, 2131.634521, 30.265751, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 1438.409424, 2149.373535, 30.265751, 0.0000, 0.0000, 0.0000);
CreateObject(3528, 1438.046021, 2140.228516, 38.524845, 0.0000, 0.0000, 180.0000);
CreateObject(3864, 1438.266235, 2119.546631, 34.787766, 0.0000, 0.0000, 326.2500);
CreateObject(3864, 1437.237549, 2160.135254, 34.787766, 0.0000, 0.0000, 45.0000);
CreateObject(2064, 1418.625488, 2134.793457, 29.319960, 0.0000, 0.0000, 270.0000);
CreateObject(2064, 1418.586548, 2142.845215, 29.319960, 0.0000, 0.0000, 270.0000);
CreateObject(2061, 1418.639038, 2135.647217, 28.982668, 0.0000, 0.0000, 0.0000);
CreateObject(2061, 1418.629639, 2135.914551, 28.982668, 0.0000, 0.0000, 315.0000);
CreateObject(2061, 1419.300293, 2142.266846, 28.982668, 0.0000, 0.0000, 315.0000);
CreateObject(2061, 1418.851685, 2142.201660, 28.982668, 0.0000, 0.0000, 33.7500);
CreateObject(1654, 1438.047974, 2149.622314, 30.494343, 0.0000, 0.0000, 270.0000);
CreateObject(1654, 1437.922852, 2130.670654, 30.563734, 0.0000, 0.0000, 258.7500);
CreateObject(902, 1426.267822, 2131.653320, 28.623499, 0.0000, 0.0000, 0.0000);
CreateObject(14791, 1423.160767, 2122.541992, 30.735800, 0.0000, 0.0000, 0.0000);
CreateObject(11544, 1422.116699, 2123.772217, 29.799467, 0.0000, 0.0000, 180.0000);
CreateObject(956, 1444.002441, 2128.775879, 29.094751, 0.0000, 0.0000, 202.5000);
CreateObject(16152, 1441.639893, 2154.120361, 28.750248, 0.0000, 0.0000, 270.0000);
CreateObject(3657, 1419.390747, 2130.159180, 29.208950, 0.0000, 0.0000, 270.0000);
CreateObject(3657, 1419.063721, 2150.406494, 29.208950, 0.0000, 0.0000, 270.0000);
CreateObject(2596, 1441.358643, 2140.450684, 32.505577, 0.0000, 0.0000, 270.0000);
CreateObject(2232, 1438.047974, 2129.557129, 32.917625, 0.0000, 0.0000, 258.7500);
CreateObject(2232, 1438.047974, 2150.139893, 33.027039, 0.0000, 0.0000, 270.0000);
CreateObject(2232, 1420.255249, 2157.669434, 45.442360, 0.0000, 0.0000, 56.2500);
CreateObject(2232, 1422.591187, 2109.722412, 45.442360, 0.0000, 0.0000, 135.0000);
CreateObject(987, 1437.956299, 2223.387939, 28.710938, 0.0000, 0.0000, 45.0000);
CreateObject(987, 1429.411621, 2215.062012, 28.710938, 0.0000, 0.0000, 45.0000);
CreateObject(987, 1425.010620, 2204.436523, 28.710938, 0.0000, 0.0000, 67.5000);
CreateObject(987, 1418.641479, 2194.635986, 28.690739, 0.0000, 0.0000, 56.2500);
CreateObject(987, 1446.101318, 2231.707031, 32.187500, 0.0000, 0.0000, 0.0000);
CreateObject(3525, 1380.074463, 2198.950195, 11.149943, 0.0000, 0.0000, 45.0000);
CreateObject(3525, 1397.515625, 2179.618896, 12.024570, 0.0000, 0.0000, 303.7500);
CreateObject(3864, 1377.043335, 2190.606201, 16.120464, 0.0000, 0.0000, 90.0000);
CreateObject(3864, 1391.215210, 2108.527588, 16.112652, 0.0000, 0.0000, 315.0000);
CreateObject(971, 1411.439575, 2180.738037, 14.510559, 0.0000, 0.0000, 0.0000);
CreateObject(971, 1410.927490, 2190.770020, 14.460560, 0.0000, 0.0000, 0.0000);
CreateObject(13607, 890.182983, 3012.871094, 13.301063, 0.0000, 0.0000, 0.0000);

tut = CreateMenu("Tutorial", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(tut, 0, "car sumo");
AddMenuItem(tut, 0, "tg1");
AddMenuItem(tut, 0, "tg2");
AddMenuItem(tut, 0, "Lod SF");
AddMenuItem(tut, 0, "Carpark SF");
AddMenuItem(tut, 0, "Pole");
AddMenuItem(tut, 0, "Otos");
AddMenuItem(tut, 0, "Mt.Chiliad");
AddMenuItem(tut, 0, "Skatepark");
AddMenuItem(tut, 0, "Area51");

text = TextDrawCreate(5.0, 400.0,Text_Under_Minimap);
TextDrawUseBox(text, 0);
TextDrawFont(text, 3);
TextDrawSetShadow(text,0);
TextDrawSetOutline(text,1);
TextDrawBackgroundColor(text,0x000000FF);
TextDrawColor(text,0xFFFFFFFF);

return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current = GetPlayerMenu(playerid);
if(current == tut)
{
	switch(row)
	{
		case 0:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol k car sumo."); //Co sa vsetko stane ked hrac vybere port k jizzy clubu,plati pri vsetkych portoch
			SetPlayerPos(playerid,67.9426,2497.4429,27.4898);
		}
		case 1:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol k tg1.");
			SetPlayerPos(playerid,-23.8165,2512.0649,17.8281);
		}
		case 2:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na baseball.");
			SetPlayerPos(playerid,1375.2051,2181.2126,11.0234);
		}
		case 3:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na tg2.");
			SetPlayerPos(playerid,-158.1445,2508.9302,28.6533);
		}
		case 4:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na parkovisko v SF,pri železnićnej stanici.");
			SetPlayerPos(playerid,1777.3083,-1933.1324,13.3862);
		}
		case 5:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na pole.");
			SetPlayerPos(playerid,-1111.2880,-957.3068,129.2188);
		}
		case 6:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol k otos clubu.");
			SetPlayerPos(playerid,-1661.7772,1214.0844,7.2500);
		}
		case 7:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na Mount Chiliad.");
			SetPlayerPos(playerid,-2321.6743,-1628.5787,483.7034);
		}
		case 8:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do skateparku v LS.");
			SetPlayerPos(playerid,1880.1451,-1377.6034,13.5716);
		}
		case 9:
		{
			SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do arei 51.");
			SetPlayerPos(playerid,179.8973,1925.9773,17.9937);
		}
	}
}
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
SetupPlayerForClassSelection(playerid);
switch (classid)
{
	case 0:
	{
		GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);
	}
	case 1:
	{
		GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);
	}
	case 2:
	{
		GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);
	}
	case 3:
	{
		GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);
	}
	case 4:
	{
		GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);
	}
	case 5:
	{
		GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);
	}
	case 6:
	{
		GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);
	}
	case 7:
	{
		GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);
	}
	case 8:
	{
		GameTextForPlayer(playerid, "~y~GUEST", 5000, 3);
	}
}
return 1;
}

public SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}

public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~g~Home ~w~vs. ~r~Away",5000,5);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"==============================================");
SendClientMessage(playerid, COLOR_YELLOW,"Info o CW nalezneš /help");
SendClientMessage(playerid, COLOR_YELLOW,"Pro zobrazení všech příkazů napiš /cmd");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"==============================================");
new pName[30], string[256];
connect[playerid] = 0;
GetPlayerName(playerid, pName, 30);
format(string, 256, "Hráč/ka %s se připojil/a na CW mod.", pName);
SendClientMessageToAll(COLOR_TAN, string);
text2 = TextDrawCreate(0,435," mod by ~b~St1R_xP poupravil Cr3ative |a_C server www.ac.7u.cz");
TextDrawUseBox(text2, 1); //nastaví TD v Boxu
TextDrawFont(text2, 3); //nastaví písmo
TextDrawSetOutline(text2, 1); //neznámé
TextDrawShowForPlayer(playerid, text2); //nastaví aby text oběvil
TextDrawBoxColor(Text:text2,0xFF1A1AFF); //nastaví barvu
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
new pName[30], string[256];
GetPlayerName(playerid, pName, 30);
format(string, 256, "Hráč/ka %s opustil/a CW mod.", pName);
SendClientMessageToAll(COLOR_TAN, string);
TextDrawHideForPlayer(playerid, text2);
return 1;
}

public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
if (gPlayerClass[playerid]==0)
{
	gTeam[playerid] = TEAM_Home;
	SetPlayerHealth(playerid, 100);
	SetPlayerColor(playerid,0x33AA33AA);
	unkill[playerid] = 1;
	homep[playerid]=1;
	awayp[playerid]=0;
}
if (gPlayerClass[playerid]==1)
{
	gTeam[playerid] = TEAM_Home;
	SetPlayerHealth(playerid, 100);
	SetPlayerColor(playerid,0x33AA33AA);
	unkill[playerid] = 1;
	homep[playerid]=1;
	awayp[playerid]=0;
}
if (gPlayerClass[playerid]==2)
{
	gTeam[playerid] = TEAM_Home;
	SetPlayerHealth(playerid, 100);
	SetPlayerColor(playerid,0x33AA33AA);
	unkill[playerid] = 1;
	homep[playerid]=1;
	awayp[playerid]=0;
}
if (gPlayerClass[playerid]==3)
{
	gTeam[playerid] = TEAM_Home;
	SetPlayerHealth(playerid, 100);
	SetPlayerColor(playerid,0x33AA33AA);
	unkill[playerid] = 1;
	homep[playerid]=1;
	awayp[playerid]=0;
}
if (gPlayerClass[playerid]==4)
{
	gTeam[playerid] = TEAM_Away;
	SetPlayerHealth(playerid, 100);
	SetPlayerColor(playerid,0xFF1A1AFF);
	unkill[playerid] = 1;
	homep[playerid]=0;
	awayp[playerid]=1;
}
if (gPlayerClass[playerid]==5)
{
	gTeam[playerid] = TEAM_Away;
	SetPlayerHealth(playerid, 100);
	SetPlayerColor(playerid,0xFF1A1AFF);
	unkill[playerid] = 1;
	homep[playerid]=0;
	awayp[playerid]=1;
}
if (gPlayerClass[playerid]==6)
{
	gTeam[playerid] = TEAM_Away;
	SetPlayerHealth(playerid, 100);
	SetPlayerColor(playerid,0xFF1A1AFF);
	unkill[playerid] = 1;
	homep[playerid]=0;
	awayp[playerid]=1;
}
if (gPlayerClass[playerid]==7)
{
	gTeam[playerid] = TEAM_Away;
	SetPlayerHealth(playerid, 100);
	SetPlayerColor(playerid,0xFF1A1AFF);
	unkill[playerid] = 1;
	homep[playerid]=0;
	awayp[playerid]=1;
}
if (gPlayerClass[playerid]==8)
{
	gTeam[playerid] = TEAM_GUEST;
	SetPlayerHealth(playerid, 100);
	SetPlayerColor(playerid,0xFFFF00AA);
	unkill[playerid] = 0;
	homep[playerid]=0;
	awayp[playerid]=0;
}
if(gTeam[playerid] == TEAM_Homet)
{
	if(connect[playerid] == 0)
	{
		ShowMenuForPlayer(Home, playerid);
	}
}
if(gTeam[playerid] == TEAM_Away)
{
	if(connect[playerid] == 0)
	{
		ShowMenuForPlayer(Away, playerid);
	}
}
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
new string[256];
connect[playerid] = 1;
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
if(gTeam[playerid] == TEAM_Home )
{
	ScoreKill2++;
	format(string, 256,"Home %d : %d Away",ScoreKill,ScoreKill2);
	SendClientMessageToAll(COLOR_YELLOW,string);
}
if(gTeam[playerid] == TEAM_Away)
{
	ScoreKill++;
	format(string, 256,"Home %d : %d Away",ScoreKill,ScoreKill2);
	SendClientMessageToAll(COLOR_YELLOW,string);
}
if(ScoreKill2 == 30)
{
	ScoreKill = 0;
	ScoreKill2 = 0;
	ScoreKill2W++;
	GameTextForAll("~r~Away ~w~win ~g~round", 5000, 3);
	format(string,sizeof(string),"Score round: Home %d : %d Away",ScoreKillW,ScoreKill2W);
	SendClientMessageToAll(COLOR_ORANGE,string);
}
if(ScoreKill == 30)
{
	ScoreKill = 0;
	ScoreKill2 = 0;
	ScoreKillW++;
	GameTextForAll("~g~Home ~w~win ~r~round", 5000, 3);
	format(string,sizeof(string),"Score round: Home %d : %d Away",ScoreKillW,ScoreKill2W);
	SendClientMessageToAll(COLOR_ORANGE,string);
}
if(ScoreKill2W == 3)
{
	ScoreKill = 0;
	ScoreKill2 = 0;
	GameTextForAll("~g~Vitezem ~w~CW se stava ~r~Away", 5000, 3);
	SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");
	format(string,sizeof(string),"TOTAL score: Home %d : %d Away",ScoreKillW,ScoreKill2W);
	SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");
	SendClientMessageToAll(COLOR_BLUE4,string);
	ScoreKillW = 0;
	ScoreKill2W = 0;
}
if(ScoreKillW == 3)
{
	ScoreKill = 0;
	ScoreKill2 = 0;
	GameTextForAll("~r~Vitezem ~w~CW se stava ~g~Home", 5000, 3);
	SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");
	format(string,sizeof(string),"TOTAL score: Home %d : %d Away",ScoreKillW,ScoreKill2W);
	SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");
	SendClientMessageToAll(COLOR_BLUE4,string);
	ScoreKillW = 0;
	ScoreKill2W = 0;
}
return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/warps", true) == 0)//Prikaz //Prikaz pre menu,warpy
{
	ShowMenuForPlayer(tut,playerid);
	return 1;
}
new string[256];
if(strcmp(cmdtext, "/kill", true) == 0)
{
	if (unkill[playerid]==0)
	{
		SetPlayerHealth(playerid,0);
	}
	else
	{
		SendClientMessage(playerid,COLOR_GREEN,"Jen guest může použít /kill !");
	}
	return 1;
}
if(strcmp(cmdtext, "/rall", true) == 0)
{
	ScoreKill = 0;
	ScoreKill2 = 0;
	ScoreKillW = 0;
	ScoreKill2W = 0;
	SendClientMessageToAll(COLOR_GREEN,"All score bylo vymazano!");
	return 1;
}
if(strcmp(cmdtext, "/rround", true) == 0)
{
	ScoreKill = 0;
	ScoreKill2 = 0;
	SendClientMessageToAll(COLOR_GREEN,"Round score bylo vymazano!");
	return 1;
}
if(strcmp(cmdtext, "/cmd", true) == 0)
{
	SendClientMessage(playerid,COLOR_RED,"Commands:");
	SendClientMessage(playerid,COLOR_GREY,"/help , /jetpack");
	SendClientMessage(playerid,COLOR_GREY,"/kill ");
	SendClientMessage(playerid,COLOR_GREY,"/warps Teleporty");
	return 1;
}
if(strcmp(cmdtext,"/jetpack",true)==0)
{
	SetPlayerSpecialAction(playerid,2);
	return 1;
}

if(strcmp(cmdtext, "/help", true) == 0)
{
	SendClientMessage(playerid,COLOR_RED,"Help:");
	SendClientMessage(playerid,COLOR_GREY,"Tento CW mod je určen na 3 celkové body.V každém kole musí ");
	SendClientMessage(playerid,COLOR_GREY,"klan udělat 30 bodů, aby vyhráli kolo.");
	SendClientMessage(playerid,COLOR_GREY,"Na výběr máte ze 2 CW teamů a 1 team GUEST.");
	SendClientMessage(playerid,COLOR_GREY,"GUEST team nesmí zasahovat do CW v opačném případě Kick/Ban! ");
	format(string,sizeof(string),"Současný stav CW je: Home %d : %d Away",ScoreKillW,ScoreKill2W);
	SendClientMessage(playerid,COLOR_GREY,string);
	return 1;
}
return SendClientMessage(playerid,COLOR_GREY,"Spatnej prikaz ! ");
}
public Tip()
{
new genhint = random(2);
switch(genhint)
{
	case 0: SendClientMessageToAll(COLOR_TIP, "*[TIP]*:Všecky příkazy najdeš .../cmd");
	case 1: SendClientMessageToAll(COLOR_TIP, "*[TIP]*EN:All commands in .../cmd");
}
}

Link to comment
Share on other sites

  • 0

mluvis jako tatar ...skus toto..jinak si to oprav sam...btw od kud mas tento mod ? ( nerikej ze si to delal ty kdyz ani nevis k cemu je static )

 

 

//Include:

#include

 

#define COLOR_BLUE 0xAFAFAFAA

#define COLOR_WHITE 0xAFAFAFAA

#define COLOR_RED 0xAFAFAFAA

#define Text_Under_Minimap "~g~Menu warps~r~by MiNNo]" //Definicia Minimapky

#define gRandomPlayerSpawns

#define TEAM_Home 0

#define TEAM_Away 1

#define TEAM_GUEST 2

#define TEAM_Homet 3

#define TEAM_Aways 4

#define COLOR_ALCATRAZ 0x00009DFF

#define COLOR_TIP 0x9B9BFFFF

#define COLOR_EEE 0xD1F8C7FF

#define COLOR_AUTOBUSAK 0x47478FFF

#define COLOR_HOOLIGAN 0x8D4895FF

#define COLOR_YAKUZA 0x8C288EFF

#define COLOR_YELOWBLACK 0xC1AE44FF

#define COLOR_LGHTORANGE 0xE27B3DFF

#define COLOR_GREY 0xAFAFAFAA

#define COLOR_GREEN 0x33AA33AA

#define COLOR_LTGREEN 0x00FF00FF

#define COLOR_YELLOW 0xFFFF00AA

#define YELLOW 0xFFFF00AA

#define COLOR_LIGHTBLUE 0x33CCFFAA

#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 Text_Under_Minimap "~g~Menu warps~r~by MiNNo]" //Definicia Minimapky

 

forward SetupPlayerForClassSelection(playerid);

forward Tip();

 

new Menu:tut;

new Text:text;

new gPlayerClass[MAX_PLAYERS];

new ScoreKill2;

new ScoreKill;

new ScoreKillW;

new ScoreKill2W;

new unkill[MAX_PLAYERS];

new connect[MAX_PLAYERS];

new homep[MAX_PLAYERS];

new awayp[MAX_PLAYERS];

new Text:text2;

new Menu:Home;

new Menu:Away;

static gTeam[MAX_PLAYERS];

 

main()

{

print(">by and thx St1R_xP<");

print(">>a_C<<");

}

 

public OnGameModeInit()

{

SetGameModeText("*cw/tg a_C*");

UsePlayerPedAnims();

SetTimer("Tip",180000,1);

AddPlayerClass(21, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(271, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(40, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(103, 1388.9005,2194.2112,11.0234,133.0953, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(47, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(49, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(102, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(105, 1313.2228,2109.8740,11.0156,320.1337, 26, 9999, 0, 0, 0, 0);

AddPlayerClass(155, 1411.0851,2183.2483,12.0156,91.7352, 0, 0, 0, 0, 0, 0);

CreateObject(985,152.598,2482.552,17.195,0.0,0.0,-90.000);

CreateObject(985,152.592,2490.412,17.195,0.0,0.0,-90.000);

CreateObject(985,152.588,2498.257,17.195,0.0,0.0,-90.000);

CreateObject(985,152.586,2506.096,17.195,0.0,0.0,-90.000);

CreateObject(985,152.645,2513.934,17.302,0.0,0.0,-90.000);

CreateObject(985,152.677,2521.793,17.413,0.0,0.0,-90.000);

CreateObject(985,156.531,2478.617,17.195,0.0,0.0,0.0);

CreateObject(985,164.421,2478.615,17.195,0.0,0.0,0.0);

CreateObject(985,172.262,2478.575,17.195,0.0,0.0,0.0);

CreateObject(985,180.089,2478.543,17.195,0.0,0.0,0.0);

CreateObject(985,187.939,2478.490,17.195,0.0,0.0,0.0);

CreateObject(985,195.780,2478.442,17.203,0.0,0.0,0.0);

CreateObject(985,203.617,2478.420,17.203,0.0,0.0,0.0);

CreateObject(985,156.686,2525.644,17.476,0.0,0.0,0.0);

CreateObject(985,164.464,2525.719,17.485,0.0,0.0,0.0);

CreateObject(985,172.328,2525.709,17.493,0.0,0.0,0.0);

CreateObject(985,180.135,2525.680,17.497,0.0,0.0,0.0);

CreateObject(985,187.957,2525.640,17.499,0.0,0.0,0.0);

CreateObject(985,195.769,2525.670,17.502,0.0,0.0,0.0);

CreateObject(985,203.515,2524.879,17.489,0.0,0.0,-11.250);

CreateObject(985,207.482,2482.294,17.195,0.0,0.0,-270.000);

CreateObject(985,207.471,2490.154,17.195,0.0,0.0,-90.000);

CreateObject(985,207.497,2497.991,17.195,0.0,0.0,-90.000);

CreateObject(985,207.569,2505.773,17.195,0.0,0.0,-90.000);

CreateObject(985,207.608,2513.593,17.307,0.0,0.0,-90.000);

CreateObject(985,206.864,2521.419,17.436,0.0,0.0,-78.750);

CreateObject(986,-59.280,2478.398,17.195,0.0,0.0,0.0);

CreateObject(986,-51.294,2478.381,17.195,0.0,0.0,0.0);

CreateObject(986,-43.308,2478.347,17.195,0.0,0.0,0.0);

CreateObject(986,-35.275,2478.403,17.195,0.0,0.0,0.0);

CreateObject(986,-27.268,2478.406,17.203,0.0,0.0,0.0);

CreateObject(986,-19.295,2478.425,17.203,0.0,0.0,0.0);

CreateObject(986,-11.343,2478.419,17.195,0.0,0.0,0.0);

CreateObject(986,-3.372,2478.441,17.195,0.0,0.0,0.0);

CreateObject(986,4.585,2478.466,17.195,0.0,0.0,0.0);

CreateObject(986,8.591,2482.433,17.195,0.0,0.0,-90.000);

CreateObject(986,8.614,2490.370,17.195,0.0,0.0,-90.000);

CreateObject(986,8.644,2498.352,17.195,0.0,0.0,-90.000);

CreateObject(986,8.658,2506.323,17.195,0.0,0.0,-90.000);

CreateObject(986,8.679,2514.302,17.195,0.0,0.0,-90.000);

CreateObject(986,8.680,2522.303,17.195,0.0,0.0,-90.000);

CreateObject(986,4.701,2526.208,17.195,0.0,0.0,-180.000);

CreateObject(986,-3.280,2526.279,17.203,0.0,0.0,0.0);

CreateObject(986,-11.284,2526.275,17.195,0.0,0.0,0.0);

CreateObject(986,-19.324,2526.271,17.195,0.0,0.0,0.0);

CreateObject(986,-27.304,2526.313,17.195,0.0,0.0,0.0);

CreateObject(986,-35.251,2526.387,17.195,0.0,0.0,0.0);

CreateObject(986,-43.266,2526.392,17.203,0.0,0.0,0.0);

CreateObject(986,-51.235,2526.376,17.195,0.0,0.0,0.0);

CreateObject(986,-63.283,2482.405,17.195,0.0,0.0,-90.000);

CreateObject(986,-63.280,2490.363,17.195,0.0,0.0,-90.000);

CreateObject(986,-63.234,2498.331,17.195,0.0,0.0,-90.000);

CreateObject(986,-63.200,2506.287,17.195,0.0,0.0,-90.000);

CreateObject(986,-63.212,2514.259,17.203,0.0,0.0,-90.000);

CreateObject(986,-63.231,2522.258,17.203,0.0,0.0,-90.000);

CreateObject(986,-59.307,2526.382,17.195,0.0,0.0,0.0);

CreateObject(970, 1390.627075, 2177.069824, 10.574919, 0.0000, 0.0000, 90.0000);

CreateObject(970, 1390.672485, 2159.883545, 10.574919, 0.0000, 0.0000, 90.0000);

CreateObject(970, 1377.786865, 2192.227783, 10.574919, 0.0000, 0.0000, 0.0000);

CreateObject(970, 1360.305908, 2192.118164, 10.574919, 0.0000, 0.0000, 0.0000);

CreateObject(5005, 1398.185425, 2178.129639, 17.191921, 0.0000, 0.0000, 90.0000);

CreateObject(5822, 1414.968750, 2177.949463, 23.378710, 0.0000, 0.0000, 0.0000);

CreateObject(3279, 1422.439697, 2156.590820, 28.766356, 0.0000, 0.0000, 0.0000);

CreateObject(3279, 1424.021851, 2111.287354, 28.766356, 0.0000, 0.0000, 0.0000);

CreateObject(3268, 1448.046021, 2140.197754, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(5005, 1458.587891, 2153.541992, 32.242252, 0.0000, 0.0000, 90.0000);

CreateObject(987, 1446.346069, 2074.049072, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(987, 1434.673828, 2074.072998, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(987, 1424.904663, 2080.507568, 28.690739, 0.0000, 0.0000, 326.2500);

CreateObject(987, 1418.167725, 2089.678467, 28.690739, 0.0000, 0.0000, 303.7500);

CreateObject(987, 1418.191650, 2101.311035, 28.690739, 0.0000, 0.0000, 270.0000);

CreateObject(987, 1398.356567, 2100.457520, 15.921789, 0.0000, 0.0000, 0.0000);

CreateObject(987, 1411.092041, 2099.180664, 20.173462, 0.0000, 0.0000, 0.0000);

CreateObject(987, 1398.356689, 2213.439209, 19.056313, 0.0000, 0.0000, 78.7500);

CreateObject(987, 1398.356689, 2200.023682, 17.471024, 0.0000, 0.0000, 90.0000);

CreateObject(14537, 1446.839111, 2140.137939, 30.637100, 0.0000, 0.0000, 0.0000);

CreateObject(2780, 1456.838623, 2128.270508, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(2780, 1454.114014, 2152.894287, 28.690739, 0.0000, 0.0000, 0.0000);

CreateObject(3461, 1438.594482, 2131.634521, 30.265751, 0.0000, 0.0000, 0.0000);

CreateObject(3461, 1438.409424, 2149.373535, 30.265751, 0.0000, 0.0000, 0.0000);

CreateObject(3528, 1438.046021, 2140.228516, 38.524845, 0.0000, 0.0000, 180.0000);

CreateObject(3864, 1438.266235, 2119.546631, 34.787766, 0.0000, 0.0000, 326.2500);

CreateObject(3864, 1437.237549, 2160.135254, 34.787766, 0.0000, 0.0000, 45.0000);

CreateObject(2064, 1418.625488, 2134.793457, 29.319960, 0.0000, 0.0000, 270.0000);

CreateObject(2064, 1418.586548, 2142.845215, 29.319960, 0.0000, 0.0000, 270.0000);

CreateObject(2061, 1418.639038, 2135.647217, 28.982668, 0.0000, 0.0000, 0.0000);

CreateObject(2061, 1418.629639, 2135.914551, 28.982668, 0.0000, 0.0000, 315.0000);

CreateObject(2061, 1419.300293, 2142.266846, 28.982668, 0.0000, 0.0000, 315.0000);

CreateObject(2061, 1418.851685, 2142.201660, 28.982668, 0.0000, 0.0000, 33.7500);

CreateObject(1654, 1438.047974, 2149.622314, 30.494343, 0.0000, 0.0000, 270.0000);

CreateObject(1654, 1437.922852, 2130.670654, 30.563734, 0.0000, 0.0000, 258.7500);

CreateObject(902, 1426.267822, 2131.653320, 28.623499, 0.0000, 0.0000, 0.0000);

CreateObject(14791, 1423.160767, 2122.541992, 30.735800, 0.0000, 0.0000, 0.0000);

CreateObject(11544, 1422.116699, 2123.772217, 29.799467, 0.0000, 0.0000, 180.0000);

CreateObject(956, 1444.002441, 2128.775879, 29.094751, 0.0000, 0.0000, 202.5000);

CreateObject(16152, 1441.639893, 2154.120361, 28.750248, 0.0000, 0.0000, 270.0000);

CreateObject(3657, 1419.390747, 2130.159180, 29.208950, 0.0000, 0.0000, 270.0000);

CreateObject(3657, 1419.063721, 2150.406494, 29.208950, 0.0000, 0.0000, 270.0000);

CreateObject(2596, 1441.358643, 2140.450684, 32.505577, 0.0000, 0.0000, 270.0000);

CreateObject(2232, 1438.047974, 2129.557129, 32.917625, 0.0000, 0.0000, 258.7500);

CreateObject(2232, 1438.047974, 2150.139893, 33.027039, 0.0000, 0.0000, 270.0000);

CreateObject(2232, 1420.255249, 2157.669434, 45.442360, 0.0000, 0.0000, 56.2500);

CreateObject(2232, 1422.591187, 2109.722412, 45.442360, 0.0000, 0.0000, 135.0000);

CreateObject(987, 1437.956299, 2223.387939, 28.710938, 0.0000, 0.0000, 45.0000);

CreateObject(987, 1429.411621, 2215.062012, 28.710938, 0.0000, 0.0000, 45.0000);

CreateObject(987, 1425.010620, 2204.436523, 28.710938, 0.0000, 0.0000, 67.5000);

CreateObject(987, 1418.641479, 2194.635986, 28.690739, 0.0000, 0.0000, 56.2500);

CreateObject(987, 1446.101318, 2231.707031, 32.187500, 0.0000, 0.0000, 0.0000);

CreateObject(3525, 1380.074463, 2198.950195, 11.149943, 0.0000, 0.0000, 45.0000);

CreateObject(3525, 1397.515625, 2179.618896, 12.024570, 0.0000, 0.0000, 303.7500);

CreateObject(3864, 1377.043335, 2190.606201, 16.120464, 0.0000, 0.0000, 90.0000);

CreateObject(3864, 1391.215210, 2108.527588, 16.112652, 0.0000, 0.0000, 315.0000);

CreateObject(971, 1411.439575, 2180.738037, 14.510559, 0.0000, 0.0000, 0.0000);

CreateObject(971, 1410.927490, 2190.770020, 14.460560, 0.0000, 0.0000, 0.0000);

CreateObject(13607, 890.182983, 3012.871094, 13.301063, 0.0000, 0.0000, 0.0000);

 

tut = CreateMenu("Tutorial", 1, 50.0, 180.0, 200.0, 200.0);

AddMenuItem(tut, 0, "car sumo");

AddMenuItem(tut, 0, "tg1");

AddMenuItem(tut, 0, "tg2");

AddMenuItem(tut, 0, "Lod SF");

AddMenuItem(tut, 0, "Carpark SF");

AddMenuItem(tut, 0, "Pole");

AddMenuItem(tut, 0, "Otos");

AddMenuItem(tut, 0, "Mt.Chiliad");

AddMenuItem(tut, 0, "Skatepark");

AddMenuItem(tut, 0, "Area51");

 

text = TextDrawCreate(5.0, 400.0,Text_Under_Minimap);

TextDrawUseBox(text, 0);

TextDrawFont(text, 3);

TextDrawSetShadow(text,0);

TextDrawSetOutline(text,1);

TextDrawBackgroundColor(text,0x000000FF);

TextDrawColor(text,0xFFFFFFFF);

return 1;

}

 

public OnPlayerSelectedMenuRow(playerid, row)

{

new Menu:current = GetPlayerMenu(playerid);

if(current == tut)

{

switch(row)

{

case 0:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol k car sumo."); //Co sa vsetko stane ked hrac vybere port k jizzy clubu,plati pri vsetkych portoch

SetPlayerPos(playerid,67.9426,2497.4429,27.4898);

}

case 1:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol k tg1.");

SetPlayerPos(playerid,-23.8165,2512.0649,17.8281);

}

case 2:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na baseball.");

SetPlayerPos(playerid,1375.2051,2181.2126,11.0234);

}

case 3:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na tg2.");

SetPlayerPos(playerid,-158.1445,2508.9302,28.6533);

}

case 4:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na parkovisko v SF,pri železnićnej stanici.");

SetPlayerPos(playerid,1777.3083,-1933.1324,13.3862);

}

case 5:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na pole.");

SetPlayerPos(playerid,-1111.2880,-957.3068,129.2188);

}

case 6:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol k otos clubu.");

SetPlayerPos(playerid,-1661.7772,1214.0844,7.2500);

}

case 7:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na Mount Chiliad.");

SetPlayerPos(playerid,-2321.6743,-1628.5787,483.7034);

}

case 8:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do skateparku v LS.");

SetPlayerPos(playerid,1880.1451,-1377.6034,13.5716);

}

case 9:

{

SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do arei 51.");

SetPlayerPos(playerid,179.8973,1925.9773,17.9937);

}

}

}

return 1;

}

 

public OnPlayerRequestClass(playerid, classid)

{

gPlayerClass[playerid] = classid;

SetupPlayerForClassSelection(playerid);

switch (classid)

{

case 0:GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);

case 1:GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);

case 2:GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);

case 3:GameTextForPlayer(playerid, "~g~TEAM Home", 5000, 3);

case 4:GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);

case 5:GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);

case 6:GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);

case 7:GameTextForPlayer(playerid, "~r~TEAM Away", 5000, 3);

case 8:GameTextForPlayer(playerid, "~y~GUEST", 5000, 3);

}

return 1;

}

 

public SetupPlayerForClassSelection(playerid)

{

SetPlayerInterior(playerid,14);

SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);

SetPlayerFacingAngle(playerid, 270.0);

SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);

SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);

}

 

public OnPlayerConnect(playerid)

{

GameTextForPlayer(playerid,"~g~Home ~w~vs. ~r~Away",5000,5);

SendClientMessage(playerid, COLOR_LIGHTBLUE,"==============================================");

SendClientMessage(playerid, COLOR_YELLOW,"Info o CW nalezneš /help");

SendClientMessage(playerid, COLOR_YELLOW,"Pro zobrazení všech příkazů napiš /cmd");

SendClientMessage(playerid, COLOR_LIGHTBLUE,"==============================================");

new pName[30], string[256];

connect[playerid] = 0;

GetPlayerName(playerid, pName, 30);

format(string, 256, "Hráč/ka %s se připojil/a na CW mod.", pName);

SendClientMessageToAll(COLOR_TAN, string);

text2 = TextDrawCreate(0,435," mod by ~b~St1R_xP poupravil Cr3ative |a_C server www.ac.7u.cz");

TextDrawUseBox(text2, 1); //nastaví TD v Boxu

TextDrawFont(text2, 3); //nastaví písmo

TextDrawSetOutline(text2, 1); //neznámé

TextDrawShowForPlayer(playerid, text2); //nastaví aby text oběvil

TextDrawBoxColor(Text:text2,0xFF1A1AFF); //nastaví barvu

return 1;

}

 

public OnPlayerDisconnect(playerid, reason)

{

new pName[30], string[256];

GetPlayerName(playerid, pName, 30);

format(string, 256, "Hráč/ka %s opustil/a CW mod.", pName);

SendClientMessageToAll(COLOR_TAN, string);

TextDrawHideForPlayer(playerid, text2);

return 1;

}

 

public OnPlayerSpawn(playerid)

{

if (gPlayerClass[playerid]==0)

{

gTeam[playerid] = TEAM_Home;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0x33AA33AA);

unkill[playerid] = 1;

homep[playerid]=1;

awayp[playerid]=0;

}

if (gPlayerClass[playerid]==1)

{

gTeam[playerid] = TEAM_Home;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0x33AA33AA);

unkill[playerid] = 1;

homep[playerid]=1;

awayp[playerid]=0;

}

if (gPlayerClass[playerid]==2)

{

gTeam[playerid] = TEAM_Home;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0x33AA33AA);

unkill[playerid] = 1;

homep[playerid]=1;

awayp[playerid]=0;

}

if (gPlayerClass[playerid]==3)

{

gTeam[playerid] = TEAM_Home;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0x33AA33AA);

unkill[playerid] = 1;

homep[playerid]=1;

awayp[playerid]=0;

}

if (gPlayerClass[playerid]==4)

{

gTeam[playerid] = TEAM_Away;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFF1A1AFF);

unkill[playerid] = 1;

homep[playerid]=0;

awayp[playerid]=1;

}

if (gPlayerClass[playerid]==5)

{

gTeam[playerid] = TEAM_Away;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFF1A1AFF);

unkill[playerid] = 1;

homep[playerid]=0;

awayp[playerid]=1;

}

if (gPlayerClass[playerid]==6)

{

gTeam[playerid] = TEAM_Away;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFF1A1AFF);

unkill[playerid] = 1;

homep[playerid]=0;

awayp[playerid]=1;

}

if (gPlayerClass[playerid]==7)

{

gTeam[playerid] = TEAM_Away;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFF1A1AFF);

unkill[playerid] = 1;

homep[playerid]=0;

awayp[playerid]=1;

}

if (gPlayerClass[playerid]==8)

{

gTeam[playerid] = TEAM_GUEST;

SetPlayerHealth(playerid, 100);

SetPlayerColor(playerid,0xFFFF00AA);

unkill[playerid] = 0;

homep[playerid]=0;

awayp[playerid]=0;

}

if(gTeam[playerid] == TEAM_Homet)

{

if(connect[playerid] == 0)

{

ShowMenuForPlayer(Home, playerid);

}

}

if(gTeam[playerid] == TEAM_Away)

{

if(connect[playerid] == 0)

{

ShowMenuForPlayer(Away, playerid);

}

}

return 1;

}

 

public OnPlayerDeath(playerid, killerid, reason)

{

SendDeathMessage(killerid, playerid, reason);

new string[256];

connect[playerid] = 1;

SetPlayerScore(killerid, GetPlayerScore(killerid)+1);

if(gTeam[playerid] == TEAM_Home )

{

ScoreKill2++;

format(string, 256,"Home %d : %d Away",ScoreKill,ScoreKill2);

SendClientMessageToAll(COLOR_YELLOW,string);

}

if(gTeam[playerid] == TEAM_Away)

{

ScoreKill++;

format(string, 256,"Home %d : %d Away",ScoreKill,ScoreKill2);

SendClientMessageToAll(COLOR_YELLOW,string);

}

if(ScoreKill2 == 30)

{

ScoreKill = 0;

ScoreKill2 = 0;

ScoreKill2W++;

GameTextForAll("~r~Away ~w~win ~g~round", 5000, 3);

format(string,sizeof(string),"Score round: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessageToAll(COLOR_ORANGE,string);

}

if(ScoreKill == 30)

{

ScoreKill = 0;

ScoreKill2 = 0;

ScoreKillW++;

GameTextForAll("~g~Home ~w~win ~r~round", 5000, 3);

format(string,sizeof(string),"Score round: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessageToAll(COLOR_ORANGE,string);

}

if(ScoreKill2W == 3)

{

ScoreKill = 0;

ScoreKill2 = 0;

GameTextForAll("~g~Vitezem ~w~CW se stava ~r~Away", 5000, 3);

SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");

format(string,sizeof(string),"TOTAL score: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");

SendClientMessageToAll(COLOR_BLUE,string);

ScoreKillW = 0;

ScoreKill2W = 0;

}

if(ScoreKillW == 3)

{

ScoreKill = 0;

ScoreKill2 = 0;

GameTextForAll("~r~Vitezem ~w~CW se stava ~g~Home", 5000, 3);

SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");

format(string,sizeof(string),"TOTAL score: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessageToAll(COLOR_GREEN,"----------------------------------------------------------");

SendClientMessageToAll(COLOR_BLUE,string);

ScoreKillW = 0;

ScoreKill2W = 0;

}

return 1;

}

 

 

public OnPlayerCommandText(playerid, cmdtext[])

{

if(strcmp(cmdtext, "/warps", true) == 0)//Prikaz //Prikaz pre menu,warpy

{

ShowMenuForPlayer(tut,playerid);

return 1;

}

new string[256];

if(strcmp(cmdtext, "/kill", true) == 0)

{

if (unkill[playerid]==0)

{

SetPlayerHealth(playerid,0);

}

else

{

SendClientMessage(playerid,COLOR_GREEN,"Jen guest může použít /kill !");

}

return 1;

}

if(strcmp(cmdtext, "/rall", true) == 0)

{

ScoreKill = 0;

ScoreKill2 = 0;

ScoreKillW = 0;

ScoreKill2W = 0;

SendClientMessageToAll(COLOR_GREEN,"All score bylo vymazano!");

return 1;

}

if(strcmp(cmdtext, "/rround", true) == 0)

{

ScoreKill = 0;

ScoreKill2 = 0;

SendClientMessageToAll(COLOR_GREEN,"Round score bylo vymazano!");

return 1;

}

if(strcmp(cmdtext, "/cmd", true) == 0)

{

SendClientMessage(playerid,COLOR_RED,"Commands:");

SendClientMessage(playerid,COLOR_GREY,"/help , /jetpack");

SendClientMessage(playerid,COLOR_GREY,"/kill ");

SendClientMessage(playerid,COLOR_GREY,"/warps Teleporty");

return 1;

}

if(strcmp(cmdtext,"/jetpack",true)==0)

{

SetPlayerSpecialAction(playerid,2);

return 1;

}

 

if(strcmp(cmdtext, "/help", true) == 0)

{

SendClientMessage(playerid,COLOR_RED,"Help:");

SendClientMessage(playerid,COLOR_GREY,"Tento CW mod je určen na 3 celkové body.V každém kole musí ");

SendClientMessage(playerid,COLOR_GREY,"klan udělat 30 bodů, aby vyhráli kolo.");

SendClientMessage(playerid,COLOR_GREY,"Na výběr máte ze 2 CW teamů a 1 team GUEST.");

SendClientMessage(playerid,COLOR_GREY,"GUEST team nesmí zasahovat do CW v opačném případě Kick/Ban! ");

format(string,sizeof(string),"Současný stav CW je: Home %d : %d Away",ScoreKillW,ScoreKill2W);

SendClientMessage(playerid,COLOR_GREY,string);

return 1;

}

return SendClientMessage(playerid,COLOR_GREY,"Spatnej prikaz ! ");

}

public Tip()

{

new genhint = random(2);

switch(genhint)

{

case 0: SendClientMessageToAll(COLOR_TIP, "*[TIP]*:Všecky příkazy najdeš .../cmd");

case 1: SendClientMessageToAll(COLOR_TIP, "*[TIP]*EN:All commands in .../cmd");

}

}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...