10.08.2014, 10:19
(
Последний раз редактировалось Excel™; 21.02.2015 в 07:59.
)
[COD7]
CALL OF DUTY 7
Created by Excel
Version: 3.0
UPDATED(ver3.0), added an advance weapon drop and wanted drops system, when player dies, pickups are created. Fixed anti-ads, anti-swear, anti-spam systems. Fixed player 3D text labels. Fixed /write and /spam commands.
UPDATED(ver2.5), Added donor commands list via /dcmds and /dhelp. Fixed Headshots(only Sniper class can perform headshots). Fixed some minor bugs.
UPDATED(ver2.1), Added player objects(attachments), fixed some stuff.
NOTE: the script is still in development, If there are bugs, then please report them as i will fix them.
DOWNLOAD
UPDATE(3.0)http://speedy.sh/nfSSy/COD7ver3.zip
UPDATE(ver2.5) http://www.solidfiles.com/d/3ca22a85bb/COD7.zip
UPDATE(ver2.1) http://www.solidfiles.com/d/55dea175b0/COD7.zip
Credits
If i have missed someone, then please forgive me, it might by my absence state of mind or i just forgot or i don't know the name of the guy who actually is worth of the credits.CALL OF DUTY 7
Created by Excel
Version: 3.0
UPDATED(ver3.0), added an advance weapon drop and wanted drops system, when player dies, pickups are created. Fixed anti-ads, anti-swear, anti-spam systems. Fixed player 3D text labels. Fixed /write and /spam commands.
UPDATED(ver2.5), Added donor commands list via /dcmds and /dhelp. Fixed Headshots(only Sniper class can perform headshots). Fixed some minor bugs.
UPDATED(ver2.1), Added player objects(attachments), fixed some stuff.
NOTE: the script is still in development, If there are bugs, then please report them as i will fix them.
DOWNLOAD
UPDATE(3.0)http://speedy.sh/nfSSy/COD7ver3.zip
UPDATE(ver2.5) http://www.solidfiles.com/d/3ca22a85bb/COD7.zip
UPDATE(ver2.1) http://www.solidfiles.com/d/55dea175b0/COD7.zip
Credits
Excel - for creating script from scratch
Luxurion - For lux admin, i edited it to its extent
Kyance - Squad system
Incognito -Streamer
beaz - For awesome bordered and numbered gangzones
Toribo - Progress bar
Zeex - Zcmd command processor
****** - Foreach
FEATURES
- DYNAMIC TEAM SYSTEM:
- The team selection is same as SA-MP provides with clickable textdraws. Yes, the team selection has very stylish and clean textdraws with all the necessary information you need to know about the team you have selected. There are total 15 teams and you can edit everything about the teams in the script easily. See the section given above "How to edit script?".
- DYNAMIC SPAWN SYSTEM:
- Every team has its own base, so there are not very well mapped bases, just few objects as no-one has concern about MAPS especially in TDM or may someone have! Every team has 5 random positions of spawn and you can edit them too. See the section given above "How to edit script?".
- ANTI-SPAWNKILL SYSTEM:
- AS like every server has it, its there in this script too, Anti-spawnkill timer is set to 10 seconds, You can edit this timer. See the section given above "How to edit script?".
- ADVANCE CLASS SYSTEM:
- The script contains 10 classes including the VIP. / DONOR class,. Every class has ints own ability and own requirements, You have to rank-up to choose higher classes. To change your class anytime, go to your base and pickup the class pickup marked with CLOTHS mapicon. You can get class help through /Classhelp and you can also check your class through /Class.
- CLASSES INFO.:
- The Support Class, its a basic class for newbies in the server. Don't have any special ability.
- The Sniper Class, this class requires rank:2. The ability of sniper is stealth mode, the player is invisible on map for enemies but the team mates are able to see him/her.
- The Medic Class, Requires rank:3, /Heal teammates, another way of healing is AIMING teammates and then press MMB and for self healing, /Med.
- The Pyroman Class, Requires rank:3, flaming class.
- The Jet-Trooper Class, Requires rank:5, Can spawn Jetpack via /Jp.
- The Scout Class, Requires rank:5, this class is popularly known for its detection of enemies, You can detect enemy SPYs and SNIPERs with this class via /Detect.
- The Technision Class, Requires rank:5, This class is for driving Hunter and Hydras.
- The SPY Class, Most used class, Requires rank:10. You can disguise to enemy Miltant via /Dis and for becoming back your team, type /Undis. You can also stab enemy drivers in a vehicle through pressing "KEY_SUBMISSION" when you are a passenger.
- The Sucider Class, Requires rank:10, This class can drive suciding vehicles and When the player dies, it automatically explodes and the player near him/her who dies, you get the reward for that.
- The DONOR Class, Requires VIP. status. This class have super weapons and you can drive hunters, hydras and tanks with this class. A special command known as /Hide.You can Heal teammates via /Heal and Also get to heal yourself through /Med.
- ADVANCE TEAM INFO. SYSTEM:
- This system let you know everything about the time, actually this tells about the TeamName, TeamColor, TurfsWonCount, TurfsLostCount, TeamKills, TeamDeaths, TeamScore, TeamTurfsOwned, and TeamSkin. So if you are editing the script, this makes you easy to add/remove/edit stuff. You can also check your team stats through /Myteam and for other teams /Teams.
- TURFS SYSTEM:
- NOW this is one of the advance and core feature of the script. The turfwar system allows you to capture zones in a gangster way. To learn how this works, type /Trufhelp. To add/remove/edit, turfs you should read the section above given "How to edit script?". You can also check turfs info. by /Turfs, this will show you all the turfs related to your team. By /Findwar, you can findout which turf of yours is underattack. You can also edit the turf settings by reading the section above given "How to edit script?".
- DEATH SYSTEM:
- This system works accordingly with the server. There is wanted level system, server sends message when wanted level is reached, Sucider system, squad edits, and lost more...
- SHOP SYSTEM:
- This system is simply about game shop, I have only created Ammunition shop yet and if you want to edit, then simply change it accordingly.
- SQUAD SYSTEM:
- The squad system, you can create, edit, join, and leave. You can also check out squad help by /shelp. Thanks to Kyance for squad system and edited by me.
- RANK SYSTEM:
- The script works with total 20 ranks where each rank have its own info, You can edit them simply, just check out "How to edit script?".
- TEXTDRAWS:
- The script is full of textdraws, not collapsing or too much, but the class and team selection let me make textdraws much, You can also send game Textdraw message to players, There is an external chat view or window when you plays. Clickable team and class selection makes this game unique.
- ANIMATIONS:
- The script contains 156+ animations, all with zcmd command processor and an interactive and easy to read animation dialog to read all the anims easily.
- DONOR SYSTEM:
- The donor system works accordingly with eAdmin script, There are total 3 donor or VIP levels. You can set VIP level of player by /Setvip, a command from eAdmin. The vip system or Donor features are built in COD7 gamemode script and vars are from eAdmin filterscipt. VIPs can generally spawn Cars, bikes, add nos, add hydraulics, Supply goods to teammates in range, add armor, add health, get ammo, set time, set weather, and lots.
- DEATHMATCH SYSTEM:
- The deathmatches are given in the dialog listed above:
pawn Код:CMD:joindm(playerid, params[])
{
if(dm[playerid]==0)
{
ShowPlayerDialog(playerid,DIALOG_DM,DIALOG_STYLE_LIST,"Server deathmatches:",
"Player Deathmatch\n\
Sniper Warfare\n\
Minigun Madness",
"Join","Close");
} else SendClientMessage(playerid, red,"[ ERROR: You are already in deathmatch, type /Leavedm to use this command. ]");
return 1;
}
- The deathmatches are given in the dialog listed above:
- Awesome headshot system with anti headshot helmet system.
- Awesome Spy pawner pack and antiteargas system.
- SCRIPT COMMANDS.
- PLAYER CMDS:
/findwar, /turfs, /trufshelp, /teams, /credits, /kill, /myteam - CLASS CMDS:
/classhelp, /med, /jp, /dis, /undis, /detect, /drivers, /st, /sc, /admins, /pm, /richlist - ADMIN CMDS:
/observations, /level (1/2/3/4/5), /reports, /ban, /unban, /tempban - DONOR CMDS:
/donors, /dhelp , /dcmds, /donate, /dbike, /dheal, /dmed, /dclass - GENERAL CMDS:
/admins, /donors, /pm, ,/dnd /hi, /register, /login, /changepass
/getid, /report, /stats, /time, /resetstats - IMPORTANT CMDS:
/rules, /register, /login, /changepass - SQUAD CMDS:
/shelp, /sjoin, /sleave, /squads, /sinfo, /sedit
- PLAYER CMDS:
- DONOR SYSTEM.
- DONOR SYSTEM:
The script donor system is having a maximum of 3 levels, /setvip (id) (level)! - DONOR CMDS:
/Dmed, /dbike, /dcar, /dbmx, /dboat, /dammo, /dskin, /dnos, /dhyd, /dsucide, /dsupply, /darmor, /dtime, /dweather - DONORS can also use DONOR class!
- DONOR SYSTEM:
IMAGES
To checkout the game album, go to link (http://imgur.com/a/rVT6d#0) or simply view these photos given via the link. Thanks to IMGUR (www.imgur.com) for their awesome image hosting.- http://imgur.com/3UlZUgV
- http://imgur.com/YHdIBWV
- http://imgur.com/VOMfydm
- http://imgur.com/FxNjPU9
- http://imgur.com/XH3fAFo
- http://imgur.com/fCBNiAD
- http://imgur.com/HUaJ8a1
- http://imgur.com/GfTqkyD
- http://imgur.com/0fcv5aQ
- http://imgur.com/SismDdJ
- http://imgur.com/eHABqjt
- http://imgur.com/jHsH0rX
- http://imgur.com/8KziRBP
- http://imgur.com/Z2QEKF1
- http://imgur.com/O4oIEOa
- http://imgur.com/PVQi9gm
- http://imgur.com/3Mv0Lbn
- http://imgur.com/SQ4QKDB
- http://imgur.com/vDUJhQy
- http://imgur.com/d6XHChF
- http://imgur.com/iYPBWSK
- http://imgur.com/BPRYhPr
- http://imgur.com/T8wvdpd
- http://imgur.com/pFKOLXL
- http://imgur.com/md6rpJp
- http://imgur.com/491XKFv
- http://imgur.com/aYG0JFD
How to edit script?
Server settings:pawn Код:
/*------------------------------------------------------
-> Server settings
------------------------------------------------------*/
//------------------------------------------------
#define SLOTS 100
// how many slots the server got.
//------------------------------------------------
#define ATTACK_TIME 2
// How many minutes
//------------------------------------------------
#define STANDINTURF_TIME 20000
// Twenty secs (Always some extra secs are added because of the CheckPlayers timer)
//------------------------------------------------
#define ATTACK_KILLS 2
// Kills to start a turfwar
//------------------------------------------------
#define MEMBERS_NEEDED 1
// Members in turf to start turfwar
//------------------------------------------------
#define TEAMSCORE 500
// Teamscore to take over all the opponends turf.
//------------------------------------------------
#define MAX_TURFS 60
// The amount of turfs in the game.
//------------------------------------------------
#define MAX_TEAMS 15
// The amount of teams in the game.
//------------------------------------------------
#define MAX_RANKS 20
// The amount of ranks in the game.
//------------------------------------------------
#define MAX_SHOPS 100
// The amount of shops in the game.
//------------------------------------------------
#define SERVER_NAME "[COD7 - ver2.1] Los Santos"
//Server hostname
//------------------------------------------------
#define SERVER_WEBSITE "www.Sampindia.com"
//Server website/forums
//------------------------------------------------
#define SERVER_MODE "[COD7-TDM] by Excel"
//Server gamemode name
//------------------------------------------------
#define WIN_SCORE 5
//Score given when a team wins a turf
//------------------------------------------------
#define USE_DIALOGS true
//Enable/Disable some stuff in Dialogs
//------------------------------------------------
#define GANGZONEEX true
//Enable/Disable bordered & numbered gangzones
//------------------------------------------------
#define HEADSHOT true
//Enable/Disable headshot performing
//------------------------------------------------
#define TEAM_CHAT true
//Enable/Disable teamchat system
//------------------------------------------------
#define VIP_SYSTEM true
//Enable/Disable VIP. system
//------------------------------------------------
#define TURF_CMDS true
//Enable/Disable Turf commands - /Turfs, /Findwar, /Turfhelp
//------------------------------------------------
#define TEAM_CMDS true
//Enable/Disable Team commands - /Teams, /Myteam
//------------------------------------------------
#define CREDIT_CMDS true
//Enable/Disable /Credits Command
//------------------------------------------------
#define KILL_CMDS true
//Enable/Disable /Kill command
//------------------------------------------------
#define SWITCH_CMDS true
//Enable/Disable /Sc and /St commands
//------------------------------------------------
#define HELP_CMDS true
//Enable/Disable /Help, /Cmds commands
//------------------------------------------------
#define RULES_CMDS true
//Enable/Disable /Rules command
//------------------------------------------------
#define USE_DEATHMATCH true
//Enable/Disable /Joindm, /Leavedm commands
//------------------------------------------------
#define USE_ANIMS true
//Enable/Disable /anims, and animation commands
//------------------------------------------------
#define VIP_BIKE GetVehicleModelIDFromName("Nrg-500")
//VIP. Bike, when a vip types /dbike, a vehicle(bike) is spawned
//------------------------------------------------
#define VIP_CAR GetVehicleModelIDFromName("Bullet")
//VIP. Car, when a vip types /dcar, a vehicle(car) is spawned
//------------------------------------------------
#define VIP_BOAT GetVehicleModelIDFromName("Jetmax")
//VIP. Boat, when a vip types /dboat, a vehicle(boat) is spawned
//------------------------------------------------
pawn Код:
new TeamInfo[ MAX_TEAMS ][ teaminfo ]= {
{ "Civils", 0xFFFF0080, 0, 0, 0, 0, 0, 0, 142},
{ "Grove", 0x007D0080, 0, 0, 0, 0, 0, 0, 106},
{ "Ballas", 0x9245AB80, 0, 0, 0, 0, 0, 0, 102},
{ "Aztecas", 0x18D6E480, 0, 0, 0, 0, 0, 0, 115},
{ "Vagos", 0xF5BE1880, 0, 0, 0, 0, 0, 0, 108},
{ "Da Nang", 0x5E2F2F80, 0, 0, 0, 0, 0, 0, 123},
{ "Rifas", 0xAAAA0080, 0, 0, 0, 0, 0, 0, 175},
{ "Triads", 0x0080FF80, 0, 0, 0, 0, 0, 0, 118},
{ "Bikers", 0xD2B48C80, 0, 0, 0, 0, 0, 0, 248},
{ "Mafia", 0x00FFFF80, 0, 0, 0, 0, 0, 0, 113},
{ "Italians", 0x7CFC0080, 0, 0, 0, 0, 0, 0, 126},
{ "Law Enforcement", 0x0000FF80, 0, 0, 0, 0, 0, 0, 285},
{ "Fireman", 0xDC143C80, 0, 0, 0, 0, 0, 0, 279},
{ "Paramedic", 0x00FF0080, 0, 0, 0, 0, 0, 0, 276},
{ "Farmer", 0xF0E68C80, 0, 0, 0, 0, 0, 0, 162}
};
pawn Код:
/*------------------------------------------------------
-> Spawn points
------------------------------------------------------*/
new Float:Spawn_Team0[ 5 ][ 4 ] = {
{1947.0345,-1561.4669,13.6253,162.8989},
{1905.6295,-1575.5793,23.8756,21.1715},
{1845.6813,-1590.9966,15.7799,147.8170},
{2024.5212,-1595.7037,13.5750,130.7689},
{1973.4781,-1563.7590,13.6330,196.6715}
};
//------------------------------------------------------
new Float:Spawn_Team1[ 5 ][ 4 ] = {
{2512.3740,-1672.5977,13.4930,78.4229},
{2470.7673,-1650.7491,13.4721,95.4892},
{2459.4785,-1690.0421,13.5443,1.0288},
{2482.5139,-1706.6488,13.5334,150.6757},
{2406.8738,-1671.2035,13.5749,353.1093}
};
//------------------------------------------------------
new Float:Spawn_Team2[ 5 ][ 4 ] = {
{1999.8577, -1114.6553, 27.1250, 182.0473},
{2022.9449, -1120.9398, 26.4210, 176.7813},
{2045.8439, -1115.7263, 26.3617, 273.3338},
{2093.7844, -1123.7844, 27.6899, 85.9610},
{2094.6392, -1145.1943, 26.5929, 90.0567}
};
//------------------------------------------------------
new Float:Spawn_Team3[ 5 ][ 4 ] = {
{1776.2535,-1909.0365,13.3866,291.6176},
{1804.8118,-1938.4250,13.5469,351.1515},
{1741.1334,-1988.6484,14.1172,330.5131},
{1764.4401,-2056.9519,13.5873,191.6007},
{1761.8795,-2104.2297,13.5469,229.3056}
};
//------------------------------------------------------
new Float:Spawn_Team4[ 5 ][ 4 ] = {
{2565.6797,-1067.9745,69.3009,123.8051},
{2542.0571,-1035.1486,69.5817,169.0509},
{2479.4712,-1024.0151,64.3934,147.6370},
{2456.1582,-1054.1906,59.7422,9.5184},
{2576.1108,-970.8934,81.3746,161.1497}
};
//------------------------------------------------------
new Float:Spawn_Team5[ 5 ][ 4 ] = {
{2797.0317,-1539.4778,10.9219,214.6433},
{2824.4182,-1523.5879,11.8266,189.2422},
{2768.2800,-1611.2836,10.9219,258.3015},
{2901.0852,-1599.0824,17.9998,70.5713},
{2905.3228,-1639.2496,11.0469,5.8961}
};
//------------------------------------------------------
new Float:Spawn_Team6[ 5 ][ 4 ] = {
{1119.4385,-1373.4799,13.9844,175.1367},
{1109.2798,-1332.0913,12.9828,343.0224},
{1143.2567,-1249.8956,14.9114,298.1735},
{1185.0002,-1228.3804,22.1406,328.3374},
{1273.6770,-1306.5867,13.4924,153.7047}
};
//------------------------------------------------------
new Float:Spawn_Team7[ 5 ][ 4 ] = {
{2667.5989,-2387.7415,13.6328,102.2766},
{2780.9006,-2420.7112,13.6353,86.4009},
{2760.3015,-2530.9463,13.6385,13.3727},
{2500.6482,-2527.2495,13.6734,61.3967},
{2462.1211,-2628.1296,13.6628,219.3600}
};
//------------------------------------------------------
new Float:Spawn_Team8[ 5 ][ 4 ] = {
{865.1617, -1634.7625, 14.9297, 176.2746},
{851.1503, -1688.4281, 14.9478, 270.6273},
{892.3436, -1638.1572, 14.9494, 179.3978},
{936.1555, -1612.9193, 14.9414, 182.2190},
{986.8895, -1624.1165, 14.9297, 85.0584}
};
//------------------------------------------------------
new Float:Spawn_Team9[ 5 ][ 4 ] = {
{1254.7452,-781.4287,92.0302,3.8220},
{1299.4650,-791.2515,88.3125,203.4774},
{1270.5049,-832.3721,83.1406,106.2386},
{1285.2885,-870.5181,46.8438,173.3136},
{1192.4078,-885.0795,43.0725,113.3828}
};
//------------------------------------------------------
new Float:Spawn_Team10[ 5 ][ 4 ] = {
{1459.5981,-2462.8850,13.7327,200.0891},
{1450.3064,-2637.3044,13.7211,306.0572},
{1861.9470,-2626.1323,13.7099,345.4754},
{1842.1196,-2433.8916,14.0503,230.1407},
{1842.1196,-2433.8916,14.0503,230.1407}
};
//------------------------------------------------------
new Float:Spawn_Team11[ 5 ][ 4 ] = {
{1530.0195,-1679.4529,5.8906,227.5359},
{1587.7992,-1611.3186,13.3828,119.6879},
{1479.1306,-1658.4443,14.0469,301.6202},
{1541.0609,-1681.5389,13.5518,34.8900},
{1497.3793,-1585.1797,13.5469,199.9974}
};
//------------------------------------------------------
new Float:Spawn_Team12[ 5 ][ 4 ] = {
{2326.2375,-1252.3954,27.9766,228.3806},
{2346.0356,-1283.2363,27.9766,140.2704},
{2317.5198,-1273.3596,23.9547,91.8495},
{2337.8198,-1315.7466,24.0843,317.6814},
{2329.1667,-1243.3610,22.5000,239.8904}
};
//------------------------------------------------------
new Float:Spawn_Team13[ 5 ][ 4 ] = {
{865.1617, -1634.7625, 14.9297, 176.2746},
{851.1503, -1688.4281, 14.9478, 270.6273},
{892.3436, -1638.1572, 14.9494, 179.3978},
{936.1555, -1612.9193, 14.9414, 182.2190},
{986.8895, -1624.1165, 14.9297, 85.0584}
};
//------------------------------------------------------
new Float:Spawn_Team14[ 5 ][ 4 ] = {
{865.1617, -1634.7625, 14.9297, 176.2746},
{851.1503, -1688.4281, 14.9478, 270.6273},
{892.3436, -1638.1572, 14.9494, 179.3978},
{936.1555, -1612.9193, 14.9414, 182.2190},
{986.8895, -1624.1165, 14.9297, 85.0584}
};
pawn Код:
new rank[ MAX_RANKS ][rank_info] = {
{"Private", 0, 1},
{"Corporal", 50, 2},
{"Sergeant", 200, 3},
{"Sergeant Major", 500, 4},
{"Gunnery Sergeant",1000, 5},
{"Chief", 1500, 6},
{"Master Chief", 2500, 7},
{"Ensign", 4000, 8},
{"Lieutenant", 8500, 9},
{"Lieutenant Major",10000, 10},
{"Captain", 15000, 11},
{"Commander", 20000, 12},
{"Major", 25000, 13},
{"Coloneal", 35000, 14},
{"Brigadier", 50000, 15},
{"General", 65000, 16},
{"Vice Field Marshal",80000,17},
{"Field Marshall", 100000, 18},
{"Warlord", 150000, 19},
{"Master Of War", 200000, 20}
};
Server default turfs made by me:
pawn Код:
AddTurf(0, "Ganton", 2222.50, -1852.80, 2632.80, -1722.30, TEAM_0);
AddTurf(1, "Ganton", 2222.50, -1722.30, 2632.80, -1628.50, TEAM_0);
AddTurf(2, "Idlewood", 1812.60, -1852.80, 1971.60, -1742.30, TEAM_0);
AddTurf(3, "Idlewood", 1951.60, -1742.30, 2124.60, -1602.30, TEAM_0);
AddTurf(4, "Idlewood", 1812.60, -1602.30, 2124.60, -1449.60, TEAM_1);
AddTurf(5, "Idlewood", 2124.60, -1742.30, 2222.50, -1494.00, TEAM_1);
AddTurf(6, "Idlewood", 1971.60, -1852.80, 2222.50, -1742.30, TEAM_1);
AddTurf(7, "Idlewood", 1812.60, -1742.30, 1951.60, -1602.30, TEAM_1);
AddTurf(8, "Willow Field", 1970.60, -2179.20, 2089.00, -1852.80, TEAM_2);
AddTurf(9, "Willow Field", 2089.00, -1989.90, 2324.00, -1852.80, TEAM_2);
AddTurf(10, "Willow Field", 2089.00, -2235.80, 2201.80, -1989.90, TEAM_2);
AddTurf(11, "Willow Field", 2324.00, -2059.20, 2541.70, -1852.80, TEAM_2);
AddTurf(12, "Jefferson", 2056.80, -1372.00, 2281.40, -1210.70, TEAM_3);
AddTurf(13, "Jefferson", 2056.80, -1210.70, 2185.30, -1126.30, TEAM_3);
AddTurf(14, "Jefferson", 2056.80, -1449.60, 2266.20, -1372.00, TEAM_3);
AddTurf(15, "East Los Santos", 2421.00, -1628.50, 2632.80, -1454.30, TEAM_3);
AddTurf(16, "East Los Santos", 2222.50, -1628.50, 2421.00, -1494.00, TEAM_4);
AddTurf(17, "East Los Santos", 2266.20, -1494.00, 2381.60, -1372.00, TEAM_4);
AddTurf(18, "East Los Santos", 2281.60, -1372.00, 2381.60, -1135.00, TEAM_4);
AddTurf(19, "East Los Santos", 2381.60, -1454.30, 2462.10, -1135.00, TEAM_4);
AddTurf(20, "East Los Santos", 2462.10, -1454.30, 2581.70, -1135.00, TEAM_5);
AddTurf(21, "East Beach", 2632.80, -1852.80, 2959.30, -1668.10, TEAM_5);
AddTurf(22, "East Beach", 2632.80, -1668.10, 2747.70, -1393.40, TEAM_5);
AddTurf(23, "East Beach", 2747.70, -1668.10, 2959.30, -1498.60, TEAM_5);
AddTurf(24, "East Beach", 2747.70, -1498.60, 2959.30, -1120.00, TEAM_6);
AddTurf(25, "Playa Del Seville", 2703.50, -2126.90, 2959.30, -1852.80, TEAM_6);
AddTurf(26, "El Corona", 1812.60, -2179.20, 1970.60, -1852.80, TEAM_6);
AddTurf(27, "El Corona", 1692.60, -2179.20, 1812.60, -1842.20, TEAM_6);
AddTurf(28, "Glen Park", 1812.60, -1350.70, 2056.80, -1100.80, TEAM_7);
AddTurf(29, "Los Flores", 2581.70, -1393.40, 2747.70, -1135.00, TEAM_7);
AddTurf(30, "Las Colinas", 1994.30, -1100.80, 2056.80, -920.80, TEAM_7);
AddTurf(31, "Las Colinas", 2056.80, -1126.30, 2126.80, -920.80, TEAM_7);
AddTurf(32, "Las Colinas", 2185.30, -1154.50, 2281.40, -934.40, TEAM_8);
AddTurf(33, "Las Colinas", 2126.80, -1126.30, 2185.30, -934.40, TEAM_8);
AddTurf(34, "Las Colinas", 2632.70, -1135.00, 2747.70, -945.00, TEAM_0);
AddTurf(35, "Las Colinas", 2281.40, -1135.00, 2632.70, -945.00, TEAM_8);
AddTurf(36, "Verona Beach", 930.20, -2006.70, 1073.20, -1804.20, TEAM_9);
AddTurf(37, "Verona Beach", 851.40, -1804.20, 1046.10, -1577.50, TEAM_9);
AddTurf(38, "Verona Beach", 1161.50, -1722.20, 1323.90, -1577.50, TEAM_9);
AddTurf(39, "Verona Beach", 1046.10, -1722.20, 1161.50, -1577.50, TEAM_9);
AddTurf(40, "Mulholland", 1169.10, -910.10, 1318.10, -768.00, TEAM_9);
AddTurf(41, "Mulholland", 1318.10, -910.10, 1357.00, -768.00, TEAM_10);
AddTurf(42, "Mulholland", 1357.00, -926.90, 1463.90, -768.00, TEAM_10);
AddTurf(43, "Mulholland", 1185.58, -767.09, 1462.02, -641.76, TEAM_10);
AddTurf(44, "Pershing Square", 1327.8929,-1729.3352,1821.7725,-1573.5878, TEAM_10);
AddTurf(45, "LS International", 1249.60, -2394.30, 1852.00, -2179.20, TEAM_11);
AddTurf(46, "LS International", 1852.00, -2394.30, 2089.00, -2179.20, TEAM_11);
AddTurf(47, "LS International", 1382.70, -2730.80, 2201.80, -2394.30, TEAM_11);
AddTurf(48, "Ocean Docks", 2373.70, -2697.00, 2809.20, -2330.40, TEAM_11);
AddTurf(49, "Ocean Docks", 2201.80, -2418.30, 2324.00, -2095.00, TEAM_11);
AddTurf(50, "Ocean Docks", 2324.00, -2302.30, 2703.50, -2145.10, TEAM_12);
AddTurf(51, "Ocean Docks", 2089.00, -2394.30, 2201.80, -2235.80, TEAM_12);
AddTurf(52, "Ocean Docks", 2201.80, -2730.80, 2324.00, -2418.30, TEAM_12);
AddTurf(53, "Ocean Docks", 2703.50, -2302.30, 2959.30, -2126.90, TEAM_12);
AddTurf(54, "Ocean Docks", 2324.00, -2145.10, 2703.50, -2059.20, TEAM_13);
AddTurf(55, "Market", 787.40, -1416.20, 1072.60, -1310.20, TEAM_13);
AddTurf(56, "Market", 952.60, -1310.20, 1072.60, -1130.80, TEAM_13);
AddTurf(57, "Market", 1072.60, -1416.20, 1370.80, -1130.80, TEAM_13);
AddTurf(58, "Market", 926.90, -1577.50, 1370.80, -1416.20, TEAM_14);
AddTurf(59, "Downtown LS", 1370.80, -1384.90, 1463.90, -1170.80, TEAM_14);
pawn Код:
stock AddTurf(id, x_name[40], Float:x, Float:y, Float:z, Float:a, owner);
pawn Код:
/*------------------------------------------------------
-> Weapon shop dialog system
------------------------------------------------------*/
stock ShowWeaponDialog(playerid)
{
if(! IsPlayerNPC(playerid))
{
if(IsPlayerConnected(playerid))
{
new color[50];
new dialog[1100];
new _string[200];
new w,a;
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 31 && a >= 250)
{
color = COL_GREEN;
}
else if(w == 31 && a < 250)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s1. M4 ( $2500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 30 && a >= 250)
{
color = COL_GREEN;
}
else if(w == 31 && a < 250)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s2. Ak-47 ( $2300 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 39 && a >= 250)
{
color = COL_GREEN;
}
else if(w == 39 && a < 250)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s3. MP5 ( $2000 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 32 && a >= 250)
{
color = COL_GREEN;
}
else if(w == 32 && a < 250)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s4. Tec-9 ( $3500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 28 && a >= 250)
{
color = COL_GREEN;
}
else if(w == 28 && a < 250)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s5. UZI ( $3500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 26 && a >= 150)
{
color = COL_GREEN;
}
else if(w == 26 && a < 150)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s6. Sawn-Off-Shotgun ( $7000 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 25 && a >= 150)
{
color = COL_GREEN;
}
else if(w == 25 && a < 150)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s7. Shotgun ( $2500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 27 && a >= 150)
{
color = COL_GREEN;
}
else if(w == 27 && a < 150)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s8. Combat Shotgun ( $5000 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 22 && a >= 250)
{
color = COL_GREEN;
}
else if(w == 22 && a < 250)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s9. Colt 9mm ( $1700 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 23 && a >= 250)
{
color = COL_GREEN;
}
else if(w == 23 && a < 250)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s10. Silenced Colt 9mm ( $1500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 24 && a >= 150)
{
color = COL_GREEN;
}
else if(w == 24 && a < 150)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s11. Desert Eagle ( $2000 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 34 && a >= 100)
{
color = COL_GREEN;
}
else if(w == 34 && a < 100)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s12. Sniper Rifle ( $4500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 16 && a >= 5)
{
color = COL_GREEN;
}
else if(w == 15 && a < 5)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s13. Grenade ( $3000 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 18 && a >= 5)
{
color = COL_GREEN;
}
else if(w == 18 && a < 5)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s14. Moltove ( $2500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 17 && a >= 5)
{
color = COL_GREEN;
}
else if(w == 17 && a < 5)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s15. Tear Gas ( $2500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 9 && a >= 1)
{
color = COL_GREEN;
}
else if(w == 9 && a < 1)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s16. Chainsaw ( $1000 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 4 && a >= 1)
{
color = COL_GREEN;
}
else if(w == 4 && a < 1)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s17. Knife ( $800 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
if(anti_teargas[playerid]==1)
{
color = COL_GREEN;
}
format(_string,sizeof(_string),"%s18. Anti-Teargas Mask ( $3500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
if(anti_headshot[playerid]==1)
{
color = COL_GREEN;
}
format(_string,sizeof(_string),"%s19. Anti-Headshot Helmet ( $3500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
if(anti_teargas[playerid]==1)
{
color = COL_GREEN;
}
format(_string,sizeof(_string),"%s20. Anti-Spypawner Pack ( $2500 )\n",color);
strcat(dialog,_string);
color = COL_WHITE;
for(new _w; _w < 12; _w++)
{
GetPlayerWeaponData(playerid,_w,w,a);
if(w == 41 && a >= 5)
{
color = COL_GREEN;
}
else if(w == 41 && a < 5)
{
color = COL_MARONE;
}
}
format(_string,sizeof(_string),"%s21. C4-Satchel ( $2000 )",color);
strcat(dialog,_string);
return ShowPlayerDialog(playerid,DIALOG_WEAPONS,DIALOG_STYLE_LIST,"Ammunation Shop:",dialog,"Buy","Cancel");
}
else return false;
}
else return false;
}