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

Меню сайта

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

Мини-чат

Статистика


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

[GM] Los Venturas Village Party
03.12.2008, 17:31

#include /* LV-VP by Dragon */ #define GANG 0 #define HIPP 1 #define RAPE 2 new gPlayerClass[MAX_PLAYERS]; static gTeam[MAX_PLAYERS]; new Menu:ChangeGang[MAX_PLAYERS]; main() { print("-----------------------------------"); print(" Los Venturas Village Party Loaded "); print(" By Dragon "); print("-----------------------------------"); } public OnGameModeInit() { SetTeamCount(3); UsePlayerPedAnims(); SetGameModeText("LV-VP"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 22, 100, 30, 250, 26, 100); AddPlayerClass(1, 1958.3783, 1343.1572, 15.3746, 269.1425, 24, 50, 31, 250, 25, 50); AddPlayerClass(2, 1958.3783, 1343.1572, 15.3746, 269.1425, 23, 50, 30, 250, 27, 50); AddStaticVehicle(549,1664.9030,2575.6099,10.5176,0.1765,72,39); AddStaticVehicle(411,1629.7365,2601.6926,10.5552,181.6157,123,1); AddStaticVehicle(541,1568.2681,2578.3145,10.4454,1.4445,58,8); AddStaticVehicle(402,1477.7487,2605.7231,10.5406,225.0726,13,13); AddStaticVehicle(481,1404.9854,2580.4937,10.3373,1.6905,3,3); AddStaticVehicle(522,1350.1033,2599.7861,10.3880,265.6270,6,25); AddStaticVehicle(542,1295.9565,2600.2529,10.5631,180.2499,24,118); AddStaticVehicle(429,1236.2472,2609.0286,10.4958,270.9732,13,13); AddStaticVehicle(515,1369.1533,2694.3269,11.8322,179.3050,24,77); AddStaticVehicle(448,1369.7039,2652.2905,10.4187,177.3471,3,6); AddStaticVehicle(426,1296.6198,2650.2402,10.5625,357.9203,42,42); AddStaticVehicle(461,1591.4373,2743.6873,10.4047,273.2681,37,1); /* Map */ CreateObject(13641, 1246.734619, 2653.776123, 11.191122, 0.0000, 0.0000, 270.6186); CreateObject(13641, 1247.878662, 2614.743896, 11.173920, 0.0000, 0.0000, 89.3814); CreateObject(13590, 1227.652832, 2671.641602, 11.046173, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1247.453369, 2704.977051, 10.719196, 0.0000, 0.0000, 0.0000); CreateObject(3364, 1265.782227, 2713.224854, 9.627899, 0.0000, 0.0000, 0.0000); CreateObject(3625, 1318.178467, 2713.149170, 12.157057, 0.0000, 0.0000, 0.0000); CreateObject(13666, 1366.203491, 2712.898438, 14.552201, 0.8594, 0.0000, 92.8191); CreateObject(13642, 1337.215576, 2673.949463, 11.692369, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1264.370483, 2672.378662, 10.867636, 0.0000, 0.0000, 91.1002); CreateObject(18451, 1263.178833, 2590.122803, 10.184301, 0.0000, 0.0000, 87.6625); CreateObject(1682, 1422.474365, 2613.354248, 23.881498, 345.3896, 0.0000, 177.9037); CreateObject(13666, 1317.707642, 2589.688477, 15.152192, 1.7189, 335.9358, 84.2247); CreateObject(17565, 1442.918213, 2693.056641, 11.838979, 0.0000, 0.0000, 0.0000); CreateObject(13648, 1399.956543, 2713.851074, 9.723597, 0.0000, 0.0000, 91.1002); CreateObject(13643, 1357.884033, 2590.077148, 10.850691, 0.0000, 0.0000, 0.0000); CreateObject(1503, 1388.941040, 2606.404785, 9.848795, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1438.160522, 2585.846191, 10.719196, 0.0000, 359.1406, 237.9600); CreateObject(1634, 1494.565674, 2593.560059, 10.676995, 0.0000, 359.1406, 288.6668); CreateObject(1660, 1478.125000, 2580.094727, 9.385208, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1588.508057, 2623.926025, 10.676994, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1588.530640, 2632.025635, 12.245741, 335.0763, 0.8594, 0.0000); CreateObject(1634, 1588.578369, 2639.842773, 9.909786, 306.7150, 0.8594, 0.0000); CreateObject(3363, 1554.326538, 2589.614258, 9.632232, 0.0000, 0.0000, 0.0000); CreateObject(1632, 1541.979004, 2683.146484, 10.679789, 0.0000, 0.0000, 37.8152); CreateObject(1632, 1516.479736, 2716.235352, 10.721992, 0.0000, 0.0000, 37.8152); return 1; } public OnPlayerRequestClass(playerid, classid) { gPlayerClass[playerid] = classid; switch (classid) { case 0: { SetPlayerTeam(playerid, 0); gTeam[playerid] = GANG; SetPlayerPos(playerid, 1436.9370,2574.5933,14.5147); SetPlayerFacingAngle(playerid,220.0); SetPlayerCameraPos(playerid, 1438.4033,2572.8628,15.3342); SetPlayerCameraLookAt(playerid, 1436.9370,2574.5933,14.5147); GameTextForPlayer(playerid, "~r~Gangsters", 500, 3); PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0); } case 1: { SetPlayerTeam(playerid, 1); gTeam[playerid] = HIPP; SetPlayerPos(playerid, 1396.0446,2578.1526,14.1344); SetPlayerFacingAngle(playerid,180.0); SetPlayerCameraPos(playerid, 1396.1730,2575.7048,14.1344); SetPlayerCameraLookAt(playerid, 1396.0446,2578.1526,14.1344); GameTextForPlayer(playerid, "~b~Hippys", 500, 3); PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0); } case 2: { SetPlayerTeam(playerid, 2); gTeam[playerid] = RAPE; SetPlayerPos(playerid, 1411.8503,2615.5996,11.3926); SetPlayerFacingAngle(playerid,15.0); SetPlayerCameraPos(playerid, 1411.3918,2618.1499,11.3926); SetPlayerCameraLookAt(playerid, 1411.8503,2615.5996,11.3926); GameTextForPlayer(playerid, "~g~Rapests", 500, 3); PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0); } } return 1; } public OnPlayerConnect(playerid) { SetPlayerColor(playerid,0xFFFFFFAA); new string[256], pname[250]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s Has Joined Los Venturas Village Party", pname); SendClientMessageToAll(0xFF9900AA, string); SendClientMessage(playerid, 0xFF9900AA, "Commands: /Kill And /ChangeGang"); return 1; } public OnPlayerDisconnect(playerid, reason) { new pname[400], string[500]; GetPlayerName(playerid, pname, sizeof(pname)); if(reason == 0) { format(string, sizeof(string), "%s Has Crashed From Los Venturas Village Party", pname); SendClientMessageToAll(0xFF9900AA, string); print(string); } else if(reason == 1) { format(string, sizeof(string), "%s Has Left Los Venturas Village Party", pname); SendClientMessageToAll(0xFF9900AA, string); print(string); } else if(reason == 2) { format(string, sizeof(string), "%s Has Been Kicked From Los Venturas Village Party", pname); SendClientMessageToAll(0xFF9900AA, string); print(string); } return 1; } public OnPlayerSpawn(playerid) { PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0); SetPlayerWorldBounds(playerid, 1689.259, 1177.724, 2738.112, 2513.764); new spawn=random(9); if (spawn==0) {SetPlayerPos(playerid,1668.4330,2582.5112,10.8203);} else if (spawn==1) {SetPlayerPos(playerid,1623.1469,2603.4294,10.8203);} else if (spawn==2) {SetPlayerPos(playerid,1581.6426,2580.9207,10.8203);} else if (spawn==3) {SetPlayerPos(playerid,1576.6484,2633.9551,10.8203);} else if (spawn==4) {SetPlayerPos(playerid,1593.3226,2681.3611,10.8203);} else if (spawn==5) {SetPlayerPos(playerid,1468.4064,2688.9363,10.6719);} else if (spawn==6) {SetPlayerPos(playerid,1378.8618,2649.4839,10.8203);} else if (spawn==7) {SetPlayerPos(playerid,1369.5055,2594.6460,10.6797);} else {SetPlayerPos(playerid,1297.1750,2583.8384,10.7696);} if(gTeam[playerid] == GANG) { SetPlayerColor(playerid,0xAA3333AA); SetPlayerHealth(playerid, 100); } else if(gTeam[playerid] == HIPP) { SetPlayerColor(playerid,0x0000BBAA); SetPlayerHealth(playerid, 100); } else if(gTeam[playerid] == RAPE) { SetPlayerColor(playerid,0x33AA33AA); SetPlayerHealth(playerid, 100); } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/Kill", cmdtext, true) == 0) { SetPlayerHealth(playerid, 0); return 1; } if (strcmp("/ChangeGang", cmdtext, true) == 0) { ChangeGang[playerid] = CreateMenu("Select:",2,200,100,150,75); AddMenuItem(ChangeGang[playerid], 0, "Gangsters"); AddMenuItem(ChangeGang[playerid], 0, "Hippys"); AddMenuItem(ChangeGang[playerid], 0, "Rapests"); SetMenuColumnHeader(ChangeGang[playerid], 0, "What Gang?"); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(ChangeGang[playerid], playerid); return 1; } return 0; } public OnPlayerSelectedMenuRow(playerid, row) { new Menu:Main1 = GetPlayerMenu(playerid); if (Main1 == ChangeGang[playerid]) { { switch (row) { case 0:{ ResetPlayerWeapons(playerid); SetPlayerColor(playerid,0xAA3333AA); GivePlayerWeapon(playerid, 22, 100); GivePlayerWeapon(playerid, 30, 250); GivePlayerWeapon(playerid, 26, 100); SetPlayerTeam(playerid, 0); gTeam[playerid] = GANG; SetPlayerSkin(playerid, 0); TogglePlayerControllable(playerid, 1);} case 1:{ ResetPlayerWeapons(playerid); SetPlayerColor(playerid,0x0000BBAA); GivePlayerWeapon(playerid, 24, 50); GivePlayerWeapon(playerid, 31, 250); GivePlayerWeapon(playerid, 25, 50); SetPlayerTeam(playerid, 1); gTeam[playerid] = HIPP; SetPlayerSkin(playerid, 1); TogglePlayerControllable(playerid, 1);} case 2:{ ResetPlayerWeapons(playerid); SetPlayerColor(playerid,0x33AA33AA); GivePlayerWeapon(playerid, 23, 50); GivePlayerWeapon(playerid, 30, 250); GivePlayerWeapon(playerid, 27, 50); SetPlayerTeam(playerid, 2); gTeam[playerid] = RAPE; SetPlayerSkin(playerid, 2); TogglePlayerControllable(playerid, 1);}}} } return 1; } public OnPlayerExitedMenu(playerid) { TogglePlayerControllable(playerid, 1); return 1; } public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); new tmp[255],player[24]; GetPlayerName(playerid,player,sizeof(player)); format(tmp,sizeof(tmp),"%s Has Been Owned",player,playerid); SendClientMessageToAll(0xFF9900AA,tmp); }

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

Вход на сайт

Поиск