C:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER CREATOR\gamemodes\freeroam.pwn(55) : error 017: undefined symbol "CarSpawn"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER CREATOR\gamemodes\freeroam.pwn(330) : error 017: undefined symbol "CarSpawn"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER CREATOR\gamemodes\freeroam.pwn(398) : error 017: undefined symbol "CurrentMenu"
new CurrentMenu;
new Menu:CurrentMenu = GetPlayerMenu(playerid);
new Menu:CarSpawn;
AddMenuItem(CarSpawn,0,"Bullet");
AddMenuItem(CarSpawn,0,"Buffalo");
AddMenuItem(CarSpawn,0,"Yosmite");
AddMenuItem(CarSpawn,0,"Banshee");
AddMenuItem(CarSpawn,0,"LandStalker");
AddMenuItem(CarSpawn,0,"Turismo");
AddMenuItem(CarSpawn,0,"Hunter");
AddMenuItem(CarSpawn,0,"Hydra");
AddMenuItem(CarSpawn,0,"Bandito");
AddMenuItem(CarSpawn,0,"Tank");
AddMenuItem(CarSpawn,0,"Monster Truck");
AddMenuItem(CarSpawn,0,"Infernus");
AddMenuItem(CarSpawn,0,"Go-Kart");
AddMenuItem(CarSpawn,0,"Maverik");
AddMenuItem(CarSpawn,0,"Huntley");
AddMenuItem(CarSpawn,0,"Super GT");
AddMenuItem(CarSpawn,0,"Slamride");
public OnPlayerSelectedMenuRow(playerid, row)
{
if(CurrentMenu == CarSpawn)
{
switch(row)
{
case 0:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(541,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//bullet
}
case 1:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(402,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//buffalo
}
case 2:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(554,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//yosmite
}
case 3:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(429,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//banshee
}
case 4:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(400,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//landstalker
}
case 5:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(451,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//turismo
}
case 6:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(425,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//hunter
}
case 7:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(520,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//hydra
}
case 8:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(568,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//bandito
}
case 9:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(432,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//tank
}
case 10:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(444,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//monster
}
case 11:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(411,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//infernus
}
case 12:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(571,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//gokart
}
case 13:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(487,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//maverik
}
case 14:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(579,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//huntley
}
case 15:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(506,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//supergt
}
case 16:
{
new Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle;
AddStaticVehicle(535,spawn_x,spawn_y,spawn_z,0.0,angle,-1,-1);//slamride
}
}
}
return 1;
}
I was talking about the "Creating a simple Menu" even though i just noticed it has nothing to do with vehicles lol.
|
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER CREATOR\gamemodes\freeroam.pwn(332) : error 017: undefined symbol "CarSpawn"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER CREATOR\gamemodes\freeroam.pwn(398) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER CREATOR\gamemodes\freeroam.pwn(400) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER CREATOR\gamemodes\freeroam.pwn(400) : error 017: undefined symbol "CarSpawn"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
new CurrentMenu; new Menu:CurrentMenu = GetPlayerMenu(playerid);
Код:
new CurrentMenu; new Menu:CurrentMenu = GetPlayerMenu(playerid); |
#include <a_samp>
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" X-TREME DEATH Beta V1.3.4");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
//misc
new Menu:CarSpawn = CreateMenu("CarSpawn", 2, 200.0, 100.0, 150.0, 150.0);SetGameModeText("X-TREME DEATH");
AddMenuItem(CarSpawn,0,"Bullet");
AddMenuItem(CarSpawn,0,"Buffalo");
AddMenuItem(CarSpawn,0,"Yosmite");
AddMenuItem(CarSpawn,0,"Banshee");
AddMenuItem(CarSpawn,0,"LandStalker");
AddMenuItem(CarSpawn,0,"Turismo");
AddMenuItem(CarSpawn,0,"Hunter");
AddMenuItem(CarSpawn,0,"Hydra");
AddMenuItem(CarSpawn,0,"Bandito");
AddMenuItem(CarSpawn,0,"Tank");
AddMenuItem(CarSpawn,0,"Monster Truck");
AddMenuItem(CarSpawn,0,"Infernus");
AddMenuItem(CarSpawn,0,"Go-Kart");
AddMenuItem(CarSpawn,0,"Maverik");
AddMenuItem(CarSpawn,0,"Huntley");
AddMenuItem(CarSpawn,0,"Super GT");
AddMenuItem(CarSpawn,0,"Slamride");
//vehicles
AddStaticVehicle(402,1231.0754,-802.6677,88.5083,92.3563,-1,-1); // A car near spawn class one
AddStaticVehicle(571,1494.6517,1507.8956,10.1040,2.1871,-1,-1); // gokart location
AddStaticVehicle(583,1272.4006,1356.9504,10.3535,269.1510,-1,-1); // white airport thing
AddStaticVehicle(400,1537.2129,-842.3149,64.7209,271.9633,-1,-1); // landstalker
AddStaticVehicle(402,1516.2616,-694.7323,94.5816,273.6147,-1,-1); // buffalo
AddStaticVehicle(411,1515.8004,-690.3368,94.4771,273.9674,-1,-1); // infernus
AddStaticVehicle(415,1243.1000,-805.7906,83.9135,3.7529,-1,-1); // cheeta
AddStaticVehicle(424,1247.9072,-804.6896,83.9194,1.5368,-1,-1); // dunebuggy
AddStaticVehicle(429,1255.1383,-804.7894,83.8203,358.8372,-1,-1); // banshee
AddStaticVehicle(434,1229.4176,-828.8979,84.3407,67.3581,-1,-1); // hotknife
AddStaticVehicle(439,1351.9745,-621.3533,109.0285,200.0401,-1,-1); // stallion
AddStaticVehicle(445,1256.7780,-344.6705,5.1784,16.7940,-1,-1); // admiral
AddStaticVehicle(445,1251.9471,-328.4795,7.6207,16.6490,-1,-1); // admiral
AddStaticVehicle(445,1231.4427,-291.2938,13.8505,19.1830,-1,-1); // admiral
AddStaticVehicle(451,1235.7054,-141.1476,39.1344,231.8098,-1,-1); // turismo
AddStaticVehicle(451,1274.2817,-58.4950,33.8055,92.7371,-1,-1); // turismo
AddStaticVehicle(451,1354.0623,240.9367,19.2750,245.9710,-1,-1); // turismo
AddStaticVehicle(456,1356.4506,265.8958,19.6507,337.9819,-1,-1); // yankee
AddStaticVehicle(456,1351.6909,355.7739,20.2388,244.8880,-1,-1); // yankee
AddStaticVehicle(456,1341.0951,334.8541,20.0760,62.9878,-1,-1); // yankee
AddStaticVehicle(459,1363.0115,403.6521,19.5517,340.5085,-1,-1); // van
AddStaticVehicle(471,1276.9005,502.5577,19.4709,65.2918,-1,-1); // quad
AddStaticVehicle(471,1190.7058,457.2079,22.3632,181.9654,-1,-1); // quad
AddStaticVehicle(470,1103.9995,427.3051,26.1476,52.7574,-1,-1); // gun car
AddStaticVehicle(463,803.0141,360.9448,18.9236,141.9529,-1,-1); // chopper
AddStaticVehicle(463,764.9123,343.6580,19.6015,232.5273,-1,-1); // chopper
AddStaticVehicle(500,609.1321,355.7183,19.1266,38.9688,-1,-1); // jeep
AddStaticVehicle(500,602.3874,364.6835,19.1334,34.8143,-1,-1); // jeep
AddStaticVehicle(500,1234.5804,1388.0240,6.9145,358.6786,-1,-1); // jeep
AddStaticVehicle(506,1200.2828,1449.3037,6.5142,183.0313,-1,-1); // super gt
AddStaticVehicle(506,1140.8846,1378.0457,10.4477,89.0283,-1,-1); // super gt
AddStaticVehicle(506,1144.2607,1367.6833,10.4270,273.5417,-1,-1); // super gt
AddStaticVehicle(522,1101.9757,1393.9304,10.3907,1.0933,-1,-1); // nrg
AddStaticVehicle(522,1094.5529,1392.9409,10.3927,167.2945,-1,-1); // nrg
AddStaticVehicle(522,1049.6636,1369.0422,10.2344,92.2084,-1,-1); // nrg
AddStaticVehicle(522,1012.1477,1668.7826,10.3394,359.6488,-1,-1); // nrg
AddStaticVehicle(522,1011.8073,1740.8529,10.3392,359.7271,-1,-1); // nrg
AddStaticVehicle(522,1011.9620,1773.3229,10.3395,359.7271,-1,-1); // nrg
AddStaticVehicle(522,891.4973,1972.3234,10.8941,73.4182,-1,-1); // nrg
AddStaticVehicle(522,1773.2128,2065.8574,10.3924,353.3723,-1,-1); // nrg
AddStaticVehicle(407,1768.6660,2076.3262,11.0558,1.0386,-1,-1); // firetruck
AddStaticVehicle(407,1759.0110,2077.0227,11.0557,185.5667,-1,-1); // firetruck
AddStaticVehicle(415,1956.8835,2018.0431,10.5143,270.1956,-1,-1); // cheeta
AddStaticVehicle(415,2069.9502,2017.5032,10.5145,268.6010,-1,-1); // cheeta
AddStaticVehicle(415,2171.5530,1988.9258,10.5908,266.9808,-1,-1); // cheeta
AddStaticVehicle(412,2186.6604,2004.4320,10.6573,273.6836,-1,-1); // voodoo
AddStaticVehicle(506,2185.9468,1991.6199,10.5246,271.5596,-1,-1); // super gt
AddStaticVehicle(506,2186.0032,1979.1768,10.5250,89.2751,-1,-1); // super gt
AddStaticVehicle(506,2172.7595,1981.0847,10.5248,88.9816,-1,-1); // super gt
AddStaticVehicle(506,2155.2080,1933.3940,10.3762,177.5427,-1,-1); // super gt
AddStaticVehicle(506,2119.5781,1880.8583,10.3764,178.4977,-1,-1); // super gt
AddStaticVehicle(506,2082.1140,1875.4020,10.9770,55.1389,-1,-1); // super gt
AddStaticVehicle(409,2060.0955,1919.0228,12.0015,357.9866,-1,-1); // limo
AddStaticVehicle(409,2085.7930,1958.7671,11.0190,297.7842,-1,-1); // limo
AddStaticVehicle(409,2091.8821,2002.2244,10.4680,51.4871,-1,-1); // limo
AddStaticVehicle(411,1901.1792,1988.7462,7.3216,1.4685,-1,-1); // infurnus
AddStaticVehicle(411,1886.3787,1989.3536,7.3217,6.5860,-1,-1); // infurnus
AddStaticVehicle(411,2119.7866,1920.3563,10.3990,182.6621,-1,-1); // infurnus
AddStaticVehicle(411,2096.5366,1812.8663,10.3991,154.1206,-1,-1); // infurnus
AddStaticVehicle(411,2070.9414,1763.8970,10.3990,154.0338,-1,-1); // infurnus
AddStaticVehicle(411,2051.3279,1725.6874,10.3985,151.2118,-1,-1); // infurnus
AddStaticVehicle(429,2074.9219,1671.3456,10.3516,359.3527,-1,-1); // banshee
AddStaticVehicle(429,2075.1460,1691.0901,10.3516,359.3482,-1,1); // banshee
AddStaticVehicle(429,2081.7937,1714.3926,10.4232,335.3723,-1,-1); // banshee
AddStaticVehicle(429,2186.6404,1681.2544,10.7802,105.8362,-1,-1); // banshee
//players
AddPlayerClass(23,1268.0962,1362.7511,10.8130,265.5475,24,500,32,500,29,500); // spawn 2 location 1 0
AddPlayerClass(150,1231.7922,-810.8955,87.7598,1.1316,32,0,0,0,0,0); // spawn near white car (spawn 1) location 2 1
AddPlayerClass(152,1231.7922,-810.8955,87.7598,1.1316,0,0,32,0,0,0);//spawn 3 location 2 2
AddPlayerClass(155,1268.0962,1362.7511,10.8130,1.1316,0,0,0,0,0,0);//spawn 4 location 1 3
AddPlayerClass(159,1268.0962,1362.7511,10.8130,1.1316,0,0,0,0,32,0);//spawn 5 location 1 4
AddPlayerClass(167,1231.7922,-810.8955,87.7598,1.1316,0,0,0,0,0,0);//spawn 6 location 2 5
AddPlayerClass(106,1268.0962,1362.7511,10.8130,1.1316,0,0,0,0,0,0);//spawn 7 location 1 6
AddPlayerClass(151,1231.7922,-810.8955,87.7598,1.1316,0,0,0,0,32,0);//spawn 8 location 2 7
AddPlayerClass(158,1231.7922,-810.8955,87.7598,1.1316,0,0,0,0,0,0);//spawn 9 location 2 8
AddPlayerClass(189,1268.0962,1362.7511,10.8130,1.1316,0,0,0,0,0,0);//spawn 10 location 1 9
AddPlayerClass(102,1231.7922,-810.8955,87.7598,1.1316,0,0,0,0,32,0);//spawn 11 location 2 10
AddPlayerClass(111,1268.0962,1362.7511,10.8130,1.1316,0,0,0,0,0,0);//spawn 12 location 1 11
AddPlayerClass(145,1268.0962,1362.7511,10.8130,1.1316,0,0,0,0,0,0);//spawn 13 location 1 12
AddPlayerClass(123,1231.7922,-810.8955,87.7598,1.1316,0,0,0,0,32,0);//spawn 14 location 2 13
AddPlayerClass(178,1268.0962,1362.7511,10.8130,1.1316,0,0,0,0,0,0);//spawn 15 locaiton 1 14
AddPlayerClass(198,1268.0962,1362.7511,10.8130,1.1316,0,0,0,0,0,0);//spawn 16 location 1 15
AddPlayerClass(287,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 17 location 1 16
AddPlayerClass(120,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 18 location 2 17
AddPlayerClass(130,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 18 location 2 18
AddPlayerClass(125,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 18 location 2 19
AddPlayerClass(133,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 18 location 2 20
AddPlayerClass(126,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 18 location 2 21
AddPlayerClass(192,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 18 location 2 22
AddPlayerClass(157,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 18 location 2 23
AddPlayerClass(136,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 18 location 2 24
AddPlayerClass(121,1609.0890,-1007.6447,23.9063,178.9893,0,0,29,1000,32,1000);//spawn 18 location 2 25
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0|| classid == 3 || classid == 4 || classid == 6 || classid == 9 || classid == 11 || classid == 12 || classid == 14 || classid == 15)
{
GameTextForPlayer(playerid,"~b~Airport Security",3000,3);
SetPlayerPos(playerid,1271.3427,1363.6024,10.8203);//1268.0962,1362.7511,10.8130);
SetPlayerFacingAngle(playerid,88.8832);
SetPlayerCameraPos(playerid,1268.0962,1362.7511,10.8130);
SetPlayerCameraLookAt(playerid,1268.0962,1362.7511,10.8130);
}
else if (classid == 1 || classid == 2 || classid == 5 || classid == 7 || classid == 8 || classid == 10 || classid == 13)
{
GameTextForPlayer(playerid,"~b~Civilians",3000,3);
SetPlayerPos(playerid,1231.7922,-810.8955,87.7598);
SetPlayerFacingAngle(playerid,1.1316);
SetPlayerCameraPos(playerid,1230.7089,-805.5256,88.3745);
SetPlayerCameraLookAt(playerid,1231.7922,-810.8955,87.7598);
}
else if(classid == 16|| classid == 17|| classid == 18|| classid == 19|| classid == 20|| classid == 21|| classid == 22|| classid == 23|| classid == 24|| classid == 25|| classid == 26)
{
GameTextForPlayer(playerid,"~r~Assasins(Killers)",3000,3);
SetPlayerPos(playerid,1609.0890,-1007.6447,23.9063);
SetPlayerFacingAngle(playerid,178.9893);
SetPlayerCameraPos(playerid,1608.4562,-1014.9272,23.9063);
SetPlayerCameraLookAt(playerid,1609.0890,-1007.6447,23.9063);
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
SetPlayerArmour(playerid,100.0);
GivePlayerMoney(playerid,10000);
SendClientMessage(playerid,0x33FF33AA ,"Welcome to X-TREME DEATH Beta V1.3.4!, Please view the /rules before you play, Say /commands for a list of commands.\n Please enjoy the server!");
new name[MAX_PLAYERS],string[128];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s has connected to the server.",name);
SendClientMessageToAll(0x0000BBAA,string);
if (GetPlayerName(playerid,"CSMajor",7)||GetPlayerName(playerid,"Brian_Jaxxson",11))
{
SetPlayerColor(playerid,0x33CCFFAA);
}
else
{
SetPlayerColor(playerid,0xFFFFFFFAA);
}
return 1;
}
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 OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/anc",cmdtext,true,4)==0)
{
if(!cmdtext[4]) return SendClientMessage(playerid,0xFFF0000FF,"USAGE: /anc [ANNOUNCEMENT]");
{
GameTextForAll(cmdtext[5],5000,3);
}
return 1;
}
if (strcmp("/kill", cmdtext, true, 5)== 0)
{
SendClientMessage(playerid,0xFF9900AA,"You Have Killed Yourself!");
SetPlayerHealth(playerid,0.0);
return 1;
}
else if (strcmp("/rules", cmdtext, true, 6)== 0)
{
SendClientMessage(playerid,0xFF9900AA ,"Welcome, The rules are:");
SendClientMessage(playerid,0xFF9900AA ," 1.No Driver Drive By");
SendClientMessage(playerid,0xFF9900AA ," 2.No Blowing up others cars");
SendClientMessage(playerid,0xFF9900AA ," 3.Respect the players ");
SendClientMessage(playerid,0xFF9900AA ," 4.Respect Staff");
SendClientMessage(playerid,0xFF9900AA ," 5.No Exploites,Hacks, Or Unfair advantages with cleo mods.");
return 1;
}
if (strcmp("/commands",cmdtext, true, 9)== 0)
{
SendClientMessage(playerid,0xFF9900AA ,"/kill, /rules, /flip, /fixme, /pm, /animlist\n/afk, /back, /lupdates,/ahelp. ");
if (IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,0xFFF0000FF,"ADMIN COMMANDS:");
SendClientMessage(playerid,0x000000000,"/anc(Announcement),/makeadmin, /specplayer, /specvehicle, /specoff, /kick, /ban /m2v, /player2v, /vehicle, /dvehicle, /goto, /bring\n /tpzero, /myvw, /fight, ,myfacingangle(mfa), /crime, /repairmycar(rpmc)\n /bv, /wepskill, /labelonplayer, /dellable, /playerlabel, /playerlabelveh\n /playerlabelpl, /delplayerlabel, /updateplayerlabel, /carmodtest, /setskin, /paintjob, /addnitro, /remnitro\n ");
return 1;
}
return 1;
}
if(strcmp(cmdtext, "/flip", true,5)== 0)
{
new currentveh; //variable for the vehicle that is flipped
new Float:angle; // the floats angle
currentveh = GetPlayerVehicleID(playerid);//variable for the vehicle that is flipped
GetVehicleZAngle(currentveh, angle);// gets the angle of the vehicle
SetVehicleZAngle(currentveh, angle);// flips the vehicle
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");// tells the player
return 1;
}
if (strcmp("/fixme", cmdtext, true, 6)== 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
return 1;
}
if (!strcmp("/me", cmdtext, true, 3))
{
if(!cmdtext[3])return SendClientMessage(playerid,0xFF0000FF,"USAGE: /me [MESSAGE]");
{
new str[128];
GetPlayerName(playerid,str,sizeof(str));
format(str,sizeof(str),"~~ %s %s.",str,cmdtext[4]);
SendClientMessageToAll(0xFFFFFAA,str);
return 1;
}
}
if (strcmp("/lupdate",cmdtext,true,8)==0)
{
SendClientMessageToAll(0xFFF0000FF,"Latest Updates:");
SendClientMessageToAll(0xFFFF000FF,"1.Admin Script Added");
SendClientMessageToAll(0xFFFF000FF,"2.Bugs fixed in Beta V1.1");
SendClientMessageToAll(0xFFFF000FF,"Thats all - ~CSMajor~");
return 1;
}
if (!strcmp("/remveh",cmdtext,true,6)) return SendClientMessage(playerid,0xFFF0000FF,"USAGE: /remveh [id]");
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(cmdtext[7]);
return 1;
}
}
if(strcmp(cmdtext,"/carspawn",true) == 0)
{
new Menu:CarSpawn = CreateMenu("CarSpawn", 2, 200.0, 100.0, 150.0, 150.0);
ShowMenuForPlayer(CarSpawn,playerid);
return 1;
}
return 0;
}
public OnPlayerInfoChange(playerid)
{
return 1;
}
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 OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:CurrentMenu = GetPlayerMenu(playerid);
new Menu:CarSpawn = CreateMenu("CarSpawn", 2, 200.0, 100.0, 150.0, 150.0);
if(CurrentMenu == CarSpawn)
{
switch(row)
{
case 0:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(541,x,y,z,rotation,-1,-1,10000);//bullet
}
case 1:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(402,x,y,z,rotation,-1,-1,10000);//buffalo
}
case 2:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(554,x,y,z,rotation,-1,-1,10000);//yosmite
}
case 3:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(429,x,y,z,rotation,-1,-1,10000);//banshee
}
case 4:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(400,x,y,z,rotation,-1,-1,10000);//landstalker
}
case 5:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(451,x,y,z,rotation,-1,-1,10000);//turismo
}
case 6:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(425,x,y,z,rotation,-1,-1,10000);//hunter
}
case 7:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(520,x,y,z,rotation,-1,-1,10000);//hydra
}
case 8:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(568,x,y,z,rotation,-1,-1,10000);//bandito
}
case 9:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(432,x,y,z,rotation,-1,-1,10000);//tank
}
case 10:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(444,x,y,z,rotation,-1,-1,10000);//monster
}
case 11:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(411,x,y,z,rotation,-1,-1,10000);//infernus
}
case 12:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(571,x,y,z,rotation,-1,-1,10000);//gokart
}
case 13:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(487,x,y,z,rotation,-1,-1,10000);//maverik
}
case 14:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(579,x,y,z,rotation,-1,-1,10000);//huntley
}
case 15:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(506,x,y,z,rotation,-1,-1,10000);//supergt
}
case 16:
{
new Float:x,Float:y,Float:z,Float:rotation;
CreateVehicle(535,x,y,z,rotation,-1,-1,10000);//slamride
}
}
}
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}