Jump to content

Recommended Posts

Geplaatst:

is er een simpele manier om een /find command te maken? zodat als je /find 1 intyped, dat je dan een checkpoint krijgt naar de persoon met id 1?

  • Reacties 32
  • Created
  • Laatste reactie

Top Posters In This Topic

  • Remcconen

    8

  • recromancer

    8

  • David22

    7

  • thuron

    5

Geplaatst: (bewerkt)

Dat is niet zo heel moeilijk te maken. Als je eventjes wacht, post ik wel iets.

OnPlayerCommandText:

public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx, tmp[256];
cmd = strtok(cmdtext, idx);
if (strcmp("/find", cmdtext, true, 10) == 0)
{
	new FindPlayerID;
	tmp = strtok(cmdtext, idx);
	FindPlayerID = strval(tmp);
	if(IsPlayerConnected(FindPlayerID))
	{
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, 0xFF0000AA, "USAGE: /find [PLAYERID]");
			return 1;
		}
		else
		{
			new Float:X, Float:Y, Float:Z;
			GetPlayerPos(FindPlayerID, Float:X, Float:Y, Float:Z);
			SetPlayerCheckpoint(playerid, Float:X, Float:Y, Float:Z, 5);
		}
	}
	return 1;
}
return 0;
}

Helemaal onderaan(Niet nodig wanneer je de include dini/dutils/dudb gebruikt.):

strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
	index++;
}
new result[20], offset = index;
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
	result[index - offset] = string[index];
	index++;
}
result[index - offset] = EOS;
return result;
}

Niet getest

Bewerkt: door Remcconen
Geplaatst: (bewerkt)

Werkt nooit. Probeer het eens zo:

public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx, tmp[256];
cmd = strtok(cmdtext, idx);
if (strcmp("/find", cmdtext, true, 10) == 0)
{
	new FindPlayerID;
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
	{
		SendClientMessage(playerid, KLEUR, "Gebruik: /find [ID]!");
  			return 1;
	}
	FindPlayerID = strval(tmp);
	  if(!IsPlayerConnected(FindPlayerID))
	{
		  SendClientMessage(playerid, KLEUR, "Speler is niet online!");
		  return 1;
	}
	new Float:px, Float:py, Float:pz;
	GetPlayerPos(FindPlayerID, px, py, pz);
	SetPlayerCheckpoint(playerid, px, py, pz, 10.0);
	return 1;
}
return 0;
}

Niet vergeten strtok nog toe te voegen en KLEUR in een kleurcode te veranderen!

Probleem is echter wel dat als je een checkpoint maakt, deze nooit meebeweegt met de speler. Bovendien kan je beter een mapicoon maken, dan zie je namelijk wel iets op de map maar niet in de speelwereld. Mocht je dit willen, moet je het even zeggen. Dan maakt ik het wel even ;).

Bewerkt: door David22
Geplaatst: (bewerkt)

david, je zegt wel: "werkt nooit" maar dat doet het bij mij wel hoor, dus voortaan eerst iets uitproberen voordat je het afkeurt. hij werkt wel, maar inderdaad, ik zie nu problemen dat de checkpoint niet meebeweegt. maar ik zat te denken aan een timer de de checkpoint elke seconde herplaatst. of is er een betere/makkelijkere manier? en als je dat zou willen maken david, graag :)

Bewerkt: door thuron
Geplaatst:
Werkt nooit. Probeer het eens zo:

Waarom zou het zo nooit werken? Dan kan ik er ook wat van leren.

Geplaatst: (bewerkt)
Werkt nooit. Probeer het eens zo:

Waarom zou het zo nooit werken? Dan kan ik er ook wat van leren.

GetPlayerPos(FindPlayerID, Float:X, Float:Y, Float:Z);
SetPlayerCheckpoint(playerid, Float:X, Float:Y, Float:Z, 5);

Je moet daar "Float:" weglaten ;). Bovendien klopt ook de controlestructuur niet, want je controleert eerst of de gegeven speler online is, en daarna pas of er wel wat is ingevuld. Dat moet andersom :Y.

maar ik zat te denken aan een timer de de checkpoint elke seconde herplaatst.

Daar dacht ik ook aan :Y. De timer zou er dan zo uit komen te zien:

forward CheckpointVerplaatsen(playerid, otherplayer);
new CheckpointTimerID;

public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx, tmp[256];
cmd = strtok(cmdtext, idx);
if (strcmp("/find", cmdtext, true, 10) == 0)
{
	new FindPlayerID;
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
	{
		SendClientMessage(playerid, KLEUR, "Gebruik: /find [ID]!");
  			return 1;
	}
	FindPlayerID = strval(tmp);
	  if(!IsPlayerConnected(FindPlayerID))
	{
		  SendClientMessage(playerid, KLEUR, "Speler is niet online!");
		  return 1;
	}
	new Float:px, Float:py, Float:pz;
	GetPlayerPos(FindPlayerID, px, py, pz);
	SetPlayerCheckpoint(playerid, px, py, pz, 10.0);
	CheckpointTimerID = SetTimerEx("CheckpointVerplaatsen", 1000, true, "ii", playerid, FindPlayerID);
	return 1;
}
if(strcmp("/stopfind", cmdtext, true))
{
	KillTimer(CheckpointTimerID);
	return 1;
}
return 0;
}
public CheckpointVerplaatsen(playerid, otherplayer)
{
new Float:px, Float:py, Float:pz;
GetPlayerPos(otherplayer, px, py, pz);
SetPlayerCheckpoint(playerid, px, py, pz, 10.0);
}

'k Weet niet zeker of hij werkt, omdat je hem moet testen met twee personen in je server. Zeg 't maar als hij niet werkt. ;)

Bewerkt: door David22
Geplaatst: (bewerkt)

kga em er nu in zetten, ik zeg zo wel of ie het doet of niet. maar wat zei je nou over een mapicon ipv een checkpoint?

EDIT: Jah, hij doet het. :)

Bewerkt: door thuron
Geplaatst:
kga em er nu in zetten, ik zeg zo wel of ie het doet of niet. maar wat zei je nou over een mapicon ipv een checkpoint?

SA-MP Wiki -> SetPlayerMapIcon. Zou er vrij makkelijk in te zetten, mocht het niet lukken, zeg het dan maar even :Y. Ik raad je aan als ID het spelerid te gebruiken, omdat je dan per speler een id vrij hebt. Houd er wel rekening mee dat je maar 32 map icons kan plaatsen!

Geplaatst:
32 map icons per persoon of per server?

Per server, denk ik. Ik weet het echter niet helemaal zeker.

Geplaatst: (bewerkt)

Je kan 32 map icons plaatsen per persoon. Meestal worden map icons voor de bank, etc. al aangemaakt bij OnPlayerConnect. Als je dan 200 man in je server hebt, zal de server 32x200 map icons moeten aanmaken.

Edit: SetPlayerMarkerForPlayer kan ook werken. Je kan dan de speler die gezocht wordt (tijdelijk) een andere kleur marker geven voor de speler die /find gebruikt heeft.

Bewerkt: door Big Boss
Geplaatst:

Misschien moet iemand is een /area command maken :D

Dat als je /area spelerID doet, dat hij dan zegt welk Stadje hij is..

Bijv..

/area 51

ID 51 is located at The Strip, Las Venturas

Geplaatst:
Misschien moet iemand is een /area command maken :D

Dat als je /area spelerID doet, dat hij dan zegt welk Stadje hij is..

Bijv..

/area 51

ID 51 is located at The Strip, Las Venturas

Zulke ideeën horen niet in dit topic. Als je het een goed idee lijkt, moet je eens wat scripters benaderen en lief vragen of ze het voor je willen maken. Misschien kun je zelf ook wel eens wat proberen.
  • 5 weken later...
Geplaatst:

Huh o.0 bij mij werkt het niet ???

#include <a_samp>

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIME 0x10F441AA
#define COLOR_MAGENTA 0xFF00FFFF
#define COLOR_NAVY 0x000080AA
#define COLOR_AQUA 0xF0F8FFAA
#define COLOR_CRIMSON 0xDC143CAA
#define COLOR_FLBLUE 0x6495EDAA
#define COLOR_BISQUE 0xFFE4C4AA
#define COLOR_BLACK 0x000000AA
#define COLOR_CHARTREUSE 0x7FFF00AA
#define COLOR_BROWN 0XA52A2AAA
#define COLOR_CORAL 0xFF7F50AA
#define COLOR_GOLD 0xB8860BAA
#define COLOR_GREENYELLOW 0xADFF2FAA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_IVORY 0xFFFF82AA
#define COLOR_LAWNGREEN 0x7CFC00AA
#define COLOR_SEAGREEN 0x20B2AAAA
#define COLOR_LIMEGREEN 0x32CD32AA
#define COLOR_MIDNIGHTBLUE 0X191970AA
#define COLOR_MAROON 0x800000AA
#define COLOR_OLIVE 0x808000AA
#define COLOR_ORANGERED 0xFF4500AA
#define COLOR_PINK 0xFFC0CBAA
#define COLOR_SPRINGGREEN 0x00FF7FAA
#define COLOR_TOMATO 0xFF6347AA
#define COLOR_YELLOWGREEN 0x9ACD32AA
#define COLOR_MEDIUMAQUA 0x83BFBFAA
#define COLOR_MEDIUMMAGENTA 0x8B008BAA
#define COLOR_DARKRED 0x660000AA
#define gRandomPlayerSpawns
#define gRandomDmSpawns

new WhatCar[MAX_PLAYERS];
new bool:AntiFalloff[MAX_PLAYERS];
new bool:InCar[MAX_PLAYERS];
new cmd[256], idx, tmp[256];
   cmd = strtok(cmdtext, idx);


public OnGameModeInit()
{
AddStaticVehicle(521,1243.1177,-805.5688,83.7025,181.8177,75,13); //
AddStaticVehicle(521,1826.1147,-1374.5552,13.9811,266.6597,75,13); //
AddStaticVehicle(522,1826.1974,-1369.8627,13.9820,270.6795,6,25); //
AddStaticVehicle(522,1826.1976,-1371.9084,13.9646,272.6818,3,2); //
AddStaticVehicle(471,1826.9760,-1365.9172,13.9031,270.8269,103,111); //
AddStaticVehicle(481,1871.5769,-1370.0223,13.0469,153.6313,3,3); //
AddStaticVehicle(481,1873.2572,-1370.2710,13.0561,155.3773,6,6); //
AddStaticVehicle(444,1831.1772,-1391.8621,13.8699,267.9121,32,42); //
AddStaticVehicle(444,1831.0745,-1398.3558,13.7662,268.6488,32,53); //
AddStaticVehicle(463,1863.9502,-1393.0918,12.8997,287.9611,0,0); //
AddStaticVehicle(463,1863.7389,-1394.5343,12.8930,288.5875,3,3); //
AddStaticVehicle(461,1864.4218,-1370.0353,13.0822,247.4034,6,0); //
AddStaticVehicle(461,1864.3882,-1368.5703,13.0841,243.8757,3,1); //
AddStaticVehicle(416,1907.8920,-1356.5714,13.6545,182.9433,1,3); //
AddStaticVehicle(481,1869.3654,-1362.4404,18.6562,310.3461,65,9); //
AddStaticVehicle(481,1952.7506,-1379.5529,23.6623,303.1976,46,46); //
AddStaticVehicle(513,324.7664,2546.0984,16.4876,178.8663,-1,-1); //
AddStaticVehicle(411,-314.7772,1514.3926,75.0846,0.6399,64,1); //
AddStaticVehicle(451,-320.7805,1514.8680,75.0648,1.8547,36,36); //
AddStaticVehicle(434,-327.1136,1514.3094,75.3234,2.0313,12,12); //
AddStaticVehicle(411,-264.7329,1543.4297,75.0865,135.2888,123,1); //
AddStaticVehicle(471,1826.4222,-1369.0450,13.9036,271.2232,74,91); //
AddStaticVehicle(415,423.3983,2471.5598,16.2710,90.3007,25,1); //
AddStaticVehicle(424,385.6400,2471.6328,16.2807,269.4230,2,2); //
AddStaticVehicle(429,423.4313,2465.1643,16.1797,90.5924,2,1); //
AddStaticVehicle(451,423.1978,2459.7871,16.2062,88.8494,125,125); //
AddStaticVehicle(480,386.4698,2464.8513,16.2736,271.5632,6,6); //
AddStaticVehicle(477,386.7675,2457.7532,16.2551,270.3797,121,1); //
AddStaticVehicle(468,385.7130,2452.0273,16.1691,265.8768,3,3); //
AddStaticVehicle(468,385.7696,2450.8608,16.1690,271.7216,46,46); //
AddStaticVehicle(471,385.5618,2446.4353,15.9806,270.9236,103,111); //
AddStaticVehicle(471,385.5941,2443.9553,15.9817,269.8093,120,114); //
AddStaticVehicle(504,422.7991,2453.0747,16.2987,91.6025,57,38); //
AddStaticVehicle(522,422.2419,2448.6155,16.0742,89.3940,3,2); //
AddStaticVehicle(522,422.2048,2447.2231,16.0659,93.7145,6,25); //
AddStaticVehicle(522,422.3114,2445.9121,16.0706,94.0556,7,79); //
AddStaticVehicle(415,423.4694,2442.9097,16.2705,89.2348,36,1); //
AddStaticVehicle(429,423.2462,2437.6611,16.1797,90.9986,1,3); //
AddStaticVehicle(491,387.1256,2439.7271,16.2563,271.7647,71,72); //
AddStaticVehicle(424,386.7368,2435.7703,16.2809,269.5701,3,2); //
AddStaticVehicle(522,1277.555542, -1258.685913, 366.254761,180,3,3); //
AddStaticVehicle(522,1286.896240, -1258.781738, 366.254761,180,0,2); //
AddStaticVehicle(522,1277.790039, -1239.724854, 366.254761,180,2,78); //
AddStaticVehicle(522,1286.929932, -1239.226074, 366.254761,180,9,23); //
AddStaticVehicle(522,1287.010376, -1245.138916, 366.254761,0,3,5); //
AddStaticVehicle(522,1277.484131, -1245.143433, 366.254761,0,5,1); //
AddStaticVehicle(522,1286.945068, -1226.546387, 366.254761,0,2,3); //
AddStaticVehicle(522,1277.417236, -1226.305298, 366.254761,0,23,7); //
AddStaticVehicle(411, 806.766602, 2653.026855, 180.739502,180,4,5); //
AddStaticVehicle(429, 800.377197, 2653.169678, 180.739502,180,6,2); //
AddStaticVehicle(522, 787.646973, 2653.022217, 180.731873,180,3,0); //
AddStaticVehicle(522, 781.036865, 2652.742676, 180.731873,180,9,1); //
AddStaticVehicle(506, 774.874573, 2652.580811, 180.731873,180,4,7); //
AddStaticVehicle(541, 768.496765, 2652.272949, 180.731873,180,9,3); //
AddStaticVehicle(429, 762.180359, 2652.653076, 180.731873,180,2,2); //
AddStaticVehicle(522, 755.234619, 2652.739014, 180.731873,180,0,3); //
AddStaticVehicle(603, 749.372925, 2652.746582, 180.731873,180,0,3); //
AddStaticVehicle(471, 749.506531, 2621.665527, 180.731873,180,3,0); //
AddStaticVehicle(482, 755.654724, 2621.679443, 180.731873,180,3,0); //
AddStaticVehicle(471, 761.948425, 2621.199951, 180.731873,180,4,0); //
AddStaticVehicle(463, 768.611572, 2621.846924, 180.731873,180,9,3); //
AddStaticVehicle(522, 774.903381, 2621.759033, 180.731873,180,1,3); //
AddStaticVehicle(427, 781.294800, 2622.010742, 180.731873,180,8,5); //
AddStaticVehicle(451, 787.458984, 2622.020020, 180.731873,180,6,2); //
AddStaticVehicle(424, 794.242981, 2621.541260, 180.731873,180,3,0); //
AddStaticVehicle(522, 717.971680, 1755.842407, 293.258911,270,5,2); //
AddStaticVehicle(522, 717.994507, 1746.351440, 293.258911,270,7,2); //
AddStaticVehicle(521, 718.067261, 1736.535034, 293.258911,270,8,3); //
AddStaticVehicle(522, 687.647339, 1755.727051, 293.266541,90,3,9); //
AddStaticVehicle(522, 687.436523, 1746.296631, 293.258911,90,3,4); //
AddStaticVehicle(521, 687.694092, 1736.953613, 293.258911,90,0,9); //
AddStaticVehicle(522, 706.560791, 1741.395386, 293.297974,90,0,5); //
AddStaticVehicle(522, 698.829773, 1741.427979, 293.305603,270,8,7); //
AddStaticVehicle(402,1996.334961, -1679.505737, 153.157318,180,3,2); //
AddStaticVehicle(409,2002.900635, -1679.235229, 153.149689,180,5,2); //
AddStaticVehicle(429,2009.241821, -1679.261719, 153.149689,180,7,1); //
AddStaticVehicle(451,2015.685913, -1678.993896, 153.149689,180,8,5); //
AddStaticVehicle(448,2021.768188, -1678.667725, 154.047852,180,1,4); //
AddStaticVehicle(462,2028.402466, -1678.994995, 153.149689,180,0,2); //
AddStaticVehicle(495,2034.825195, -1679.047485, 153.412109,180,5,1); //
AddStaticVehicle(521,2041.565063, -1678.751465, 153.149689,180,3,2); //
AddStaticVehicle(522,2048.116455, -1678.848022, 153.252426,180,3,2); //
AddStaticVehicle(549,1995.649292, -1647.061401, 153.149689,0,9,2); //
AddStaticVehicle(521,2002.618530, -1644.920288, 153.149689,0,6,2); //
AddStaticVehicle(571,2008.978516, -1647.178955, 153.149689,0,3,7); //
AddStaticVehicle(559,2015.294189, -1647.179565, 153.149689,0,4,4); //
AddStaticVehicle(462,2021.932373, -1647.190186, 153.149689,0,2,3); //
AddStaticVehicle(429,2028.598755, -1646.775391, 153.149689,0,4,2); //
AddStaticVehicle(495,2033.898560, -1646.846924, 153.149689,0,9,2); //
AddStaticVehicle(522,2041.106812, -1646.552368, 153.149689,0,8,7); //
AddStaticVehicle(521,2047.585083, -1645.752563, 153.149689,0,4,6); //
AddStaticVehicle(471,595.5635,871.8878,-43.7745,276.5844,103,111); //
AddStaticVehicle(471,637.2357,833.0610,-43.4799,2.8482,120,114); //
AddStaticVehicle(471,677.9578,890.4665,-40.5778,103.9994,74,91); //
AddStaticVehicle(471,555.6848,878.0190,-43.9847,257.4206,120,112); //
AddStaticVehicle(471,549.7870,827.5789,-30.3834,20.2749,74,83); //
AddStaticVehicle(471,689.6696,757.7488,-7.5675,21.0439,120,113); //
AddStaticVehicle(468,750.1790,883.1585,-1.4981,111.6315,46,46); //
AddStaticVehicle(468,699.5861,992.3135,5.5524,150.6523,53,53); //
AddStaticVehicle(468,707.5967,912.4362,-18.9766,162.8924,3,3); //
AddStaticVehicle(468,694.2236,843.0386,-27.3539,63.2283,46,46); //
AddStaticVehicle(468,683.0340,823.5017,-27.3487,61.9360,53,53); //
AddStaticVehicle(522,1659.049072, -1245.777832, 232.372803,180,24,2); //
AddStaticVehicle(429,1665.851318, -1245.760742, 232.372803,180,3,2); //
AddStaticVehicle(522,1672.366333, -1245.426147, 232.372803,180,7,1); //
AddStaticVehicle(462, 2553.718750, -1845.313110, 3.544819,180,13,2); //
AddStaticVehicle(462, 2553.610107, -1847.849121, 3.547661,180,20,1); //
AddStaticVehicle(461, 2553.703369, -1850.489136, 3.545224,180,1,13); //
AddStaticVehicle(461, 2553.737061, -1853.166626, 3.551378,180,12,2); //
AddStaticVehicle(402,1536.2395,-1666.3180,13.2412,179.8764,245,245); //
AddStaticVehicle(462,1476.1670,-1653.4888,13.5964,71.8738,13,13); //
AddStaticVehicle(462,1469.9001,-1649.8907,13.5923,44.3031,13,13); //
AddStaticVehicle(462,1466.1329,-1643.9524,13.5844,11.3658,13,13); //
AddStaticVehicle(462,1465.6813,-1637.0941,13.5978,341.4716,13,13); //
AddStaticVehicle(462,1469.0096,-1630.5941,13.5711,317.1785,13,13); //
AddStaticVehicle(462,1475.3942,-1626.4425,13.5889,282.3040,13,13); //
AddStaticVehicle(462,1482.1466,-1626.0056,13.5914,252.1743,13,13); //
AddStaticVehicle(462,1488.6683,-1628.9773,13.5846,216.7377,13,13); //
AddStaticVehicle(462,1492.9308,-1635.2456,13.5830,185.8740,13,13); //
AddStaticVehicle(462,1493.1586,-1643.0201,13.5939,162.8033,13,13); //
AddStaticVehicle(462,1489.8861,-1649.1564,13.5938,128.6918,13,13); //
AddStaticVehicle(402,1536.1086,-1672.2660,13.2444,1.8908,120,120); //
AddStaticVehicle(522,1536.1564,-1680.2483,12.9354,358.9746,0,36); //
AddStaticVehicle(522,1536.1138,-1676.7659,12.9369,175.3219,0,6); //
AddStaticVehicle(521,1525.1331,-1680.7405,12.9410,182.5668,75,13); //
AddStaticVehicle(521,1525.1595,-1683.8489,12.9415,359.4153,87,118); //
AddStaticVehicle(429, 2209.457520, -1635.734741, 124.640953, 0,2,21);
AddStaticVehicle(522, 2214.887939, -1636.340088, 124.559494, 0,3,9);
AddStaticVehicle(522, 2215.906006, -1661.643677, 123.840179, 180,1,9);
AddStaticVehicle(409, 2220.729736, -1660.114746, 123.814522, 180,3,6);
AddStaticVehicle(429, 2232.217773, -1633.405640, 123.595482, 0,7,2);
AddStaticVehicle(434, 2232.574707, -1658.733154, 123.590126, 0,0,3);
AddStaticVehicle(432,561.6114,925.9744,-42.9297,256.4039,43,0); //
   AddStaticVehicle(432,612.2925,881.2328,-42.9511,199.0981,43,0); //
   AddStaticVehicle(432,677.5189,841.6386,-42.9479,58.4050,43,0); //
   AddStaticVehicle(432,618.8019,818.7730,-42.9441,352.6794,43,0); //
   AddStaticVehicle(432,649.1628,948.0007,-34.9464,140.8729,43,0); //
   AddStaticVehicle(432,538.2974,882.3365,-36.1061,254.7754,43,0); //

SetGameModeText("[sAS]Stunt-Server");
AddPlayerClass(1,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(2,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(47,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(48,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(60,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(64,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(83,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(98,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(102,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(107,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(108,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(113,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(115,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(175,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(180,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(280,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(283,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(284,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(285,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(286,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
AddPlayerClass(287,402.8361,2437.9929,16.5000,0.5979,0,0,0,0,0,0); //
CreateObject(1634, 426.958008, 2521.581787, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.885132, 2517.802002, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.873383, 2513.679199, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.846832, 2509.712402, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.818420, 2505.558350, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.774841, 2501.407715, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.824341, 2497.307129, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.826050, 2493.115967, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.793121, 2489.137695, 16.781694, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.802429, 2485.243164, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 426.860901, 2481.096436, 16.789486, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 434.449402, 2521.541504, 21.328783, 12.0321, 0.0000, 270.0000);
CreateObject(1634, 434.239746, 2481.109375, 21.366547, 13.7510, 0.0000, 270.0000);
CreateObject(13641, 87.428535, 2535.668213, 17.280193, 0.0000, 0.0000, 0.0000);
CreateObject(13641, 113.614960, 2537.072510, 17.409105, 0.0000, 0.0000, 180.0000);
CreateObject(1634, 276.427399, 2536.510010, 17.109818, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 276.423340, 2540.652344, 17.109818, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 338.994202, 2536.646484, 17.091461, 0.0000, 0.0000, 90.0000);
CreateObject(1634, 338.963898, 2540.811768, 17.088070, 0.0000, 0.0000, 90.0000);
CreateObject(1458, 302.373993, 2457.274170, 15.730144, 0.0000, 0.0000, 292.5000);
CreateObject(1634, -66.317116, 2483.293213, 16.781693, 0.0000, 0.0000, 90.0001);
CreateObject(1634, -66.151596, 2487.136230, 16.781693, 0.0000, 0.0000, 90.0001);
CreateObject(1634, -66.136375, 2491.331787, 16.781693, 0.0000, 0.0000, 90.0001);
CreateObject(12956, 14.966911, 2416.946045, 19.312614, 0.0000, 0.0000, 33.7500);
CreateObject(1634, 434.400055, 2517.736084, 21.314159, 12.0321, 0.0000, 270.0000);
CreateObject(1634, 434.260406, 2513.559326, 21.306623, 12.8916, 0.0000, 270.0000);
CreateObject(1634, 434.197876, 2509.426270, 21.281624, 12.8916, 0.0000, 270.0000);
CreateObject(1634, 434.188660, 2505.286621, 21.314417, 12.8916, 0.0000, 270.0000);
CreateObject(1634, 434.098145, 2501.414063, 21.389418, 13.7510, 0.0000, 270.0000);
CreateObject(1634, 433.983856, 2497.221436, 21.364416, 14.6104, 0.0000, 270.0000);
CreateObject(1634, 433.971619, 2493.224121, 21.339417, 14.6104, 0.0000, 270.0000);
CreateObject(1634, 434.029022, 2489.147705, 21.389442, 14.6104, 0.0000, 270.0000);
CreateObject(1634, 433.973602, 2484.987793, 21.314447, 15.4699, 0.0000, 270.0000);
CreateObject(1632, 309.889557, 2450.931885, 16.776674, 0.0000, 0.0000, 123.7500);
CreateObject(1632, 254.560150, 2458.118652, 16.784487, 0.0000, 0.0000, 123.7500);
CreateObject(1655, 218.688995, 2560.685303, 16.667299, 0.0000, 0.0000, 90.0000);
CreateObject(1655, 211.022949, 2560.716309, 20.969904, 12.8916, 0.0000, 89.1405);
CreateObject(1634, 359.428070, 2477.125000, 16.781693, 0.8594, 0.0000, 256.1717);
CreateObject(979, 399.381104, 2438.520996, 16.340219, 0.0000, 0.0000, 90.0000);
CreateObject(978, 408.408295, 2438.681641, 16.340219, 0.0000, 0.0000, 270.0000);
CreateObject(978, 403.925140, 2443.289307, 16.340219, 0.0000, 0.0000, 0.8594);
CreateObject(1655, 401.884064, 2533.292236, 16.845373, 0.0000, 0.0000, 270.0000);
CreateObject(1634, -72.890831, 2491.337891, 21.756847, 21.4859, 0.0000, 90.0001);
CreateObject(1634, -72.892181, 2487.109131, 21.781975, 20.6265, 0.0000, 90.0001);
CreateObject(1634, -72.847580, 2482.919434, 21.834461, 21.4859, 0.0000, 91.7189);
CreateObject(1634, 440.693390, 2521.594238, 27.105181, 24.0642, 0.0000, 270.0000);
CreateObject(1634, 440.693512, 2517.448242, 27.090616, 24.0642, 0.0000, 270.0000);
CreateObject(1634, 440.659149, 2513.566895, 27.069113, 24.0642, 0.0000, 270.0000);
CreateObject(1634, 440.598755, 2509.431152, 27.063343, 24.0642, 0.0000, 270.0000);
CreateObject(1634, 440.507355, 2505.248535, 27.062851, 24.9237, 0.0000, 270.0000);
CreateObject(1634, 440.493317, 2501.203613, 27.159088, 24.9237, 0.0000, 269.1406);
CreateObject(1634, 440.333160, 2497.074463, 27.168766, 24.0642, 0.0000, 269.1406);
CreateObject(1634, 440.226776, 2492.968262, 27.199457, 23.2048, 0.0000, 269.1406);
CreateObject(1634, 440.145233, 2488.812256, 27.211685, 23.2048, 0.0000, 269.1406);
CreateObject(1634, 440.144531, 2484.819824, 27.297993, 24.0642, 0.0000, 270.0000);
CreateObject(1634, 440.060394, 2480.597168, 27.385542, 24.0642, 0.0000, 270.0000);
CreateObject(1655, 334.357544, 2538.739990, 20.331551, 19.7670, 0.0000, 90.0000);
CreateObject(1655, 281.784973, 2538.641113, 20.602829, 19.7670, 0.0000, 270.0000);
CreateObject(971, 471.175110, 2674.241699, -53.581879, 0.0000, 0.0000, 10.3132);
CreateObject(985, 388.240692, 2590.673096, 17.200012, 0.0000, 0.0000, 13.7510);
CreateObject(1634, -75.214523, 2518.367676, 16.781693, 0.0000, 0.0000, 90.0000);
CreateObject(1634, -81.174294, 2518.393799, 20.889187, 17.1887, 0.0000, 90.0000);
CreateObject(1634, -86.627907, 2518.408936, 26.920273, 28.3614, 0.0000, 90.0000);
CreateObject(1634, -90.373917, 2518.393066, 33.904064, 44.6907, 0.0000, 90.0000);
CreateObject(18449, -140.908463, 2487.753174, 44.047180, 0.0000, 9.4538, 359.1406);
CreateObject(18449, -218.267349, 2488.929932, 58.169365, 0.0000, 11.1727, 359.1406);
CreateObject(18449, -295.666351, 2490.089844, 73.447197, 0.0000, 11.1727, 359.1406);
CreateObject(8040, -374.359131, 2492.117920, 85.299347, 0.0000, 4.2972, 358.2811);
CreateObject(1655, -337.960938, 2495.028320, 82.256432, 0.0000, 0.0000, 88.2811);
CreateObject(1655, -105.374405, 2490.763184, 39.687038, 0.0000, 0.0000, 271.7189);
CreateObject(1655, -105.063339, 2482.075439, 39.713306, 0.0000, 0.0000, 271.7189);
CreateObject(18449, -29.546951, 2486.439941, 45.242157, 0.0000, 0.0000, 0.0000);
CreateObject(1655, -66.491501, 2481.981934, 46.886021, 0.0000, 0.0000, 90.0000);
CreateObject(1655, -66.430611, 2490.586670, 46.886021, 0.0000, 0.0000, 90.0000);
CreateObject(18449, 41.832207, 2486.395020, 45.241150, 0.0000, 0.0000, 0.0000);
CreateObject(18449, 111.631737, 2486.395508, 45.257248, 0.0000, 0.0000, 0.0000);
CreateObject(1655, 148.428482, 2490.120361, 46.901112, 0.0000, 0.0000, 270.0000);
CreateObject(1655, 148.431564, 2482.268799, 46.901112, 0.0000, 0.0000, 270.0000);
CreateObject(1655, 155.476715, 2490.132813, 51.073467, 15.4699, 0.0000, 270.0000);
CreateObject(1655, 155.459351, 2481.559814, 51.012173, 16.3293, 0.0000, 270.0000);
CreateObject(18449, 216.259155, 2486.070801, 59.580608, 0.0000, 0.0000, 0.0000);
CreateObject(18449, 292.028076, 2486.027832, 59.546478, 0.0000, 0.0000, 0.0000);
CreateObject(1655, 331.153381, 2490.144287, 61.190342, 0.0000, 0.0000, 270.0000);
CreateObject(1655, 331.201599, 2481.437988, 61.190342, 0.0000, 0.0000, 270.0000);
CreateObject(1655, 336.903015, 2490.124512, 65.001106, 19.7670, 0.0000, 270.0000);
CreateObject(1655, 336.827972, 2481.426025, 64.973969, 19.7670, 0.0000, 270.0000);
CreateObject(1655, 340.659851, 2490.145264, 69.535629, 34.3775, 0.0000, 270.0000);
CreateObject(1655, 340.563843, 2481.388428, 69.591476, 33.5180, 0.0000, 270.0000);
CreateObject(18449, 503.033356, 2519.034180, 37.469135, 0.0000, 355.7028, 0.0000);
CreateObject(18449, 503.491760, 2503.725342, 37.202621, 0.0000, 355.7028, 0.0000);
CreateObject(18449, 568.991211, 2519.040527, 42.838562, 0.0000, 354.8434, 0.0000);
CreateObject(18449, 572.735718, 2503.544189, 43.198631, 0.0000, 353.9839, 0.0000);
CreateObject(1655, 611.960815, 2506.681152, 48.178188, 0.0000, 0.0000, 270.0000);
CreateObject(1655, 611.872864, 2497.946777, 48.181999, 0.0000, 0.0000, 270.0000);
CreateObject(1660, 605.526611, 2523.853760, 46.550720, 0.0000, 0.0000, 270.0000);
CreateObject(1660, 605.600952, 2518.673340, 46.557426, 0.0000, 0.0000, 270.0000);
CreateObject(1660, 605.597595, 2513.487549, 46.557125, 0.0000, 0.0000, 270.0000);
CreateObject(1660, 611.376038, 2523.836182, 50.206917, 12.0321, 0.0000, 270.0000);
CreateObject(1660, 611.426575, 2518.594238, 50.206867, 12.0321, 0.0000, 270.0000);
CreateObject(1660, 611.515686, 2513.341797, 50.231682, 12.0321, 0.0000, 270.0000);
CreateObject(1655, -344.470184, 2495.278809, 82.257103, 0.0000, 0.0000, 269.1406);
CreateObject(1632, 390.142670, 2576.279297, 16.690737, 0.0000, 0.0000, 5.2339);
CreateObject(1632, 382.554138, 2618.209717, 16.784487, 0.0000, 0.0000, 191.2500);
CreateObject(982, -901.971313, 2552.355469, 223.895767, 0.0000, 0.0000, 95.1566);
CreateObject(982, -880.548157, 2646.003906, 194.029984, 0.0000, 0.0000, 78.7500);
CreateObject(982, -905.588318, 2650.949951, 194.029984, 0.0000, 0.0000, 78.7500);
CreateObject(982, -921.596985, 2651.381592, 194.050629, 0.0000, 0.0000, 90.0000);
CreateObject(982, -947.328857, 2651.421875, 194.053925, 0.0000, 0.0000, 90.0000);
CreateObject(982, -972.986084, 2651.454102, 194.044693, 0.0000, 0.0000, 90.0000);
CreateObject(982, -998.642334, 2651.508789, 194.039825, 0.0000, 0.0000, 90.0000);
CreateObject(982, -1024.210571, 2651.426758, 194.047104, 0.0000, 0.0000, 90.0000);
CreateObject(982, -1039.766479, 2638.974854, 194.037231, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1039.776733, 2613.388672, 194.036819, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1039.821533, 2587.752930, 193.967850, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1039.648315, 2590.636719, 193.042725, 0.0000, 0.0000, 0.0773);
CreateObject(982, -1039.566528, 2564.619873, 191.356506, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1039.582275, 2574.029297, 192.395950, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1038.646240, 2538.966064, 190.324860, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1038.641113, 2513.536377, 189.302414, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1038.691772, 2489.046875, 187.410736, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1038.480103, 2463.085693, 185.345917, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1038.283447, 2444.077881, 183.222809, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1025.289063, 2430.386475, 184.018875, 0.0000, 0.0000, 90.0000);
CreateObject(982, -1008.424561, 2428.976074, 186.822067, 0.0000, 0.0000, 90.0000);
CreateObject(982, -988.432495, 2429.325684, 189.939209, 352.2651, 353.9839, 101.2500);
CreateObject(982, -963.110229, 2430.698730, 192.761780, 353.9839, 0.0000, 90.0000);
CreateObject(982, -937.150818, 2430.412109, 194.383774, 0.0000, 0.0000, 90.0000);
CreateObject(982, -911.399658, 2430.323242, 194.374649, 0.0000, 0.0000, 90.0000);
CreateObject(982, -885.900513, 2430.704834, 194.029984, 0.0000, 0.0000, 90.0000);
CreateObject(982, -860.312439, 2430.728760, 194.029984, 0.0000, 0.0000, 90.0000);
CreateObject(982, -834.754517, 2430.809326, 195.397598, 354.8434, 0.0000, 90.0000);
CreateObject(983, -822.303772, 2430.816162, 198.133606, 340.2330, 0.0000, 90.0000);
CreateObject(983, -816.358948, 2431.215088, 200.991470, 347.1084, 0.0000, 101.2500);
CreateObject(984, -807.265930, 2432.483154, 202.978256, 0.0000, 0.0000, 101.2500);
CreateObject(984, -802.243469, 2439.965332, 202.486099, 355.7028, 0.0000, 11.2500);
CreateObject(984, -805.385376, 2451.788574, 200.678879, 350.5462, 0.0000, 11.2500);
CreateObject(982, -803.343689, 2468.058350, 203.127533, 0.0000, 0.0000, 0.0000);
CreateObject(982, -799.535156, 2485.544678, 206.766068, 0.0000, 0.0000, 0.0000);
CreateObject(982, -800.572083, 2503.763184, 205.469131, 0.0000, 0.0000, 0.0000);
CreateObject(8040, 779.937256, 2637.443359, 181.507935, 0.0000, 0.0000, 180.0000);
CreateObject(18449, 700.530518, 2637.504150, 180.418854, 0.0000, 0.0000, 0.0000);
CreateObject(18449, 623.345154, 2637.720459, 166.938492, 0.0000, 340.2330, 0.0000);
CreateObject(18449, 550.154297, 2637.742432, 141.265747, 0.0000, 341.0924, 0.0000);
CreateObject(18449, 478.260437, 2637.726074, 116.659454, 0.0000, 341.0924, 0.0000);
CreateObject(1655, 443.826172, 2634.430420, 106.492638, 342.8113, 0.8594, 90.0000);
CreateObject(1655, 443.861328, 2642.918945, 106.390366, 342.8113, 0.8594, 90.0000);
CreateObject(1655, 435.492889, 2634.588135, 108.748390, 1.7189, 0.8594, 90.0000);
CreateObject(1655, 435.593262, 2643.259521, 108.622200, 1.7189, 0.8594, 90.0000);
CreateObject(8040, 702.918518, 1735.347656, 294.034973, 0.0000, 0.0000, 270.0000);
CreateObject(983, -1036.561768, 2651.485840, 194.041870, 0.0000, 0.0000, 90.0000);
CreateObject(3461, 711.108032, 1696.192261, 294.851990, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 694.218323, 1695.877441, 294.844360, 0.0000, 0.0000, 0.0000);
CreateObject(3524, 702.982056, 1695.973145, 301.687134, 0.0000, 0.0000, 180.0000);
CreateObject(3528, 703.260681, 1695.982788, 301.739807, 0.0000, 0.0000, 90.0000);
CreateObject(3865, 702.991760, 1690.607666, 293.786255, 11.1727, 0.0000, 0.0000);
CreateObject(3865, 702.902283, 1681.652222, 292.022858, 11.1727, 0.0000, 0.0000);
CreateObject(3865, 702.802490, 1673.077393, 289.082550, 25.7831, 0.0000, 0.0000);
CreateObject(3865, 702.729858, 1666.121826, 285.723877, 25.7831, 0.0000, 0.0000);
CreateObject(3865, 702.669739, 1660.499756, 282.587830, 30.0803, 6.0161, 0.0000);
CreateObject(3865, 702.578735, 1652.855591, 278.010223, 31.7992, 6.0161, 0.0000);
CreateObject(3865, 702.505310, 1645.928589, 273.716156, 31.7992, 6.0161, 0.0000);
CreateObject(3865, 702.286682, 1639.070679, 269.753906, 28.3614, 38.6747, 358.2811);
CreateObject(3865, 702.035828, 1632.841919, 267.276367, 18.9076, 38.6747, 358.2811);
CreateObject(1655, 702.013794, 1623.899780, 263.901245, 342.8113, 0.0000, 180.0000);
CreateObject(3461, 697.990112, 1620.808716, 266.453705, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 705.568420, 1620.930176, 266.432159, 0.0000, 0.0000, 0.0000);
CreateObject(13592, 175.563446, 2339.836426, 24.539511, 14.6104, 357.4217, 180.0000);
CreateObject(13592, 174.642166, 2332.837646, 26.390938, 14.6104, 357.4217, 180.8594);
CreateObject(13592, 173.671844, 2325.674805, 28.286009, 14.6104, 357.4217, 180.8594);
CreateObject(13592, 172.865067, 2319.133789, 30.009991, 14.6104, 357.4217, 180.8594);
CreateObject(18449, 2297.196045, -1650.614868, 99.084412, 0.0000, 36.0963, 357.3444);
CreateObject(8040, 2226.648926, -1649.609497, 124.427612, 0.0000, 0.8594, 0.0000);
CreateObject(18449, 2394.263184, -1656.244995, 14.426011, 359.1406, 34.3775, 357.4217);
CreateObject(3515, 2231.139404, -1649.046265, 124.736580, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 2265.023682, -1641.943604, 124.587219, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 2265.167725, -1656.823242, 124.659088, 0.0000, 0.0000, 0.0000);
CreateObject(3528, 2258.571289, -1649.892578, 149.831635, 0.0000, 0.0000, 168.7500);
CreateObject(3534, 2231.653076, -1648.984741, 126.942055, 0.0000, 0.0000, 0.0000);
CreateObject(8483, 2265.201416, -1650.836426, 142.239090, 0.0000, 0.0000, 180.0000);
CreateObject(7916, 2257.030029, -1648.172729, 135.459610, 0.0000, 0.0000, 270.0000);
CreateObject(11417, 2260.239258, -1635.839233, 128.031845, 0.0000, 0.0000, 0.0000);
CreateObject(11417, 2261.428711, -1665.141357, 128.014008, 0.0000, 0.0000, 90.0000);
CreateObject(1634, 2483.756104, -1656.628418, 13.425213, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 2483.526367, -1660.811279, 13.458267, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 2483.332520, -1664.967163, 13.491070, 0.0000, 0.0000,270.0000);
CreateObject(17565, 73.532799, 2383.438965, 17.993082, 0.0000, 0.0000, 90.0000);
CreateObject(5401, 164.445190, 2312.417725, 19.851892, 0.0000, 0.0000, 0.0000);
CreateObject(5409, 116.261719, 2306.256348, 23.429811, 0.0000, 0.0000, 22.5000);
CreateObject(16362, 94.760818, 2326.883545, 21.527285, 0.0000, 0.0000, 78.7500);
CreateObject(16477, 49.221298, 2336.250000, 19.875244, 0.0000, 0.0000, 0.0000);
CreateObject(17037, 36.562885, 2341.185547, 22.141174, 0.0000, 0.0000, 0.0000);
CreateObject(1634, 190.673981, 2317.836914, 18.255184, 0.0000, 0.0000, 101.2500);
CreateObject(1634, 190.668991, 2304.424805, 20.442657, 0.0000, 0.0000, 78.7500);
CreateObject(2773, 192.903992, 2310.352051, 18.419977, 0.0000, 0.0000, 0.0000);
CreateObject(2773, 35.516212, 2341.101074, 23.222799, 0.0000, 0.0000, 0.0000);
return 1;
}

main()
{
print("\n----------------------------------");
print("[sAS]Recro , Coded By [sAS]Recro");
print(",Scripted By [sAS]Recro,");
print("----------------------------------\n");
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,402.6951,2437.8567,16.5000);
SetPlayerCameraPos(playerid, 401.7164,2442.7195,16.5000);
SetPlayerCameraLookAt(playerid, 402.6951,2437.8567,16.5000);
SetPlayerFacingAngle(playerid, 0.0);
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnPlayerConnect(playerid)
{
SetPlayerTime(playerid,3,1);
GameTextForPlayer(playerid,"~r~Welcome to ~w~San Andreas ~g~Stunts Server",5000,5);
SendClientMessage(playerid, COLOR_RED,"Server Scripted By [sAS]Recro(Djilano Smit) /help for more commands");
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
GameTextForPlayer(playerid,"~b~Thanks For Playing!",5000,5);
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
GameTextForPlayer(playerid,"~r~ No ~lp~ Cake ~b~ For ~lb~ You",5000,5);
GameTextForPlayer(killerid,"~lp~ Well ~lb~ Done!",5000,5);
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], idx, tmp[256];
   cmd = strtok(cmdtext, idx);
   if (strcmp("/find", cmdtext, true, 10) == 0)
   {
       new FindPlayerID;
       tmp = strtok(cmdtext, idx);
       FindPlayerID = strval(tmp);
       if(IsPlayerConnected(FindPlayerID))
       {
           if(!strlen(tmp))
           {
               SendClientMessage(playerid, 0xFF0000AA, "USAGE: /find [PLAYERID]");
               return 1;
           }
           else
           {
               new Float:X, Float:Y, Float:Z;
               GetPlayerPos(FindPlayerID, Float:X, Float:Y, Float:Z);
               SetPlayerCheckpoint(playerid, Float:X, Float:Y, Float:Z, 5);
           }
{
new vehicleid = GetPlayerVehicleID(playerid);
if(strcmp("/rv", cmdtext, true) == 0)
{
	if(IsPlayerInAnyVehicle(playerid))
	{
		SetVehicleHealth(vehicleid, 1000.0);
	}
	return 1;
}

if (strcmp("/killp", cmdtext, true, 6) == 0)
{
	if(IsPlayerAdmin(playerid))
	{
		SetPlayerHealth(playerid, 0);
	}
	else
	{
		SendClientMessage(playerid, COLOR_RED, "You aren't a RCON-Admin");
	}
	return 1;
}

if(strcmp("/fv", cmdtext, true) == 0)
{
	if(IsPlayerInAnyVehicle(playerid))
	{
		new Float:vposx, Float:vposy, Float:vposz;
		GetVehiclePos(vehicleid, vposx , vposy, vposz);
		SetVehiclePos(vehicleid, vposx , vposy, vposz+5);
	}
	return 1;
}

if (strcmp("/drift1", cmdtext, true, 10) == 0)
{
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid, -311.2424,1508.3677,75.5625);
	ResetPlayerWeapons(playerid);

	return 1;
}

if (strcmp("/help", cmdtext, true, 10) == 0)
{
	SendClientMessage(playerid, COLOR_BLACK,"*************************************");
	SendClientMessage(playerid, COLOR_RED,"/jumps = for ramps and jumps");
	SendClientMessage(playerid, COLOR_YELLOW,"/vehicle = Vehicle Info/repair");
	SendClientMessage(playerid, COLOR_GREEN,"/deathmatch = all Deathmatches");
	SendClientMessage(playerid, COLOR_BLACK,"*************************************");
	return 1;


	}

if (strcmp("/jumps", cmdtext, true, 10) == 0)
{

	SendClientMessage(playerid, COLOR_BLACK,"*************************************");
	SendClientMessage(playerid, COLOR_GREEN,"/sp = Skate Park");
    SendClientMessage(playerid, COLOR_GREEN,"/aaj = Abanded Airfield Jump");
	SendClientMessage(playerid, COLOR_PINK,"/pj = Pipe Jump");
	SendClientMessage(playerid, COLOR_RED, "/br = Bike Ride");
	SendClientMessage(playerid, COLOR_ORANGE, "/sf = ScooterFountain");
	SendClientMessage(playerid, COLOR_GREEN, "/xgames = X games Ramp");
	SendClientMessage(playerid, COLOR_RED, "/freerun = Freerun Parcour");
	SendClientMessage(playerid, COLOR_RED,"/drift1 = Drifting Area");
	SendClientMessage(playerid, COLOR_BLACK,"*************************************");
	return 1;

}

if (strcmp("/vehicle", cmdtext, true, 10) == 0)
{

       SendClientMessage(playerid, COLOR_BLACK,"*************************************");
	SendClientMessage(playerid, COLOR_RED, "/fv = Flip Vehicle");
	SendClientMessage(playerid, COLOR_GREEN, "/rv = Repair Vehicle");
	SendClientMessage(playerid, COLOR_ORANGE, "/antifall = Cannot Fall Of A Bike");
	SendClientMessage(playerid, COLOR_BLACK,"*************************************");
	return 1;

}

if (strcmp("/deathmatch", cmdtext, true, 10) == 0)
{

       SendClientMessage(playerid, COLOR_BLACK,"*************************************");
	SendClientMessage(playerid, COLOR_RED, "/dm = Deathmatch");
	SendClientMessage(playerid, COLOR_GREEN, "/sdm = Small Deathmatch");
	SendClientMessage(playerid, COLOR_YELLOW,"/aa = Abanded Airfield");
	SendClientMessage(playerid, COLOR_ORANGE,"/tdm = Tank Deathmatch");
	SendClientMessage(playerid, COLOR_BLACK,"*************************************");
	return 1;

}

if (strcmp("/sp", cmdtext, true, 10) == 0)
{
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,1816.4980,-1372.4573,15.0781);
	ResetPlayerWeapons(playerid);

	return 1;
}

if (strcmp("/pj", cmdtext, true, 10) == 0)
{
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,703.171387,1771.732422,293.258911);
	ResetPlayerWeapons(playerid);

	return 1;
}

if (strcmp("/aaj", cmdtext, true, 10) == 0)
{
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,806.621643,2621.597168,180.731873);
	ResetPlayerWeapons(playerid);

       return 1;
}

if (strcmp("/aa", cmdtext, true, 10) == 0)
{
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,402.8361,2437.9929,16.5000);
	ResetPlayerWeapons(playerid);

       return 1;
}

if (strcmp("/dm", cmdtext, true, 10) == 0)
{
	ResetPlayerWeapons(playerid);
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,-1430.6045,-1547.7634,110.3372);
	SetPlayerArmour(playerid,100);
	GivePlayerWeapon(playerid,24,200);
	GivePlayerWeapon(playerid,5,1);
	GivePlayerWeapon(playerid,25,100);
	GivePlayerWeapon(playerid,32,250);
	GivePlayerWeapon(playerid,34,50);
	GivePlayerWeapon(playerid,35,5);

       return 1;
}

if (strcmp("/sdm", cmdtext, true, 10) == 0)
{
	ResetPlayerWeapons(playerid);
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,395.2380,2593.0681,16.4844);
	SetPlayerArmour(playerid,100);
	GivePlayerWeapon(playerid,24,200);
	GivePlayerWeapon(playerid,5,1);

	return 1;
}

if (strcmp("/br", cmdtext, true, 10) == 0)
{
	SetPlayerPos(playerid,2565.694092,-1849.028320,3.442879);
	SetPlayerArmour(playerid,100);
	GivePlayerWeapon(playerid,5,1);

       return 1;
}

if (strcmp("/sf", cmdtext, true, 10) == 0)
{
	SetPlayerPos(playerid,1478.8082,-1640.1025,13.7217); //
	SetPlayerArmour(playerid,100);//

       return 1;
}

if (strcmp("/xgames", cmdtext, true, 10) == 0)
{
	SetPlayerPos(playerid,2202.083984, -1649.119507, 124.593285);
	SetPlayerHealth(playerid,100);// Leven 100

       return 1;
}

if (strcmp("/freerun", cmdtext, true, 10) == 0)
{
	SetPlayerPos(playerid, 201.801514, 2310.891846, 18.674366);
	SetPlayerHealth(playerid,100);// Leven 100
	SendClientMessage(playerid, COLOR_YELLOW,"*********************************************");
	SendClientMessage(playerid, COLOR_GREEN,"To Start Climb Over Red Slinger");
	SendClientMessage(playerid, COLOR_RED,"To Finnish CLimb Over The Red Slinger At The End");
	SendClientMessage(playerid, COLOR_YELLOW,"*********************************************");

}

	if (strcmp("/antifall", cmdtext, true) == 0)
{
	if(AntiFalloff[playerid] == true) //Als antifall al aan staat
	{
		SendClientMessage(playerid, COLOR_RED, "You've turned Anti Fall off!");
		AntiFalloff[playerid] = false; //Word het uitgezet
	}
	else //Anders, als antifall uit staat dus
	{
		SendClientMessage(playerid, COLOR_GREEN, "You've turned Anti Fall on!");
		AntiFalloff[playerid] = true; //Word het aangezet
		if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) //Als je in een voertuig zit
		{
			InCar[playerid] = true; //Zeggen we tegen antifall dat je in een voertuig zit
			WhatCar[playerid] = GetPlayerVehicleID(playerid);
		}
	}
	return 1;


}

if (strcmp("/tdm", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,574.7583,872.7999,-35.3293); //
	SetPlayerHealth(playerid , 100); // 100 leven
SetPlayerArmour(playerid , 100); // 100 Armour
GivePlayerWeapon(playerid, 10, 1); // Dildo
GivePlayerWeapon(playerid, 34 ,100); // Heatseeker
   GivePlayerWeapon(playerid, 38 , 100000); // Minigun


 	}
return 1;
}

public OnPlayerInfoChange(playerid)
{
return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
GameTextForPlayer(playerid,"~y~You ~r~Entered A ~g~Vehicle",5000,5);
EnableStuntBonusForAll(playerid);
AddVehicleComponent(playerid, 1010);
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(AntiFalloff[playerid] == true) //Staat antifall wel aan?
{
	if(oldstate == PLAYER_STATE_DRIVER) //Als je nu in een voertuig zit
	{
		if(newstate == PLAYER_STATE_ONFOOT) //En je valt eraf
		{
			if(InCar[playerid] == true)
			{
				PutPlayerInVehicle(playerid, WhatCar[playerid], 0); //Word je weer als bestuurder in je voertuig gezet
			}
		}
	}

	if(oldstate == PLAYER_STATE_PASSENGER) //Als je nu passagier bent
	{
		if(newstate == PLAYER_STATE_ONFOOT) //En je valt eraf
		{
			if(InCar[playerid] == true)
			{
				PutPlayerInVehicle(playerid, WhatCar[playerid], 2); //Word je weer als passagier op je voertuig gezet
			}
		}
	}

	if(oldstate == PLAYER_STATE_ONFOOT) //Als je niet in een voertuig zit
	{
		if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER) //Maar daarna wel
		{
			InCar[playerid] = true; //Zeggen we tegen antifall dat je in een voertuig zit
			WhatCar[playerid] = GetPlayerVehicleID(playerid);
		}
	}
}
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 OnObjectMoved(objectid)
{
return 1;
}

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

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

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

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SUBMISSION && oldkeys != KEY_SUBMISSION)
{
	if(IsPlayerInAnyVehicle(playerid)) // check of hij wel in een vehicle is
	{
		AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // als dat zo is, voeg nitro toe
	}
}
return 1; // en sluit de functie af
}

strtok(const string[], &index)
{
   new length = strlen(string);
   while ((index < length) && (string[index] <= ' '))
   {
       index++;
   }
   new result[20], offset = index;
   while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
   {
       result[index - offset] = string[index];
       index++;
   }
   result[index - offset] = EOS;
   return result;
}

dat is mijn script en dit zijn de fouten ??

D:\GTASAS~1\GAMEMO~1\skate.pwn(487) : error 017: undefined symbol "strtok"

D:\GTASAS~1\GAMEMO~1\skate.pwn(487) : error 033: array must be indexed (variable "cmd")

D:\GTASAS~1\GAMEMO~1\skate.pwn(491) : error 017: undefined symbol "strtok"

D:\GTASAS~1\GAMEMO~1\skate.pwn(491) : error 033: array must be indexed (variable "tmp")

D:\GTASAS~1\GAMEMO~1\skate.pwn(498) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(506) : warning 217: loose indentation

D:\GTASAS~1\GAMEMO~1\skate.pwn(514) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(527) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(538) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(547) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(557) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(575) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(587) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(600) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(610) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(619) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(628) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(637) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(653) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(665) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(674) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(682) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(690) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(721) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(737) : error 079: inconsistent return types (array & non-array)

D:\GTASAS~1\GAMEMO~1\skate.pwn(740) : warning 225: unreachable code

D:\GTASAS~1\GAMEMO~1\skate.pwn(740) : error 029: invalid expression, assumed zero

D:\GTASAS~1\GAMEMO~1\skate.pwn(740) : error 004: function "OnPlayerInfoChange" is not implemented

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

26 Errors.

Een reactie plaatsen

Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.

Gast
Op dit onderwerp reageren...

×   Je hebt text geplaatst met opmaak.   Opmaak verwijderen

  Only 75 emoji are allowed.

×   Je link is automatisch ingevoegd.   In plaats daarvan weergeven als link

×   Je vorige bewerkingen zijn hersteld.   Alles verwijderen

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent actief   0 leden

    • Er zijn hier geen geregistreerde gebruikers aanwezig.

×
×
  • Create New...