Hát. Azt tudom hogy mit jelent amit kiír, csak éppenséggel nem tudom mi okozza
Hátha segít a mod, azt is leírom..
//---Hardcore Team Deathmatch--//
#include <a_samp>
#include <OPSP>
#include <Dini>
#include <dutils>
#include <dudb>
#include <zcmd>
#include <sscanf2>
#include <core>
#include <float>
#include <fixchars>
#include <streamer>
//---Colors---//
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW 0xDABB3EAA
#define COLOR_GREEN 0x21DD00FF
#define COLOR_RED 0xE60000FF
#define ADMIN_RED 0xFB0000FF
#define COLOR_ORANGE 0xF97804FF
#define COLOR_LIGHTRED 0xFF8080FF
#define COLOR_LIGHTBLUE 0x00C2ECFF
#define COLOR_PURPLE 0xB360FDFF
#define COLOR_PLAYER_COLOR 0xFFFFFFFF
#define COLOR_BLUE 0x1229FAFF
#define COLOR_LIGHTGREEN 0x38FF06FF
#define COLOR_DARKPINK 0xE100E1FF
#define COLOR_DARKGREEN 0x008040FF
#define COLOR_ANNOUNCEMENT 0x6AF7E1FF
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_GRAY 0xCECECEFF
#define COLOR_HITCOLOR 0xFF0000FF
//---Zh3ro SA-MP 0.3c Colors---//
#define COL_EASY \"{FFF1AF}\"
#define COL_WHITE \"{FFFFFF}\"
#define COL_BLACK \"{0E0101}\"
#define COL_GREY \"{C3C3C3}\"
#define COL_GREEN \"{6EF83C}\"
#define COL_RED \"{F81414}\"
#define COL_YELLOW \"{F3FF02}\"
#define COL_ORANGE \"{FFAF00}\"
#define COL_LIME \"{B7FF00}\"
#define COL_CYAN \"{00FFEE}\"
#define COL_LIGHTBLUE \"{00C0FF}\"
#define COL_BLUE \"{0049FF}\"
#define COL_MAGENTA \"{F300FF}\"
#define COL_VIOLET \"{B700FF}\"
#define COL_PINK \"{FF00EA}\"
#define COL_MARONE \"{A90202}\"
#define COL_CMD \"{B8FF02}\"
#define COL_PARAM \"{3FCD02}\"
#define COL_SERVER \"{AFE7FF}\"
#define COL_VALUE \"{A3E4FF}\"
#define COL_RULE \"{F9E8B7}\"
#define COL_RULE2 \"{FBDF89}\"
#define COL_RWHITE \"{FFFFFF}\"
#define COL_LGREEN \"{C9FFAB}\"
#define COL_LRED \"{FFA1A1}\"
#define COL_LRED2 \"{C77D87}\"
//---Variables---//
new gTeam[MAX_PLAYERS];
new Text3D:labelblue[MAX_PLAYERS];
new Text3D:labelred[MAX_PLAYERS];
new PlayerKills[MAX_PLAYERS] = 0;
new Dominating[MAX_PLAYERS] = 0;
new GameMinutes =2;
new GameSeconds =59;
new Text:Textdraw0;
new Text:Textdraw1;
new CurrentMap;
new DropLimit=6;
new DeleteTime=15;
new ScoreSave[100];
//Reg változók
new IsLogged[MAX_PLAYERS];
new file[128];
//---Defines---//
#define TEAM_RED 0
#define TEAM_BLUE 1
//---Forwards---//
forward NewMap(playerid);
forward NewRound(playerid);
forward Loading(playerid);
forward LoadingFinshed(playerid);
forward GameTime();
forward RandomWeather(playerid);
forward DropPlayerWeapons(playerid);
forward DeletePickup(pickupid);
forward GetWeaponModel(weaponid);
//---Others---//
#pragma unused ret_memcpy
//---Stocks---//
stock TeamBlueSettings(playerid) {
SetPlayerTeam(playerid,1);
SetPlayerColor(playerid,COLOR_BLUE);
gTeam[playerid] = TEAM_BLUE;
GivePlayerWeapon(playerid,24,10);
}
stock TeamRedSettings(playerid) {
SetPlayerTeam(playerid,0);
SetPlayerColor(playerid,COLOR_RED);
gTeam[playerid] = TEAM_RED;
GivePlayerWeapon(playerid,24,10);
}
main()
{
print(\"\\n----------------------------------\");
print(\" Hardcore Team-Deathmatch by Kitten\");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
SetGameModeText(\"SeeLife Team-Deathmatch\");
AddPlayerClass(72,0.0,0.0,5.0,0.0,0,0,0,0,0,0); // RED
AddPlayerClass(34,0.0,0.0,5.0,0.0,0,0,0,0,0,0); // BLUE
CurrentMap = 0;
SetTimer(\"NewMap\",180000,1); // 2 min
SetTimer(\"GameTime\",1000,1);
SendRconCommand(\"worldtime Hardcore TDM 1.5\");
SendRconCommand(\"loadfs Maps\");
//---Textdraws---//
//--Timeleft--//
Textdraw0 = TextDrawCreate(227.000000, 3.000000, \"_\");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.509999, 1.999999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
//---Event Message---//
Textdraw1 = TextDrawCreate(68.000000, 423.000000, \"~r~ SeeLife~w~-Team Deathmatch ~b~ 1 lövés 1 ölés\");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.700000, 1.300000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
return 1;
}
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) {
if(GetPlayerTeam(Shooter) == TEAM_RED && GetPlayerTeam(Target) == TEAM_BLUE && GetPlayerWeapon(Shooter) == 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || 21 || 22 || 23 || 24 || 25 || 26 || 27 || 28 || 29 || 30 || 31 || 32 || 33 || 34 ) SetPlayerHealth(Target, 0);
if(GetPlayerTeam(Shooter) == TEAM_BLUE && GetPlayerTeam(Target) == TEAM_RED && GetPlayerWeapon(Shooter) == 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || 21 || 22 || 23 || 24 || 25 || 26 || 27 || 28 || 29 || 30 || 31 || 32 || 33 || 34 ) SetPlayerHealth(Target, 0);
return 1;
}
public GameTime()
{
if(GameSeconds || GameMinutes) {
GameSeconds--;
if(GameSeconds <= -1) {
GameMinutes--;
GameSeconds=59;
}
new TimeString[128];
format(TimeString,sizeof(TimeString),\"~g~Hátralévõ idõ ~w~: %02d:%02d\",GameMinutes,GameSeconds);
TextDrawSetString(Textdraw0,TimeString);
}
return 1;
}
public OnGameModeExit()
{
TextDrawDestroy(Textdraw0);
TextDrawDestroy(Textdraw1);
return 1;
}
public OnPlayerRequestClass(playerid, classid) {
SetPlayerPos(playerid, 1380.6447,-1753.0427,13.5469);
SetPlayerFacingAngle(playerid, 269.6420);
SetPlayerCameraPos(playerid, 1387.2906,-1752.8887,13.3828);
SetPlayerCameraLookAt(playerid, 1380.6447,-1753.0427,13.5469);
if(classid == 0) {
GameTextForPlayer(playerid,\"~r~Piros csapat~n~~y~Rang : Nincs\",4000,4);
gTeam[playerid] = TEAM_RED;
}
if(classid == 1) {
GameTextForPlayer(playerid,\"~b~Kék csapat~n~~y~Rang : Nincs\",4000,4);
gTeam[playerid] = TEAM_BLUE;
}
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw0);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(ScoreSave, sizeof(ScoreSave), \"/HardcoreDM/%s.ini\",name);
if(!dini_Exists(ScoreSave)) {
dini_Create(ScoreSave);
dini_IntSet(ScoreSave, \"Score\", 0);
dini_IntSet(ScoreSave, \"Money\", 0);
SetPlayerScore(playerid, dini_Int(ScoreSave, \"Score\"));
SetPlayerMoney(playerid, dini_Int(ScoreSave, \"Money\"));
}
else {
SetPlayerScore(playerid, dini_Int(ScoreSave, \"Score\"));
SetPlayerMoney(playerid, dini_Int(ScoreSave, \"Money\"));
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(ScoreSave, sizeof(ScoreSave), \"/HardcoreDM/%s.ini\",name);
if(!dini_Exists(ScoreSave)) {
}
else {
dini_IntSet(ScoreSave, \"Pénz\", GetPlayerScore(playerid));
dini_IntSet(ScoreSave, \"Pont\", GetPlayerMoney(playerid));
}
return 1;
}
public Loading(playerid) {
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid, COLOR_WHITE,\"SERVER: \"COL_RED\"Objectek betöltése, kérlek várj... \" ) ;
SetTimerEx(\"LoadingFinshed\",5000,0,\"i\",playerid);
return 1;
}
public LoadingFinshed(playerid) {
TogglePlayerControllable(playerid,1);
SendClientMessage(playerid, COLOR_WHITE,\"SERVER: \"COL_GREEN\"Objectek betöltve... \" ) ;
return 1;
}
public RandomWeather(playerid) {
new rweather = random(5);
switch (rweather) {
case 0: SetPlayerWeather(playerid,9) ;
case 1: SetPlayerWeather(playerid,7) ;
case 2: SetPlayerWeather(playerid,32) ;
case 3: SetPlayerWeather(playerid,43) ;
case 4: SetPlayerWeather(playerid,20) ;
}
//---Hehe Included time to
new rtime = random(2);
switch (rtime) {
case 0: SetPlayerTime(playerid,0,0);
case 1: SetPlayerTime(playerid,10,0);
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, \"[HIBA] Elõször jelentkezz be!\");
Kick(playerid);
}
if(gTeam[playerid] == TEAM_BLUE) {
TeamBlueSettings(playerid);
labelblue[playerid] = Create3DTextLabel(\"Kék csapat\",COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(labelblue[playerid],playerid,0.0, 0.0, 0.7);
}
if(gTeam[playerid] == TEAM_RED) {
TeamRedSettings(playerid);
labelred[playerid] = Create3DTextLabel(\"Piros csapat\",COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(labelred[playerid],playerid,0.0, 0.0, 0.7);
}
ShowPlayerDialog(playerid,04041,DIALOG_STYLE_LIST,\"{FF0000}Fegyvervásárlás\",\"Desert Eagle ($5000)\\nColt 45. ($2000)\\nMP5-K MG ($5000)\\nM4 ($10000)\\nAK-47 ($9000)\\nSpas12 Shotgun ($10000)\\nTec-9 ($4000)\\nSniper ($6000)\\nArmour ($10000)\",\"Accept\",\"Cancel\");
RandomWeather(playerid);
SendClientMessage(playerid,COLOR_WHITE,\"Server: \"COL_GREEN\" Használd a /buy parancsot\");
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1);
TextDrawShowForPlayer(playerid,Textdraw1);
switch(CurrentMap)
{
case 0:
{
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,684.1284,-2409.9363,107.1745);
SetPlayerPos(playerid,684.1284,-2409.9363,107.1745);
SetPlayerFacingAngle(playerid,314.8662);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ITALY)\");
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,667.9435,-2318.0151,107.6832);
SetPlayerPos(playerid,667.9435,-2318.0151,107.6832);
SetPlayerFacingAngle(playerid,177.7062);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ITALY)\");
}
}
case 1:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ISLAND 1)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid, 785.7801,-3043.8193,10.1914);
SetPlayerFacingAngle(playerid,228.1154);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid, 818.0743,-3211.5339,6.0772);
SetPlayerFacingAngle(playerid,15.4068);
SetPlayerInterior(playerid,0);
}
}
case 2:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: AREA51)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid, 279.1774,1822.7839,17.6406);
SetPlayerFacingAngle(playerid,69.1259);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid, 110.1741,1905.5580,18.6453);
SetPlayerFacingAngle(playerid,242.8826);
SetPlayerInterior(playerid,0);
}
}
case 3:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: WANGCARS)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid, -2086.5854,296.9832,41.0602);
SetPlayerFacingAngle(playerid,238.3208);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid, -1980.9813,273.4878,37.8109);
SetPlayerFacingAngle(playerid,57.8390);
SetPlayerInterior(playerid,0);
}
}
case 4:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: GROVESTREET)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,2346.4951,-1742.8738,13.5469);
SetPlayerFacingAngle(playerid,274.5655);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,2486.7463,-1647.9648,14.0703);
SetPlayerFacingAngle(playerid,184.7001);
SetPlayerInterior(playerid,0);
}
}
case 5:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: BRIDGE)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,-2698.1018,1522.3014,60.2286);
SetPlayerFacingAngle(playerid,258.6596);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,-2676.7476,1804.3750,67.8705);
SetPlayerFacingAngle(playerid,166.9949);
SetPlayerInterior(playerid,0);
}
}
case 6:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ROOFTOPS 2)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,1899.6738,998.6496,58.6697);
SetPlayerFacingAngle(playerid,279.1339);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,1978.8358,991.4753,59.0187);
SetPlayerFacingAngle(playerid,90.2154);
SetPlayerInterior(playerid,0);
}
}
case 7:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: OLDWEST)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,-46.2973,35.6812,3.1172);
SetPlayerFacingAngle(playerid,160.3660);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,-119.4117,-89.5186,3.1181);
SetPlayerFacingAngle(playerid,75.1620);
SetPlayerInterior(playerid,0);
}
}
case 8:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: WANGCARS)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid, -2086.5854,296.9832,41.0602);
SetPlayerFacingAngle(playerid,238.3208);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid, -1980.9813,273.4878,37.8109);
SetPlayerFacingAngle(playerid,57.8390);
SetPlayerInterior(playerid,0);
}
}
case 9:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: MADDOG)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,1300.0236,-790.1140,1084.0078);
SetPlayerFacingAngle(playerid,0.3154);
SetPlayerInterior(playerid,5);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,1266.4395,-780.0988,1091.9063);
SetPlayerFacingAngle(playerid,269.7846);
SetPlayerInterior(playerid,5);
}
}
case 10:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: JEFFERSON)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,2220.3972,-1151.4685,1025.7969);
SetPlayerFacingAngle(playerid,269.3734);
SetPlayerInterior(playerid,15);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,2193.5583,-1141.1141,1029.7969);
SetPlayerFacingAngle(playerid,178.7957);
SetPlayerInterior(playerid,15);
}
}
case 11:
{
Loading(playerid);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: SEWERS)\");
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,252.0799,-2108.2781,5.7310);
SetPlayerPos(playerid,252.0799,-2108.2781,5.7310);
SetPlayerFacingAngle(playerid,174.1782);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,242.7820,-2179.2249,3.9405);
SetPlayerPos(playerid,242.7820,-2179.2249,3.9405);
SetPlayerFacingAngle(playerid,272.9979);
SetPlayerInterior(playerid,0);
}
}
case 12:
{
Loading(playerid);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ROOFTOPS 1)\");
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,-2119.3274,1019.3015,96.9453);
SetPlayerPos(playerid,-2119.3274,1019.3015,96.9453);
SetPlayerFacingAngle(playerid,176.1283);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,-2019.5426,865.9958,77.0320);
SetPlayerPos(playerid,-2019.5426,865.9958,77.0320);
SetPlayerFacingAngle(playerid,55.2602);
SetPlayerInterior(playerid,0);
}
}
case 13:
{
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,1728.3430,-1328.7496,13.5859);
SetPlayerPos(playerid,1728.3430,-1328.7496,13.5859);
SetPlayerFacingAngle(playerid,231.1306);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,1731.9385,-1421.8571,15.7578);
SetPlayerPos(playerid,1731.9385,-1421.8571,15.7578);
SetPlayerFacingAngle(playerid,1.7522);
SetPlayerInterior(playerid,0);
}
}
case 14:
{
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,1801.1047,-2991.1992,6.1988);
SetPlayerPos(playerid,1801.1047,-2991.1992,6.1988);
SetPlayerFacingAngle(playerid,183.9618);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: MEDIEVAL)\");
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,1846.0448,-3083.0525,6.6550);
SetPlayerPos(playerid,1846.0448,-3083.0525,6.6550);
SetPlayerFacingAngle(playerid,44.1783);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: MEDIEVAL)\");
}
}
case 15:
{
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,585.4098,-576.4513,125.5366);
SetPlayerPos(playerid,585.4098,-576.4513,125.5366);
SetPlayerFacingAngle(playerid,185.5051);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: LASVEGAS)\");
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,433.2707,-581.1590,125.3391);
SetPlayerPos(playerid,433.2707,-581.1590,125.3391);
SetPlayerFacingAngle(playerid,238.4147);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: LASVEGAS)\");
}
}
case 16:
{
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ISLAND 2)\");
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid, 1205.9838,-3401.2065,19.0990);
SetPlayerFacingAngle(playerid,178.2331);
SetPlayerInterior(playerid,0);
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid, 1069.0409,-3473.9807,4.1907);
SetPlayerFacingAngle(playerid,266.2557);
SetPlayerInterior(playerid,0);
}
}
case 17:
{
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,-773.4510,1893.7310,3.6535);
SetPlayerPos(playerid,-773.4510,1893.7310,3.6535);
SetPlayerFacingAngle(playerid,318.9396);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: CANALS)\");
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,-710.8870,1961.1656,2.1785);
SetPlayerPos(playerid,-710.8870,1961.1656,2.1785);
SetPlayerFacingAngle(playerid,99.2134);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: CANALS)\");
}
}
case 18:
{
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,544.5315,-2587.7488,115.5675);
SetPlayerPos(playerid,544.5315,-2587.7488,115.5675);
SetPlayerFacingAngle(playerid,302.0194);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: BOMBSITE)\");
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,624.8194,-2492.6453,116.6385);
SetPlayerPos(playerid,624.8194,-2492.6453,116.6385);
SetPlayerFacingAngle(playerid,159.0638);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: BOMBSITE)\");
}
}
case 19:
{
Loading(playerid);
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerPos(playerid,-446.6335,2263.0461,44.3679);
SetPlayerFacingAngle(playerid,194.4564);
SetPlayerInterior(playerid,0);
SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: OLDWEST 2)\");
}
if(gTeam[playerid] == TEAM_RED) {
SetPlayerPos(playerid,-352.0935,2196.1150,42.4844);
SetPlayerFacingAngle(playerid,68.1819);
SetPlayerInterior(playerid,0);
}
}
}
return 1;
}
public NewMap(playerid) {
CurrentMap++;
GameTextForAll(\"~w~Server:~r~ Új pálya betöltése...\",5000,4);
SetTimer(\"NewRound\",5000,0);
return 1;
}
public NewRound(playerid) {
for(new i = 0; i < MAX_PLAYERS; i++)
{
SpawnPlayer(i);
switch(CurrentMap)
{
case 0:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 1:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 2:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 3:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 4:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 5:
{
SetPlayerInterior(i,5);
GameMinutes =2;
GameSeconds =49;
}
case 6:
{
SetPlayerInterior(i,15);
GameMinutes =2;
GameSeconds =49;
}
case 7:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 8:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 9:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 10:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 11:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 12:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 13:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 14:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 15:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 16:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 17:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 18:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 19:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
}
case 20:
{
SetPlayerInterior(i,0);
GameMinutes =2;
GameSeconds =49;
CurrentMap = 0;
}
}
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid,GetPlayerScore(killerid) +1);
DropPlayerWeapons(playerid);
SendDeathMessage(killerid,playerid,reason);
GivePlayerMoney(killerid,5000);
GameTextForPlayer(killerid,\"~r~+~y~$~w~5000~n~~b~+~r~1~p~XP\",3000,4);
new kName[128], string[128];
GetPlayerName(killerid, kName, sizeof(kName));
PlayerKills[killerid] = PlayerKills[killerid] + 1;
PlayerKills[playerid] = 0;
if (PlayerKills[killerid] == 4 && Dominating[killerid] == 1)
{
format(string, sizeof(string), \"~r~%s is dominating!\", kName);
GivePlayerMoney(playerid,5000);
GameTextForAll(string, 1000, 1);
return 1;
}
if (PlayerKills[killerid] == 6)
{
format(string, sizeof(string), \"~r~%s is on rampage!\", kName);
GameTextForAll(string, 1000, 1);
GivePlayerMoney(playerid,5000);
return 1;
}
if (PlayerKills[killerid] ==
{
format(string, sizeof(string), \"~r~%s is on killing spree!\", kName);
GameTextForAll(string, 1000, 1);
return 1;
}
if (PlayerKills[killerid] == 10)
{
format(string, sizeof(string), \"~r~monster kill %s!\", kName);
GameTextForAll(string, 1000, 1);
GivePlayerMoney(playerid,5000);
return 1;
}
if (PlayerKills[killerid] == 12)
{
format(string, sizeof(string), \"~r~%s is unstoppable!\", kName);
GameTextForAll(string, 1000, 1);
return 1;
}
if (PlayerKills[killerid] == 14)
{
format(string, sizeof(string), \"~r~ultra kill %s!\", kName);
GameTextForAll(string, 1000, 1);
return 1;
}
if (PlayerKills[killerid] == 16)
{
format(string, sizeof(string), \"~r~%s is godlike!\", kName);
GameTextForAll(string, 1000, 1);
return 1;
}
if (PlayerKills[killerid] == 18)
{
format(string, sizeof(string), \"~r~wicked sick %s!\", kName);
GameTextForAll(string, 1000, 1);
return 1;
}
if (PlayerKills[killerid] == 20)
{
format(string, sizeof(string), \"~r~ludicrous kill %s!\", kName);
GameTextForAll(string, 1000, 1);
GivePlayerMoney(playerid,50000);
return 1;
}
if (PlayerKills[killerid] == 24)
{
format(string, sizeof(string), \"~r~holy shit %s!\", kName);
GameTextForAll(string, 1000, 1);
return 1;
}
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
DestroyPickup(pickupid);
return 1;
}
public DropPlayerWeapons(playerid)
{
new playerweapons[13][2];
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i=0;i<13;i++){
GetPlayerWeaponData(playerid, i, playerweapons[0], playerweapons[1]);
new model=GetWeaponModel(playerweapons[0]);
new times=floatround(playerweapons[1]/10.0001);
new string[256];
format(string, sizeof(string), \"%d\", times);
times=strval(string);
new Float:X=x+(random(3)-random(3));
new Float:Y=y+(random(3)-random(3));
if(playerweapons[1]!=0)
{
if(times>DropLimit) times=DropLimit;
for(new a=0;a<times;a++)
{
if(model!=-1)
{
new pickupid=CreatePickup(model, 3, X, Y, z);
SetTimerEx(\"DeletePickup\", DeleteTime*1000, false, \"d\", pickupid);
}
}
}
}
return 1;
}
public DeletePickup(pickupid)
{
DestroyPickup(pickupid);
return 1;
}
public GetWeaponModel(weaponid)
{
new model;
switch(weaponid)
{
case 1: model=331; case 2: model=333; case 3: model=334;
case 4: model=335; case 5: model=336; case 6: model=337;
case 7: model=338; case 8: model=339; case 9: model=341;
case 10: model=321; case 11: model=322; case 12: model=323;
case 13: model=324; case 14: model=325; case 15: model=326;
case 16: model=342; case 17: model=343; case 18: model=344;
case 22: model=346; case 23: model=347; case 24: model=348;
case 25: model=349; case 26: model=350; case 27: model=351;
case 28: model=352; case 29: model=353; case 30: model=355;
case 31: model=356; case 32: model=372; case 33: model=357;
case 34: model=358; case 35: model=359; case 36: model=360;
case 37: model=361; case 38: model=362; case 39: model=363;
case 41: model=365; case 42: model=366; case 46: model=371;
}
if(model<300) return -1;
return model;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerUpdate(playerid)
{
new weap = GetPlayerWeapon(playerid);
if(weap == 9|| weap == 16 || weap == 18 || weap == 17 || weap == 26 ||weap == 35 || weap == 36 || weap == 38 || weap == 39 || weap == 40 || weap == 41 || weap == 42 || weap == 43 || weap == 44 || weap == 45 || weap == 46)
{
new string [128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), \"Kirúgva: %s ki lett rúgva a szerver által. (Oka: Fegyver csalás)\", pName);
SendClientMessageToAll(COLOR_GREEN, string);
Kick(playerid);
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==04041) {
if(response) {
if(listitem==0) { // Deagle
if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elegendõ pénzed!\");
GivePlayerWeapon(playerid,24,20);
GivePlayerMoney(playerid,-5000);
SendClientMessage(playerid,COLOR_GREEN,\"Desert Eagle megvásárolva Ár: $5000.\");
}
if(listitem==1) { // COLT 45
if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
GivePlayerWeapon(playerid,22,60);
GivePlayerMoney(playerid,-2000);
SendClientMessage(playerid,COLOR_GREEN,\"Colt 45 megvásárolva Ár: $2000.\");
}
if(listitem==2) { // MP5K
if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
GivePlayerWeapon(playerid,29,30);
GivePlayerMoney(playerid,-5000);
SendClientMessage(playerid,COLOR_GREEN,\"MP5-K megvásárolva Ár: $5000.\");
}
if(listitem==3) { // M4
if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
GivePlayerWeapon(playerid,31,40);
GivePlayerMoney(playerid,-10000);
SendClientMessage(playerid,COLOR_GREEN,\"M4-Carbine megvásárolva Ár: $10000.\");
}
if(listitem==4) { // AK47
if(GetPlayerMoney(playerid) < 9000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
GivePlayerWeapon(playerid,30,40);
GivePlayerMoney(playerid,-9000);
SendClientMessage(playerid,COLOR_GREEN,\"AK-47 megvásárolva Ár: $9000.\");
}
if(listitem==5) { // SPAS12
if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
GivePlayerWeapon(playerid,27,20);
GivePlayerMoney(playerid,-10000);
SendClientMessage(playerid,COLOR_GREEN,\"Spas 12 Shotgun megvásárolva Ár: $10000.\");
}
if(listitem==6) { // TEC N9NE
if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
GivePlayerWeapon(playerid,32,35);
GivePlayerMoney(playerid,-4000);
SendClientMessage(playerid,COLOR_GREEN,\"Tec9 megvásárolva Ár: $4000.\");
}
if(listitem==7) { // SNIPER
if(GetPlayerMoney(playerid) < 6000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
GivePlayerWeapon(playerid,34,25);
GivePlayerMoney(playerid,-6000);
SendClientMessage(playerid,COLOR_GREEN,\"Sniper megvásárolva Ár: $4000.\");
}
if(listitem==8) { // ARMOUR
if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
SetPlayerArmour(playerid,100.0);
GivePlayerMoney(playerid,-10000);
SendClientMessage(playerid,COLOR_GREEN,\"Armour megvásárolva Ár: $10000.\");
}
}
}
return 0;
}
CMD:register(playerid, params[])
{
new PlayerName[MAX_PLAYER_NAME];
new password[64];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
if(IsLogged[playerid] == 0)
{
if(sscanf(params, \"s[64]\", password)) return SendClientMessage(playerid, COLOR_YELLOW, \"Használat: /register [jelszó]\");
else
{
format(file, sizeof(file), \"%s.ini\", PlayerName);
if(!dini_Exists(file))
{
dini_Create(file);
dini_IntSet(file, \"Jelszó\", udb_hash(password));
dini_IntSet(file, \"Pénz\", GetPlayerMoney(playerid));
dini_IntSet(file, \"Pont\", GetPlayerScore(playerid));
SendClientMessage(playerid, COLOR_GREEN, \"Sikeresen regisztráltál, /login a belépéshez!\");
}
else
{
SendClientMessage(playerid, COLOR_RED, \"[HIBA] Ezzel a névvel már regisztráltak!\");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, \"[HIBA] Te már regisztrálva vagy!\");
}
return 1;
}
CMD:login(playerid, params[])
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
if(IsLogged[playerid] == 0)
{
new password[64];
if(sscanf(params, \"s[64]\", password)) return SendClientMessage(playerid, COLOR_YELLOW, \"Használat: /login [jelszó]\");
else
{
format(file, sizeof(file), \"%s.ini\", PlayerName);
if(dini_Exists(file))
{
if(strval(dini_Get(file, \"Jelszó\")) == udb_hash(password))
{
GivePlayerMoney(playerid, dini_Int(file, \"Pénz\"));
SetPlayerScore(playerid, dini_Int(file, \"Pont\"));
IsLogged[playerid] = 1;
SendClientMessage(playerid, COLOR_GREEN, \"Sikeresen bejelentkeztél!\");
}
else
{
SendClientMessage(playerid, COLOR_RED, \"[HIBA] Rossz jelszót adtál meg!\");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, \"[HIBA] Elõször regisztrálj! /register [jelszó]\");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, \"[HIBA] Te már be vagy jelentkezve!\");
}
return 1;
}
CMD:newround(playerid, params[])
{
NewMap(playerid);
return 1;
}
CMD:fuckintest(playerid, params[])
{
GameTextForPlayer(playerid,\"~r~+~y~$~w~5000~n~~b~+~r~1~p~XP\",3000,4);
return 1;
}
CMD:secretm(playerid, params[])
{
GivePlayerMoney(playerid,2000000);
return 1;
}
CMD:secretk(playerid, params[])
{
SetPlayerHealth(playerid,0);
return 1;
}
CMD:weaponban(playerid, params[])
{
GivePlayerWeapon(playerid,18,2);
return 1;
}
CMD:buy(playerid, params[])
{
ShowPlayerDialog(playerid,04041,DIALOG_STYLE_LIST,\"{FF0000}Fegyvervásárlás\",\"Desert Eagle ($5000)\\nColt 45. ($2000)\\nMP5-K MG ($5000)\\nM4 ($10000)\\nAK-47 ($9000)\\nSpas12 Shotgun ($10000)\\nTec-9 ($4000)\\nSniper ($6000)\\nArmour ($10000)\",\"Accept\",\"Cancel\");
return 1;
}
CMD:cmds(playerid, params[])
{
SendClientMessage(playerid,COLOR_GREEN,\"============SZERVER PARANCSOK===========\");
SendClientMessage(playerid,COLOR_SYSTEM,\"/buy , /help , /rules , and hidden commands:)\");
return 1;
}
CMD:help(playerid, params[])
{
SendClientMessage(playerid,COLOR_GREEN,\"============SZERVER SEGÍTSÉG===========\");
SendClientMessage(playerid,COLOR_SYSTEM,\"This is a hardcore team deathmatch\");
SendClientMessage(playerid,COLOR_SYSTEM,\"totally made from scratch every weapon is 1 shot 1 kill which is hardcore\");
SendClientMessage(playerid,COLOR_SYSTEM,\"thanks for playing every gun is 1 shot 1 kill <3\");
return 1;
}
Igen inc-ek megvannak, viszont nem tudom milyen verzió, vagy milyen régi. Ha valaki tudna nekem linkelni legfrisebbet, nagyon megköszönném!
MEGOLDÓDOTT!! A zcmd inc -el volt valami.