Ebbe nem értem mi lehet a hiba
hivatalos oldala:http://pastebin.com/f2f43ca9a#
/* Made by DutchDominator AKA H4rdc0r3.
# Do not claim this as your own, if you use it, don\'t forget the credits.
# Yes, you may change this script and republish it, but keep credits to me.*/
#include
#define FILTERSCRIPT
//These are the coordinates your player will spawn at if they are still alive at the end of a minigame:
#define spawnX 1310.000000
#define spawnY -1370.199951
#define spawnZ 13.500000
new playerinminigame[MAX_PLAYERS];
new bloodring[15],derbyon,derbyplaying,playercarid[MAX_PLAYERS],playerinderby[MAX_PLAYERS],derbyrank,reward,bloodringfull[15],playerinbloodring[MAX_PLAYERS];
new tdmon,tdmplaying,playerintdm[MAX_PLAYERS],tdmrank,redplayers,blueplayers,tdmcolor,oldplayercolor[MAX_PLAYERS];
new dmon,dmplaying,playerindm[MAX_PLAYERS],dmrank;
new qbloodring[15],qbloodringfull[15],playerinqderby[MAX_PLAYERS],playerinqbloodring[MAX_PLAYERS],qderbyrank,qderbyon,qderbyplaying;
new boxon,boxplaying,playerinbox[MAX_PLAYERS],boxrank;
new sdon,sdplaying,playerinsd[MAX_PLAYERS],sdrank,sdfirst;
new karts[15],kartfull[15],karton,kartplaying,playerinkartrace[MAX_PLAYERS],kartrank,playerinkart[MAX_PLAYERS],currentcheckpoint[MAX_PLAYERS],krtfirst;
new nrg[15],nrgfull[15],sron,srplaying,playerinsr[MAX_PLAYERS],srrank,playerinnrg[MAX_PLAYERS],currentracecheckpoint[MAX_PLAYERS],srfirst;
new startvar[8];
//Timers:
new dtimer,dmtimer,tdmtimer,qdtimer,boxtimer,sdtimer,krttimer,srtimer;
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward load();
forward Spawnbloodrings();// Derby
forward Destroybloodrings();
forward Respawnbloodrings();
forward StartDerby();
forward Starttdm();// TeamDM
forward Startdm();// LVDM
forward Spawnqbloodrings();// Quarry Derby
forward Destroyqbloodrings();
forward Respawnqbloodrings();
forward StartqDerby();
forward StartBox();// Boxing Fight
forward StartSd();// Skydive
forward EndSd();
forward SdFinish(playerid);
forward SpawnKarts();// KartRace
forward DestroyKarts();
forward RespawnKarts();
forward StartKart();
forward KrtFinish();
forward SpawnNrgs();// Stadium Race
forward DestroyNrgs();
forward RespawnNrgs();
forward StartSr();
forward SrFinish();
forward RewardCalc(playerid,min,max);// General reward calc.
// Derby cars:
new Float:derbycars[15][4] = {
{-1362.9799,932.8219,1036.0580,9.0890}, // 0
{-1346.4526,935.4996,1036.0889,13.6811}, // 1
{-1335.6995,938.2600,1036.1177,16.8043}, // 2
{-1320.8756,944.9904,1036.2062,27.0307}, // 3
{-1306.8385,953.5919,1036.3212,37.8366}, // 4
{-1353.9670,934.0486,1036.2421,11.5836}, // 5
{-1328.6377,941.0197,1036.3208,18.9670}, // 6
{-1313.9012,948.6513,1036.4198,29.5596}, // 7
{-1501.0956,960.3203,1036.9474,313.0457}, // 8
{-1506.8105,968.1082,1037.0840,304.3027}, // 9
{-1513.0317,976.8713,1037.2457,301.9500}, // 10
{-1516.0858,988.2343,1037.4362,274.5044}, // 11
{-1517.6569,995.6628,1037.5626,272.2782}, // 12
{-1515.1127,1004.8807,1037.6969,262.3869}, // 13
{-1510.7020,1014.6202,1037.8568,249.1825} // 14
};
// LVDM Spawn places:
new Float:lvdmspawns[15][3] = {
{2297.5220,2484.1804,3.2734}, // 0
{2271.5120,2474.2268,3.2734}, // 1
{2244.7441,2467.5762,3.2734}, // 2
{2248.0867,2448.3484,3.2734}, // 3
{2267.7366,2439.3997,3.2734}, // 4
{2286.3911,2434.0715,3.2734}, // 5
{2302.9141,2441.9189,3.2734}, // 6
{2265.5151,2494.8433,-0.3329}, // 7
{2300.1218,2483.3733,-7.4531}, // 8
{2281.1760,2480.1216,-7.4531}, // 9
{2251.8474,2473.7490,-7.4531}, // 10
{2227.2383,2460.1196,-7.4531}, // 11
{2250.4229,2440.2544,-7.4531}, // 12
{2293.2231,2438.4878,-7.4531}, // 13
{2301.3645,2452.4045,-7.4531} // 14
};
// Quarry derby cars:
new Float:qderbycars[15][4] = {
{605.7057,815.2199,-43.1692,350.9785}, // 0
{609.4918,814.6188,-43.1692,350.9785}, // 1
{613.3760,814.0021,-43.1692,350.9785}, // 2
{616.5115,813.5043,-43.1692,350.9785}, // 3
{619.8624,812.9723,-43.1691,350.9785}, // 4
{622.9971,812.4746,-43.1691,350.9785}, // 5
{678.2766,922.8008,-41.0451,115.3092}, // 6
{680.1019,918.9395,-41.0066,115.3092}, // 7
{681.3400,916.3724,-40.6739,115.2029}, // 8
{682.7889,913.2912,-40.3585,115.2062}, // 9
{491.2690,912.7574,-30.6622,248.8228}, // 10
{489.9630,909.3635,-30.6003,248.8228}, // 11
{488.5172,905.6060,-30.5318,248.8228}, // 12
{488.1009,902.4600,-30.4778,262.3300}, // 13
{487.7645,899.9181,-30.4341,262.3300} // 14
};
// Karts:
new Float:kartspawns[15][4] = {
{-1366.1909,906.8451,1040.5919,280.3004}, // 0
{-1366.4854,908.3992,1040.2843,280.3004}, // 1
{-1366.8508,910.3288,1039.9022,280.3004}, // 2
{-1367.2168,912.2613,1039.5195,280.3004}, // 3
{-1367.7562,915.1094,1038.9557,280.3004}, // 4
{-1368.4265,918.6667,1038.4503,280.3231}, // 5
{-1368.8036,920.6827,1038.1428,280.3231}, // 6
{-1369.1410,922.4866,1037.8677,280.3231}, // 7
{-1372.5338,921.9490,1037.9705,277.8816}, // 8
{-1372.2379,919.8677,1038.2872,277.8816}, // 9
{-1371.9086,917.5515,1038.6396,277.8816}, // 10
{-1371.6196,915.5192,1038.9486,277.8816}, // 11
{-1371.2595,912.9866,1039.3340,277.8816}, // 12
{-1371.0453,911.4792,1039.5632,277.8816}, // 13
{-1370.6086,908.9531,1040.1785,275.7079} // 14
};
new Float:nrgspawns[15][4] = {
{-1436.5146,-595.6609,1055.5591,86.0952},
{-1436.4534,-594.7911,1055.4529,86.1336},
{-1436.3988,-594.0178,1055.3585,86.1336},
{-1436.3256,-592.9784,1055.2316,86.1336},
{-1436.2520,-591.9318,1055.1398,86.1124},
{-1436.1643,-590.6272,1055.0952,86.1436},
{-1436.1060,-589.7750,1055.0508,86.1436},
{-1436.0160,-588.4620,1054.9822,86.1436},
{-1435.9694,-587.7808,1054.9465,86.1436},
{-1435.9060,-586.8561,1054.8982,86.1436},
{-1435.8304,-586.0049,1054.8535,85.9079},
{-1435.7190,-584.4737,1054.7749,85.9079},
{-1435.6482,-583.4991,1054.7249,85.9079},
{-1435.5737,-582.4772,1054.6724,85.9079},
{-1435.4778,-581.1537,1054.5422,85.8982}
};
// Kartrace checkpoints:
new Float:kcps[5][3] = {
{-1262.4230,1028.3113,1039.6948},
{-1433.8792,1083.7178,1039.0344},
{-1540.4967,1004.6923,1039.1409},
{-1392.7269,914.2321,1039.8306},
{-1392.7269,914.2321,1039.8306}
};
new Float:srcps[10][3] = {
{-1515.0345,-646.2552,1049.8767},
{-1379.9943,-743.5076,1051.6895},
{-1373.9252,-665.4581,1055.8362},
{-1477.3721,-616.7951,1053.4919},
{-1437.9470,-669.4881,1053.0645},
{-1382.3152,-722.2056,1055.6273},
{-1335.7629,-637.1422,1054.2230},
{-1386.6233,-589.4922,1056.3871},
{-1421.6000,-588.1021,1055.8623},
{-1421.6000,-588.1021,1055.8623}
};
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
SetTimer(\"load\",2000,0);
return 1;
}
public OnFilterScriptExit()
{
Destroybloodrings();
Destroyqbloodrings();
DestroyKarts();
DestroyNrgs();
return 1;
}
#endif
public OnGameModeInit()
{
SetTimer(\"load\",2000,0);
return 1;
}
public OnGameModeExit()
{
Destroybloodrings();
Destroyqbloodrings();
DestroyKarts();
DestroyNrgs();
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
playerinminigame[playerid] = 0; // Checks if a player is in a minigame
playercarid[playerid] = -1; // Car that player currently is in, used to check whether the player is in a derby/race car
playerinderby[playerid] = 0; // Derby
playerinbloodring[playerid] = -1;
playerintdm[playerid] = 0; // TeamDM
playerindm[playerid] = 0; // LVDM
playerinqderby[playerid] = 0; // Quarry Derby
playerinqbloodring[playerid] = -1;
playerinbox[playerid] = 0; // Boxing Fight
playerinkartrace[playerid] = 0; // Kart Race
playerinkart[playerid] = -1;
currentcheckpoint[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new string[256];
if(playerinderby[playerid] == 1)
{
new DerbyPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, DerbyPlayerName, sizeof(DerbyPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the derby, rank: %d\", DerbyPlayerName, derbyrank);
SendClientMessageToAll(0x33AA33AA, string);
playerinderby[playerid] = 0;
playerinminigame[playerid] = 0;
bloodringfull[playerinbloodring[playerid]] = 0;
playerinbloodring[playerid] = -1;
if(derbyrank <= 2)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinderby == 1)
{
new winnername[256];
GetPlayerName(i,winnername, sizeof(winnername));
RewardCalc(i,100,1000);
format(string, sizeof(string), \"%s has won the derby for $%d\", winnername, reward);
SendClientMessageToAll(0x33AA33AA, string);
GivePlayerMoney(i,reward);
playerinderby = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
derbyplaying = 0;
derbyrank = 0;
derbyon = 0;
KillTimer(dtimer);
Respawnbloodrings();
return 1;
}
derbyrank--;
} else if(playerintdm[playerid] == 1) {
new tdmPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, tdmPlayerName, sizeof(tdmPlayerName));
if(GetPlayerColor(playerid) == 0x0000BBAA)
{
format(string, sizeof(string), \"%s has been dropped out of the team DM, team blue\", tdmPlayerName);
blueplayers = blueplayers-1;
} else {
format(string, sizeof(string), \"%s has been dropped out of the team DM, team red\", tdmPlayerName);
redplayers = redplayers-1;
}
SendClientMessageToAll(0x33AA33AA, string);
playerintdm[playerid] = 0;
playerinminigame[playerid] = 0;
if(tdmrank == 0)
{
tdmplaying = 0;
tdmrank = 0;
tdmon = 0;
KillTimer(tdmtimer);
return 1;
}
if((blueplayers == 0 || redplayers == 0) && tdmplaying == 1)
{
if(blueplayers == 0)
{
format(string, sizeof(string), \"Team red has won the team DM\");
} else if(redplayers == 0)
{
format(string, sizeof(string), \"Team blue has won the team DM\");
}
SendClientMessageToAll(0x33AA33AA, string);
for(new i=0; i {
if (IsPlayerConnected(i) && playerintdm == 1)
{
playerintdm = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerColor(i,oldplayercolor);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
tdmplaying = 0;
tdmrank = 0;
tdmon = 0;
KillTimer(tdmtimer);
return 1;
}
tdmrank--;
} else if(playerindm[playerid] == 1) {
new dmPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, dmPlayerName, sizeof(dmPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the LVDM, rank: %d\", dmPlayerName, dmrank);
SendClientMessageToAll(0x33AA33AA, string);
playerindm[playerid] = 0;
playerinminigame[playerid] = 0;
if(dmrank <= 2)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerindm == 1)
{
new dmwinnername[256];
GetPlayerName(i,dmwinnername, sizeof(dmwinnername));
RewardCalc(i,100,1000);
format(string, sizeof(string), \"%s has won the LVDM for $%d\", dmwinnername, reward);
SendClientMessageToAll(0x33AA33AA, string);
GivePlayerMoney(i,reward);
playerindm = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
dmplaying = 0;
dmrank = 0;
dmon = 0;
KillTimer(dmtimer);
return 1;
}
dmrank--;
} else if(playerinqderby[playerid] == 1) {
new DerbyPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, DerbyPlayerName, sizeof(DerbyPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the quarry derby, rank: %d\", DerbyPlayerName, qderbyrank);
SendClientMessageToAll(0x33AA33AA, string);
playerinqderby[playerid] = 0;
playerinminigame[playerid] = 0;
qbloodringfull[playerinqbloodring[playerid]] = 0;
playerinqbloodring[playerid] = -1;
if(qderbyrank <= 2)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinqderby == 1)
{
new winnername[256];
GetPlayerName(i,winnername, sizeof(winnername));
RewardCalc(i,100,1000);
format(string, sizeof(string), \"%s has won the quarry derby for $%d\", winnername, reward);
SendClientMessageToAll(0x33AA33AA, string);
GivePlayerMoney(i,reward);
playerinqderby = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
qderbyplaying = 0;
qderbyrank = 0;
qderbyon = 0;
KillTimer(qdtimer);
Respawnqbloodrings();
return 1;
}
qderbyrank--;
} else if(playerinbox[playerid] == 1) {
new boxPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, boxPlayerName, sizeof(boxPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the boxing fight, rank: %d\", boxPlayerName, boxrank);
SendClientMessageToAll(0x33AA33AA, string);
playerinbox[playerid] = 0;
playerinminigame[playerid] = 0;
if(boxrank <= 2)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinbox == 1)
{
new boxwinnername[256];
GetPlayerName(i,boxwinnername, sizeof(boxwinnername));
RewardCalc(i,100,1000);
format(string, sizeof(string), \"%s has won the boxing fight for $%d\", boxwinnername, reward);
SendClientMessageToAll(0x33AA33AA, string);
GivePlayerMoney(i,reward);
playerinbox = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
boxplaying = 0;
boxrank = 0;
boxon = 0;
KillTimer(boxtimer);
return 1;
}
boxrank--;
} else if(playerinsd[playerid] == 1) {
new SkydivePlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, SkydivePlayerName, sizeof(SkydivePlayerName));
format(string, sizeof(string), \"%s has been dropped out of the skydive\", SkydivePlayerName);
SendClientMessageToAll(0x33AA33AA, string);
playerinsd[playerid] = 0;
playerinminigame[playerid] = 0;
if(sdrank <= 1)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinsd == 1)
{
playerinsd = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
sdplaying = 0;
sdrank = 0;
sdon = 0;
sdfirst = 0;
KillTimer(sdtimer);
return 1;
}
sdrank--;
} else if(playerinkartrace[playerid] == 1) {
new KartPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, KartPlayerName, sizeof(KartPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the kart race\", KartPlayerName);
SendClientMessageToAll(0x33AA33AA, string);
playerinkartrace[playerid] = 0;
playerinminigame[playerid] = 0;
kartfull[playerinkart[playerid]] = 0;
playerinkart[playerid] = -1;
if(kartrank <= 1)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinkartrace == 1)
{
playerinkartrace = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
kartplaying = 0;
kartrank = 0;
karton = 0;
KillTimer(krttimer);
RespawnKarts();
return 1;
}
kartrank--;
} else if(playerinsr[playerid] == 1) {
new SrPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, SrPlayerName, sizeof(SrPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the stadium race\", SrPlayerName);
SendClientMessageToAll(0x33AA33AA, string);
playerinsr[playerid] = 0;
playerinminigame[playerid] = 0;
nrgfull[playerinnrg[playerid]] = 0;
playerinnrg[playerid] = -1;
if(kartrank <= 1)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinsr == 1)
{
playerinsr = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
kartplaying = 0;
kartrank = 0;
karton = 0;
KillTimer(srtimer);
RespawnNrgs();
return 1;
}
srrank--;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new string[256];
if(playerinderby[playerid] == 1)
{
new DerbyPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, DerbyPlayerName, sizeof(DerbyPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the derby, rank: %d\", DerbyPlayerName, derbyrank);
SendClientMessageToAll(0x33AA33AA, string);
playerinderby[playerid] = 0;
playerinminigame[playerid] = 0;
bloodringfull[playerinbloodring[playerid]] = 0;
playerinbloodring[playerid] = -1;
if(derbyrank <= 2)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinderby == 1)
{
new winnername[256];
GetPlayerName(i,winnername, sizeof(winnername));
RewardCalc(i,100,1000);
format(string, sizeof(string), \"%s has won the derby for $%d\", winnername, reward);
SendClientMessageToAll(0x33AA33AA, string);
GivePlayerMoney(i,reward);
playerinderby = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
derbyplaying = 0;
derbyrank = 0;
derbyon = 0;
KillTimer(dtimer);
Respawnbloodrings();
return 1;
}
derbyrank--;
} else if(playerintdm[playerid] == 1) {
new tdmPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, tdmPlayerName, sizeof(tdmPlayerName));
if(GetPlayerColor(playerid) == 0x0000BBAA)
{
format(string, sizeof(string), \"%s has been dropped out of the team DM, team blue\", tdmPlayerName);
blueplayers = blueplayers-1;
} else {
format(string, sizeof(string), \"%s has been dropped out of the team DM, team red\", tdmPlayerName);
redplayers = redplayers-1;
}
SendClientMessageToAll(0x33AA33AA, string);
playerintdm[playerid] = 0;
playerinminigame[playerid] = 0;
if(tdmrank == 0)
{
tdmplaying = 0;
tdmrank = 0;
tdmon = 0;
KillTimer(tdmtimer);
return 1;
}
if((blueplayers == 0 || redplayers == 0) && tdmplaying == 1)
{
if(blueplayers == 0)
{
format(string, sizeof(string), \"Team red has won the team DM\");
} else if(redplayers == 0)
{
format(string, sizeof(string), \"Team blue has won the team DM\");
}
SendClientMessageToAll(0x33AA33AA, string);
for(new i=0; i {
if (IsPlayerConnected(i) && playerintdm == 1)
{
playerintdm = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerColor(i,oldplayercolor);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
tdmplaying = 0;
tdmrank = 0;
tdmon = 0;
KillTimer(tdmtimer);
return 1;
}
tdmrank--;
} else if(playerindm[playerid] == 1) {
new dmPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, dmPlayerName, sizeof(dmPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the LVDM, rank: %d\", dmPlayerName, dmrank);
SendClientMessageToAll(0x33AA33AA, string);
playerindm[playerid] = 0;
playerinminigame[playerid] = 0;
if(dmrank <= 2)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerindm == 1)
{
new dmwinnername[256];
GetPlayerName(i,dmwinnername, sizeof(dmwinnername));
RewardCalc(i,100,1000);
format(string, sizeof(string), \"%s has won the LVDM for $%d\", dmwinnername, reward);
SendClientMessageToAll(0x33AA33AA, string);
GivePlayerMoney(i,reward);
playerindm = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
dmplaying = 0;
dmrank = 0;
dmon = 0;
KillTimer(dmtimer);
return 1;
}
dmrank--;
} else if(playerinqderby[playerid] == 1) {
new DerbyPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, DerbyPlayerName, sizeof(DerbyPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the quarry derby, rank: %d\", DerbyPlayerName, qderbyrank);
SendClientMessageToAll(0x33AA33AA, string);
playerinqderby[playerid] = 0;
playerinminigame[playerid] = 0;
qbloodringfull[playerinqbloodring[playerid]] = 0;
playerinqbloodring[playerid] = -1;
if(qderbyrank <= 2)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinqderby == 1)
{
new winnername[256];
GetPlayerName(i,winnername, sizeof(winnername));
RewardCalc(i,100,1000);
format(string, sizeof(string), \"%s has won the quarry derby for $%d\", winnername, reward);
SendClientMessageToAll(0x33AA33AA, string);
GivePlayerMoney(i,reward);
playerinqderby = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
qderbyplaying = 0;
qderbyrank = 0;
qderbyon = 0;
KillTimer(qdtimer);
Respawnqbloodrings();
return 1;
}
qderbyrank--;
} else if(playerinbox[playerid] == 1) {
new boxPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, boxPlayerName, sizeof(boxPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the boxing fight, rank: %d\", boxPlayerName, boxrank);
SendClientMessageToAll(0x33AA33AA, string);
playerinbox[playerid] = 0;
playerinminigame[playerid] = 0;
if(boxrank <= 2)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinbox == 1)
{
new boxwinnername[256];
GetPlayerName(i,boxwinnername, sizeof(boxwinnername));
RewardCalc(i,100,1000);
format(string, sizeof(string), \"%s has won the boxing fight for $%d\", boxwinnername, reward);
SendClientMessageToAll(0x33AA33AA, string);
GivePlayerMoney(i,reward);
playerinbox = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
boxplaying = 0;
boxrank = 0;
boxon = 0;
KillTimer(boxtimer);
return 1;
}
boxrank--;
} else if(playerinsd[playerid] == 1) {
new SkydivePlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, SkydivePlayerName, sizeof(SkydivePlayerName));
format(string, sizeof(string), \"%s has been dropped out of the skydive\", SkydivePlayerName);
SendClientMessageToAll(0x33AA33AA, string);
playerinsd[playerid] = 0;
playerinminigame[playerid] = 0;
if(sdrank <= 1)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinsd == 1)
{
playerinsd = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
sdplaying = 0;
sdrank = 0;
sdon = 0;
sdfirst = 0;
KillTimer(sdtimer);
return 1;
}
sdrank--;
} else if(playerinkartrace[playerid] == 1) {
new KartPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, KartPlayerName, sizeof(KartPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the kart race\", KartPlayerName);
SendClientMessageToAll(0x33AA33AA, string);
playerinkartrace[playerid] = 0;
playerinminigame[playerid] = 0;
kartfull[playerinkart[playerid]] = 0;
playerinkart[playerid] = -1;
if(kartrank <= 1)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinkartrace == 1)
{
playerinkartrace = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
kartplaying = 0;
kartrank = 0;
karton = 0;
KillTimer(krttimer);
RespawnKarts();
return 1;
}
kartrank--;
} else if(playerinsr[playerid] == 1) {
new SrPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, SrPlayerName, sizeof(SrPlayerName));
format(string, sizeof(string), \"%s has been dropped out of the stadium race\", SrPlayerName);
SendClientMessageToAll(0x33AA33AA, string);
playerinsr[playerid] = 0;
playerinminigame[playerid] = 0;
nrgfull[playerinnrg[playerid]] = 0;
playerinnrg[playerid] = -1;
if(kartrank <= 1)
{
for(new i=0; i {
if (IsPlayerConnected(i) && playerinsr == 1)
{
playerinsr = 0;
playerinminigame = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(i, spawnX, spawnY, spawnZ);
}
}
srplaying = 0;
srrank = 0;
sron = 0;
KillTimer(srtimer);
RespawnNrgs();
return 1;
}
srrank--;
}
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
new string[256];
new tmp[256];
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, \"/mark\", true) == 0)
{
if(playerinminigame[playerid])
{
SendClientMessage(playerid, 0x33AA33AA, \"To prevent abuse, /mark and /gotomark are disabled in minigames.\");
return 1;
}
}
if(strcmp(cmd, \"/gotomark\", true) == 0)
{
if(playerinminigame[playerid])
{
SendClientMessage(playerid, 0x33AA33AA, \"To prevent abuse, /mark and /gotomark are disabled in minigames.\");
return 1;
}
}
if(strcmp(cmd, \"/minigames\", true) == 0)
{
SendClientMessage(playerid, 0x33AA33AA, \"______________________________________________________________________________\");
SendClientMessage(playerid, 0xFF0000FF, \" \");
SendClientMessage(playerid, 0xFF0000FF, \"These minigames are currently available:\");
SendClientMessage(playerid, 0xFF0000FF, \"/derby /teamdm /lvdm /qderby /boxing /sdive /kartrace /srace\");
SendClientMessage(playerid, 0xFF0000FF, \"Type /info for more information about seperate minigames.\");
SendClientMessage(playerid, 0x33AA33AA, \"______________________________________________________________________________\");
return 1;
}
if(strcmp(cmd, \"/info\", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,0xFFFF00AA, \"Usage: /info [minigame command]\");
SendClientMessage(playerid,0xFFFF00AA, \"Minigame commands: derby teamdm lvdm qderby boxing sdive kartrace srace\");
return 1;
}
SendClientMessage(playerid, 0x33AA33AA, \"______________________________________________________________________________\");
SendClientMessage(playerid, 0xFF0000FF, \" \");
if(strcmp(tmp, \"derby\", true) == 0){
SendClientMessage(playerid, 0xFF0000FF, \"Derby: A destruction derby in the Bloodbowl.\");
SendClientMessage(playerid, 0xFF0000FF, \"Your goal is to destroy everyone other\'s car, and keep your own car intact.\");
}else if(strcmp(tmp, \"teamdm\", true) == 0){
SendClientMessage(playerid, 0xFF0000FF, \"TeamDM: A team deathmatch in area 51 with two teams, red and blue.\");
SendClientMessage(playerid, 0xFF0000FF, \"Your goal is kill everyone of the other team.\");
}else if(strcmp(tmp, \"lvdm\", true) == 0){
SendClientMessage(playerid, 0xFF0000FF, \"Lvdm: A deathmatch in the LVPD.\");
SendClientMessage(playerid, 0xFF0000FF, \"Your goal kill other people, and stay alive.\");
}else if(strcmp(tmp, \"qderby\", true) == 0){
SendClientMessage(playerid, 0xFF0000FF, \"QDerby: A destruction derby in the Quarry.\");
SendClientMessage(playerid, 0xFF0000FF, \"Your goal is to destroy everyone other\'s car, and keep your own car intact.\");
}else if(strcmp(tmp, \"boxing\", true) == 0){
SendClientMessage(playerid, 0xFF0000FF, \"Boxing: A deathmatch without weapons, only fisting.\");
SendClientMessage(playerid, 0xFF0000FF, \"Your goal kill other people, and stay alive.\");
}else if(strcmp(tmp, \"sdive\", true) == 0){
SendClientMessage(playerid, 0xFF0000FF, \"SDive: A skydive minigame.\");
SendClientMessage(playerid, 0xFF0000FF, \"Your goal is to land on the tower as first. You must stay alive for 2 seconds there.\");
}else if(strcmp(tmp, \"kartrace\", true) == 0){
SendClientMessage(playerid, 0xFF0000FF, \"Kartrace: A race with karts around the Bloodbowl.\");
SendClientMessage(playerid, 0xFF0000FF, \"Your goal is to drive two laps in the fastest time.\");
}else if(strcmp(tmp, \"srace\", true) == 0){
SendClientMessage(playerid, 0xFF0000FF, \"SRace: A race in the Vice Stadium, with NRG\'s.\");
SendClientMessage(playerid, 0xFF0000FF, \"Your goal is to drive one lap in the fastest time.\");
}
SendClientMessage(playerid, 0x33AA33AA, \"______________________________________________________________________________\");
return 1;
}
if(strcmp(cmd, \"/derby\", true) == 0)
{
if(derbyplaying == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"The derby is already started\");
return 1;
}
if(playerinminigame[playerid] == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"You are already in a minigame\");
return 1;
}
new pname[256];
GetPlayerName(playerid, pname, 256);
if(derbyon == 0)
{
derbyon = 1;
playerinminigame[playerid] = 1;
playerinderby[playerid] = 1;
derbyrank = 1;
SetPlayerInterior(playerid,15);
SetPlayerVirtualWorld(playerid,7);
SetVehicleVirtualWorld(bloodring[0],7);
bloodringfull[0] = 1;
PutPlayerInVehicle(playerid, bloodring[0], 0);
playerinbloodring[playerid] = 0;
TogglePlayerControllable(playerid, 0);
startvar[0] = 1;
dtimer = SetTimer(\"StartDerby\", 60000, 0);
format(string, sizeof(string), \"%s has started a derby, you have one minute to type /derby and join\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
} else if(derbyon == 1 && derbyrank < 15) {
playerinminigame[playerid] = 1;
playerinderby[playerid] = 1;
derbyrank++;
SetPlayerInterior(playerid,15);
for(new i=0; i<15; i++)
{
if(bloodringfull == 0)
{
SetPlayerVirtualWorld(playerid,7);
SetVehicleVirtualWorld(bloodring,7);
bloodringfull = 1;
PutPlayerInVehicle(playerid, bloodring, 0);
TogglePlayerControllable(playerid, 0);
playerinbloodring[playerid] = i;
format(string, sizeof(string), \"%s has joined the derby\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
}
}
} else if(derbyon == 1 && derbyrank >= 15) {
format(string, sizeof(string), \"The derby is full, wait for the next round\", pname);//
SendClientMessage(playerid,0x33AA33AA,string);
return 1;
}
}
if(strcmp(cmd, \"/teamdm\", true) == 0)
{
if(tdmplaying == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"The team DM is already started\");
return 1;
}
if(playerinminigame[playerid] == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"You are already in a minigame\");
return 1;
}
new pname[256];
GetPlayerName(playerid, pname, 256);
if(tdmon == 0)
{
tdmon = 1;
playerintdm[playerid] = 1;
playerinminigame[playerid] = 1;
tdmrank = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetPlayerPos(playerid,208.8376,1863.5388,13.1406);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,50000);
GivePlayerWeapon(playerid,31,50000);
GivePlayerWeapon(playerid,32,50000);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
oldplayercolor[playerid] = GetPlayerColor(playerid);
SetPlayerColor(playerid,0x0000BBAA);// BLUE
blueplayers = 1;
redplayers = 0;
tdmcolor = 1;
startvar[1] = 1;
tdmtimer = SetTimer(\"Starttdm\", 60000, 0);
format(string, sizeof(string), \"%s has started a team DM, team blue, you have one minute to type /teamdm and join\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
} else if(tdmon == 1 && tdmcolor == 1) {
playerintdm[playerid] = 1;
playerinminigame[playerid] = 1;
tdmrank++;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetPlayerPos(playerid,268.6240,1882.8805,-30.0938);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,50000);
GivePlayerWeapon(playerid,31,50000);
GivePlayerWeapon(playerid,32,50000);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
oldplayercolor[playerid] = GetPlayerColor(playerid);
SetPlayerColor(playerid,0xAA3333AA);// RED
redplayers++;
tdmcolor = 0;
format(string, sizeof(string), \"%s has joined the team DM, team red\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
} else if(tdmon == 1 && tdmcolor == 0) {
playerintdm[playerid] = 1;
playerinminigame[playerid] = 1;
tdmrank++;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetPlayerPos(playerid,208.8376,1863.5388,13.1406);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,50000);
GivePlayerWeapon(playerid,31,50000);
GivePlayerWeapon(playerid,32,50000);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
oldplayercolor[playerid] = GetPlayerColor(playerid);
SetPlayerColor(playerid,0x0000BBAA);// BLUE
blueplayers++;
tdmcolor = 1;
format(string, sizeof(string), \"%s has joined the team DM, team blue\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
}
}
if(strcmp(cmd, \"/lvdm\", true) == 0)
{
if(dmplaying == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"The LVDM is already started\");
return 1;
}
if(playerinminigame[playerid] == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"You are already in a minigame\");
return 1;
}
new pname[256];
GetPlayerName(playerid, pname, 256);
if(dmon == 0)
{
dmon = 1;
playerindm[playerid] = 1;
playerinminigame[playerid] = 1;
dmrank = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetPlayerPos(playerid,lvdmspawns[0][0],lvdmspawns[0][1],lvdmspawns[0][2]);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,50000);
GivePlayerWeapon(playerid,32,50000);
GivePlayerWeapon(playerid,31,50000);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
startvar[2] = 1;
dmtimer = SetTimer(\"Startdm\", 60000, 0);
format(string, sizeof(string), \"%s has started a LVDM, you have one minute to type /lvdm and join\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
} else if(dmon == 1 && dmrank <= 15) {
playerindm[playerid] = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetPlayerPos(playerid,lvdmspawns[dmrank][0],lvdmspawns[dmrank][1],lvdmspawns[dmrank][2]);
dmrank++;
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,50000);
GivePlayerWeapon(playerid,32,50000);
GivePlayerWeapon(playerid,31,50000);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
format(string, sizeof(string), \"%s has joined the LVDM\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
} else if(dmon == 1 && dmrank == 16) {
format(string, sizeof(string), \"The LVDM is full, wait for the next LVDM\");//
SendClientMessage(playerid,0x33AA33AA,string);
}
}
if(strcmp(cmd, \"/qderby\", true) == 0)
{
if(qderbyplaying == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"The derby is already started\");
return 1;
}
if(playerinminigame[playerid] == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"You are already in a minigame\");
return 1;
}
new pname[256];
GetPlayerName(playerid, pname, 256);
if(qderbyon == 0)
{
Respawnqbloodrings();
qderbyon = 1;
playerinminigame[playerid] = 1;
playerinqderby[playerid] = 1;
qderbyrank = 1;
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetVehicleVirtualWorld(qbloodring[0],7);
qbloodringfull[0] = 1;
PutPlayerInVehicle(playerid, qbloodring[0], 0);
playerinqbloodring[playerid] = 0;
TogglePlayerControllable(playerid, 0);
startvar[3] = 1;
qdtimer = SetTimer(\"StartqDerby\", 60000, 0);
format(string, sizeof(string), \"%s has started a quarry derby, you have one minute to type /qderby and join\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
} else if(qderbyon == 1 && qderbyrank < 15) {
playerinminigame[playerid] = 1;
playerinqderby[playerid] = 1;
qderbyrank++;
SetPlayerInterior(playerid,0);
for(new i=0; i<15; i++)
{
if(qbloodringfull == 0)
{
SetPlayerVirtualWorld(playerid,7);
SetVehicleVirtualWorld(qbloodring,7);
qbloodringfull = 1;
PutPlayerInVehicle(playerid, qbloodring, 0);
TogglePlayerControllable(playerid, 0);
playerinqbloodring[playerid] = i;
format(string, sizeof(string), \"%s has joined the quarry derby\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
}
}
} else if(qderbyon == 1 && qderbyrank >= 15) {
format(string, sizeof(string), \"The quarry derby is full, wait for the next round\", pname);//
SendClientMessage(playerid,0x33AA33AA,string);
return 1;
}
}
if(strcmp(cmd, \"/boxing\", true) == 0)
{
if(boxplaying == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"The boxing fight is already started\");
return 1;
}
if(playerinminigame[playerid] == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"You are already in a minigame\");
return 1;
}
new pname[256];
GetPlayerName(playerid, pname, 256);
if(boxon == 0)
{
boxon = 1;
playerinbox[playerid] = 1;
playerinminigame[playerid] = 1;
boxrank = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetPlayerPos(playerid,2496.479,-1678.357,6997.348);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,50);
startvar[4] = 1;
boxtimer = SetTimer(\"StartBox\", 60000, 0);
format(string, sizeof(string), \"%s has started a boxing fight, you have one minute to type /boxing and join\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
} else if(boxon == 1) {
playerinbox[playerid] = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetPlayerPos(playerid,2496.479,-1678.357,6997.348);
boxrank++;
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,50);
format(string, sizeof(string), \"%s has joined the boxing fight\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
}
}
if(strcmp(cmd, \"/sdive\", true) == 0)
{
if(sdplaying == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"The skydive is already started\");
return 1;
}
if(playerinminigame[playerid] == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"You are already in a minigame\");
return 1;
}
new pname[256];
GetPlayerName(playerid, pname, 256);
if(sdon == 0)
{
sdon = 1;
playerinsd[playerid] = 1;
playerinminigame[playerid] = 1;
sdrank = 1;
sdfirst = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetPlayerPos(playerid,-1753.7169,884.6819,1000.000);
GivePlayerWeapon(playerid,46,1);
startvar[5] = 1;
sdtimer = SetTimer(\"StartSd\", 60000, 0);
SetPlayerRaceCheckpoint(playerid,0,-1753.7169,884.6819,295.8750,-1753.7169,884.6819,290.8750,1);
format(string, sizeof(string), \"%s has started a skydive, you have one minute to type /sdive and join\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
} else if(sdon == 1) {
playerinsd[playerid] = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,7);
SetPlayerPos(playerid,-1753.7169,884.6819,1000.000);
sdrank++;
GivePlayerWeapon(playerid,46,1);
SetPlayerRaceCheckpoint(playerid,0,-1753.7169,884.6819,295.8750,-1753.7169,884.6819,290.8750,1);
format(string, sizeof(string), \"%s has joined the skydive\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
}
}
if(strcmp(cmd, \"/kartrace\", true) == 0)
{
if(kartplaying == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"The kart race is already started\");
return 1;
}
if(playerinminigame[playerid] == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, \"You are already in a minigame\");
return 1;
}
new pname[256];
GetPlayerName(playerid, pname, 256);
if(karton == 0)
{
karton = 1;
playerinminigame[playerid] = 1;
playerinkartrace[playerid] = 1;
kartrank = 1;
krtfirst = 1;
currentcheckpoint[playerid] = 0;
SetPlayerInterior(playerid,15);
SetPlayerVirtualWorld(playerid,7);
SetVehicleVirtualWorld(karts[0],7);
kartfull[0] = 1;
PutPlayerInVehicle(playerid, karts[0], 0);
playerinkart[playerid] = 0;
TogglePlayerControllable(playerid, 0);
SetPlayerRaceCheckpoint(playerid,0,kcps[0][0],kcps[0][1],kcps[0][2],kcps[1][0],kcps[1][1],kcps[1][2],20);
startvar[6] = 1;
krttimer = SetTimer(\"StartKart\", 60000, 0);
format(string, sizeof(string), \"%s has started a kart race, you have one minute to type /kartrace and join\", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
[mod]Köszönés vagy valami?
U.I: Téma javítva![/mod]