Help with some errors
#1

Well, it's basically my first script, I copied something from other scripts as it's my beggining, and I am trying to learn..

But, I get here, 26 errors, when I compile, what's the problem?

Quote:

/************************************************** *****************************
* SERVER NAME: Nightmater's Deathmatch
* SERVER VERSION: Nightmare v1.0
* SERVER DEVELOPER: Mr.Lauren
*
* INFORMATION: Deathmatching server, BETA Public.
*
************************************************** *****************************/
#include <a_samp>


#if defined FILTERSCRIPT
#define PocketMoney 50000 //Money on spawn
#define GIVECASH_DELAY 5000 //About can be payed in one time

forward MoneyGrubScoreUpdate();
forward Givecashdelaytimer(playerid);
forward SetPlayerRandomSpawn(playerid);
forward SetupPlayerForClassSelection(playerid);
forward GameModeExitFunc();
forward SendPlayerFormattedText(playerid, const str[], define);
forward public SendAllFormattedText(playerid, const str[], define);

public MoneyGrubScoreUpdate()
{
new CashScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof(name));
CashScore = GetPlayerMoney(i);
SetPlayerScore(i, CashScore);
if (CashScore > CashScoreOld)
{
CashScoreOld = CashScore;
//format(string, sizeof(string), "$$$ %s is now in the lead $$$", name);
//SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/pay", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pay [playerid] [amount]");
return 1;
}
giveplayerid = strval(tmp);

tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pay [playerid] [amount]");
return 1;
}
moneys = strval(tmp);

//printf("givecash_command: %d %d",giveplayerid,moneys);


if (IsPlayerConnected(giveplayerid)) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoney(playerid);
if (moneys > 0 && playermoney >= moneys) {
GivePlayerMoney(playerid, (0 - moneys));
GivePlayerMoney(giveplayerid, moneys);
format(string, sizeof(string), "You have paid %s(player: %d), $%d.", giveplayer,giveplayerid, moneys);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
printf("%s(playerid:%d) has payed %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
}
else {
SendClientMessage(playerid, COLOR_YELLOW, "Invalid transaction amount.");
}
}
else {
format(string, sizeof(string), "%d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}


public OnFilterScriptInit()

{
print("\n--------------------------------------");
print(" Deathmatch by Lauren");
print("--------------------------------------\n");
return 1;
}


public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Deathmatch by Lauren");
print("----------------------------------\n");
}

//Colors

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF
#define COLOR_RED 0xFF0000FF
#define COLOR_LIGHTGREEN 0x00FF11FF


#endif

public OnGameModeInit()
{
return 1;
{
//Misc
SetGameModeText("NightMare Deathmatch");
//Classes
AddPlayerClass(270,1578.9000,-1004.6900,24.0781,189.3060,34,500,24,2500,27,2500) ; // GuySpawn
AddPlayerClass(271,1542.3815,-1018.6879,23.9063,259.4933,39,20,31,1500,26,5000); // GuySpawn2
AddPlayerClass(269,1574.1085,-1039.4579,23.9140,325.9207,4,5,22,500,28,1500); // GuySpawn3
AddPlayerClass(29,1648.1752,-1020.3409,23.8984,82.1361,9,1,10,25,30,1000); // guyspawn4
AddPlayerClass(19,1638.3949,-1038.9602,23.8984,75.2427,29,999,33,1000,36,10); // guyspawn 5
AddPlayerClass(292,1594.9475,-1043.5657,23.9063,358.1619,41,999,34,50,27,200); // guyspawn 6
//Cars
AddStaticVehicle(411,1658.6884,-1045.6301,23.6255,179.5374,0,0); // Infernus
AddStaticVehicle(411,1654.3730,-1045.6964,23.6255,178.6734,0,0); // Infernus
AddStaticVehicle(415,1649.6898,-1045.8671,23.6703,180.6075,0,0); // Cheetah
AddStaticVehicle(415,1645.2262,-1045.9103,23.6684,179.4133,0,0); // Cheetah
AddStaticVehicle(451,1641.0245,-1046.2959,23.6034,179.9737,0,0); // Turismo
AddStaticVehicle(451,1636.1810,-1046.3678,23.6049,181.2217,0,0); // Turismo
AddStaticVehicle(522,1627.0237,-1037.5391,23.4724,358.4659,0,0); // NRG
AddStaticVehicle(522,1631.7240,-1037.6553,23.4703,359.4286,0,0); // NRG
AddStaticVehicle(522,1636.0018,-1037.4764,23.4757,355.0911,0,0); // NRG
AddStaticVehicle(522,1640.9761,-1037.6333,23.4714,359.9706,0,0); // NRG
AddStaticVehicle(522,1644.9125,-1037.2701,23.4732,1.0191,0,0); // NRG
AddStaticVehicle(522,1649.9854,-1037.7567,23.4653,356.7254,0,0); // NRG
AddStaticVehicle(522,1654.0404,-1037.8448,23.4564,356.7516,0,0); // NRG
AddStaticVehicle(522,1658.4484,-1038.0065,23.4746,358.5745,0,0); // NRG
AddStaticVehicle(541,1632.1035,-1046.6794,23.5234,181.4293,0,0); // Bullet
AddStaticVehicle(541,1627.2782,-1047.0272,23.5233,179.7667,0,0); // Bullet
AddStaticVehicle(406,1718.0410,-1060.9911,25.4284,89.2980,1,1); // MONSTER
AddStaticVehicle(406,1704.5657,-1060.9810,25.4383,89.9575,1,1); // MONSTER
AddStaticVehicle(432,1693.0900,-1061.2255,23.9220,89.5325,43,0); // Tank
AddStaticVehicle(444,1712.3705,-1043.2947,24.2776,180.1961,32,53); // monstertruck
AddStaticVehicle(444,1707.8983,-1043.0551,24.2775,182.2425,32,14); // monstertruck
AddStaticVehicle(444,1703.4321,-1043.2228,24.2776,179.6005,32,36); // monstertruck
AddStaticVehicle(471,1698.6552,-1043.1039,23.3871,179.0870,74,83); // tracktoron
AddStaticVehicle(471,1694.5958,-1043.0059,23.3869,177.6409,66,71); // tracktoron
AddStaticVehicle(471,1689.4056,-1042.8264,23.3881,180.1959,103,111); // tracktoron
AddStaticVehicle(495,1685.2644,-1043.0099,24.2530,179.7142,114,10; // sandstalker
AddStaticVehicle(495,1680.6151,-1043.4302,24.2525,180.1732,88,99); // sandstalker
AddStaticVehicle(520,1689.1721,-1016.2593,24.6360,193.0157,0,0); // hydra
AddStaticVehicle(601,1721.9106,-1068.8397,23.6784,90.1091,1,1); // splashy
AddStaticVehicle(601,1710.3500,-1068.0951,23.6650,88.6382,1,1); // splash
AddStaticVehicle(601,1702.0712,-1068.1466,23.6650,89.5017,1,1); // splash
AddStaticVehicle(601,1693.1000,-1068.2498,23.6650,88.9520,1,1); // splashy
//Objects
CreateObject(3268, 1816.14, -2438.44, 12.91, 0.00, 0.00, 91.00); //ls ap hangar
CreateObject(3268, 1848.77, -2437.74, 12.91, 0.00, 0.00, 91.00); //ls ap hangar
CreateObject(3268, 1880.39, -2437.01, 12.91, 0.00, 0.00, 91.00); //ls ap hangar
CreateObject(3279, 1554.85, -1020.41, 22.89, 0.00, 0.00, 0.00);
CreateObject(3279, 1803.70, -1055.15, 23.05, 0.00, 0.00, 0.00);
CreateObject(1225, 1653.15, -1033.56, 22.90, 0.00, 0.00, 0.00);
CreateObject(1225, 1654.18, -1033.71, 23.32, 0.00, 0.00, 0.00);
CreateObject(1225, 1653.62, -1034.57, 23.02, 0.00, 0.00, 0.00);
CreateObject(1225, 1550.11, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1551.01, -1008.23, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1552.18, -1008.23, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1553.38, -1008.26, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1554.36, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1555.54, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1556.74, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1558.00, -1008.29, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1559.30, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1560.62, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1562.06, -1008.30, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1563.35, -1008.30, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1564.82, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1566.37, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1567.74, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1569.21, -1008.29, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1570.39, -1008.30, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1571.69, -1008.24, 22.88, 0.00, 0.00, 0.00);
CreateObject(1248, 1638.79, -1002.99, 30.63, 0.00, 0.00, 0.00);
CreateObject(1248, 1595.36, -997.78, 28.97, 0.00, 0.00, 0.00);
CreateObject(1248, 1575.12, -1001.55, 33.14, 0.00, 0.00, 0.00);
CreateObject(969, 1543.76, -1014.79, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1540.61, -1022.83, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1538.33, -1028.88, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1545.41, -1010.56, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1538.41, -1028.80, 22.85, 0.00, 0.00, -18.00);
CreateObject(969, 1546.33, -1031.33, 22.85, 0.00, 0.00, -18.00);
CreateObject(969, 1554.51, -1033.99, 22.85, 0.00, 0.00, -18.00);
CreateObject(969, 1562.33, -1036.61, 22.85, 0.00, 0.00, -34.00);
CreateObject(969, 1568.63, -1040.89, 22.85, 0.00, 0.00, -38.00);
CreateObject(969, 1575.17, -1045.83, 22.85, 0.00, 0.00, -50.00);
CreateObject(969, 1580.79, -1052.53, 22.85, 0.00, 0.00, -52.00);
CreateObject(969, 1586.11, -1059.33, 22.85, 0.00, 0.00, -56.00);
CreateObject(969, 1590.90, -1066.42, 22.85, 0.00, 0.00, -60.00);
CreateObject(969, 1595.21, -1074.05, 22.85, 0.00, 0.00, -60.00);
CreateObject(969, 1599.65, -1081.58, 22.85, 0.00, 0.00, -70.00);
CreateObject(969, 1602.57, -1089.60, 22.85, 0.00, 0.00, -76.00);
CreateObject(969, 1604.70, -1098.07, 22.85, 0.00, 0.00, -78.00);
CreateObject(969, 1606.58, -1106.48, 22.85, 0.00, 0.00, -82.00);
CreateObject(969, 1607.76, -1114.97, 22.85, 0.00, 0.00, -84.00);
CreateObject(969, 1608.65, -1123.28, 22.85, 0.00, 0.00, -86.00);
CreateObject(969, 1609.19, -1132.01, 22.85, 0.00, 0.00, -86.00);
CreateObject(969, 1609.34, -1135.43, 22.85, 0.00, 0.00, -86.00);
CreateObject(969, 1610.01, -1144.07, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1618.24, -1144.03, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1626.55, -1144.01, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1635.25, -1143.98, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1643.83, -1143.91, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1652.62, -1143.91, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1661.23, -1143.91, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1670.09, -1143.89, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1675.33, -1143.87, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1683.99, -1143.77, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.02, -1135.71, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.03, -1127.05, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1118.39, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1100.99, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1683.99, -1109.66, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1692.62, -1092.48, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1701.37, -1092.63, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1710.12, -1092.76, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1718.89, -1092.91, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1727.52, -1093.09, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1736.15, -1093.25, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1744.72, -1093.50, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1753.45, -1093.62, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1761.92, -1093.47, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1770.55, -1093.31, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1779.36, -1093.20, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1788.16, -1093.02, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1796.99, -1092.82, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1805.75, -1092.70, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.33, -1083.94, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.36, -1075.20, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.28, -1066.66, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.23, -1057.95, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.12, -1049.47, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.18, -1040.91, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1031.58, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1023.20, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1545.41, -1010.56, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1543.76, -1014.79, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1540.61, -1022.83, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1538.35, -1028.72, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1538.41, -1028.80, 25.87, 0.00, 0.00, -18.00);
CreateObject(969, 1546.34, -1031.35, 25.87, 0.00, 0.00, -18.00);
CreateObject(969, 1554.51, -1033.99, 25.87, 0.00, 0.00, -18.00);
CreateObject(969, 1562.33, -1036.61, 25.87, 0.00, 0.00, -34.00);
CreateObject(969, 1568.63, -1040.89, 25.87, 0.00, 0.00, -38.00);
CreateObject(969, 1575.17, -1045.83, 25.87, 0.00, 0.00, -50.00);
CreateObject(969, 1580.79, -1052.53, 25.87, 0.00, 0.00, -52.00);
CreateObject(969, 1586.11, -1059.33, 25.87, 0.00, 0.00, -56.00);
CreateObject(969, 1590.90, -1066.42, 25.87, 0.00, 0.00, -60.00);
CreateObject(969, 1595.24, -1074.08, 22.85, 0.00, 0.00, -60.00);
CreateObject(969, 1595.24, -1074.08, 25.87, 0.00, 0.00, -60.00);
CreateObject(969, 1599.65, -1081.58, 25.87, 0.00, 0.00, -70.00);
CreateObject(969, 1602.57, -1089.60, 25.87, 0.00, 0.00, -76.00);
CreateObject(969, 1604.70, -1098.07, 25.87, 0.00, 0.00, -78.00);
CreateObject(969, 1606.58, -1106.48, 25.87, 0.00, 0.00, -82.00);
CreateObject(969, 1607.76, -1114.97, 25.87, 0.00, 0.00, -84.00);
CreateObject(969, 1608.65, -1123.28, 25.87, 0.00, 0.00, -86.00);
CreateObject(969, 1609.19, -1132.01, 25.87, 0.00, 0.00, -86.00);
CreateObject(969, 1609.34, -1135.43, 25.87, 0.00, 0.00, -86.00);
CreateObject(969, 1610.01, -1144.07, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1618.24, -1144.03, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1626.55, -1144.01, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1635.25, -1143.98, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1643.83, -1143.91, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1652.62, -1143.91, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1661.23, -1143.91, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1670.09, -1143.89, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1675.35, -1143.86, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1683.99, -1143.77, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.02, -1135.71, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.03, -1127.05, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1118.39, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1683.99, -1109.69, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1100.99, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1692.62, -1092.48, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1701.37, -1092.63, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1710.12, -1092.76, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1718.89, -1092.91, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1727.52, -1093.09, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1736.15, -1093.25, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1744.72, -1093.50, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1753.45, -1093.60, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1761.92, -1093.47, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1770.55, -1093.31, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1779.36, -1093.20, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1788.16, -1093.02, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1796.99, -1092.82, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1805.75, -1092.70, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.33, -1083.94, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.36, -1075.20, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.28, -1066.66, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.21, -1057.95, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.12, -1049.47, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.18, -1040.91, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1031.58, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1023.20, 25.87, 0.00, 0.00, 90.00);



return 1;

}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,835.2302,-2065.7307,12.8672);
SetPlayerFacingAngle(playerid,359.5764);
SetPlayerCameraPos(playerid,835.0862,-2060.4966,12.8672);
SetPlayerCameraLookAt(playerid,835.2302,-2065.7307,12.8672);
return 1;
}

public OnPlayerConnect(playerid)

{
SendClientMessage(playerid, COLOR_RED , "Wellcome to Nightmare Deathmatching. Enjoy, and Have fun!");
SendClientMessage(playerid, COLOR_RED , "Please, listen to the rules, don't break them!");
SendClientMessage(playerid, COLOR_RED , "No hacking, cheating, rulebreaking, or it might cause a ban!");
SendClientMessage(playerid, COLOR_RED , "Use /help and /cmds for more information!");
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if ( !strcmp( cmdtext, "/bankp", true ) )
{
SetPlayerPos( playerid, 1602.3510, -1034.1279, 23.9063 );
SendClientMessage( playerid, COLOR_YELLOW, "You have been successfully teleported to the banks parking lot." );
return 1;
}

// new command

if ( !strcmp( cmdtext, "/airport", true ) )
{
SetPlayerPos(playerid,1831.9614,-2541.3335,13.5469);
SendClientMessage( playerid, COLOR_YELLOW, "You have been successfully teleported to the airport." );

return 1;
}

// new command

if ( !strcmp( cmdtext, "/help", true ) )
{
SendClientMessage(playerid, COLOR_YELLOW , "[HELP] Wellcome to the servers help, and support");
SendClientMessage( playerid, COLOR_YELLOW, "[HELP] I hope, that you will understand the rules, and will enjoy the game!");
SendClientMessage( playerid, COLOR_YELLOW, "[HELP] This is a simple DM server, no hacking, and not cheating, just have fun!");
SendClientMessage( playerid, COLOR_YELLOW, "[HELP] For more informations please use /cmds, and feel free to contract any admin!");
return 1;
}

// new command

if ( !strcmp( cmdtext, "/heal", true ) )
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_LIGHTGREEN , " Congratulations! You just healed your self!");
return 1;
}

// new command

if ( !strcmp( cmdtext, "/kill", true ) )
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_RED , " You have just commited a suicide!");
return 1;
}

// new command

if ( !strcmp( cmdtext, "/cmds", true ) )
{
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] This is the commands of our server, each of them, was scripted by Mr.Lauren!");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /help - The basics of our server.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /heal - Sets your health to 100.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /kill - You will die immidiately.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /bankp - Teleports you to the banks parking lot.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /airport - Teleports you to the airport area.");
return 1;
}

return 0;
}
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 OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

And here are the errors...

C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(142) : warning 225: unreachable code
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(142) : warning 217: loose indentation
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(345) : warning 225: unreachable code
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(345) : error 029: invalid expression, assumed zero
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(345) : error 004: function "OnGameModeExit" is not implemented
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(350) : warning 225: unreachable code
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(350) : error 029: invalid expression, assumed zero
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(350) : error 004: function "OnPlayerRequestClass" is not implemented
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(352) : error 017: undefined symbol "playerid"
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(353) : error 017: undefined symbol "playerid"
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(354) : error 017: undefined symbol "playerid"
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(355) : error 017: undefined symbol "playerid"
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(359) : warning 225: unreachable code
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(359) : error 029: invalid expression, assumed zero
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(359) : error 004: function "OnPlayerConnect" is not implemented
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(361) : error 001: expected token: ";", but found "{"
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(362) : error 017: undefined symbol "playerid"
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(363) : error 017: undefined symbol "playerid"
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(364) : error 017: undefined symbol "playerid"
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(365) : error 017: undefined symbol "playerid"
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(36 : error 029: invalid expression, assumed zero
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(36 : error 004: function "OnPlayerDisconnect" is not implemented
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(373) : warning 225: unreachable code
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(373) : error 029: invalid expression, assumed zero
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(373) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(37 : warning 225: unreachable code
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(37 : error 029: invalid expression, assumed zero
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(37 : error 004: function "OnPlayerDeath" is not implemented
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(383) : warning 225: unreachable code
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(383) : error 029: invalid expression, assumed zero
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(383) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(38 : warning 225: unreachable code
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(38 : error 029: invalid expression, assumed zero
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(38 : error 004: function "OnVehicleDeath" is not implemented
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(393) : warning 225: unreachable code
C:\Users\Artem\Desktop\Artem's\My server\gamemodes\test.pwn(393) : error 029: invalid expression, assumed zero

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

Код:
/************************************************** *****************************
* SERVER NAME: Nightmater's Deathmatch
* SERVER VERSION: Nightmare v1.0
* SERVER DEVELOPER: Mr.Lauren
*
* INFORMATION: Deathmatching server, BETA Public.
*
************************************************** *****************************/
#include <a_samp>


#if defined FILTERSCRIPT
#define PocketMoney 50000 //Money on spawn
#define GIVECASH_DELAY 5000 //About can be payed in one time

forward MoneyGrubScoreUpdate();
forward Givecashdelaytimer(playerid);
forward SetPlayerRandomSpawn(playerid);
forward SetupPlayerForClassSelection(playerid);
forward GameModeExitFunc();
forward SendPlayerFormattedText(playerid, const str[], define);
forward public SendAllFormattedText(playerid, const str[], define);

public MoneyGrubScoreUpdate()
{
new CashScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof(name));
CashScore = GetPlayerMoney(i);
SetPlayerScore(i, CashScore);
if (CashScore > CashScoreOld)
{
CashScoreOld = CashScore;
//format(string, sizeof(string), "$$$ %s is now in the lead $$$", name);
//SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/pay", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pay [playerid] [amount]");
return 1;
}
giveplayerid = strval(tmp);

tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pay [playerid] [amount]");
return 1;
}
moneys = strval(tmp);

//printf("givecash_command: %d %d",giveplayerid,moneys);


if (IsPlayerConnected(giveplayerid)) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoney(playerid);
if (moneys > 0 && playermoney >= moneys) {
GivePlayerMoney(playerid, (0 - moneys));
GivePlayerMoney(giveplayerid, moneys);
format(string, sizeof(string), "You have paid %s(player: %d), $%d.", giveplayer,giveplayerid, moneys);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
printf("%s(playerid:%d) has payed %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
}
else {
SendClientMessage(playerid, COLOR_YELLOW, "Invalid transaction amount.");
}
}
else {
format(string, sizeof(string), "%d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}


public OnFilterScriptInit()

{
print("\n--------------------------------------");
print(" Deathmatch by Lauren");
print("--------------------------------------\n");
return 1;
}


public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Deathmatch by Lauren");
print("----------------------------------\n");
}

//Colors

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF
#define COLOR_RED 0xFF0000FF
#define COLOR_LIGHTGREEN 0x00FF11FF


#endif

public OnGameModeInit()
{
//Misc
SetGameModeText("NightMare Deathmatch");
//Classes
AddPlayerClass(270,1578.9000,-1004.6900,24.0781,189.3060,34,500,24,2500,27,2500) ; // GuySpawn
AddPlayerClass(271,1542.3815,-1018.6879,23.9063,259.4933,39,20,31,1500,26,5000); // GuySpawn2
AddPlayerClass(269,1574.1085,-1039.4579,23.9140,325.9207,4,5,22,500,28,1500); // GuySpawn3
AddPlayerClass(29,1648.1752,-1020.3409,23.8984,82.1361,9,1,10,25,30,1000); // guyspawn4
AddPlayerClass(19,1638.3949,-1038.9602,23.8984,75.2427,29,999,33,1000,36,10); // guyspawn 5
AddPlayerClass(292,1594.9475,-1043.5657,23.9063,358.1619,41,999,34,50,27,200); // guyspawn 6
//Cars
AddStaticVehicle(411,1658.6884,-1045.6301,23.6255,179.5374,0,0); // Infernus
AddStaticVehicle(411,1654.3730,-1045.6964,23.6255,178.6734,0,0); // Infernus
AddStaticVehicle(415,1649.6898,-1045.8671,23.6703,180.6075,0,0); // Cheetah
AddStaticVehicle(415,1645.2262,-1045.9103,23.6684,179.4133,0,0); // Cheetah
AddStaticVehicle(451,1641.0245,-1046.2959,23.6034,179.9737,0,0); // Turismo
AddStaticVehicle(451,1636.1810,-1046.3678,23.6049,181.2217,0,0); // Turismo
AddStaticVehicle(522,1627.0237,-1037.5391,23.4724,358.4659,0,0); // NRG
AddStaticVehicle(522,1631.7240,-1037.6553,23.4703,359.4286,0,0); // NRG
AddStaticVehicle(522,1636.0018,-1037.4764,23.4757,355.0911,0,0); // NRG
AddStaticVehicle(522,1640.9761,-1037.6333,23.4714,359.9706,0,0); // NRG
AddStaticVehicle(522,1644.9125,-1037.2701,23.4732,1.0191,0,0); // NRG
AddStaticVehicle(522,1649.9854,-1037.7567,23.4653,356.7254,0,0); // NRG
AddStaticVehicle(522,1654.0404,-1037.8448,23.4564,356.7516,0,0); // NRG
AddStaticVehicle(522,1658.4484,-1038.0065,23.4746,358.5745,0,0); // NRG
AddStaticVehicle(541,1632.1035,-1046.6794,23.5234,181.4293,0,0); // Bullet
AddStaticVehicle(541,1627.2782,-1047.0272,23.5233,179.7667,0,0); // Bullet
AddStaticVehicle(406,1718.0410,-1060.9911,25.4284,89.2980,1,1); // MONSTER
AddStaticVehicle(406,1704.5657,-1060.9810,25.4383,89.9575,1,1); // MONSTER
AddStaticVehicle(432,1693.0900,-1061.2255,23.9220,89.5325,43,0); // Tank
AddStaticVehicle(444,1712.3705,-1043.2947,24.2776,180.1961,32,53); // monstertruck
AddStaticVehicle(444,1707.8983,-1043.0551,24.2775,182.2425,32,14); // monstertruck
AddStaticVehicle(444,1703.4321,-1043.2228,24.2776,179.6005,32,36); // monstertruck
AddStaticVehicle(471,1698.6552,-1043.1039,23.3871,179.0870,74,83); // tracktoron
AddStaticVehicle(471,1694.5958,-1043.0059,23.3869,177.6409,66,71); // tracktoron
AddStaticVehicle(471,1689.4056,-1042.8264,23.3881,180.1959,103,111); // tracktoron
AddStaticVehicle(495,1685.2644,-1043.0099,24.2530,179.7142,114,10; // sandstalker
AddStaticVehicle(495,1680.6151,-1043.4302,24.2525,180.1732,88,99); // sandstalker
AddStaticVehicle(520,1689.1721,-1016.2593,24.6360,193.0157,0,0); // hydra
AddStaticVehicle(601,1721.9106,-1068.8397,23.6784,90.1091,1,1); // splashy
AddStaticVehicle(601,1710.3500,-1068.0951,23.6650,88.6382,1,1); // splash
AddStaticVehicle(601,1702.0712,-1068.1466,23.6650,89.5017,1,1); // splash
AddStaticVehicle(601,1693.1000,-1068.2498,23.6650,88.9520,1,1); // splashy
//Objects
CreateObject(3268, 1816.14, -2438.44, 12.91, 0.00, 0.00, 91.00); //ls ap hangar
CreateObject(3268, 1848.77, -2437.74, 12.91, 0.00, 0.00, 91.00); //ls ap hangar
CreateObject(3268, 1880.39, -2437.01, 12.91, 0.00, 0.00, 91.00); //ls ap hangar
CreateObject(3279, 1554.85, -1020.41, 22.89, 0.00, 0.00, 0.00);
CreateObject(3279, 1803.70, -1055.15, 23.05, 0.00, 0.00, 0.00);
CreateObject(1225, 1653.15, -1033.56, 22.90, 0.00, 0.00, 0.00);
CreateObject(1225, 1654.18, -1033.71, 23.32, 0.00, 0.00, 0.00);
CreateObject(1225, 1653.62, -1034.57, 23.02, 0.00, 0.00, 0.00);
CreateObject(1225, 1550.11, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1551.01, -1008.23, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1552.18, -1008.23, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1553.38, -1008.26, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1554.36, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1555.54, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1556.74, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1558.00, -1008.29, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1559.30, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1560.62, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1562.06, -1008.30, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1563.35, -1008.30, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1564.82, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1566.37, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1567.74, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1569.21, -1008.29, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1570.39, -1008.30, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1571.69, -1008.24, 22.88, 0.00, 0.00, 0.00);
CreateObject(1248, 1638.79, -1002.99, 30.63, 0.00, 0.00, 0.00);
CreateObject(1248, 1595.36, -997.78, 28.97, 0.00, 0.00, 0.00);
CreateObject(1248, 1575.12, -1001.55, 33.14, 0.00, 0.00, 0.00);
CreateObject(969, 1543.76, -1014.79, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1540.61, -1022.83, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1538.33, -1028.88, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1545.41, -1010.56, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1538.41, -1028.80, 22.85, 0.00, 0.00, -18.00);
CreateObject(969, 1546.33, -1031.33, 22.85, 0.00, 0.00, -18.00);
CreateObject(969, 1554.51, -1033.99, 22.85, 0.00, 0.00, -18.00);
CreateObject(969, 1562.33, -1036.61, 22.85, 0.00, 0.00, -34.00);
CreateObject(969, 1568.63, -1040.89, 22.85, 0.00, 0.00, -38.00);
CreateObject(969, 1575.17, -1045.83, 22.85, 0.00, 0.00, -50.00);
CreateObject(969, 1580.79, -1052.53, 22.85, 0.00, 0.00, -52.00);
CreateObject(969, 1586.11, -1059.33, 22.85, 0.00, 0.00, -56.00);
CreateObject(969, 1590.90, -1066.42, 22.85, 0.00, 0.00, -60.00);
CreateObject(969, 1595.21, -1074.05, 22.85, 0.00, 0.00, -60.00);
CreateObject(969, 1599.65, -1081.58, 22.85, 0.00, 0.00, -70.00);
CreateObject(969, 1602.57, -1089.60, 22.85, 0.00, 0.00, -76.00);
CreateObject(969, 1604.70, -1098.07, 22.85, 0.00, 0.00, -78.00);
CreateObject(969, 1606.58, -1106.48, 22.85, 0.00, 0.00, -82.00);
CreateObject(969, 1607.76, -1114.97, 22.85, 0.00, 0.00, -84.00);
CreateObject(969, 1608.65, -1123.28, 22.85, 0.00, 0.00, -86.00);
CreateObject(969, 1609.19, -1132.01, 22.85, 0.00, 0.00, -86.00);
CreateObject(969, 1609.34, -1135.43, 22.85, 0.00, 0.00, -86.00);
CreateObject(969, 1610.01, -1144.07, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1618.24, -1144.03, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1626.55, -1144.01, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1635.25, -1143.98, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1643.83, -1143.91, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1652.62, -1143.91, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1661.23, -1143.91, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1670.09, -1143.89, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1675.33, -1143.87, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1683.99, -1143.77, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.02, -1135.71, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.03, -1127.05, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1118.39, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1100.99, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1683.99, -1109.66, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1692.62, -1092.48, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1701.37, -1092.63, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1710.12, -1092.76, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1718.89, -1092.91, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1727.52, -1093.09, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1736.15, -1093.25, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1744.72, -1093.50, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1753.45, -1093.62, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1761.92, -1093.47, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1770.55, -1093.31, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1779.36, -1093.20, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1788.16, -1093.02, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1796.99, -1092.82, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1805.75, -1092.70, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.33, -1083.94, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.36, -1075.20, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.28, -1066.66, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.23, -1057.95, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.12, -1049.47, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.18, -1040.91, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1031.58, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1023.20, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1545.41, -1010.56, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1543.76, -1014.79, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1540.61, -1022.83, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1538.35, -1028.72, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1538.41, -1028.80, 25.87, 0.00, 0.00, -18.00);
CreateObject(969, 1546.34, -1031.35, 25.87, 0.00, 0.00, -18.00);
CreateObject(969, 1554.51, -1033.99, 25.87, 0.00, 0.00, -18.00);
CreateObject(969, 1562.33, -1036.61, 25.87, 0.00, 0.00, -34.00);
CreateObject(969, 1568.63, -1040.89, 25.87, 0.00, 0.00, -38.00);
CreateObject(969, 1575.17, -1045.83, 25.87, 0.00, 0.00, -50.00);
CreateObject(969, 1580.79, -1052.53, 25.87, 0.00, 0.00, -52.00);
CreateObject(969, 1586.11, -1059.33, 25.87, 0.00, 0.00, -56.00);
CreateObject(969, 1590.90, -1066.42, 25.87, 0.00, 0.00, -60.00);
CreateObject(969, 1595.24, -1074.08, 22.85, 0.00, 0.00, -60.00);
CreateObject(969, 1595.24, -1074.08, 25.87, 0.00, 0.00, -60.00);
CreateObject(969, 1599.65, -1081.58, 25.87, 0.00, 0.00, -70.00);
CreateObject(969, 1602.57, -1089.60, 25.87, 0.00, 0.00, -76.00);
CreateObject(969, 1604.70, -1098.07, 25.87, 0.00, 0.00, -78.00);
CreateObject(969, 1606.58, -1106.48, 25.87, 0.00, 0.00, -82.00);
CreateObject(969, 1607.76, -1114.97, 25.87, 0.00, 0.00, -84.00);
CreateObject(969, 1608.65, -1123.28, 25.87, 0.00, 0.00, -86.00);
CreateObject(969, 1609.19, -1132.01, 25.87, 0.00, 0.00, -86.00);
CreateObject(969, 1609.34, -1135.43, 25.87, 0.00, 0.00, -86.00);
CreateObject(969, 1610.01, -1144.07, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1618.24, -1144.03, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1626.55, -1144.01, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1635.25, -1143.98, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1643.83, -1143.91, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1652.62, -1143.91, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1661.23, -1143.91, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1670.09, -1143.89, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1675.35, -1143.86, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1683.99, -1143.77, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.02, -1135.71, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.03, -1127.05, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1118.39, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1683.99, -1109.69, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1100.99, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1692.62, -1092.48, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1701.37, -1092.63, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1710.12, -1092.76, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1718.89, -1092.91, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1727.52, -1093.09, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1736.15, -1093.25, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1744.72, -1093.50, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1753.45, -1093.60, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1761.92, -1093.47, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1770.55, -1093.31, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1779.36, -1093.20, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1788.16, -1093.02, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1796.99, -1092.82, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1805.75, -1092.70, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.33, -1083.94, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.36, -1075.20, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.28, -1066.66, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.21, -1057.95, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.12, -1049.47, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.18, -1040.91, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1031.58, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1023.20, 25.87, 0.00, 0.00, 90.00);



return 1;

}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,835.2302,-2065.7307,12.8672);
SetPlayerFacingAngle(playerid,359.5764);
SetPlayerCameraPos(playerid,835.0862,-2060.4966,12.8672);
SetPlayerCameraLookAt(playerid,835.2302,-2065.7307,12.8672);
return 1;
}

public OnPlayerConnect(playerid)

{
SendClientMessage(playerid, COLOR_RED , "Wellcome to Nightmare Deathmatching. Enjoy, and Have fun!");
SendClientMessage(playerid, COLOR_RED , "Please, listen to the rules, don't break them!");
SendClientMessage(playerid, COLOR_RED , "No hacking, cheating, rulebreaking, or it might cause a ban!");
SendClientMessage(playerid, COLOR_RED , "Use /help and /cmds for more information!");
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if ( !strcmp( cmdtext, "/bankp", true ) )
{
SetPlayerPos( playerid, 1602.3510, -1034.1279, 23.9063 );
SendClientMessage( playerid, COLOR_YELLOW, "You have been successfully teleported to the banks parking lot." );
return 1;
}

// new command

if ( !strcmp( cmdtext, "/airport", true ) )
{
SetPlayerPos(playerid,1831.9614,-2541.3335,13.5469);
SendClientMessage( playerid, COLOR_YELLOW, "You have been successfully teleported to the airport." );

return 1;
}

// new command

if ( !strcmp( cmdtext, "/help", true ) )
{
SendClientMessage(playerid, COLOR_YELLOW , "[HELP] Wellcome to the servers help, and support");
SendClientMessage( playerid, COLOR_YELLOW, "[HELP] I hope, that you will understand the rules, and will enjoy the game!");
SendClientMessage( playerid, COLOR_YELLOW, "[HELP] This is a simple DM server, no hacking, and not cheating, just have fun!");
SendClientMessage( playerid, COLOR_YELLOW, "[HELP] For more informations please use /cmds, and feel free to contract any admin!");
return 1;
}

// new command

if ( !strcmp( cmdtext, "/heal", true ) )
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_LIGHTGREEN , " Congratulations! You just healed your self!");
return 1;
}

// new command

if ( !strcmp( cmdtext, "/kill", true ) )
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_RED , " You have just commited a suicide!");
return 1;
}

// new command

if ( !strcmp( cmdtext, "/cmds", true ) )
{
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] This is the commands of our server, each of them, was scripted by Mr.Lauren!");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /help - The basics of our server.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /heal - Sets your health to 100.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /kill - You will die immidiately.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /bankp - Teleports you to the banks parking lot.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /airport - Teleports you to the airport area.");
return 1;
}

return 0;
}
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 OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Reply
#3

Quote:
Originally Posted by Bogdan1992
Посмотреть сообщение
Код:
/************************************************** *****************************
* SERVER NAME: Nightmater's Deathmatch
* SERVER VERSION: Nightmare v1.0
* SERVER DEVELOPER: Mr.Lauren
*
* INFORMATION: Deathmatching server, BETA Public.
*
************************************************** *****************************/
#include <a_samp>


#if defined FILTERSCRIPT
#define PocketMoney 50000 //Money on spawn
#define GIVECASH_DELAY 5000 //About can be payed in one time

forward MoneyGrubScoreUpdate();
forward Givecashdelaytimer(playerid);
forward SetPlayerRandomSpawn(playerid);
forward SetupPlayerForClassSelection(playerid);
forward GameModeExitFunc();
forward SendPlayerFormattedText(playerid, const str[], define);
forward public SendAllFormattedText(playerid, const str[], define);

public MoneyGrubScoreUpdate()
{
new CashScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof(name));
CashScore = GetPlayerMoney(i);
SetPlayerScore(i, CashScore);
if (CashScore > CashScoreOld)
{
CashScoreOld = CashScore;
//format(string, sizeof(string), "$$$ %s is now in the lead $$$", name);
//SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/pay", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pay [playerid] [amount]");
return 1;
}
giveplayerid = strval(tmp);

tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pay [playerid] [amount]");
return 1;
}
moneys = strval(tmp);

//printf("givecash_command: %d %d",giveplayerid,moneys);


if (IsPlayerConnected(giveplayerid)) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoney(playerid);
if (moneys > 0 && playermoney >= moneys) {
GivePlayerMoney(playerid, (0 - moneys));
GivePlayerMoney(giveplayerid, moneys);
format(string, sizeof(string), "You have paid %s(player: %d), $%d.", giveplayer,giveplayerid, moneys);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
printf("%s(playerid:%d) has payed %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
}
else {
SendClientMessage(playerid, COLOR_YELLOW, "Invalid transaction amount.");
}
}
else {
format(string, sizeof(string), "%d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}


public OnFilterScriptInit()

{
print("\n--------------------------------------");
print(" Deathmatch by Lauren");
print("--------------------------------------\n");
return 1;
}


public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Deathmatch by Lauren");
print("----------------------------------\n");
}

//Colors

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF
#define COLOR_RED 0xFF0000FF
#define COLOR_LIGHTGREEN 0x00FF11FF


#endif

public OnGameModeInit()
{
//Misc
SetGameModeText("NightMare Deathmatch");
//Classes
AddPlayerClass(270,1578.9000,-1004.6900,24.0781,189.3060,34,500,24,2500,27,2500) ; // GuySpawn
AddPlayerClass(271,1542.3815,-1018.6879,23.9063,259.4933,39,20,31,1500,26,5000); // GuySpawn2
AddPlayerClass(269,1574.1085,-1039.4579,23.9140,325.9207,4,5,22,500,28,1500); // GuySpawn3
AddPlayerClass(29,1648.1752,-1020.3409,23.8984,82.1361,9,1,10,25,30,1000); // guyspawn4
AddPlayerClass(19,1638.3949,-1038.9602,23.8984,75.2427,29,999,33,1000,36,10); // guyspawn 5
AddPlayerClass(292,1594.9475,-1043.5657,23.9063,358.1619,41,999,34,50,27,200); // guyspawn 6
//Cars
AddStaticVehicle(411,1658.6884,-1045.6301,23.6255,179.5374,0,0); // Infernus
AddStaticVehicle(411,1654.3730,-1045.6964,23.6255,178.6734,0,0); // Infernus
AddStaticVehicle(415,1649.6898,-1045.8671,23.6703,180.6075,0,0); // Cheetah
AddStaticVehicle(415,1645.2262,-1045.9103,23.6684,179.4133,0,0); // Cheetah
AddStaticVehicle(451,1641.0245,-1046.2959,23.6034,179.9737,0,0); // Turismo
AddStaticVehicle(451,1636.1810,-1046.3678,23.6049,181.2217,0,0); // Turismo
AddStaticVehicle(522,1627.0237,-1037.5391,23.4724,358.4659,0,0); // NRG
AddStaticVehicle(522,1631.7240,-1037.6553,23.4703,359.4286,0,0); // NRG
AddStaticVehicle(522,1636.0018,-1037.4764,23.4757,355.0911,0,0); // NRG
AddStaticVehicle(522,1640.9761,-1037.6333,23.4714,359.9706,0,0); // NRG
AddStaticVehicle(522,1644.9125,-1037.2701,23.4732,1.0191,0,0); // NRG
AddStaticVehicle(522,1649.9854,-1037.7567,23.4653,356.7254,0,0); // NRG
AddStaticVehicle(522,1654.0404,-1037.8448,23.4564,356.7516,0,0); // NRG
AddStaticVehicle(522,1658.4484,-1038.0065,23.4746,358.5745,0,0); // NRG
AddStaticVehicle(541,1632.1035,-1046.6794,23.5234,181.4293,0,0); // Bullet
AddStaticVehicle(541,1627.2782,-1047.0272,23.5233,179.7667,0,0); // Bullet
AddStaticVehicle(406,1718.0410,-1060.9911,25.4284,89.2980,1,1); // MONSTER
AddStaticVehicle(406,1704.5657,-1060.9810,25.4383,89.9575,1,1); // MONSTER
AddStaticVehicle(432,1693.0900,-1061.2255,23.9220,89.5325,43,0); // Tank
AddStaticVehicle(444,1712.3705,-1043.2947,24.2776,180.1961,32,53); // monstertruck
AddStaticVehicle(444,1707.8983,-1043.0551,24.2775,182.2425,32,14); // monstertruck
AddStaticVehicle(444,1703.4321,-1043.2228,24.2776,179.6005,32,36); // monstertruck
AddStaticVehicle(471,1698.6552,-1043.1039,23.3871,179.0870,74,83); // tracktoron
AddStaticVehicle(471,1694.5958,-1043.0059,23.3869,177.6409,66,71); // tracktoron
AddStaticVehicle(471,1689.4056,-1042.8264,23.3881,180.1959,103,111); // tracktoron
AddStaticVehicle(495,1685.2644,-1043.0099,24.2530,179.7142,114,10; // sandstalker
AddStaticVehicle(495,1680.6151,-1043.4302,24.2525,180.1732,88,99); // sandstalker
AddStaticVehicle(520,1689.1721,-1016.2593,24.6360,193.0157,0,0); // hydra
AddStaticVehicle(601,1721.9106,-1068.8397,23.6784,90.1091,1,1); // splashy
AddStaticVehicle(601,1710.3500,-1068.0951,23.6650,88.6382,1,1); // splash
AddStaticVehicle(601,1702.0712,-1068.1466,23.6650,89.5017,1,1); // splash
AddStaticVehicle(601,1693.1000,-1068.2498,23.6650,88.9520,1,1); // splashy
//Objects
CreateObject(3268, 1816.14, -2438.44, 12.91, 0.00, 0.00, 91.00); //ls ap hangar
CreateObject(3268, 1848.77, -2437.74, 12.91, 0.00, 0.00, 91.00); //ls ap hangar
CreateObject(3268, 1880.39, -2437.01, 12.91, 0.00, 0.00, 91.00); //ls ap hangar
CreateObject(3279, 1554.85, -1020.41, 22.89, 0.00, 0.00, 0.00);
CreateObject(3279, 1803.70, -1055.15, 23.05, 0.00, 0.00, 0.00);
CreateObject(1225, 1653.15, -1033.56, 22.90, 0.00, 0.00, 0.00);
CreateObject(1225, 1654.18, -1033.71, 23.32, 0.00, 0.00, 0.00);
CreateObject(1225, 1653.62, -1034.57, 23.02, 0.00, 0.00, 0.00);
CreateObject(1225, 1550.11, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1551.01, -1008.23, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1552.18, -1008.23, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1553.38, -1008.26, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1554.36, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1555.54, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1556.74, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1558.00, -1008.29, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1559.30, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1560.62, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1562.06, -1008.30, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1563.35, -1008.30, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1564.82, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1566.37, -1008.27, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1567.74, -1008.28, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1569.21, -1008.29, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1570.39, -1008.30, 22.88, 0.00, 0.00, 0.00);
CreateObject(1225, 1571.69, -1008.24, 22.88, 0.00, 0.00, 0.00);
CreateObject(1248, 1638.79, -1002.99, 30.63, 0.00, 0.00, 0.00);
CreateObject(1248, 1595.36, -997.78, 28.97, 0.00, 0.00, 0.00);
CreateObject(1248, 1575.12, -1001.55, 33.14, 0.00, 0.00, 0.00);
CreateObject(969, 1543.76, -1014.79, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1540.61, -1022.83, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1538.33, -1028.88, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1545.41, -1010.56, 22.85, 0.00, 0.00, 69.00);
CreateObject(969, 1538.41, -1028.80, 22.85, 0.00, 0.00, -18.00);
CreateObject(969, 1546.33, -1031.33, 22.85, 0.00, 0.00, -18.00);
CreateObject(969, 1554.51, -1033.99, 22.85, 0.00, 0.00, -18.00);
CreateObject(969, 1562.33, -1036.61, 22.85, 0.00, 0.00, -34.00);
CreateObject(969, 1568.63, -1040.89, 22.85, 0.00, 0.00, -38.00);
CreateObject(969, 1575.17, -1045.83, 22.85, 0.00, 0.00, -50.00);
CreateObject(969, 1580.79, -1052.53, 22.85, 0.00, 0.00, -52.00);
CreateObject(969, 1586.11, -1059.33, 22.85, 0.00, 0.00, -56.00);
CreateObject(969, 1590.90, -1066.42, 22.85, 0.00, 0.00, -60.00);
CreateObject(969, 1595.21, -1074.05, 22.85, 0.00, 0.00, -60.00);
CreateObject(969, 1599.65, -1081.58, 22.85, 0.00, 0.00, -70.00);
CreateObject(969, 1602.57, -1089.60, 22.85, 0.00, 0.00, -76.00);
CreateObject(969, 1604.70, -1098.07, 22.85, 0.00, 0.00, -78.00);
CreateObject(969, 1606.58, -1106.48, 22.85, 0.00, 0.00, -82.00);
CreateObject(969, 1607.76, -1114.97, 22.85, 0.00, 0.00, -84.00);
CreateObject(969, 1608.65, -1123.28, 22.85, 0.00, 0.00, -86.00);
CreateObject(969, 1609.19, -1132.01, 22.85, 0.00, 0.00, -86.00);
CreateObject(969, 1609.34, -1135.43, 22.85, 0.00, 0.00, -86.00);
CreateObject(969, 1610.01, -1144.07, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1618.24, -1144.03, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1626.55, -1144.01, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1635.25, -1143.98, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1643.83, -1143.91, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1652.62, -1143.91, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1661.23, -1143.91, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1670.09, -1143.89, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1675.33, -1143.87, 22.85, 0.00, 0.00, 0.00);
CreateObject(969, 1683.99, -1143.77, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.02, -1135.71, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.03, -1127.05, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1118.39, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1100.99, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1683.99, -1109.66, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1692.62, -1092.48, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1701.37, -1092.63, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1710.12, -1092.76, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1718.89, -1092.91, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1727.52, -1093.09, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1736.15, -1093.25, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1744.72, -1093.50, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1753.45, -1093.62, 22.85, 0.00, 0.00, 179.00);
CreateObject(969, 1761.92, -1093.47, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1770.55, -1093.31, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1779.36, -1093.20, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1788.16, -1093.02, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1796.99, -1092.82, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1805.75, -1092.70, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 22.85, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.33, -1083.94, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.36, -1075.20, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.28, -1066.66, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.23, -1057.95, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.12, -1049.47, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.18, -1040.91, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1031.58, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1023.20, 22.85, 0.00, 0.00, 90.00);
CreateObject(969, 1545.41, -1010.56, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1543.76, -1014.79, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1540.61, -1022.83, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1538.35, -1028.72, 25.87, 0.00, 0.00, 69.00);
CreateObject(969, 1538.41, -1028.80, 25.87, 0.00, 0.00, -18.00);
CreateObject(969, 1546.34, -1031.35, 25.87, 0.00, 0.00, -18.00);
CreateObject(969, 1554.51, -1033.99, 25.87, 0.00, 0.00, -18.00);
CreateObject(969, 1562.33, -1036.61, 25.87, 0.00, 0.00, -34.00);
CreateObject(969, 1568.63, -1040.89, 25.87, 0.00, 0.00, -38.00);
CreateObject(969, 1575.17, -1045.83, 25.87, 0.00, 0.00, -50.00);
CreateObject(969, 1580.79, -1052.53, 25.87, 0.00, 0.00, -52.00);
CreateObject(969, 1586.11, -1059.33, 25.87, 0.00, 0.00, -56.00);
CreateObject(969, 1590.90, -1066.42, 25.87, 0.00, 0.00, -60.00);
CreateObject(969, 1595.24, -1074.08, 22.85, 0.00, 0.00, -60.00);
CreateObject(969, 1595.24, -1074.08, 25.87, 0.00, 0.00, -60.00);
CreateObject(969, 1599.65, -1081.58, 25.87, 0.00, 0.00, -70.00);
CreateObject(969, 1602.57, -1089.60, 25.87, 0.00, 0.00, -76.00);
CreateObject(969, 1604.70, -1098.07, 25.87, 0.00, 0.00, -78.00);
CreateObject(969, 1606.58, -1106.48, 25.87, 0.00, 0.00, -82.00);
CreateObject(969, 1607.76, -1114.97, 25.87, 0.00, 0.00, -84.00);
CreateObject(969, 1608.65, -1123.28, 25.87, 0.00, 0.00, -86.00);
CreateObject(969, 1609.19, -1132.01, 25.87, 0.00, 0.00, -86.00);
CreateObject(969, 1609.34, -1135.43, 25.87, 0.00, 0.00, -86.00);
CreateObject(969, 1610.01, -1144.07, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1618.24, -1144.03, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1626.55, -1144.01, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1635.25, -1143.98, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1643.83, -1143.91, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1652.62, -1143.91, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1661.23, -1143.91, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1670.09, -1143.89, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1675.35, -1143.86, 25.87, 0.00, 0.00, 0.00);
CreateObject(969, 1683.99, -1143.77, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.02, -1135.71, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.03, -1127.05, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1118.39, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1683.99, -1109.69, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1684.04, -1100.99, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1692.62, -1092.48, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1701.37, -1092.63, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1710.12, -1092.76, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1718.89, -1092.91, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1727.52, -1093.09, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1736.15, -1093.25, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1744.72, -1093.50, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1753.45, -1093.60, 25.87, 0.00, 0.00, 179.00);
CreateObject(969, 1761.92, -1093.47, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1770.55, -1093.31, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1779.36, -1093.20, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1788.16, -1093.02, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1796.99, -1092.82, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1805.75, -1092.70, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 25.87, 0.00, 0.00, 181.00);
CreateObject(969, 1814.39, -1092.61, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.33, -1083.94, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.36, -1075.20, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.28, -1066.66, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.21, -1057.95, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.12, -1049.47, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.18, -1040.91, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1031.58, 25.87, 0.00, 0.00, 90.00);
CreateObject(969, 1814.13, -1023.20, 25.87, 0.00, 0.00, 90.00);



return 1;

}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,835.2302,-2065.7307,12.8672);
SetPlayerFacingAngle(playerid,359.5764);
SetPlayerCameraPos(playerid,835.0862,-2060.4966,12.8672);
SetPlayerCameraLookAt(playerid,835.2302,-2065.7307,12.8672);
return 1;
}

public OnPlayerConnect(playerid)

{
SendClientMessage(playerid, COLOR_RED , "Wellcome to Nightmare Deathmatching. Enjoy, and Have fun!");
SendClientMessage(playerid, COLOR_RED , "Please, listen to the rules, don't break them!");
SendClientMessage(playerid, COLOR_RED , "No hacking, cheating, rulebreaking, or it might cause a ban!");
SendClientMessage(playerid, COLOR_RED , "Use /help and /cmds for more information!");
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if ( !strcmp( cmdtext, "/bankp", true ) )
{
SetPlayerPos( playerid, 1602.3510, -1034.1279, 23.9063 );
SendClientMessage( playerid, COLOR_YELLOW, "You have been successfully teleported to the banks parking lot." );
return 1;
}

// new command

if ( !strcmp( cmdtext, "/airport", true ) )
{
SetPlayerPos(playerid,1831.9614,-2541.3335,13.5469);
SendClientMessage( playerid, COLOR_YELLOW, "You have been successfully teleported to the airport." );

return 1;
}

// new command

if ( !strcmp( cmdtext, "/help", true ) )
{
SendClientMessage(playerid, COLOR_YELLOW , "[HELP] Wellcome to the servers help, and support");
SendClientMessage( playerid, COLOR_YELLOW, "[HELP] I hope, that you will understand the rules, and will enjoy the game!");
SendClientMessage( playerid, COLOR_YELLOW, "[HELP] This is a simple DM server, no hacking, and not cheating, just have fun!");
SendClientMessage( playerid, COLOR_YELLOW, "[HELP] For more informations please use /cmds, and feel free to contract any admin!");
return 1;
}

// new command

if ( !strcmp( cmdtext, "/heal", true ) )
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_LIGHTGREEN , " Congratulations! You just healed your self!");
return 1;
}

// new command

if ( !strcmp( cmdtext, "/kill", true ) )
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_RED , " You have just commited a suicide!");
return 1;
}

// new command

if ( !strcmp( cmdtext, "/cmds", true ) )
{
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] This is the commands of our server, each of them, was scripted by Mr.Lauren!");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /help - The basics of our server.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /heal - Sets your health to 100.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /kill - You will die immidiately.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /bankp - Teleports you to the banks parking lot.");
SendClientMessage(playerid, COLOR_LIGHTGREEN , "[HELP] /airport - Teleports you to the airport area.");
return 1;
}

return 0;
}
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 OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Thanks alot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)