GTA-SAMP
Каталог файлов

Меню сайта

Категории раздела

Мини-чат

Статистика


Онлайн всего: 1
Гостей: 1
Пользователей: 0

[GM]Black City |DM|
03.12.2008, 17:22

#include static gTeam[MAX_PLAYERS]; new gPlayerClass[MAX_PLAYERS]; new COL_CMD; new gRoundTime = 300000; new stringcmd[256]; new pname[MAX_PLAYER_NAME]; #define CZK 0 #define ZK 1 main() { print("\n-----------------------------------------------"); print(" Black City |DM| - By **HITMEN**"); print("-----------------------------------------------\n"); } public OnGameModeInit() { SetGameModeText("Black City |DM|"); SetTeamCount(2); ShowNameTags(1); ShowPlayerMarkers(1); SetWorldTime(23); //-----------------------------Counter Zombie Killer's------------------- AddPlayerClass(126, 2330.79, -2.32, 26.54, 357.02, 25, 500, 22, 500, 4, 500); // CZK1 AddPlayerClass(11, 2330.79, -2.32, 26.54, 357.02, 25, 500, 22, 500, 4, 500); // CZK2 AddPlayerClass(113, 2330.79, -2.32, 26.54, 357.02, 25, 500, 22, 500, 4, 500); // CZK3 AddPlayerClass(103, 2330.79, -2.32, 26.54, 357.02, 25, 500, 22, 500, 4, 500); // CZK4 //-----------------------------Zombie Killer's--------------------------- AddPlayerClass(77, 2319.10, 38.86, 26.48, 269.60 , 4, 500, 32, 500, 44, 500); // ZK1 AddPlayerClass(78, 2319.10, 38.86, 26.48, 269.60 , 4, 500, 32, 500, 44, 500); // ZK2 AddPlayerClass(181, 2319.10, 38.86, 26.48, 269.60 , 4, 500, 32, 500, 44, 500); // ZK3 AddPlayerClass(137, 2319.10, 38.86, 26.48, 269.60 , 4, 500, 32, 500, 44, 500); // ZK4 //-----------------------------Vehicules-Obstacles------------------ AddStaticVehicle(574, 2346.88, 1.48, 26.33, 1.36 , 0, 0); AddStaticVehicle(574, 2346.78, 5.85, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2346.61, 12.96, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2346.43, 20.35, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2346.28, 26.61, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2346.10, 34.32, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2345.95, 40.46, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2345.80, 46.95, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2345.69, 51.33, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2345.53, 58.13, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2345.38, 64.40, 26.33, 1.36, 0, 0); AddStaticVehicle(574, 2345.25, 69.90, 26.33, 1.36, 0, 0); AddStaticVehicle(442, 2319.56, 67.30, 26.48, 179.02, 0, 0); SetTimer("GameModeExitFunc", gRoundTime, 0); return 1; } public OnPlayerConnect(playerid) { GameTextForPlayer(playerid,"Welcome To My Zombie's Server",10000,5); SendClientMessage(playerid,0x0000BBAA,"**********************************"); SendClientMessage(playerid,0x0000BBAA,"Black City |DM|!"); SendClientMessage(playerid,0x0000BBAA,"Run And Kill Zombie's If You Can"); SendClientMessage(playerid,0x0000BBAA,"**********************************"); SendClientMessage(playerid,0xAA3333AA,"For help type /help."); GivePlayerMoney(playerid, 0); SetPlayerColor(playerid, 0xAFAFAFAA); // Set player color to grey return 1; } public OnPlayerSpawn(playerid) { SetPlayerInterior(playerid,0); if(gTeam[playerid] == CZK) { SetPlayerColor(playerid,0x33CCFFAA); } else if(gTeam[playerid] == ZK) { SetPlayerColor(playerid,0xAA3333AA); } return 1; } public OnPlayerDeath(playerid, killerid, reason) { if(killerid == INVALID_PLAYER_ID) { SendDeathMessage(INVALID_PLAYER_ID,playerid,reason); } else { if(gTeam[killerid] != gTeam[playerid]) { // Valid kill SendDeathMessage(killerid,playerid,reason); SetPlayerScore(killerid,GetPlayerScore(killerid)+1); GivePlayerMoney(killerid, 1000); } else { //TK! new warning[256]; format(warning, sizeof(warning), "Warning ! You have been punished for teamkill don't kill team."); SendClientMessage(killerid, 0xFFFF00AA, warning); SendDeathMessage(killerid,playerid,reason); SetPlayerScore(killerid, GetPlayerScore(killerid) - 1); } } return 1; } public SetupPlayerForClassSelection(playerid) { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,258.4893,-41.4008,1002.0234); SetPlayerFacingAngle(playerid, 90.0); SetPlayerCameraPos(playerid,256.0815,-43.0475,1003.0234); SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); } //********************************************************** public OnPlayerRequestClass(playerid, classid) { SetPlayerClass(playerid, classid); SetupPlayerForClassSelection(playerid); gPlayerClass[playerid] = classid; switch (classid) { case 0: { GameTextForPlayer(playerid, "~g~Counter Zombie killer's", 500, 3); } case 1: { GameTextForPlayer(playerid, "~g~Counter Zombie killer's", 500, 3); } case 2: { GameTextForPlayer(playerid, "~g~Counter Zombie killer's", 500, 3); } case 3: { GameTextForPlayer(playerid, "~g~Counter Zombie killer's", 500, 3); } case 4: { GameTextForPlayer(playerid, "~g~Zombie Killer's", 500, 3); } case 5: { GameTextForPlayer(playerid, "~g~Zombie Killer's", 500, 3); } case 6: { GameTextForPlayer(playerid, "~g~Zombie Killer's", 500, 3); } case 7: { GameTextForPlayer(playerid, "~g~Zombie Killer's", 500, 3); } } return 1; } //************************************************* public OnGameModeExit() { print("GameModeExit()"); return 1; } SetPlayerClass(playerid, classid) { if(classid == 0) { gTeam[playerid] = CZK; } else if(classid == 1) { gTeam[playerid] = CZK; } else if(classid == 2) { gTeam[playerid] = CZK; } else if(classid == 3) { gTeam[playerid] = CZK; } else if(classid == 4) { gTeam[playerid] = ZK; } else if(classid == 5) { gTeam[playerid] = ZK; } else if(classid == 6) { gTeam[playerid] = ZK; } else if(classid == 7) { gTeam[playerid] = ZK; } } public OnPlayerDisconnect(playerid) { printf("OnPlayerDisconnect(%d)", playerid); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/help", true)==0) { SendClientMessage(playerid,0xFF9900AA,"Kill Zombie's and Run but don't kill your team"); return 1; } else if(strcmp(cmdtext, "/shotgun", true) == 0) { GivePlayerWeapon(playerid, 25, 120); return 1; } else if(strcmp(cmdtext, "/pistol", true) == 0) { GivePlayerWeapon(playerid, 22, 120); return 1; } else if(strcmp(cmdtext, "/hp", true) == 0) { if(IsPlayerAdmin(playerid) == 1) { SetPlayerHealth(playerid, 100); return 1; } else { return 0; } return 1; } }

Категория: SAMP modes | Добавил: gta-samp
Просмотров: 655 | Загрузок: 0 | Рейтинг: 0.0/0
Всего комментариев: 0
Имя *:
Email *:
Код *:

Вход на сайт

Поиск