Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------------------
- //© copyright 2012-07-20 15:02:53 Logan Stone - All Rights Reserved
- // Using this Gamemode without permission is an offence.
- //
- //#include "../include/gmx.inc"
- #include <a_samp>
- #include <a_http>
- //#include <core>
- //#include <float>
- #include <time>
- //#include <file>
- //#include <dutils>
- #include <dini>
- #include <utils>
- #include "../include/djson.inc"
- //#include <zcmd>
- #include <yom_buttons>
- #include <streamer>
- #include <Load>
- #include <SII>
- #include <fire>
- //////////////////////////////////////
- // Fix all loose indentation warnings
- /////////////////////////////////////
- #pragma tabsize 0
- ////////////////////////////////////
- /*----------------------------------------------------------------------------*-
- Function:
- sscanf
- Params:
- string[] - String to extract parameters from.
- format[] - Parameter types to get.
- {Float,_}:... - Data return variables.
- Return:
- 0 - Successful, not 0 - fail.
- Notes:
- A fail is either insufficient variables to store the data or insufficient
- data for the format string - excess data is disgarded.
- A string in the middle of the input data is extracted as a single word, a
- string at the end of the data collects all remaining text.
- The format codes are:
- c - A character.
- d, i - An integer.
- h, x - A hex number (e.g. a colour).
- f - A float.
- s - A string.
- z - An optional string.
- pX - An additional delimiter where X is another character.
- '' - Encloses a litteral string to locate.
- u - User, takes a name, part of a name or an id and returns the id if they're connected.
- Now has IsNumeric integrated into the code.
- Added additional delimiters in the form of all whitespace and an
- optioanlly specified one in the format string.
- -*----------------------------------------------------------------------------*/
- stock sscanf(string[], format[], {Float,_}:...)
- {
- #if defined isnull
- if (isnull(string))
- #else
- if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
- #endif
- {
- return format[0];
- }
- #pragma tabsize 4
- new
- formatPos = 0,
- stringPos = 0,
- paramPos = 2,
- paramCount = numargs(),
- delim = ' ';
- while (string[stringPos] && string[stringPos] <= ' ')
- {
- stringPos++;
- }
- while (paramPos < paramCount && string[stringPos])
- {
- switch (format[formatPos++])
- {
- case '\0':
- {
- return 0;
- }
- case 'i', 'd':
- {
- new
- neg = 1,
- num = 0,
- ch = string[stringPos];
- if (ch == '-')
- {
- neg = -1;
- ch = string[++stringPos];
- }
- do
- {
- stringPos++;
- if ('0' <= ch <= '9')
- {
- num = (num * 10) + (ch - '0');
- }
- else
- {
- return -1;
- }
- }
- while ((ch = string[stringPos]) > ' ' && ch != delim);
- setarg(paramPos, 0, num * neg);
- }
- case 'h', 'x':
- {
- new
- num = 0,
- ch = string[stringPos];
- do
- {
- stringPos++;
- switch (ch)
- {
- case 'x', 'X':
- {
- num = 0;
- continue;
- }
- case '0' .. '9':
- {
- num = (num << 4) | (ch - '0');
- }
- case 'a' .. 'f':
- {
- num = (num << 4) | (ch - ('a' - 10));
- }
- case 'A' .. 'F':
- {
- num = (num << 4) | (ch - ('A' - 10));
- }
- default:
- {
- return -1;
- }
- }
- }
- while ((ch = string[stringPos]) > ' ' && ch != delim);
- setarg(paramPos, 0, num);
- }
- case 'c':
- {
- setarg(paramPos, 0, string[stringPos++]);
- }
- case 'f':
- {
- new changestr[16], changepos = 0, strpos = stringPos;
- while(changepos < 16 && string[strpos] && string[strpos] != delim)
- {
- changestr[changepos++] = string[strpos++];
- }
- changestr[changepos] = '\0';
- setarg(paramPos,0,_:floatstr(changestr));
- }
- case 'p':
- {
- delim = format[formatPos++];
- continue;
- }
- case '\'':
- {
- new
- end = formatPos - 1,
- ch;
- while ((ch = format[++end]) && ch != '\'') {}
- if (!ch)
- {
- return -1;
- }
- format[end] = '\0';
- if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
- {
- if (format[end + 1])
- {
- return -1;
- }
- return 0;
- }
- format[end] = '\'';
- stringPos = ch + (end - formatPos);
- formatPos = end + 1;
- }
- case 'u':
- {
- new
- end = stringPos - 1,
- id = 0,
- bool:num = true,
- ch;
- while ((ch = string[++end]) && ch != delim)
- {
- if (num)
- {
- if ('0' <= ch <= '9')
- {
- id = (id * 10) + (ch - '0');
- }
- else
- {
- num = false;
- }
- }
- }
- if (num && IsPlayerConnected(id))
- {
- setarg(paramPos, 0, id);
- }
- else
- {
- #if !defined foreach
- #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
- #define __SSCANF_FOREACH__
- #endif
- string[end] = '\0';
- num = false;
- new
- name[MAX_PLAYER_NAME];
- id = end - stringPos;
- foreach (Player, playerid)
- {
- GetPlayerName(playerid, name, sizeof (name));
- if (!strcmp(name, string[stringPos], true, id))
- {
- setarg(paramPos, 0, playerid);
- num = true;
- break;
- }
- }
- if (!num)
- {
- setarg(paramPos, 0, INVALID_PLAYER_ID);
- }
- string[end] = ch;
- #if defined __SSCANF_FOREACH__
- #undef foreach
- #undef __SSCANF_FOREACH__
- #endif
- }
- stringPos = end;
- }
- case 's', 'z':
- {
- new
- i = 0,
- ch;
- if (format[formatPos])
- {
- while ((ch = string[stringPos++]) && ch != delim)
- {
- setarg(paramPos, i++, ch);
- }
- if (!i)
- {
- return -1;
- }
- }
- else
- {
- while ((ch = string[stringPos++]))
- {
- setarg(paramPos, i++, ch);
- }
- }
- stringPos--;
- setarg(paramPos, i, '\0');
- }
- default:
- {
- continue;
- }
- }
- while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
- {
- stringPos++;
- }
- while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
- {
- stringPos++;
- }
- paramPos++;
- }
- do
- {
- if ((delim = format[formatPos++]) > ' ')
- {
- if (delim == '\'')
- {
- while ((delim = format[formatPos++]) && delim != '\'') {}
- }
- else if (delim != 'z')
- {
- return delim;
- }
- }
- }
- while (delim > ' ');
- return 0;
- }
- stock InvaildCar(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 403,406,407,408,409,414,416,417,423,425,427,428,430,431,432,433,437,441,443,444,446,447,448,449,452,453,454,455,456,457,460,461,462,463,464,465,468,469,471,472,473,476,481,484,485,486,487,488,493,497,498,499,501,509,510,511,512,513,514,515,519,520,521,522,523,524,528,530,531,532,537,538,539,544,548,553,556,557,563,564,568,571,572,573,574,577,578,581,583,586,592,593,595,601:
- return 1;
- }
- return 0;
- }
- stock GetPlayerNameEx(playerid,name[],len=sizeof(name))
- {
- GetPlayerName(playerid,name,len);
- for(new cell;cell<strlen(name);cell++)if(name[cell]=='_')name[cell]=' ';
- }
- stock GetPlayerRPName( playerid, name[ ], len=sizeof(name) )
- {
- GetPlayerName( playerid, name, len );
- for(new i = 0; i < len; i++ )
- {
- if ( name[ i ] == '_' )
- name[ i ] = ' ';
- }
- }
- #define SPECIAL_ACTION_PISSING 68
- #define MAX_SPIKESTRIPS 200
- #undef MAX_VEHICLES
- #define MAX_VEHICLES 600
- #define MAX_ZONE_NAME 28
- #define MAX_STRING 255
- #define CW "{FFFFFF}"
- #define CB "{2E9AFE}"
- #define CAR_AMOUNT 700 //Change to Your Vehicle Amount
- #define COLOR_BITEM 0xE1B0B0FF
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define TEAM_HIT_COLOR 0xFFFFFF00
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_ADMIN 0xB2EBE0AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_LIGHTYELLOW 0xFFFF91FF
- #define COLOR_YELLOW2 0xF5DEB3AA
- #define COLOR_TAN 0xD2B48CFF
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_DOC 0xFF8282AA
- #define COLOR_DCHAT 0xF0CC00FF
- #define COLOR_NEWS 0xFFA500AA
- #define COLOR_OOC 0xE0FFFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_FAKEBAN 0xA9C4E4AA
- #define TEAM_BLUE_COLOR 0x8D8DFF00
- #define TEAM_GROVE_COLOR 0x00AA00FF
- #define TEAM_AZTECAS_COLOR 0x01FCFFC8
- #define COLOR_STEELBLUE 0x4682B4FF
- #define NEWBIE_COLOR 0x7DAEFFFF
- #define COLOR_HOUSETEXT 0x5174AEFF
- //Speedo
- #define GREEN 0x21DD00FF
- #define RED 0xE60000FF
- #define YELLOW 0xFFFF00FF
- #define ORANGE 0xF97804FF
- #define LIGHTRED 0xFF8080FF
- #define LIGHTBLUE 0x00C2ECFF
- #define PURPLE 0xB360FDFF
- #define BLUE 0x1229FAFF
- #define LIGHTGREEN 0x38FF06FF
- #define DARKPINK 0xE100E1FF
- #define DARKGREEN 0x008040FF
- #define ANNOUNCEMENT 0x6AF7E1FF
- #define GREY 0xCECECEFF
- #define PINK 0xD52DFFFF
- #define DARKGREY 0x626262FF
- #define AQUAGREEN 0x03D687FF
- #define WHITE 0xFFFFFFFF
- #define PLAYERS 200
- #define L_VEHICLE 200
- #define VehLockTime 10 //Define the MAX Time for Car Locked! (In Minutes!)
- #define VehicleMaxSpeed 50 //Define the Speed Limit! (KPH)
- #define SpeedoLogoText "MSRP Speedometer" //Define Speedo Logo (Text in Speedo Top)
- #define UpdateConfig 500 //Update Speedo functions in ... (Miliseconds)
- //::::::::::::::::::::::::::::::::::::
- // -> Speedo TextDraw Config <-
- //::::::::::::::::::::::::::::::::::::
- #define TextBox true //Enable/Disable Speedo Box
- #define TextTopLines true //Enable/Disable Speedo Top Lines
- #define TextSideLines true //Enable/Disable Speedo Side Lines
- #define LogoName true //Enable/Disable Speedo LogoName
- //Enable = true || Disable = false
- //::::::::::::::::::::::::::::::::::::
- // -> Speedo Colors Config <-
- //::::::::::::::::::::::::::::::::::::
- #define BoxColor 0xffffffff //Color of Speedo Box
- #define LogoColor 0xffffffff //Color of Seedo Logo (Define logo in "SpeedoLogoText" (Line 57)
- #define SideLinesColor 0xffffffff //Color of Speedo Side Lines
- #define TopLinesColor 0xffffffff //Color of Speedo Top lines
- #define CategoriesColor "~b~" //Color of (Vehicle,Health,Altitude,Gps)
- #define MPH_KPH_Color "~g~" //Color of (MPH,KPH)
- //
- #define bankbag 4
- #define HATSLOT 1
- #define BANDANASLOT 2
- #define GLASSSLOT 3
- #define PARROT 5
- #define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
- #define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
- #define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
- #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
- //Roadblock
- #define MAX_ROADBLOCKS 85 // Can be anything you want, but don't go over the top.
- // MENUS
- #define DIALOG_SEXCHANGE 1321
- #define DIALOG_NAMECHANGE 1320
- #define DIALOG_SERVICES 1319
- #define SKINMENU 1318
- #define SIUMENU4 1317
- #define SIUMENU3 1316
- #define SIUMENU2 1315
- #define SIUMENU1 1314
- #define UPGRADEMENU6 1313
- #define UPGRADEMENU5 1312
- #define UPGRADEMENU4 1311
- #define UPGRADEMENU3 1310
- #define UM2 1309
- #define UPGRADEMENU1 1308
- #define FBI2 1307
- #define FBI1 1306
- #define VEHMENU3 1305
- #define VEHMENU2 1304
- #define VEHMENU1 1303
- #define CARMENU 1302
- #define CARMENU2 1301
- #define CARMENU3 1300
- #define CARMENU4 1299
- #define CARMENU5 1298
- #define CARMENU6 1297
- #define CARMENU7 1296
- #define CARMENU8 1295
- #define CARMENU9 1294
- #define CARMENU10 1293
- #define CARMENU11 1292
- #define CARMENU12 1291
- #define CARMENU13 1290
- #define CARMENU14 1289
- #define PAINTBALLDIALOG 1288
- #define GUNSHOPDIALOG 1287
- #define GLASSMENU 1286
- #define CRACKTHEVAULT 1285
- #define LOADTHECASH 7286
- #define BINCODIALOG 1284
- #define HATMENU 1283
- #define MASKMENU 1282
- #define HELMETMENU 1281
- #define BANDANAMENU 1280
- #define TRUNKDIALOG 1279
- #define TRUNKPUTGUN 1278
- #define TRUNKTAKEGUN 1277
- #define TRUNKPUTVEST 1276
- #define TRUNKTAKEVEST 1275
- #define TRUNKPUTMAN 1274
- #define TRUNKTAKEMAN 1273
- #define TRUNKCHECK 1272
- #define TRUNKPUTCRACK 1271
- #define TRUNKTAKECRACK 1270
- #define TRUNKPUTSTUFF 1269
- #define TRUNKTAKESTUFF 1268
- #define TRUNKPUTPOT 1267
- #define TRUNKTAKEPOT 1266
- #define CARDIALOG 1265
- #define BUYCARDIALOG 1264
- #define OWNCARUPGRADE 1263
- #define OWNCARUPGRADE2 1262
- #define OWNCARUPGRADE3 1323
- #define CARTRACK 1261
- #define AMMUNATIONDIALOG 1260
- #define BUYGLASSES 1259
- #define BUYGLASSES2 1258
- #define BUYGLASSES3 1257
- #define BUYBANDANA 1256
- #define BUYHELMET 1255
- #define BUYMASK 1254
- #define BUYHAT 1253
- #define BUYHAT2 1252
- #define BUYHAT3 1251
- #define DEALERSHIPDIALOG 1250
- #define BUYLP 1249
- #define BUYLP2 1248
- #define BUYLP3 1322
- #define TOWCAR 6247
- #define VEHINFO 6246
- #define GIVEKEYS 6245
- #define LOTTODIALOG 1247
- #define suitcasediag 1246
- #define suitcasediag2 1245
- #define suitcasediag3 1244
- #define donutshopdiag1 1243
- #define donutshopdiag2 1242
- #define FAQ 1241
- #define FAQ2 1240
- //TEAM COLORS
- #define TCOLOR_VIP 0xECFF0000
- #define TCOLOR_WHITE 0xFFFFFF00
- #define TCOLOR_LIGHTGREEN 0x9ACD3200
- #define TCOLOR_NAVYBLUE 0x8D8DFF00
- #define TCOLOR_BEIGE 0xA5937000
- #define TCOLOR_GREY 0xBFC0C200
- #define TCOLOR_DARKGREY 0x52545900
- #define TCOLOR_BLUE 0x2641FE00
- #define TCOLOR_LIGHTBLUE 0x2B77A100
- #define TCOLOR_YELLOW 0xFFFF0000
- #define TCOLOR_HELP 0x00D700FF
- #define TCOLOR_FIND 0x9B0000AA
- #define TCOLOR_WANTED 0xFF0000AA
- #define TCOLOR_PRISON 0xF4A41900 // COMMENTED
- #define TCOLOR_HOSPITAL 0xAFAFAF00
- #define TCOLOR_PARAMEDIC 0xFF828200
- //SPEC
- #define ADMIN_SPEC_TYPE_NONE 0
- #define ADMIN_SPEC_TYPE_PLAYER 1
- #define ADMIN_SPEC_TYPE_VEHICLE 2
- //Keys
- #define KEY_CTRL 1
- //RAMP
- #define RAMP 1632 //Ramp ID
- #define DISTANCE 12.0 //Distance infront
- #define TIME 2000 //duration of ramp in ms
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- forward WeedTimer();
- forward WeedPickup(playerid);
- forward CheckHacks2(playerid);
- forward DoneCheckHacks2(playerid,hacker);
- forward Disg(playerid);
- forward Random(min, max);
- forward StartEngine(playerid, vehicleid);
- forward StopEngine(playerid, vehicleid);
- forward lock1(playerid, vehicleid);
- forward lock2(vehicleid);
- forward Lockpick(playerid);
- forward Lockpickmove(playerid);
- forward Lockpickmove2(playerid);
- forward Lockpicked(playerid);
- forward Startalarm(playerid);
- forward TowVehicle(vehicle);
- forward Breakin(playerid);
- forward Breakinmove(playerid);
- forward Breakinmove2(playerid);
- forward Breakin2(playerid);
- forward RobHouse1(playerid);
- forward RobInHouse(playerid);
- forward RobInHouse2(playerid);
- forward RobbedHouse(playerid);
- forward BroadCast(color,const string[]);
- forward SaveVehicleComponents(vehicleid);
- forward ClearVehicleComponents(vehicleid);
- forward SetVehicleModifications(vehicleid);
- forward OnPlayerPressButton(playerid, buttonid);
- forward LoadStuff();
- forward SaveStuff();
- forward LoadFamilies();
- forward SaveFamilies();
- forward ClosePDDoor();
- forward LoadIRC();
- forward SaveIRC();
- forward RemovePlayerWeapon(playerid, weaponid);
- forward SafeGivePlayerWeapon(plyid, weaponid, ammo);
- forward SafeResetPlayerWeapons(plyid);
- forward LoadCar();
- forward SaveCar();
- forward SaveHouse();
- forward LoadHouse();
- forward LoadBiz();
- forward SaveBiz();
- forward LoadBoxer();
- forward LoadLSPDPass();
- forward SendHelperMessage(color, string[]);
- forward SaveBoxer();
- forward TazerTimer(playerid);
- forward BizFreeze(playerid);
- forward ReportReset(playerid);
- forward OnPropUpdate();
- forward JoinChannel(playerid, number, line[]);
- forward JoinChannelNr(playerid, number);
- forward OnPlayerChangeWeapon(playerid, oldweapon, newweapon);
- forward IsAtClothShop(playerid);
- forward IsAtDealership(playerid);
- forward IsAtGasStation(playerid);
- forward BackupClear(playerid, calledbytimer);
- forward IsAtFishPlace(playerid);
- forward IsAtBar(playerid);
- forward IsAtATM(playerid);
- forward SearchingHits(playerid);
- forward DollahScoreUpdate();
- forward SetPlayerSpawn(playerid);
- forward SetPlayerInHospital(playerid);
- forward Spawn(playerid);
- forward ABroadCast(color,const string[],level);
- forward SetPlayerUnjail();
- forward OtherTimer();
- forward BanLog(string[]);
- forward AdLog(string[]);
- forward TrunkLog(string[]);
- forward BLLog(string[]);
- forward KickLog(string[]);
- forward PayLog(string[]);
- forward StatLog(string[]);
- forward IsACop(playerid);
- forward IsANG(playerid);
- forward IsAAgent(playerid);
- forward DisplayGuns(playerid);
- forward DisplaySafeGuns(playerid);
- forward Encrypt(string[]);
- forward AutoKick();
- forward PaintballEnded();
- forward StartPaintball();
- forward PreparePaintball();
- forward Float:GetDistanceBetweenPlayers(p1,p2);
- forward GameModeExitFunc();
- forward SetAllCopCheckpoint(playerid);
- forward SetAllParaCheckpoint(playerid);
- forward SetAllFiremanCheckpoint(playerid);
- forward GivePlayerWeaponAll(weaponid,ammo);
- forward SetPlayerCriminal(playerid,declare,reason[]);
- forward SetPlayerFree(playerid,declare,reason[]);
- forward SetPlayerWeapons(playerid);
- forward ShowStats(playerid,targetid);
- forward ShowProfile(playerid,targetid);
- forward SetPlayerToTeamColor(playerid);
- forward GameModeInitExitFunc();
- forward UseBM(playerid);
- forward split(const strsrc[], strdest[][], delimiter);
- forward OnPlayerLogin(playerid,password[],password2[]);
- forward OnPlayerSave(playerid);
- forward OnPlayerRegister(playerid, password[]);
- forward OOCOff(color,const string[]);
- forward OOCNewbie(color,const string[]);
- forward OOCNews(color,const string[]);
- forward SendJobMessage(job, color, string[]);
- forward SendFamilyMessage(family, color, string[]);
- forward SendCopMessage(color, string[]);
- forward SendParaMessage(color, string[]);
- forward SendNewFamilyMessage(family, color, string[]);
- forward SendIRCMessage(channel, color, string[]);
- forward SendRadioMessage(member, color, string[]);
- forward SendDepartmentMessage(color, string[]);
- forward SendAdminMessage(color, string[]);
- forward SendAdminMessage2(color, string[]);
- forward SendVIPMessage(color, string[]);//
- forward SendWTMessage(channel, color, string[]);
- forward ProxDetectorS(Float:radi, playerid, targetid);
- forward ClearFamily(family);
- forward ClearMarriage(playerid);
- forward ClearAccent(playerid);
- forward ClearContract(playerid);
- forward ClearIP(playerid);
- forward ClearCrime(playerid);
- forward FishCost(playerid, fish);
- forward ClearFishes(playerid);
- forward ClearGuns(playerid);
- forward ClearFishID(playerid, fish);
- forward Lotto(number);
- forward CarCheck();
- forward LockCar(carid);
- forward UnLockCar(carid);
- forward InitLockDoors(playerid);
- forward CheckGas();
- forward Fillup();
- forward StoppedVehicle();
- forward SyncTime();
- forward SyncUp();
- forward SaveChars();
- forward Production();
- forward UpdateScripts();
- forward PayDay();
- forward PointCheck();
- forward PDDoorCheck();
- forward CountDownCheck();
- forward CountDownCheck2();
- forward CountDownCheck3();
- forward CountDownCheckGo();
- forward PrisonGateCheck(); // COMMENTED
- forward PrisonCellCheck(); // COMMENTED
- forward ini_GetKey( line[] );
- forward ini_GetValue( line[] );
- forward PlayerFixRadio(playerid);
- forward PlayerFixRadio2();
- forward CustomPickups();
- forward FixHour(hour);
- forward AddsOn();
- forward PickLock(playerid);
- forward FixCar(playerid);
- forward SellCar(playerid);
- forward ChangePass(playerid);
- forward StopAni(playerid);
- forward UseDrugs(playerid);
- forward SellGun(playerid);
- forward UseTazer(playerid);
- forward UseDrink(playerid);
- forward UseNewbie(playerid);
- forward UseAdmCmd(playerid);
- forward UseAccept(playerid);
- forward DisplayDialogForPlayer(playerid, dialogid);
- forward StartLotto(biz);
- forward ApplyNPCAnims();
- forward KillCar(vehicleid);
- forward Hide(target);
- //RAMP
- forward Delete(objectid);
- forward DeleteGun(objectid);
- //headshot
- forward AntiSpam(playerid);
- //Speedo
- new Text:LBox[MAX_PLAYERS];
- new Text:LLine1[MAX_PLAYERS];
- new Text:LLine2[MAX_PLAYERS];
- new Text:LLine3[MAX_PLAYERS];
- new Text:LLine4[MAX_PLAYERS];
- new Text:LCredits[MAX_PLAYERS];
- new Text:Lmph[MAX_PLAYERS];
- new Text:LFunc[MAX_PLAYERS];
- new LuX_SpeedoMeter[MAX_PLAYERS];
- //new VehicleStatus[MAX_VEHICLES];
- //Neon
- new ObjectSelect[MAX_VEHICLES][4];
- new lstring[256];
- new lstr[256];
- enum MainZone{
- Zone_Name[28], Float:Zone_Area[6] };
- static const SanAndreasZones[][MainZone] = {
- {"The Big Ear", {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
- {"Aldea Malvada", {-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
- {"Angel Pine", {-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}},
- {"Arco del Oeste", {-901.10,2221.80,0.00,-592.00,2571.90,200.00}},
- {"Avispa Country Club", {-2646.40,-355.40,0.00,-2270.00,-222.50,200.00}},
- {"Avispa Country Club", {-2831.80,-430.20,-6.10,-2646.40,-222.50,200.00}},
- {"Avispa Country Club", {-2361.50,-417.10,0.00,-2270.00,-355.40,200.00}},
- {"Avispa Country Club", {-2667.80,-302.10,-28.80,-2646.40,-262.30,71.10}},
- {"Avispa Country Club", {-2470.00,-355.40,0.00,-2270.00,-318.40,46.10}},
- {"Avispa Country Club", {-2550.00,-355.40,0.00,-2470.00,-318.40,39.70}},
- {"Back o Beyond", {-1166.90,-2641.10,0.00,-321.70,-1856.00,200.00}},
- {"Battery Point", {-2741.00,1268.40,-4.50,-2533.00,1490.40,200.00}},
- {"Bayside", {-2741.00,2175.10,0.00,-2353.10,2722.70,200.00}},
- {"Bayside Marina", {-2353.10,2275.70,0.00,-2153.10,2475.70,200.00}},
- {"Beacon Hill", {-399.60,-1075.50,-1.40,-319.00,-977.50,198.50}},
- {"Blackfield", {964.30,1203.20,-89.00,1197.30,1403.20,110.90}},
- {"Blackfield", {964.30,1403.20,-89.00,1197.30,1726.20,110.90}},
- {"Blackfield Chapel", {1375.60,596.30,-89.00,1558.00,823.20,110.90}},
- {"Blackfield Chapel", {1325.60,596.30,-89.00,1375.60,795.00,110.90}},
- {"Blackfield Intersection", {1197.30,1044.60,-89.00,1277.00,1163.30,110.90}},
- {"Blackfield Intersection", {1166.50,795.00,-89.00,1375.60,1044.60,110.90}},
- {"Blackfield Intersection", {1277.00,1044.60,-89.00,1315.30,1087.60,110.90}},
- {"Blackfield Intersection", {1375.60,823.20,-89.00,1457.30,919.40,110.90}},
- {"Blueberry", {104.50,-220.10,2.30,349.60,152.20,200.00}},
- {"Blueberry", {19.60,-404.10,3.80,349.60,-220.10,200.00}},
- {"Blueberry Acres", {-319.60,-220.10,0.00,104.50,293.30,200.00}},
- {"Caligula's Palace", {2087.30,1543.20,-89.00,2437.30,1703.20,110.90}},
- {"Caligula's Palace", {2137.40,1703.20,-89.00,2437.30,1783.20,110.90}},
- {"Calton Heights", {-2274.10,744.10,-6.10,-1982.30,1358.90,200.00}},
- {"Chinatown", {-2274.10,578.30,-7.60,-2078.60,744.10,200.00}},
- {"City Hall", {-2867.80,277.40,-9.10,-2593.40,458.40,200.00}},
- {"Come-A-Lot", {2087.30,943.20,-89.00,2623.10,1203.20,110.90}},
- {"Commerce", {1323.90,-1842.20,-89.00,1701.90,-1722.20,110.90}},
- {"Commerce", {1323.90,-1722.20,-89.00,1440.90,-1577.50,110.90}},
- {"Commerce", {1370.80,-1577.50,-89.00,1463.90,-1384.90,110.90}},
- {"Commerce", {1463.90,-1577.50,-89.00,1667.90,-1430.80,110.90}},
- {"Commerce", {1583.50,-1722.20,-89.00,1758.90,-1577.50,110.90}},
- {"Commerce", {1667.90,-1577.50,-89.00,1812.60,-1430.80,110.90}},
- {"Conference Center", {1046.10,-1804.20,-89.00,1323.90,-1722.20,110.90}},
- {"Conference Center", {1073.20,-1842.20,-89.00,1323.90,-1804.20,110.90}},
- {"Cranberry Station", {-2007.80,56.30,0.00,-1922.00,224.70,100.00}},
- {"Creek", {2749.90,1937.20,-89.00,2921.60,2669.70,110.90}},
- {"Dillimore", {580.70,-674.80,-9.50,861.00,-404.70,200.00}},
- {"Doherty", {-2270.00,-324.10,-0.00,-1794.90,-222.50,200.00}},
- {"Doherty", {-2173.00,-222.50,-0.00,-1794.90,265.20,200.00}},
- {"Downtown", {-1982.30,744.10,-6.10,-1871.70,1274.20,200.00}},
- {"Downtown", {-1871.70,1176.40,-4.50,-1620.30,1274.20,200.00}},
- {"Downtown", {-1700.00,744.20,-6.10,-1580.00,1176.50,200.00}},
- {"Downtown", {-1580.00,744.20,-6.10,-1499.80,1025.90,200.00}},
- {"Downtown", {-2078.60,578.30,-7.60,-1499.80,744.20,200.00}},
- {"Downtown", {-1993.20,265.20,-9.10,-1794.90,578.30,200.00}},
- {"Downtown Los Santos", {1463.90,-1430.80,-89.00,1724.70,-1290.80,110.90}},
- {"Downtown Los Santos", {1724.70,-1430.80,-89.00,1812.60,-1250.90,110.90}},
- {"Downtown Los Santos", {1463.90,-1290.80,-89.00,1724.70,-1150.80,110.90}},
- {"Downtown Los Santos", {1370.80,-1384.90,-89.00,1463.90,-1170.80,110.90}},
- {"Downtown Los Santos", {1724.70,-1250.90,-89.00,1812.60,-1150.80,110.90}},
- {"Downtown Los Santos", {1370.80,-1170.80,-89.00,1463.90,-1130.80,110.90}},
- {"Downtown Los Santos", {1378.30,-1130.80,-89.00,1463.90,-1026.30,110.90}},
- {"Downtown Los Santos", {1391.00,-1026.30,-89.00,1463.90,-926.90,110.90}},
- {"Downtown Los Santos", {1507.50,-1385.20,110.90,1582.50,-1325.30,335.90}},
- {"East Beach", {2632.80,-1852.80,-89.00,2959.30,-1668.10,110.90}},
- {"East Beach", {2632.80,-1668.10,-89.00,2747.70,-1393.40,110.90}},
- {"East Beach", {2747.70,-1668.10,-89.00,2959.30,-1498.60,110.90}},
- {"East Beach", {2747.70,-1498.60,-89.00,2959.30,-1120.00,110.90}},
- {"East Los Santos", {2421.00,-1628.50,-89.00,2632.80,-1454.30,110.90}},
- {"East Los Santos", {2222.50,-1628.50,-89.00,2421.00,-1494.00,110.90}},
- {"East Los Santos", {2266.20,-1494.00,-89.00,2381.60,-1372.00,110.90}},
- {"East Los Santos", {2381.60,-1494.00,-89.00,2421.00,-1454.30,110.90}},
- {"East Los Santos", {2281.40,-1372.00,-89.00,2381.60,-1135.00,110.90}},
- {"East Los Santos", {2381.60,-1454.30,-89.00,2462.10,-1135.00,110.90}},
- {"East Los Santos", {2462.10,-1454.30,-89.00,2581.70,-1135.00,110.90}},
- {"Easter Basin", {-1794.90,249.90,-9.10,-1242.90,578.30,200.00}},
- {"Easter Basin", {-1794.90,-50.00,-0.00,-1499.80,249.90,200.00}},
- {"Easter Bay Airport", {-1499.80,-50.00,-0.00,-1242.90,249.90,200.00}},
- {"Easter Bay Airport", {-1794.90,-730.10,-3.00,-1213.90,-50.00,200.00}},
- {"Easter Bay Airport", {-1213.90,-730.10,0.00,-1132.80,-50.00,200.00}},
- {"Easter Bay Airport", {-1242.90,-50.00,0.00,-1213.90,578.30,200.00}},
- {"Easter Bay Airport", {-1213.90,-50.00,-4.50,-947.90,578.30,200.00}},
- {"Easter Bay Airport", {-1315.40,-405.30,15.40,-1264.40,-209.50,25.40}},
- {"Easter Bay Airport", {-1354.30,-287.30,15.40,-1315.40,-209.50,25.40}},
- {"Easter Bay Airport", {-1490.30,-209.50,15.40,-1264.40,-148.30,25.40}},
- {"Easter Bay Chemicals", {-1132.80,-768.00,0.00,-956.40,-578.10,200.00}},
- {"Easter Bay Chemicals", {-1132.80,-787.30,0.00,-956.40,-768.00,200.00}},
- {"El Castillo del Diablo", {-464.50,2217.60,0.00,-208.50,2580.30,200.00}},
- {"El Castillo del Diablo", {-208.50,2123.00,-7.60,114.00,2337.10,200.00}},
- {"El Castillo del Diablo", {-208.50,2337.10,0.00,8.40,2487.10,200.00}},
- {"El Corona", {1812.60,-2179.20,-89.00,1970.60,-1852.80,110.90}},
- {"El Corona", {1692.60,-2179.20,-89.00,1812.60,-1842.20,110.90}},
- {"El Quebrados", {-1645.20,2498.50,0.00,-1372.10,2777.80,200.00}},
- {"Esplanade East", {-1620.30,1176.50,-4.50,-1580.00,1274.20,200.00}},
- {"Esplanade East", {-1580.00,1025.90,-6.10,-1499.80,1274.20,200.00}},
- {"Esplanade East", {-1499.80,578.30,-79.60,-1339.80,1274.20,20.30}},
- {"Esplanade North", {-2533.00,1358.90,-4.50,-1996.60,1501.20,200.00}},
- {"Esplanade North", {-1996.60,1358.90,-4.50,-1524.20,1592.50,200.00}},
- {"Esplanade North", {-1982.30,1274.20,-4.50,-1524.20,1358.90,200.00}},
- {"Fallen Tree", {-792.20,-698.50,-5.30,-452.40,-380.00,200.00}},
- {"Fallow Bridge", {434.30,366.50,0.00,603.00,555.60,200.00}},
- {"Fern Ridge", {508.10,-139.20,0.00,1306.60,119.50,200.00}},
- {"Financial", {-1871.70,744.10,-6.10,-1701.30,1176.40,300.00}},
- {"Fisher's Lagoon", {1916.90,-233.30,-100.00,2131.70,13.80,200.00}},
- {"Flint Intersection", {-187.70,-1596.70,-89.00,17.00,-1276.60,110.90}},
- {"Flint Range", {-594.10,-1648.50,0.00,-187.70,-1276.60,200.00}},
- {"Fort Carson", {-376.20,826.30,-3.00,123.70,1220.40,200.00}},
- {"Foster Valley", {-2270.00,-430.20,-0.00,-2178.60,-324.10,200.00}},
- {"Foster Valley", {-2178.60,-599.80,-0.00,-1794.90,-324.10,200.00}},
- {"Foster Valley", {-2178.60,-1115.50,0.00,-1794.90,-599.80,200.00}},
- {"Foster Valley", {-2178.60,-1250.90,0.00,-1794.90,-1115.50,200.00}},
- {"Frederick Bridge", {2759.20,296.50,0.00,2774.20,594.70,200.00}},
- {"Gant Bridge", {-2741.40,1659.60,-6.10,-2616.40,2175.10,200.00}},
- {"Gant Bridge", {-2741.00,1490.40,-6.10,-2616.40,1659.60,200.00}},
- {"Ganton", {2222.50,-1852.80,-89.00,2632.80,-1722.30,110.90}},
- {"Ganton", {2222.50,-1722.30,-89.00,2632.80,-1628.50,110.90}},
- {"Garcia", {-2411.20,-222.50,-0.00,-2173.00,265.20,200.00}},
- {"Garcia", {-2395.10,-222.50,-5.30,-2354.00,-204.70,200.00}},
- {"Garver Bridge", {-1339.80,828.10,-89.00,-1213.90,1057.00,110.90}},
- {"Garver Bridge", {-1213.90,950.00,-89.00,-1087.90,1178.90,110.90}},
- {"Garver Bridge", {-1499.80,696.40,-179.60,-1339.80,925.30,20.30}},
- {"Glen Park", {1812.60,-1449.60,-89.00,1996.90,-1350.70,110.90}},
- {"Glen Park", {1812.60,-1100.80,-89.00,1994.30,-973.30,110.90}},
- {"Glen Park", {1812.60,-1350.70,-89.00,2056.80,-1100.80,110.90}},
- {"Green Palms", {176.50,1305.40,-3.00,338.60,1520.70,200.00}},
- {"Greenglass College", {964.30,1044.60,-89.00,1197.30,1203.20,110.90}},
- {"Greenglass College", {964.30,930.80,-89.00,1166.50,1044.60,110.90}},
- {"Hampton Barns", {603.00,264.30,0.00,761.90,366.50,200.00}},
- {"Hankypanky Point", {2576.90,62.10,0.00,2759.20,385.50,200.00}},
- {"Harry Gold Parkway", {1777.30,863.20,-89.00,1817.30,2342.80,110.90}},
- {"Hashbury", {-2593.40,-222.50,-0.00,-2411.20,54.70,200.00}},
- {"Hilltop Farm", {967.30,-450.30,-3.00,1176.70,-217.90,200.00}},
- {"Hunter Quarry", {337.20,710.80,-115.20,860.50,1031.70,203.70}},
- {"Idlewood", {1812.60,-1852.80,-89.00,1971.60,-1742.30,110.90}},
- {"Idlewood", {1812.60,-1742.30,-89.00,1951.60,-1602.30,110.90}},
- {"Idlewood", {1951.60,-1742.30,-89.00,2124.60,-1602.30,110.90}},
- {"Idlewood", {1812.60,-1602.30,-89.00,2124.60,-1449.60,110.90}},
- {"Idlewood", {2124.60,-1742.30,-89.00,2222.50,-1494.00,110.90}},
- {"Idlewood", {1971.60,-1852.80,-89.00,2222.50,-1742.30,110.90}},
- {"Jefferson", {1996.90,-1449.60,-89.00,2056.80,-1350.70,110.90}},
- {"Jefferson", {2124.60,-1494.00,-89.00,2266.20,-1449.60,110.90}},
- {"Jefferson", {2056.80,-1372.00,-89.00,2281.40,-1210.70,110.90}},
- {"Jefferson", {2056.80,-1210.70,-89.00,2185.30,-1126.30,110.90}},
- {"Jefferson", {2185.30,-1210.70,-89.00,2281.40,-1154.50,110.90}},
- {"Jefferson", {2056.80,-1449.60,-89.00,2266.20,-1372.00,110.90}},
- {"Julius Thruway East", {2623.10,943.20,-89.00,2749.90,1055.90,110.90}},
- {"Julius Thruway East", {2685.10,1055.90,-89.00,2749.90,2626.50,110.90}},
- {"Julius Thruway East", {2536.40,2442.50,-89.00,2685.10,2542.50,110.90}},
- {"Julius Thruway East", {2625.10,2202.70,-89.00,2685.10,2442.50,110.90}},
- {"Julius Thruway North", {2498.20,2542.50,-89.00,2685.10,2626.50,110.90}},
- {"Julius Thruway North", {2237.40,2542.50,-89.00,2498.20,2663.10,110.90}},
- {"Julius Thruway North", {2121.40,2508.20,-89.00,2237.40,2663.10,110.90}},
- {"Julius Thruway North", {1938.80,2508.20,-89.00,2121.40,2624.20,110.90}},
- {"Julius Thruway North", {1534.50,2433.20,-89.00,1848.40,2583.20,110.90}},
- {"Julius Thruway North", {1848.40,2478.40,-89.00,1938.80,2553.40,110.90}},
- {"Julius Thruway North", {1704.50,2342.80,-89.00,1848.40,2433.20,110.90}},
- {"Julius Thruway North", {1377.30,2433.20,-89.00,1534.50,2507.20,110.90}},
- {"Julius Thruway South", {1457.30,823.20,-89.00,2377.30,863.20,110.90}},
- {"Julius Thruway South", {2377.30,788.80,-89.00,2537.30,897.90,110.90}},
- {"Julius Thruway West", {1197.30,1163.30,-89.00,1236.60,2243.20,110.90}},
- {"Julius Thruway West", {1236.60,2142.80,-89.00,1297.40,2243.20,110.90}},
- {"Juniper Hill", {-2533.00,578.30,-7.60,-2274.10,968.30,200.00}},
- {"Juniper Hollow", {-2533.00,968.30,-6.10,-2274.10,1358.90,200.00}},
- {"K.A.C.C. Military Fuels", {2498.20,2626.50,-89.00,2749.90,2861.50,110.90}},
- {"Kincaid Bridge", {-1339.80,599.20,-89.00,-1213.90,828.10,110.90}},
- {"Kincaid Bridge", {-1213.90,721.10,-89.00,-1087.90,950.00,110.90}},
- {"Kincaid Bridge", {-1087.90,855.30,-89.00,-961.90,986.20,110.90}},
- {"King's", {-2329.30,458.40,-7.60,-1993.20,578.30,200.00}},
- {"King's", {-2411.20,265.20,-9.10,-1993.20,373.50,200.00}},
- {"King's", {-2253.50,373.50,-9.10,-1993.20,458.40,200.00}},
- {"LVA Freight Depot", {1457.30,863.20,-89.00,1777.40,1143.20,110.90}},
- {"LVA Freight Depot", {1375.60,919.40,-89.00,1457.30,1203.20,110.90}},
- {"LVA Freight Depot", {1277.00,1087.60,-89.00,1375.60,1203.20,110.90}},
- {"LVA Freight Depot", {1315.30,1044.60,-89.00,1375.60,1087.60,110.90}},
- {"LVA Freight Depot", {1236.60,1163.40,-89.00,1277.00,1203.20,110.90}},
- {"Las Barrancas", {-926.10,1398.70,-3.00,-719.20,1634.60,200.00}},
- {"Las Brujas", {-365.10,2123.00,-3.00,-208.50,2217.60,200.00}},
- {"Las Colinas", {1994.30,-1100.80,-89.00,2056.80,-920.80,110.90}},
- {"Las Colinas", {2056.80,-1126.30,-89.00,2126.80,-920.80,110.90}},
- {"Las Colinas", {2185.30,-1154.50,-89.00,2281.40,-934.40,110.90}},
- {"Las Colinas", {2126.80,-1126.30,-89.00,2185.30,-934.40,110.90}},
- {"Las Colinas", {2747.70,-1120.00,-89.00,2959.30,-945.00,110.90}},
- {"Las Colinas", {2632.70,-1135.00,-89.00,2747.70,-945.00,110.90}},
- {"Las Colinas", {2281.40,-1135.00,-89.00,2632.70,-945.00,110.90}},
- {"Las Payasadas", {-354.30,2580.30,2.00,-133.60,2816.80,200.00}},
- {"Las Venturas Airport", {1236.60,1203.20,-89.00,1457.30,1883.10,110.90}},
- {"Las Venturas Airport", {1457.30,1203.20,-89.00,1777.30,1883.10,110.90}},
- {"Las Venturas Airport", {1457.30,1143.20,-89.00,1777.40,1203.20,110.90}},
- {"Las Venturas Airport", {1515.80,1586.40,-12.50,1729.90,1714.50,87.50}},
- {"Last Dime Motel", {1823.00,596.30,-89.00,1997.20,823.20,110.90}},
- {"Leafy Hollow", {-1166.90,-1856.00,0.00,-815.60,-1602.00,200.00}},
- {"Liberty City", {-1000.00,400.00,1300.00,-700.00,600.00,1400.00}},
- {"Lil' Probe Inn", {-90.20,1286.80,-3.00,153.80,1554.10,200.00}},
- {"Linden Side", {2749.90,943.20,-89.00,2923.30,1198.90,110.90}},
- {"Linden Station", {2749.90,1198.90,-89.00,2923.30,1548.90,110.90}},
- {"Linden Station", {2811.20,1229.50,-39.50,2861.20,1407.50,60.40}},
- {"Little Mexico", {1701.90,-1842.20,-89.00,1812.60,-1722.20,110.90}},
- {"Little Mexico", {1758.90,-1722.20,-89.00,1812.60,-1577.50,110.90}},
- {"Los Flores", {2581.70,-1454.30,-89.00,2632.80,-1393.40,110.90}},
- {"Los Flores", {2581.70,-1393.40,-89.00,2747.70,-1135.00,110.90}},
- {"Los Santos International", {1249.60,-2394.30,-89.00,1852.00,-2179.20,110.90}},
- {"Los Santos International", {1852.00,-2394.30,-89.00,2089.00,-2179.20,110.90}},
- {"Los Santos International", {1382.70,-2730.80,-89.00,2201.80,-2394.30,110.90}},
- {"Los Santos International", {1974.60,-2394.30,-39.00,2089.00,-2256.50,60.90}},
- {"Los Santos International", {1400.90,-2669.20,-39.00,2189.80,-2597.20,60.90}},
- {"Los Santos International", {2051.60,-2597.20,-39.00,2152.40,-2394.30,60.90}},
- {"Marina", {647.70,-1804.20,-89.00,851.40,-1577.50,110.90}},
- {"Marina", {647.70,-1577.50,-89.00,807.90,-1416.20,110.90}},
- {"Marina", {807.90,-1577.50,-89.00,926.90,-1416.20,110.90}},
- {"Market", {787.40,-1416.20,-89.00,1072.60,-1310.20,110.90}},
- {"Market", {952.60,-1310.20,-89.00,1072.60,-1130.80,110.90}},
- {"Market", {1072.60,-1416.20,-89.00,1370.80,-1130.80,110.90}},
- {"Market", {926.90,-1577.50,-89.00,1370.80,-1416.20,110.90}},
- {"Market Station", {787.40,-1410.90,-34.10,866.00,-1310.20,65.80}},
- {"Martin Bridge", {-222.10,293.30,0.00,-122.10,476.40,200.00}},
- {"Missionary Hill", {-2994.40,-811.20,0.00,-2178.60,-430.20,200.00}},
- {"Montgomery", {1119.50,119.50,-3.00,1451.40,493.30,200.00}},
- {"Montgomery", {1451.40,347.40,-6.10,1582.40,420.80,200.00}},
- {"Montgomery Intersection", {1546.60,208.10,0.00,1745.80,347.40,200.00}},
- {"Montgomery Intersection", {1582.40,347.40,0.00,1664.60,401.70,200.00}},
- {"Mulholland", {1414.00,-768.00,-89.00,1667.60,-452.40,110.90}},
- {"Mulholland", {1281.10,-452.40,-89.00,1641.10,-290.90,110.90}},
- {"Mulholland", {1269.10,-768.00,-89.00,1414.00,-452.40,110.90}},
- {"Mulholland", {1357.00,-926.90,-89.00,1463.90,-768.00,110.90}},
- {"Mulholland", {1318.10,-910.10,-89.00,1357.00,-768.00,110.90}},
- {"Mulholland", {1169.10,-910.10,-89.00,1318.10,-768.00,110.90}},
- {"Mulholland", {768.60,-954.60,-89.00,952.60,-860.60,110.90}},
- {"Mulholland", {687.80,-860.60,-89.00,911.80,-768.00,110.90}},
- {"Mulholland", {737.50,-768.00,-89.00,1142.20,-674.80,110.90}},
- {"Mulholland", {1096.40,-910.10,-89.00,1169.10,-768.00,110.90}},
- {"Mulholland", {952.60,-937.10,-89.00,1096.40,-860.60,110.90}},
- {"Mulholland", {911.80,-860.60,-89.00,1096.40,-768.00,110.90}},
- {"Mulholland", {861.00,-674.80,-89.00,1156.50,-600.80,110.90}},
- {"Mulholland Intersection", {1463.90,-1150.80,-89.00,1812.60,-768.00,110.90}},
- {"North Rock", {2285.30,-768.00,0.00,2770.50,-269.70,200.00}},
- {"Ocean Docks", {2373.70,-2697.00,-89.00,2809.20,-2330.40,110.90}},
- {"Ocean Docks", {2201.80,-2418.30,-89.00,2324.00,-2095.00,110.90}},
- {"Ocean Docks", {2324.00,-2302.30,-89.00,2703.50,-2145.10,110.90}},
- {"Ocean Docks", {2089.00,-2394.30,-89.00,2201.80,-2235.80,110.90}},
- {"Ocean Docks", {2201.80,-2730.80,-89.00,2324.00,-2418.30,110.90}},
- {"Ocean Docks", {2703.50,-2302.30,-89.00,2959.30,-2126.90,110.90}},
- {"Ocean Docks", {2324.00,-2145.10,-89.00,2703.50,-2059.20,110.90}},
- {"Ocean Flats", {-2994.40,277.40,-9.10,-2867.80,458.40,200.00}},
- {"Ocean Flats", {-2994.40,-222.50,-0.00,-2593.40,277.40,200.00}},
- {"Ocean Flats", {-2994.40,-430.20,-0.00,-2831.80,-222.50,200.00}},
- {"Octane Springs", {338.60,1228.50,0.00,664.30,1655.00,200.00}},
- {"Old Venturas Strip", {2162.30,2012.10,-89.00,2685.10,2202.70,110.90}},
- {"Palisades", {-2994.40,458.40,-6.10,-2741.00,1339.60,200.00}},
- {"Palomino Creek", {2160.20,-149.00,0.00,2576.90,228.30,200.00}},
- {"Paradiso", {-2741.00,793.40,-6.10,-2533.00,1268.40,200.00}},
- {"Pershing Square", {1440.90,-1722.20,-89.00,1583.50,-1577.50,110.90}},
- {"Pilgrim", {2437.30,1383.20,-89.00,2624.40,1783.20,110.90}},
- {"Pilgrim", {2624.40,1383.20,-89.00,2685.10,1783.20,110.90}},
- {"Pilson Intersection", {1098.30,2243.20,-89.00,1377.30,2507.20,110.90}},
- {"Pirates in Men's Pants", {1817.30,1469.20,-89.00,2027.40,1703.20,110.90}},
- {"Playa del Seville", {2703.50,-2126.90,-89.00,2959.30,-1852.80,110.90}},
- {"Prickle Pine", {1534.50,2583.20,-89.00,1848.40,2863.20,110.90}},
- {"Prickle Pine", {1117.40,2507.20,-89.00,1534.50,2723.20,110.90}},
- {"Prickle Pine", {1848.40,2553.40,-89.00,1938.80,2863.20,110.90}},
- {"Prickle Pine", {1938.80,2624.20,-89.00,2121.40,2861.50,110.90}},
- {"Queens", {-2533.00,458.40,0.00,-2329.30,578.30,200.00}},
- {"Queens", {-2593.40,54.70,0.00,-2411.20,458.40,200.00}},
- {"Queens", {-2411.20,373.50,0.00,-2253.50,458.40,200.00}},
- {"Randolph Industrial", {1558.00,596.30,-89.00,1823.00,823.20,110.90}},
- {"Redsands East", {1817.30,2011.80,-89.00,2106.70,2202.70,110.90}},
- {"Redsands East", {1817.30,2202.70,-89.00,2011.90,2342.80,110.90}},
- {"Redsands East", {1848.40,2342.80,-89.00,2011.90,2478.40,110.90}},
- {"Redsands West", {1236.60,1883.10,-89.00,1777.30,2142.80,110.90}},
- {"Redsands West", {1297.40,2142.80,-89.00,1777.30,2243.20,110.90}},
- {"Redsands West", {1377.30,2243.20,-89.00,1704.50,2433.20,110.90}},
- {"Redsands West", {1704.50,2243.20,-89.00,1777.30,2342.80,110.90}},
- {"Regular Tom", {-405.70,1712.80,-3.00,-276.70,1892.70,200.00}},
- {"Richman", {647.50,-1118.20,-89.00,787.40,-954.60,110.90}},
- {"Richman", {647.50,-954.60,-89.00,768.60,-860.60,110.90}},
- {"Richman", {225.10,-1369.60,-89.00,334.50,-1292.00,110.90}},
- {"Richman", {225.10,-1292.00,-89.00,466.20,-1235.00,110.90}},
- {"Richman", {72.60,-1404.90,-89.00,225.10,-1235.00,110.90}},
- {"Richman", {72.60,-1235.00,-89.00,321.30,-1008.10,110.90}},
- {"Richman", {321.30,-1235.00,-89.00,647.50,-1044.00,110.90}},
- {"Richman", {321.30,-1044.00,-89.00,647.50,-860.60,110.90}},
- {"Richman", {321.30,-860.60,-89.00,687.80,-768.00,110.90}},
- {"Richman", {321.30,-768.00,-89.00,700.70,-674.80,110.90}},
- {"Robada Intersection", {-1119.00,1178.90,-89.00,-862.00,1351.40,110.90}},
- {"Roca Escalante", {2237.40,2202.70,-89.00,2536.40,2542.50,110.90}},
- {"Roca Escalante", {2536.40,2202.70,-89.00,2625.10,2442.50,110.90}},
- {"Rockshore East", {2537.30,676.50,-89.00,2902.30,943.20,110.90}},
- {"Rockshore West", {1997.20,596.30,-89.00,2377.30,823.20,110.90}},
- {"Rockshore West", {2377.30,596.30,-89.00,2537.30,788.80,110.90}},
- {"Rodeo", {72.60,-1684.60,-89.00,225.10,-1544.10,110.90}},
- {"Rodeo", {72.60,-1544.10,-89.00,225.10,-1404.90,110.90}},
- {"Rodeo", {225.10,-1684.60,-89.00,312.80,-1501.90,110.90}},
- {"Rodeo", {225.10,-1501.90,-89.00,334.50,-1369.60,110.90}},
- {"Rodeo", {334.50,-1501.90,-89.00,422.60,-1406.00,110.90}},
- {"Rodeo", {312.80,-1684.60,-89.00,422.60,-1501.90,110.90}},
- {"Rodeo", {422.60,-1684.60,-89.00,558.00,-1570.20,110.90}},
- {"Rodeo", {558.00,-1684.60,-89.00,647.50,-1384.90,110.90}},
- {"Rodeo", {466.20,-1570.20,-89.00,558.00,-1385.00,110.90}},
- {"Rodeo", {422.60,-1570.20,-89.00,466.20,-1406.00,110.90}},
- {"Rodeo", {466.20,-1385.00,-89.00,647.50,-1235.00,110.90}},
- {"Rodeo", {334.50,-1406.00,-89.00,466.20,-1292.00,110.90}},
- {"Royal Casino", {2087.30,1383.20,-89.00,2437.30,1543.20,110.90}},
- {"San Andreas Sound", {2450.30,385.50,-100.00,2759.20,562.30,200.00}},
- {"Santa Flora", {-2741.00,458.40,-7.60,-2533.00,793.40,200.00}},
- {"Santa Maria Beach", {342.60,-2173.20,-89.00,647.70,-1684.60,110.90}},
- {"Santa Maria Beach", {72.60,-2173.20,-89.00,342.60,-1684.60,110.90}},
- {"Shady Cabin", {-1632.80,-2263.40,-3.00,-1601.30,-2231.70,200.00}},
- {"Shady Creeks", {-1820.60,-2643.60,-8.00,-1226.70,-1771.60,200.00}},
- {"Shady Creeks", {-2030.10,-2174.80,-6.10,-1820.60,-1771.60,200.00}},
- {"Sobell Rail Yards", {2749.90,1548.90,-89.00,2923.30,1937.20,110.90}},
- {"Spinybed", {2121.40,2663.10,-89.00,2498.20,2861.50,110.90}},
- {"Starfish Casino", {2437.30,1783.20,-89.00,2685.10,2012.10,110.90}},
- {"Starfish Casino", {2437.30,1858.10,-39.00,2495.00,1970.80,60.90}},
- {"Starfish Casino", {2162.30,1883.20,-89.00,2437.30,2012.10,110.90}},
- {"Temple", {1252.30,-1130.80,-89.00,1378.30,-1026.30,110.90}},
- {"Temple", {1252.30,-1026.30,-89.00,1391.00,-926.90,110.90}},
- {"Temple", {1252.30,-926.90,-89.00,1357.00,-910.10,110.90}},
- {"Temple", {952.60,-1130.80,-89.00,1096.40,-937.10,110.90}},
- {"Temple", {1096.40,-1130.80,-89.00,1252.30,-1026.30,110.90}},
- {"Temple", {1096.40,-1026.30,-89.00,1252.30,-910.10,110.90}},
- {"The Camel's Toe", {2087.30,1203.20,-89.00,2640.40,1383.20,110.90}},
- {"The Clown's Pocket", {2162.30,1783.20,-89.00,2437.30,1883.20,110.90}},
- {"The Emerald Isle", {2011.90,2202.70,-89.00,2237.40,2508.20,110.90}},
- {"The Farm", {-1209.60,-1317.10,114.90,-908.10,-787.30,251.90}},
- {"Four Dragons Casino", {1817.30,863.20,-89.00,2027.30,1083.20,110.90}},
- {"The High Roller", {1817.30,1283.20,-89.00,2027.30,1469.20,110.90}},
- {"The Mako Span", {1664.60,401.70,0.00,1785.10,567.20,200.00}},
- {"The Panopticon", {-947.90,-304.30,-1.10,-319.60,327.00,200.00}},
- {"The Pink Swan", {1817.30,1083.20,-89.00,2027.30,1283.20,110.90}},
- {"The Sherman Dam", {-968.70,1929.40,-3.00,-481.10,2155.20,200.00}},
- {"The Strip", {2027.40,863.20,-89.00,2087.30,1703.20,110.90}},
- {"The Strip", {2106.70,1863.20,-89.00,2162.30,2202.70,110.90}},
- {"The Strip", {2027.40,1783.20,-89.00,2162.30,1863.20,110.90}},
- {"The Strip", {2027.40,1703.20,-89.00,2137.40,1783.20,110.90}},
- {"The Visage", {1817.30,1863.20,-89.00,2106.70,2011.80,110.90}},
- {"The Visage", {1817.30,1703.20,-89.00,2027.40,1863.20,110.90}},
- {"Unity Station", {1692.60,-1971.80,-20.40,1812.60,-1932.80,79.50}},
- {"Valle Ocultado", {-936.60,2611.40,2.00,-715.90,2847.90,200.00}},
- {"Verdant Bluffs", {930.20,-2488.40,-89.00,1249.60,-2006.70,110.90}},
- {"Verdant Bluffs", {1073.20,-2006.70,-89.00,1249.60,-1842.20,110.90}},
- {"Verdant Bluffs", {1249.60,-2179.20,-89.00,1692.60,-1842.20,110.90}},
- {"Verdant Meadows", {37.00,2337.10,-3.00,435.90,2677.90,200.00}},
- {"Verona Beach", {647.70,-2173.20,-89.00,930.20,-1804.20,110.90}},
- {"Verona Beach", {930.20,-2006.70,-89.00,1073.20,-1804.20,110.90}},
- {"Verona Beach", {851.40,-1804.20,-89.00,1046.10,-1577.50,110.90}},
- {"Verona Beach", {1161.50,-1722.20,-89.00,1323.90,-1577.50,110.90}},
- {"Verona Beach", {1046.10,-1722.20,-89.00,1161.50,-1577.50,110.90}},
- {"Vinewood", {787.40,-1310.20,-89.00,952.60,-1130.80,110.90}},
- {"Vinewood", {787.40,-1130.80,-89.00,952.60,-954.60,110.90}},
- {"Vinewood", {647.50,-1227.20,-89.00,787.40,-1118.20,110.90}},
- {"Vinewood", {647.70,-1416.20,-89.00,787.40,-1227.20,110.90}},
- {"Whitewood Estates", {883.30,1726.20,-89.00,1098.30,2507.20,110.90}},
- {"Whitewood Estates", {1098.30,1726.20,-89.00,1197.30,2243.20,110.90}},
- {"Willowfield", {1970.60,-2179.20,-89.00,2089.00,-1852.80,110.90}},
- {"Willowfield", {2089.00,-2235.80,-89.00,2201.80,-1989.90,110.90}},
- {"Willowfield", {2089.00,-1989.90,-89.00,2324.00,-1852.80,110.90}},
- {"Willowfield", {2201.80,-2095.00,-89.00,2324.00,-1989.90,110.90}},
- {"Willowfield", {2541.70,-1941.40,-89.00,2703.50,-1852.80,110.90}},
- {"Willowfield", {2324.00,-2059.20,-89.00,2541.70,-1852.80,110.90}},
- {"Willowfield", {2541.70,-2059.20,-89.00,2703.50,-1941.40,110.90}},
- {"Yellow Bell Station", {1377.40,2600.40,-21.90,1492.40,2687.30,78.00}},
- // Citys Zones
- {"Los Santos", {44.60,-2892.90,-242.90,2997.00,-768.00,900.00}},
- {"Las Venturas", {869.40,596.30,-242.90,2997.00,2993.80,900.00}},
- {"Bone County", {-480.50,596.30,-242.90,869.40,2993.80,900.00}},
- {"Tierra Robada", {-2997.40,1659.60,-242.90,-480.50,2993.80,900.00}},
- {"Tierra Robada", {-1213.90,596.30,-242.90,-480.50,1659.60,900.00}},
- {"San Fierro", {-2997.40,-1115.50,-242.90,-1213.90,1659.60,900.00}},
- {"Red County", {-1213.90,-768.00,-242.90,2997.00,596.30,900.00}},
- {"Flint County", {-1213.90,-2892.90,-242.90,44.60,-768.00,900.00}},
- {"Whetstone", {-2997.40,-2892.90,-242.90,-1213.90,-1115.50,900.00}}
- };
- enum ReadPositions{Float:ReadX,Float:ReadY,Float:ReadZ
- }
- new LuX_ReadPlayerPosition[PLAYERS][ReadPositions];
- new Float:VehPosX[MAX_VEHICLES], Float:VehPosY[MAX_VEHICLES], Float:VehPosZ[MAX_VEHICLES];
- stock LuX_DistanceToPoint(vehicleid)
- {
- new Float:LPlayerX, Float:LPlayerY, Float:LPlayerZ, Float:LReadPos;
- GetVehiclePos(vehicleid, LPlayerX, LPlayerY, LPlayerZ);
- LReadPos = floatsqroot(floatpower(floatabs(floatsub(LPlayerX, VehPosX[vehicleid])), 2)+floatpower(floatabs(floatsub(LPlayerY, VehPosY[vehicleid])), 2)+floatpower(floatabs(floatsub(LPlayerZ, VehPosZ[vehicleid])), 2));
- return floatround(LReadPos);
- }
- stock LuX_ReadPosition(vehicleid)
- {
- new Float:LReadX, Float:LReadY, Float:LReadZ;
- GetVehiclePos(vehicleid, LReadX, LReadY, LReadZ);
- VehPosX[vehicleid]=LReadX; VehPosY[vehicleid]=LReadY; VehPosZ[vehicleid]=LReadZ;
- }
- stock PlayerZone(playerid, zone[])
- {
- new ReadTmpZone[MAX_ZONE_NAME];
- GetPlayer3DZone(playerid, ReadTmpZone, sizeof(ReadTmpZone)); for(new i = 0; i != sizeof(SanAndreasZones); i++){
- if(strfind(ReadTmpZone, zone, true) != -1)
- return 1;
- }
- return 0;
- }
- forward LAutoUnlock(vehicleid);
- new LVehiclesName[][] =
- {
- "Landstalker",
- "Bravura",
- "Buffalo",
- "Linerunner",
- "Pereniel",
- "Sentinel",
- "Dumper",
- "Firetruck",
- "Trashmaster",
- "Stretch",
- "Manana",
- "Infernus",
- "Voodoo",
- "Pony",
- "Mule",
- "Cheetah",
- "Ambulance",
- "Leviathan",
- "Moonbeam",
- "Esperanto",
- "Taxi",
- "Washington",
- "Bobcat",
- "Mr Whoopee",
- "BF Injection",
- "Hunter",
- "Premier",
- "Enforcer",
- "Securicar",
- "Banshee",
- "Predator",
- "Bus",
- "Rhino",
- "Barracks",
- "Hotknife",
- "Trailer",
- "Previon",
- "Coach",
- "Cabbie",
- "Stallion",
- "Rumpo",
- "RC Bandit",
- "Romero",
- "Packer",
- "Monster Truck",
- "Admiral",
- "Squalo",
- "Seasparrow",
- "Pizzaboy",
- "Tram",
- "Trailer",
- "Turismo",
- "Speeder",
- "Reefer",
- "Tropic",
- "Flatbed",
- "Yankee",
- "Caddy",
- "Solair",
- "Berkley's RC Van",
- "Skimmer",
- "PCJ-600",
- "Faggio",
- "Freeway",
- "RC Baron",
- "RC Raider",
- "Glendale",
- "Oceanic",
- "Sanchez",
- "Sparrow",
- "Patriot",
- "Quad",
- "Coastguard",
- "Dinghy",
- "Hermes",
- "Sabre",
- "Rustler",
- "ZR-350",
- "Walton",
- "Regina",
- "Comet",
- "BMX",
- "Burrito",
- "Camper",
- "Marquis",
- "Baggage",
- "Dozer",
- "Maverick",
- "News Chopper",
- "Rancher",
- "FBI Rancher",
- "Virgo",
- "Greenwood",
- "Jetmax",
- "Hotring",
- "Sandking",
- "Blista Compact",
- "Police Maverick",
- "Boxville",
- "Benson",
- "Mesa",
- "RC Goblin",
- "Hotring Racer",
- "Hotring Racer",
- "Bloodring Banger",
- "Rancher",
- "Super GT",
- "Elegant",
- "Journey",
- "Bike",
- "Mountain Bike",
- "Beagle",
- "Cropdust",
- "Stunt",
- "Tanker",
- "RoadTrain",
- "Nebula",
- "Majestic",
- "Buccaneer",
- "Shamal",
- "Hydra",
- "FCR-900",
- "NRG-500",
- "HPV1000",
- "Cement Truck",
- "Tow Truck",
- "Fortune",
- "Cadrona",
- "FBI Truck",
- "Willard",
- "Forklift",
- "Tractor",
- "Combine",
- "Feltzer",
- "Remington",
- "Slamvan",
- "Blade",
- "Freight",
- "Streak",
- "Vortex",
- "Vincent",
- "Bullet",
- "Clover",
- "Sadler",
- "Firetruck",
- "Hustler",
- "Intruder",
- "Primo",
- "Cargobob",
- "Tampa",
- "Sunrise",
- "Merit",
- "Utility",
- "Nevada",
- "Yosemite",
- "Windsor",
- "Monster Truck",
- "Monster Truck",
- "Uranus",
- "Jester",
- "Sultan",
- "Stratum",
- "Elegy",
- "Raindance",
- "RC Tiger",
- "Flash",
- "Tahoma",
- "Savanna",
- "Bandito",
- "Freight",
- "Trailer",
- "Kart",
- "Mower",
- "Duneride",
- "Sweeper",
- "Broadway",
- "Tornado",
- "AT-400",
- "DFT-30",
- "Huntley",
- "Stafford",
- "BF-400",
- "Newsvan",
- "Tug",
- "Trailer",
- "Emperor",
- "Wayfarer",
- "Euros",
- "Hotdog",
- "Club",
- "Trailer",
- "Trailer",
- "Andromada",
- "Dodo",
- "RC Cam",
- "Launch",
- "Police Car (LS)",
- "Police Car (SF)",
- "Police Car (LV)",
- "Police Ranger",
- "Picador",
- "S.W.A.T. Van",
- "Alpha",
- "Phoenix",
- "Glendale",
- "Sadler",
- "Luggage Trailer",
- "Luggage Trailer",
- "Stair Trailer",
- "Boxville",
- "Farm Plow",
- "Utility Trailer"
- };
- forward LuX_SpeedoMeterUp();
- //
- new Security = 0;
- new gmx = 0;
- new CreatedCars[MAX_VEHICLES] = {INVALID_VEHICLE_ID, ...};
- //new SpawnedVehicle[MAX_VEHICLES], Vehicles;
- /*new RC1;
- new RC2;
- new RC3;
- new RC4;
- new RC5;
- new RC6;*/
- new bariera;
- new Bariera2 = 0;
- // Weed System
- new Weed[MAX_PLAYERS];
- new Float: Weed_x[MAX_PLAYERS], Float: Weed_y[MAX_PLAYERS], Float: Weed_z[MAX_PLAYERS];
- new HasPlantWeed[MAX_PLAYERS];
- new WeedGrams[MAX_PLAYERS];
- new WeedForPlayer[MAX_PLAYERS];
- new WeedTime[MAX_PLAYERS];
- new WeedMin[MAX_PLAYERS];
- new WeedIsPicked[MAX_PLAYERS];
- new Float:WeedStopPos[MAX_PLAYERS][3];
- //
- new CIAGate;
- new vipgate1 = 0;
- new vipgate2 = 0;
- new vipgateob1; //vipgate
- new vipgateob2; //vipgate2
- new wugate1 = 0;
- new wugate2 = 0;
- new wugate3 = 0;
- new gDestroyVehicle[MAX_VEHICLES];
- new aGun[MAX_PLAYERS][13];
- new Tax = 0;
- new TaxValue = 0;
- new Jackpot = 0;
- new StartingPaintballRound = 0;
- new AnnouncedPaintballRound = 0;
- new PaintballPlayers = 0;
- new PaintballRound = 0;
- new PaintballWinner = 999;
- new PaintballWinnerKills = 0;
- new InRing = 0;
- new RoundStarted = 0;
- new BoxDelay = 0;
- new Boxer1 = 255;
- new Boxer2 = 255;
- new TBoxer = 255;
- new PlayerBoxing[MAX_PLAYERS];
- new Medics = 0;
- new MedicCall = 999;
- new MedicCallTime[MAX_PLAYERS];
- new Lawyers = 0;
- new LawyerCall = 999;
- new LawyerCallTime[MAX_PLAYERS];
- new Mechanics = 0;
- new MechanicCall = 999;
- new MechanicCallTime[MAX_PLAYERS];
- new TaxiDrivers = 0;
- new TaxiCall = 999;
- new TaxiCallTime[MAX_PLAYERS];
- new TaxiAccepted[MAX_PLAYERS];
- new BusDrivers = 0;
- new BusCall = 999;
- new BusCallTime[MAX_PLAYERS];
- new BusAccepted[MAX_PLAYERS];
- new TransportDuty[MAX_PLAYERS];
- new TransportValue[MAX_PLAYERS];
- new TransportMoney[MAX_PLAYERS];
- new TransportTime[MAX_PLAYERS];
- new TransportCost[MAX_PLAYERS];
- new TransportDriver[MAX_PLAYERS];
- new JobDuty[MAX_PLAYERS];
- new RegistrationStep[MAX_PLAYERS];
- new PlayerPaintballing[MAX_PLAYERS];
- new PlayerPaintballKills[MAX_PLAYERS];
- new UsedFind[MAX_PLAYERS];
- new GotMats[MAX_PLAYERS];
- new FReloadTime[MAX_PLAYERS];
- new PlayerHadDeagle[MAX_PLAYERS];
- new JustReported[MAX_PLAYERS];
- new TazerTime[MAX_PLAYERS];
- new PlayerHasTazer[MAX_PLAYERS];
- new Warnings[20][256];
- new Accent[MAX_PLAYERS][16];
- new iCurrentWeapon[MAX_PLAYERS];
- new Float:StoreArmour[MAX_PLAYERS];
- new gPlayerUsingLoopingAnim[MAX_PLAYERS];
- new PlayersChannel[MAX_PLAYERS];
- new HasBoughtMask[MAX_PLAYERS];
- new UsingSate[MAX_PLAYERS];
- new ZOOM[MAX_PLAYERS];
- new Float:oldsposx[MAX_PLAYERS], Float:oldsposy[MAX_PLAYERS], Float:oldsposz[MAX_PLAYERS];
- new Float:newsposx[MAX_PLAYERS], Float:newsposy[MAX_PLAYERS], Float:newsposz[MAX_PLAYERS];
- new NoFuel[MAX_PLAYERS];
- new DivorceOffer[MAX_PLAYERS];
- new FriskOffer[MAX_PLAYERS];
- new MarriageCeremoney[MAX_PLAYERS];
- new ProposeOffer[MAX_PLAYERS];
- new ProposedTo[MAX_PLAYERS];
- new GotProposedBy[MAX_PLAYERS];
- new MarryWitness[MAX_PLAYERS];
- new MarryWitnessOffer[MAX_PLAYERS];
- new TicketOffer[MAX_PLAYERS];
- new TicketMoney[MAX_PLAYERS];
- new HandshakeOffer[MAX_PLAYERS];
- new HandshakeType[MAX_PLAYERS];
- new ContractOffer[MAX_PLAYERS];
- new ContractID[MAX_PLAYERS];
- new PlayerStoned[MAX_PLAYERS];
- new FishCount[MAX_PLAYERS];
- new TutTime[MAX_PLAYERS];
- new Reqhelp[MAX_PLAYERS];
- new NoTP[MAX_PLAYERS];
- new NoSpec[MAX_PLAYERS];
- new PlayerTazeTime[MAX_PLAYERS];
- new FindTimePoints[MAX_PLAYERS];
- new FindTime[MAX_PLAYERS];
- new FindingID[MAX_PLAYERS];
- new BoxWaitTime[MAX_PLAYERS];
- new BoxOffer[MAX_PLAYERS];
- new GoChase[MAX_PLAYERS];
- new LSPDClearing[MAX_PLAYERS];
- new HospitalTime[MAX_PLAYERS];
- new NoHospital[MAX_PLAYERS];
- new HospitalSpawn[MAX_PLAYERS];
- new PlayerTied[MAX_PLAYERS];
- new PlayerBlinded[MAX_PLAYERS];
- new PlayerHurt[MAX_PLAYERS];
- new PlayerCuffed[MAX_PLAYERS];
- new PlayerFrozen[MAX_PLAYERS];
- new PlayerCuffedTime[MAX_PLAYERS];
- new LiveOffer[MAX_PLAYERS];
- new TalkingLive[MAX_PLAYERS];
- new SelectChar[MAX_PLAYERS];
- new SelectCharID[MAX_PLAYERS];
- new SelectCharPlace[MAX_PLAYERS];
- new ChosenSkin[MAX_PLAYERS];
- new Parrot[MAX_PLAYERS];
- new WithGlasses[MAX_PLAYERS];
- new WithHat[MAX_PLAYERS];
- new WithMask[MAX_PLAYERS];
- new WithBandana[MAX_PLAYERS];
- new WithHelmet[MAX_PLAYERS];
- new wrench[MAX_PLAYERS];
- new hammer[MAX_PLAYERS];
- new crowbar[MAX_PLAYERS];
- new chainsawdildo[MAX_PLAYERS];
- new flashlight[MAX_PLAYERS];
- new screwdriver[MAX_PLAYERS];
- new rake[MAX_PLAYERS];
- new AShield[MAX_PLAYERS];
- new BShield[MAX_PLAYERS];
- new Float:ObjCoords[100][3];
- new object[100];
- new ObjectID[100][2];
- new Float:ObjCoords2[100][3];
- new object2[100];
- new GettingJob[MAX_PLAYERS];
- new GuardOffer[MAX_PLAYERS];
- new GuardPrice[MAX_PLAYERS];
- new DefenseOffer[MAX_PLAYERS];
- new DefensePrice[MAX_PLAYERS];
- new FamilyOffer[MAX_PLAYERS];
- //Bank robbery
- new VPass;
- new BankRobberyTime;
- new BankRobbery = 0;
- new LoadingCash;
- new LoadingCashType[MAX_PLAYERS];
- new LoadingCashTime[MAX_PLAYERS];
- new LoadedCash[MAX_PLAYERS];
- new bankvaultdoor;
- forward AnnounceRobbery();
- forward CashLoadCheck();
- forward CloseTheVault();
- forward RobBank(playerid);
- forward CheckRobberSafe(playerid);
- forward RobBankMove(playerid);
- forward RobBankMove2(playerid);
- new UserSprunk[MAX_PLAYERS];
- new VehicleOffer[MAX_PLAYERS];
- new VehiclePrice[MAX_PLAYERS];
- new VehicleSellID[MAX_PLAYERS];
- new TempKey[MAX_PLAYERS];
- new KeysOffer[MAX_PLAYERS];
- new KeysOfferTo[MAX_PLAYERS];
- new KeysID[1000];
- new HouseOffer[MAX_PLAYERS];
- new HousePrice[MAX_PLAYERS];
- new HouseSellID[MAX_PLAYERS];
- new BizOffer[MAX_PLAYERS];
- new BizPrice[MAX_PLAYERS];
- new BizSellID[MAX_PLAYERS];
- new HouseEditID[MAX_PLAYERS];
- new BizEditID[MAX_PLAYERS];
- new RentOffer[MAX_PLAYERS];
- new RentPrice[MAX_PLAYERS];
- new RentHouseID[MAX_PLAYERS];
- new FactionOffer[MAX_PLAYERS];
- new CallLawyer[MAX_PLAYERS];
- new WantLawyer[MAX_PLAYERS];
- new KickPlayer[MAX_PLAYERS];
- new CP[MAX_PLAYERS];
- new MoneyMessage[MAX_PLAYERS];
- new Condom[MAX_PLAYERS];
- new STDPlayer[MAX_PLAYERS];
- new SexOffer[MAX_PLAYERS];
- new SexPrice[MAX_PLAYERS];
- new RepairOffer[MAX_PLAYERS];
- new RepairPrice[MAX_PLAYERS];
- new RefillOffer[MAX_PLAYERS];
- new RefillPrice[MAX_PLAYERS];
- new RepairCar[MAX_PLAYERS];
- new PotOffer[MAX_PLAYERS];
- new PotPrice[MAX_PLAYERS];
- new PotGram[MAX_PLAYERS];
- new ProdOffer[MAX_PLAYERS];
- new ProdPrice[MAX_PLAYERS];
- new ProdAmount[MAX_PLAYERS];
- new Packages[MAX_PLAYERS];
- new Crates[MAX_PLAYERS];
- new CrackOffer[MAX_PLAYERS];
- new CrackPrice[MAX_PLAYERS];
- new CrackGram[MAX_PLAYERS];
- new JailPrice[MAX_PLAYERS];
- new gPlayerLogged[MAX_PLAYERS];
- new gActivePlayers[MAX_PLAYERS];
- new gLastCar[MAX_PLAYERS];
- new gCarLock[MAX_VEHICLES];
- new gOoc[MAX_PLAYERS];
- new gNewbie[MAX_PLAYERS];
- new gNews[MAX_PLAYERS];
- new gFam[MAX_PLAYERS];
- new dealership[91];
- new lspd[65];
- new wu[6];
- new objecttt[40];
- new BigEar[MAX_PLAYERS];
- new CellTime[MAX_PLAYERS];
- new HidePM[MAX_PLAYERS];
- new PhoneOnline[MAX_PLAYERS];
- new AlarmOnline[MAX_PLAYERS];
- new WTOnline[MAX_PLAYERS];
- new gGas[MAX_PLAYERS];
- new gSpeedo[MAX_PLAYERS];
- new gVehicleLock[MAX_PLAYERS];
- new Fixr[MAX_PLAYERS];
- new Locator[MAX_PLAYERS];
- new Mobile[MAX_PLAYERS];
- new SelectDrug[MAX_PLAYERS];
- new CallCost[MAX_PLAYERS];
- new gPlayerAccount[MAX_PLAYERS];
- new Float:rx, Float:ry, Float:rz;
- new motd[128];
- new door;
- new DoorOpened;
- new Text:txtAnimHelper;
- new anumber;
- new chiefdoortimer;
- new ghour = 0;
- new gminute = 0;
- new gsecond = 0;
- new numplayers = 0;
- new realtime = 1;
- new wtime = 15;
- new dollah = 5000; //amount player recieves on spawn
- new levelcost = 25000; //level cost
- new deathcost = 300; //death cost
- new callcost = 20; //divided by 10 seconds
- new matprice = 500; //getmats cost
- new matprice2 = 1000; //getmats cost
- new matpayout = 250; //materials payout amount
- new matpayout2 = 500; //materials payout amount
- new dmatpayout = 350; //materials payout amount
- new dmatpayout2 = 450; //materials payout amount
- new potgprice = 100; //price per gram
- new crackgprice = 500; //price per gram
- new Carparts;
- new dhstock = 0; //drughouse supply
- new dhlimit = 1000; //drughouse limit
- new chstock = 0; //crackhouse supply
- new chlimit = 500; //crackhouse limit
- new levelexp = 4; //levelexp
- new nonewbie = 0; //newbie chat enabled
- new noreport = 0;
- new adds = 1; //ads enabled
- new noooc = 1; //noooc enabled
- new realchat = 1;
- new timeshift = -1;
- new shifthour;
- new othtimer;
- new synctimer;
- new savechartimer;
- new unjailtimer;
- new pickuptimer;
- new autokicktimer;
- new productiontimer;
- new checkgastimer;
- new stoppedvehtimer;
- new botanimtimer;
- new claimedtimer;
- new cartimer;
- new pointtimer;
- new addtimer = 60000;
- new ciagateopen = 0;
- new pdgategar = 0;
- new pdgatebar = 0;
- new pdbarriergateobj; //pdgate barrier object
- new pdgaragegateobj; //pdgate garage object
- new VIPSkins[] = { 294, 293, 295, 296, 291, 290, 298, 165, 147, 2 };
- new STD1[] = {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3};
- new STD2[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3};
- new STD3[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3};
- new STD4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 3};
- new SELLCAR1[] = { 1000, 1124, 1245, 1349, 1475, 1574, 1636, 1762, 1895, 1946, 2000 };
- new SELLCAR2[] = { 2099, 2135, 2255, 2378, 2457, 2563, 2614, 2721, 2878, 2988, 3000 };
- new SELLCAR3[] = { 3058, 3175, 3212, 3377, 3454, 3555, 3678, 3751, 3865, 3964, 4000 };
- new SELLCAR4[] = { 4077, 4123, 4275, 4378, 4422, 4565, 4613, 4752, 4897, 4911, 5000 };
- //new Float:PlayerPos[MAX_PLAYERS][6];
- new Float:TeleportDest[MAX_PLAYERS][3];
- new ChangeUniform[MAX_PLAYERS];
- new FixCarTimer[MAX_PLAYERS];
- new PickLockTimer[MAX_PLAYERS];
- new LockPicking[MAX_PLAYERS];
- new SellCarTimer[MAX_PLAYERS];
- new ChangePassTimer[MAX_PLAYERS];
- new StopAniTimer[MAX_PLAYERS];
- new UseDrugsTimer[MAX_PLAYERS];
- new UseBMTimer[MAX_PLAYERS];
- new BMPurchased[MAX_PLAYERS];
- new SellGunTimer[MAX_PLAYERS];
- new UseTazerTimer[MAX_PLAYERS];
- new UseDrinkTimer[MAX_PLAYERS];
- new UseNewbieTimer[MAX_PLAYERS];
- new UseAdmCmdTimer[MAX_PLAYERS];
- new UseAcceptTimer[MAX_PLAYERS];
- new Called911[MAX_PLAYERS];
- new SpectatedID[MAX_PLAYERS];
- new SpectateType[MAX_PLAYERS];
- new CanTalk[MAX_PLAYERS];
- new PrisonCell[MAX_PLAYERS];
- new BombID[MAX_PLAYERS];
- new BombInCar[MAX_PLAYERS];
- new HoldingDetonator[MAX_PLAYERS];
- new Suitcaseaction[MAX_PLAYERS];
- //new HoldingSuitcase[MAX_PLAYERS];
- new gPlayerAnimLibsPreloaded[MAX_PLAYERS];
- new Gas[MAX_VEHICLES];
- new Refueling[MAX_PLAYERS];
- new gPlayerSpawned[MAX_PLAYERS];
- new CallDescription[MAX_PLAYERS][256];
- new Float:OldHealth[MAX_PLAYERS],Float:OldArmour[MAX_PLAYERS];
- //events
- new Float: EventX, Float: EventY, Float: EventZ, EventInt, EventWorld;
- new EventHP = 100, EventArmour = 0, ActiveEvent = 0, EventJoinText = 0, EventLocked = 0;
- new EventWeapon1, EventWeapon2, EventWeapon3, EventWeapon4, EventWeapon5;
- new EventText[128];
- new IsAtEvent[MAX_PLAYERS];
- new RefundingNumber[MAX_PLAYERS];
- new RefundingID[MAX_PLAYERS];
- new Params[4][8]; //ipinfo
- new FileData[7][128]; //ipinfo
- //RAMP
- new RampToggle[MAX_PLAYERS];
- new ramp;
- //headshot
- new RecentlyShot[MAX_PLAYERS];
- //namechanges
- // Doors
- //new IsLSPDDoorOpen = 0;
- //LSPD District 2
- new PDGate, PDOpen;
- enum SAZONE_MAIN
- {
- SAZONE_NAME[28],
- Float:SAZONE_AREA[6]
- };
- //==============================================================================
- static const gSAZones[][SAZONE_MAIN] = {
- {"The Big Ear", {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
- {"Aldea Malvada", {-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
- {"Angel Pine", {-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}},
- {"Arco del Oeste", {-901.10,2221.80,0.00,-592.00,2571.90,200.00}},
- {"Avispa Country Club", {-2646.40,-355.40,0.00,-2270.00,-222.50,200.00}},
- {"Avispa Country Club", {-2831.80,-430.20,-6.10,-2646.40,-222.50,200.00}},
- {"Avispa Country Club", {-2361.50,-417.10,0.00,-2270.00,-355.40,200.00}},
- {"Avispa Country Club", {-2667.80,-302.10,-28.80,-2646.40,-262.30,71.10}},
- {"Avispa Country Club", {-2470.00,-355.40,0.00,-2270.00,-318.40,46.10}},
- {"Avispa Country Club", {-2550.00,-355.40,0.00,-2470.00,-318.40,39.70}},
- {"Back o Beyond", {-1166.90,-2641.10,0.00,-321.70,-1856.00,200.00}},
- {"Battery Point", {-2741.00,1268.40,-4.50,-2533.00,1490.40,200.00}},
- {"Bayside", {-2741.00,2175.10,0.00,-2353.10,2722.70,200.00}},
- {"Bayside Marina", {-2353.10,2275.70,0.00,-2153.10,2475.70,200.00}},
- {"Beacon Hill", {-399.60,-1075.50,-1.40,-319.00,-977.50,198.50}},
- {"Blackfield", {964.30,1203.20,-89.00,1197.30,1403.20,110.90}},
- {"Blackfield", {964.30,1403.20,-89.00,1197.30,1726.20,110.90}},
- {"Blackfield Chapel", {1375.60,596.30,-89.00,1558.00,823.20,110.90}},
- {"Blackfield Chapel", {1325.60,596.30,-89.00,1375.60,795.00,110.90}},
- {"Blackfield Intersection", {1197.30,1044.60,-89.00,1277.00,1163.30,110.90}},
- {"Blackfield Intersection", {1166.50,795.00,-89.00,1375.60,1044.60,110.90}},
- {"Blackfield Intersection", {1277.00,1044.60,-89.00,1315.30,1087.60,110.90}},
- {"Blackfield Intersection", {1375.60,823.20,-89.00,1457.30,919.40,110.90}},
- {"Blueberry", {104.50,-220.10,2.30,349.60,152.20,200.00}},
- {"Blueberry", {19.60,-404.10,3.80,349.60,-220.10,200.00}},
- {"Blueberry Acres", {-319.60,-220.10,0.00,104.50,293.30,200.00}},
- {"Caligula's Palace", {2087.30,1543.20,-89.00,2437.30,1703.20,110.90}},
- {"Caligula's Palace", {2137.40,1703.20,-89.00,2437.30,1783.20,110.90}},
- {"Calton Heights", {-2274.10,744.10,-6.10,-1982.30,1358.90,200.00}},
- {"Chinatown", {-2274.10,578.30,-7.60,-2078.60,744.10,200.00}},
- {"City Hall", {-2867.80,277.40,-9.10,-2593.40,458.40,200.00}},
- {"Come-A-Lot", {2087.30,943.20,-89.00,2623.10,1203.20,110.90}},
- {"Commerce", {1323.90,-1842.20,-89.00,1701.90,-1722.20,110.90}},
- {"Commerce", {1323.90,-1722.20,-89.00,1440.90,-1577.50,110.90}},
- {"Commerce", {1370.80,-1577.50,-89.00,1463.90,-1384.90,110.90}},
- {"Commerce", {1463.90,-1577.50,-89.00,1667.90,-1430.80,110.90}},
- {"Commerce", {1583.50,-1722.20,-89.00,1758.90,-1577.50,110.90}},
- {"Commerce", {1667.90,-1577.50,-89.00,1812.60,-1430.80,110.90}},
- {"Conference Center", {1046.10,-1804.20,-89.00,1323.90,-1722.20,110.90}},
- {"Conference Center", {1073.20,-1842.20,-89.00,1323.90,-1804.20,110.90}},
- {"Cranberry Station", {-2007.80,56.30,0.00,-1922.00,224.70,100.00}},
- {"Creek", {2749.90,1937.20,-89.00,2921.60,2669.70,110.90}},
- {"Dillimore", {580.70,-674.80,-9.50,861.00,-404.70,200.00}},
- {"Doherty", {-2270.00,-324.10,-0.00,-1794.90,-222.50,200.00}},
- {"Doherty", {-2173.00,-222.50,-0.00,-1794.90,265.20,200.00}},
- {"Downtown", {-1982.30,744.10,-6.10,-1871.70,1274.20,200.00}},
- {"Downtown", {-1871.70,1176.40,-4.50,-1620.30,1274.20,200.00}},
- {"Downtown", {-1700.00,744.20,-6.10,-1580.00,1176.50,200.00}},
- {"Downtown", {-1580.00,744.20,-6.10,-1499.80,1025.90,200.00}},
- {"Downtown", {-2078.60,578.30,-7.60,-1499.80,744.20,200.00}},
- {"Downtown", {-1993.20,265.20,-9.10,-1794.90,578.30,200.00}},
- {"Downtown Los Santos", {1463.90,-1430.80,-89.00,1724.70,-1290.80,110.90}},
- {"Downtown Los Santos", {1724.70,-1430.80,-89.00,1812.60,-1250.90,110.90}},
- {"Downtown Los Santos", {1463.90,-1290.80,-89.00,1724.70,-1150.80,110.90}},
- {"Downtown Los Santos", {1370.80,-1384.90,-89.00,1463.90,-1170.80,110.90}},
- {"Downtown Los Santos", {1724.70,-1250.90,-89.00,1812.60,-1150.80,110.90}},
- {"Downtown Los Santos", {1370.80,-1170.80,-89.00,1463.90,-1130.80,110.90}},
- {"Downtown Los Santos", {1378.30,-1130.80,-89.00,1463.90,-1026.30,110.90}},
- {"Downtown Los Santos", {1391.00,-1026.30,-89.00,1463.90,-926.90,110.90}},
- {"Downtown Los Santos", {1507.50,-1385.20,110.90,1582.50,-1325.30,335.90}},
- {"East Beach", {2632.80,-1852.80,-89.00,2959.30,-1668.10,110.90}},
- {"East Beach", {2632.80,-1668.10,-89.00,2747.70,-1393.40,110.90}},
- {"East Beach", {2747.70,-1668.10,-89.00,2959.30,-1498.60,110.90}},
- {"East Beach", {2747.70,-1498.60,-89.00,2959.30,-1120.00,110.90}},
- {"East Los Santos", {2421.00,-1628.50,-89.00,2632.80,-1454.30,110.90}},
- {"East Los Santos", {2222.50,-1628.50,-89.00,2421.00,-1494.00,110.90}},
- {"East Los Santos", {2266.20,-1494.00,-89.00,2381.60,-1372.00,110.90}},
- {"East Los Santos", {2381.60,-1494.00,-89.00,2421.00,-1454.30,110.90}},
- {"East Los Santos", {2281.40,-1372.00,-89.00,2381.60,-1135.00,110.90}},
- {"East Los Santos", {2381.60,-1454.30,-89.00,2462.10,-1135.00,110.90}},
- {"East Los Santos", {2462.10,-1454.30,-89.00,2581.70,-1135.00,110.90}},
- {"Easter Basin", {-1794.90,249.90,-9.10,-1242.90,578.30,200.00}},
- {"Easter Basin", {-1794.90,-50.00,-0.00,-1499.80,249.90,200.00}},
- {"Easter Bay Airport", {-1499.80,-50.00,-0.00,-1242.90,249.90,200.00}},
- {"Easter Bay Airport", {-1794.90,-730.10,-3.00,-1213.90,-50.00,200.00}},
- {"Easter Bay Airport", {-1213.90,-730.10,0.00,-1132.80,-50.00,200.00}},
- {"Easter Bay Airport", {-1242.90,-50.00,0.00,-1213.90,578.30,200.00}},
- {"Easter Bay Airport", {-1213.90,-50.00,-4.50,-947.90,578.30,200.00}},
- {"Easter Bay Airport", {-1315.40,-405.30,15.40,-1264.40,-209.50,25.40}},
- {"Easter Bay Airport", {-1354.30,-287.30,15.40,-1315.40,-209.50,25.40}},
- {"Easter Bay Airport", {-1490.30,-209.50,15.40,-1264.40,-148.30,25.40}},
- {"Easter Bay Chemicals", {-1132.80,-768.00,0.00,-956.40,-578.10,200.00}},
- {"Easter Bay Chemicals", {-1132.80,-787.30,0.00,-956.40,-768.00,200.00}},
- {"El Castillo del Diablo", {-464.50,2217.60,0.00,-208.50,2580.30,200.00}},
- {"El Castillo del Diablo", {-208.50,2123.00,-7.60,114.00,2337.10,200.00}},
- {"El Castillo del Diablo", {-208.50,2337.10,0.00,8.40,2487.10,200.00}},
- {"El Corona", {1812.60,-2179.20,-89.00,1970.60,-1852.80,110.90}},
- {"El Corona", {1692.60,-2179.20,-89.00,1812.60,-1842.20,110.90}},
- {"El Quebrados", {-1645.20,2498.50,0.00,-1372.10,2777.80,200.00}},
- {"Esplanade East", {-1620.30,1176.50,-4.50,-1580.00,1274.20,200.00}},
- {"Esplanade East", {-1580.00,1025.90,-6.10,-1499.80,1274.20,200.00}},
- {"Esplanade East", {-1499.80,578.30,-79.60,-1339.80,1274.20,20.30}},
- {"Esplanade North", {-2533.00,1358.90,-4.50,-1996.60,1501.20,200.00}},
- {"Esplanade North", {-1996.60,1358.90,-4.50,-1524.20,1592.50,200.00}},
- {"Esplanade North", {-1982.30,1274.20,-4.50,-1524.20,1358.90,200.00}},
- {"Fallen Tree", {-792.20,-698.50,-5.30,-452.40,-380.00,200.00}},
- {"Fallow Bridge", {434.30,366.50,0.00,603.00,555.60,200.00}},
- {"Fern Ridge", {508.10,-139.20,0.00,1306.60,119.50,200.00}},
- {"Financial", {-1871.70,744.10,-6.10,-1701.30,1176.40,300.00}},
- {"Fisher's Lagoon", {1916.90,-233.30,-100.00,2131.70,13.80,200.00}},
- {"Flint Intersection", {-187.70,-1596.70,-89.00,17.00,-1276.60,110.90}},
- {"Flint Range", {-594.10,-1648.50,0.00,-187.70,-1276.60,200.00}},
- {"Fort Carson", {-376.20,826.30,-3.00,123.70,1220.40,200.00}},
- {"Foster Valley", {-2270.00,-430.20,-0.00,-2178.60,-324.10,200.00}},
- {"Foster Valley", {-2178.60,-599.80,-0.00,-1794.90,-324.10,200.00}},
- {"Foster Valley", {-2178.60,-1115.50,0.00,-1794.90,-599.80,200.00}},
- {"Foster Valley", {-2178.60,-1250.90,0.00,-1794.90,-1115.50,200.00}},
- {"Frederick Bridge", {2759.20,296.50,0.00,2774.20,594.70,200.00}},
- {"Gant Bridge", {-2741.40,1659.60,-6.10,-2616.40,2175.10,200.00}},
- {"Gant Bridge", {-2741.00,1490.40,-6.10,-2616.40,1659.60,200.00}},
- {"Ganton", {2222.50,-1852.80,-89.00,2632.80,-1722.30,110.90}},
- {"Ganton", {2222.50,-1722.30,-89.00,2632.80,-1628.50,110.90}},
- {"Garcia", {-2411.20,-222.50,-0.00,-2173.00,265.20,200.00}},
- {"Garcia", {-2395.10,-222.50,-5.30,-2354.00,-204.70,200.00}},
- {"Garver Bridge", {-1339.80,828.10,-89.00,-1213.90,1057.00,110.90}},
- {"Garver Bridge", {-1213.90,950.00,-89.00,-1087.90,1178.90,110.90}},
- {"Garver Bridge", {-1499.80,696.40,-179.60,-1339.80,925.30,20.30}},
- {"Glen Park", {1812.60,-1449.60,-89.00,1996.90,-1350.70,110.90}},
- {"Glen Park", {1812.60,-1100.80,-89.00,1994.30,-973.30,110.90}},
- {"Glen Park", {1812.60,-1350.70,-89.00,2056.80,-1100.80,110.90}},
- {"Green Palms", {176.50,1305.40,-3.00,338.60,1520.70,200.00}},
- {"Greenglass College", {964.30,1044.60,-89.00,1197.30,1203.20,110.90}},
- {"Greenglass College", {964.30,930.80,-89.00,1166.50,1044.60,110.90}},
- {"Hampton Barns", {603.00,264.30,0.00,761.90,366.50,200.00}},
- {"Hankypanky Point", {2576.90,62.10,0.00,2759.20,385.50,200.00}},
- {"Harry Gold Parkway", {1777.30,863.20,-89.00,1817.30,2342.80,110.90}},
- {"Hashbury", {-2593.40,-222.50,-0.00,-2411.20,54.70,200.00}},
- {"Hilltop Farm", {967.30,-450.30,-3.00,1176.70,-217.90,200.00}},
- {"Hunter Quarry", {337.20,710.80,-115.20,860.50,1031.70,203.70}},
- {"Idlewood", {1812.60,-1852.80,-89.00,1971.60,-1742.30,110.90}},
- {"Idlewood", {1812.60,-1742.30,-89.00,1951.60,-1602.30,110.90}},
- {"Idlewood", {1951.60,-1742.30,-89.00,2124.60,-1602.30,110.90}},
- {"Idlewood", {1812.60,-1602.30,-89.00,2124.60,-1449.60,110.90}},
- {"Idlewood", {2124.60,-1742.30,-89.00,2222.50,-1494.00,110.90}},
- {"Idlewood", {1971.60,-1852.80,-89.00,2222.50,-1742.30,110.90}},
- {"Jefferson", {1996.90,-1449.60,-89.00,2056.80,-1350.70,110.90}},
- {"Jefferson", {2124.60,-1494.00,-89.00,2266.20,-1449.60,110.90}},
- {"Jefferson", {2056.80,-1372.00,-89.00,2281.40,-1210.70,110.90}},
- {"Jefferson", {2056.80,-1210.70,-89.00,2185.30,-1126.30,110.90}},
- {"Jefferson", {2185.30,-1210.70,-89.00,2281.40,-1154.50,110.90}},
- {"Jefferson", {2056.80,-1449.60,-89.00,2266.20,-1372.00,110.90}},
- {"Julius Thruway East", {2623.10,943.20,-89.00,2749.90,1055.90,110.90}},
- {"Julius Thruway East", {2685.10,1055.90,-89.00,2749.90,2626.50,110.90}},
- {"Julius Thruway East", {2536.40,2442.50,-89.00,2685.10,2542.50,110.90}},
- {"Julius Thruway East", {2625.10,2202.70,-89.00,2685.10,2442.50,110.90}},
- {"Julius Thruway North", {2498.20,2542.50,-89.00,2685.10,2626.50,110.90}},
- {"Julius Thruway North", {2237.40,2542.50,-89.00,2498.20,2663.10,110.90}},
- {"Julius Thruway North", {2121.40,2508.20,-89.00,2237.40,2663.10,110.90}},
- {"Julius Thruway North", {1938.80,2508.20,-89.00,2121.40,2624.20,110.90}},
- {"Julius Thruway North", {1534.50,2433.20,-89.00,1848.40,2583.20,110.90}},
- {"Julius Thruway North", {1848.40,2478.40,-89.00,1938.80,2553.40,110.90}},
- {"Julius Thruway North", {1704.50,2342.80,-89.00,1848.40,2433.20,110.90}},
- {"Julius Thruway North", {1377.30,2433.20,-89.00,1534.50,2507.20,110.90}},
- {"Julius Thruway South", {1457.30,823.20,-89.00,2377.30,863.20,110.90}},
- {"Julius Thruway South", {2377.30,788.80,-89.00,2537.30,897.90,110.90}},
- {"Julius Thruway West", {1197.30,1163.30,-89.00,1236.60,2243.20,110.90}},
- {"Julius Thruway West", {1236.60,2142.80,-89.00,1297.40,2243.20,110.90}},
- {"Juniper Hill", {-2533.00,578.30,-7.60,-2274.10,968.30,200.00}},
- {"Juniper Hollow", {-2533.00,968.30,-6.10,-2274.10,1358.90,200.00}},
- {"K.A.C.C. Military Fuels", {2498.20,2626.50,-89.00,2749.90,2861.50,110.90}},
- {"Kincaid Bridge", {-1339.80,599.20,-89.00,-1213.90,828.10,110.90}},
- {"Kincaid Bridge", {-1213.90,721.10,-89.00,-1087.90,950.00,110.90}},
- {"Kincaid Bridge", {-1087.90,855.30,-89.00,-961.90,986.20,110.90}},
- {"King's", {-2329.30,458.40,-7.60,-1993.20,578.30,200.00}},
- {"King's", {-2411.20,265.20,-9.10,-1993.20,373.50,200.00}},
- {"King's", {-2253.50,373.50,-9.10,-1993.20,458.40,200.00}},
- {"LVA Freight Depot", {1457.30,863.20,-89.00,1777.40,1143.20,110.90}},
- {"LVA Freight Depot", {1375.60,919.40,-89.00,1457.30,1203.20,110.90}},
- {"LVA Freight Depot", {1277.00,1087.60,-89.00,1375.60,1203.20,110.90}},
- {"LVA Freight Depot", {1315.30,1044.60,-89.00,1375.60,1087.60,110.90}},
- {"LVA Freight Depot", {1236.60,1163.40,-89.00,1277.00,1203.20,110.90}},
- {"Las Barrancas", {-926.10,1398.70,-3.00,-719.20,1634.60,200.00}},
- {"Las Brujas", {-365.10,2123.00,-3.00,-208.50,2217.60,200.00}},
- {"Las Colinas", {1994.30,-1100.80,-89.00,2056.80,-920.80,110.90}},
- {"Las Colinas", {2056.80,-1126.30,-89.00,2126.80,-920.80,110.90}},
- {"Las Colinas", {2185.30,-1154.50,-89.00,2281.40,-934.40,110.90}},
- {"Las Colinas", {2126.80,-1126.30,-89.00,2185.30,-934.40,110.90}},
- {"Las Colinas", {2747.70,-1120.00,-89.00,2959.30,-945.00,110.90}},
- {"Las Colinas", {2632.70,-1135.00,-89.00,2747.70,-945.00,110.90}},
- {"Las Colinas", {2281.40,-1135.00,-89.00,2632.70,-945.00,110.90}},
- {"Las Payasadas", {-354.30,2580.30,2.00,-133.60,2816.80,200.00}},
- {"Las Venturas Airport", {1236.60,1203.20,-89.00,1457.30,1883.10,110.90}},
- {"Las Venturas Airport", {1457.30,1203.20,-89.00,1777.30,1883.10,110.90}},
- {"Las Venturas Airport", {1457.30,1143.20,-89.00,1777.40,1203.20,110.90}},
- {"Las Venturas Airport", {1515.80,1586.40,-12.50,1729.90,1714.50,87.50}},
- {"Last Dime Motel", {1823.00,596.30,-89.00,1997.20,823.20,110.90}},
- {"Leafy Hollow", {-1166.90,-1856.00,0.00,-815.60,-1602.00,200.00}},
- {"Liberty City", {-1000.00,400.00,1300.00,-700.00,600.00,1400.00}},
- {"Lil' Probe Inn", {-90.20,1286.80,-3.00,153.80,1554.10,200.00}},
- {"Linden Side", {2749.90,943.20,-89.00,2923.30,1198.90,110.90}},
- {"Linden Station", {2749.90,1198.90,-89.00,2923.30,1548.90,110.90}},
- {"Linden Station", {2811.20,1229.50,-39.50,2861.20,1407.50,60.40}},
- {"Little Mexico", {1701.90,-1842.20,-89.00,1812.60,-1722.20,110.90}},
- {"Little Mexico", {1758.90,-1722.20,-89.00,1812.60,-1577.50,110.90}},
- {"Los Flores", {2581.70,-1454.30,-89.00,2632.80,-1393.40,110.90}},
- {"Los Flores", {2581.70,-1393.40,-89.00,2747.70,-1135.00,110.90}},
- {"Los Santos International", {1249.60,-2394.30,-89.00,1852.00,-2179.20,110.90}},
- {"Los Santos International", {1852.00,-2394.30,-89.00,2089.00,-2179.20,110.90}},
- {"Los Santos International", {1382.70,-2730.80,-89.00,2201.80,-2394.30,110.90}},
- {"Los Santos International", {1974.60,-2394.30,-39.00,2089.00,-2256.50,60.90}},
- {"Los Santos International", {1400.90,-2669.20,-39.00,2189.80,-2597.20,60.90}},
- {"Los Santos International", {2051.60,-2597.20,-39.00,2152.40,-2394.30,60.90}},
- {"Marina", {647.70,-1804.20,-89.00,851.40,-1577.50,110.90}},
- {"Marina", {647.70,-1577.50,-89.00,807.90,-1416.20,110.90}},
- {"Marina", {807.90,-1577.50,-89.00,926.90,-1416.20,110.90}},
- {"Market", {787.40,-1416.20,-89.00,1072.60,-1310.20,110.90}},
- {"Market", {952.60,-1310.20,-89.00,1072.60,-1130.80,110.90}},
- {"Market", {1072.60,-1416.20,-89.00,1370.80,-1130.80,110.90}},
- {"Market", {926.90,-1577.50,-89.00,1370.80,-1416.20,110.90}},
- {"Market Station", {787.40,-1410.90,-34.10,866.00,-1310.20,65.80}},
- {"Martin Bridge", {-222.10,293.30,0.00,-122.10,476.40,200.00}},
- {"Missionary Hill", {-2994.40,-811.20,0.00,-2178.60,-430.20,200.00}},
- {"Montgomery", {1119.50,119.50,-3.00,1451.40,493.30,200.00}},
- {"Montgomery", {1451.40,347.40,-6.10,1582.40,420.80,200.00}},
- {"Montgomery Intersection", {1546.60,208.10,0.00,1745.80,347.40,200.00}},
- {"Montgomery Intersection", {1582.40,347.40,0.00,1664.60,401.70,200.00}},
- {"Mulholland", {1414.00,-768.00,-89.00,1667.60,-452.40,110.90}},
- {"Mulholland", {1281.10,-452.40,-89.00,1641.10,-290.90,110.90}},
- {"Mulholland", {1269.10,-768.00,-89.00,1414.00,-452.40,110.90}},
- {"Mulholland", {1357.00,-926.90,-89.00,1463.90,-768.00,110.90}},
- {"Mulholland", {1318.10,-910.10,-89.00,1357.00,-768.00,110.90}},
- {"Mulholland", {1169.10,-910.10,-89.00,1318.10,-768.00,110.90}},
- {"Mulholland", {768.60,-954.60,-89.00,952.60,-860.60,110.90}},
- {"Mulholland", {687.80,-860.60,-89.00,911.80,-768.00,110.90}},
- {"Mulholland", {737.50,-768.00,-89.00,1142.20,-674.80,110.90}},
- {"Mulholland", {1096.40,-910.10,-89.00,1169.10,-768.00,110.90}},
- {"Mulholland", {952.60,-937.10,-89.00,1096.40,-860.60,110.90}},
- {"Mulholland", {911.80,-860.60,-89.00,1096.40,-768.00,110.90}},
- {"Mulholland", {861.00,-674.80,-89.00,1156.50,-600.80,110.90}},
- {"Mulholland Intersection", {1463.90,-1150.80,-89.00,1812.60,-768.00,110.90}},
- {"North Rock", {2285.30,-768.00,0.00,2770.50,-269.70,200.00}},
- {"Ocean Docks", {2373.70,-2697.00,-89.00,2809.20,-2330.40,110.90}},
- {"Ocean Docks", {2201.80,-2418.30,-89.00,2324.00,-2095.00,110.90}},
- {"Ocean Docks", {2324.00,-2302.30,-89.00,2703.50,-2145.10,110.90}},
- {"Ocean Docks", {2089.00,-2394.30,-89.00,2201.80,-2235.80,110.90}},
- {"Ocean Docks", {2201.80,-2730.80,-89.00,2324.00,-2418.30,110.90}},
- {"Ocean Docks", {2703.50,-2302.30,-89.00,2959.30,-2126.90,110.90}},
- {"Ocean Docks", {2324.00,-2145.10,-89.00,2703.50,-2059.20,110.90}},
- {"Ocean Flats", {-2994.40,277.40,-9.10,-2867.80,458.40,200.00}},
- {"Ocean Flats", {-2994.40,-222.50,-0.00,-2593.40,277.40,200.00}},
- {"Ocean Flats", {-2994.40,-430.20,-0.00,-2831.80,-222.50,200.00}},
- {"Octane Springs", {338.60,1228.50,0.00,664.30,1655.00,200.00}},
- {"Old Venturas Strip", {2162.30,2012.10,-89.00,2685.10,2202.70,110.90}},
- {"Palisades", {-2994.40,458.40,-6.10,-2741.00,1339.60,200.00}},
- {"Palomino Creek", {2160.20,-149.00,0.00,2576.90,228.30,200.00}},
- {"Paradiso", {-2741.00,793.40,-6.10,-2533.00,1268.40,200.00}},
- {"Pershing Square", {1440.90,-1722.20,-89.00,1583.50,-1577.50,110.90}},
- {"Pilgrim", {2437.30,1383.20,-89.00,2624.40,1783.20,110.90}},
- {"Pilgrim", {2624.40,1383.20,-89.00,2685.10,1783.20,110.90}},
- {"Pilson Intersection", {1098.30,2243.20,-89.00,1377.30,2507.20,110.90}},
- {"Pirates in Men's Pants", {1817.30,1469.20,-89.00,2027.40,1703.20,110.90}},
- {"Playa del Seville", {2703.50,-2126.90,-89.00,2959.30,-1852.80,110.90}},
- {"Prickle Pine", {1534.50,2583.20,-89.00,1848.40,2863.20,110.90}},
- {"Prickle Pine", {1117.40,2507.20,-89.00,1534.50,2723.20,110.90}},
- {"Prickle Pine", {1848.40,2553.40,-89.00,1938.80,2863.20,110.90}},
- {"Prickle Pine", {1938.80,2624.20,-89.00,2121.40,2861.50,110.90}},
- {"Queens", {-2533.00,458.40,0.00,-2329.30,578.30,200.00}},
- {"Queens", {-2593.40,54.70,0.00,-2411.20,458.40,200.00}},
- {"Queens", {-2411.20,373.50,0.00,-2253.50,458.40,200.00}},
- {"Randolph Industrial Estate", {1558.00,596.30,-89.00,1823.00,823.20,110.90}},
- {"Redsands East", {1817.30,2011.80,-89.00,2106.70,2202.70,110.90}},
- {"Redsands East", {1817.30,2202.70,-89.00,2011.90,2342.80,110.90}},
- {"Redsands East", {1848.40,2342.80,-89.00,2011.90,2478.40,110.90}},
- {"Redsands West", {1236.60,1883.10,-89.00,1777.30,2142.80,110.90}},
- {"Redsands West", {1297.40,2142.80,-89.00,1777.30,2243.20,110.90}},
- {"Redsands West", {1377.30,2243.20,-89.00,1704.50,2433.20,110.90}},
- {"Redsands West", {1704.50,2243.20,-89.00,1777.30,2342.80,110.90}},
- {"Regular Tom", {-405.70,1712.80,-3.00,-276.70,1892.70,200.00}},
- {"Richman", {647.50,-1118.20,-89.00,787.40,-954.60,110.90}},
- {"Richman", {647.50,-954.60,-89.00,768.60,-860.60,110.90}},
- {"Richman", {225.10,-1369.60,-89.00,334.50,-1292.00,110.90}},
- {"Richman", {225.10,-1292.00,-89.00,466.20,-1235.00,110.90}},
- {"Richman", {72.60,-1404.90,-89.00,225.10,-1235.00,110.90}},
- {"Richman", {72.60,-1235.00,-89.00,321.30,-1008.10,110.90}},
- {"Richman", {321.30,-1235.00,-89.00,647.50,-1044.00,110.90}},
- {"Richman", {321.30,-1044.00,-89.00,647.50,-860.60,110.90}},
- {"Richman", {321.30,-860.60,-89.00,687.80,-768.00,110.90}},
- {"Richman", {321.30,-768.00,-89.00,700.70,-674.80,110.90}},
- {"Robada Intersection", {-1119.00,1178.90,-89.00,-862.00,1351.40,110.90}},
- {"Roca Escalante", {2237.40,2202.70,-89.00,2536.40,2542.50,110.90}},
- {"Roca Escalante", {2536.40,2202.70,-89.00,2625.10,2442.50,110.90}},
- {"Rockshore East", {2537.30,676.50,-89.00,2902.30,943.20,110.90}},
- {"Rockshore West", {1997.20,596.30,-89.00,2377.30,823.20,110.90}},
- {"Rockshore West", {2377.30,596.30,-89.00,2537.30,788.80,110.90}},
- {"Rodeo", {72.60,-1684.60,-89.00,225.10,-1544.10,110.90}},
- {"Rodeo", {72.60,-1544.10,-89.00,225.10,-1404.90,110.90}},
- {"Rodeo", {225.10,-1684.60,-89.00,312.80,-1501.90,110.90}},
- {"Rodeo", {225.10,-1501.90,-89.00,334.50,-1369.60,110.90}},
- {"Rodeo", {334.50,-1501.90,-89.00,422.60,-1406.00,110.90}},
- {"Rodeo", {312.80,-1684.60,-89.00,422.60,-1501.90,110.90}},
- {"Rodeo", {422.60,-1684.60,-89.00,558.00,-1570.20,110.90}},
- {"Rodeo", {558.00,-1684.60,-89.00,647.50,-1384.90,110.90}},
- {"Rodeo", {466.20,-1570.20,-89.00,558.00,-1385.00,110.90}},
- {"Rodeo", {422.60,-1570.20,-89.00,466.20,-1406.00,110.90}},
- {"Rodeo", {466.20,-1385.00,-89.00,647.50,-1235.00,110.90}},
- {"Rodeo", {334.50,-1406.00,-89.00,466.20,-1292.00,110.90}},
- {"Royal Casino", {2087.30,1383.20,-89.00,2437.30,1543.20,110.90}},
- {"San Andreas Sound", {2450.30,385.50,-100.00,2759.20,562.30,200.00}},
- {"Santa Flora", {-2741.00,458.40,-7.60,-2533.00,793.40,200.00}},
- {"Santa Maria Beach", {342.60,-2173.20,-89.00,647.70,-1684.60,110.90}},
- {"Santa Maria Beach", {72.60,-2173.20,-89.00,342.60,-1684.60,110.90}},
- {"Shady Cabin", {-1632.80,-2263.40,-3.00,-1601.30,-2231.70,200.00}},
- {"Shady Creeks", {-1820.60,-2643.60,-8.00,-1226.70,-1771.60,200.00}},
- {"Shady Creeks", {-2030.10,-2174.80,-6.10,-1820.60,-1771.60,200.00}},
- {"Sobell Rail Yards", {2749.90,1548.90,-89.00,2923.30,1937.20,110.90}},
- {"Spinybed", {2121.40,2663.10,-89.00,2498.20,2861.50,110.90}},
- {"Starfish Casino", {2437.30,1783.20,-89.00,2685.10,2012.10,110.90}},
- {"Starfish Casino", {2437.30,1858.10,-39.00,2495.00,1970.80,60.90}},
- {"Starfish Casino", {2162.30,1883.20,-89.00,2437.30,2012.10,110.90}},
- {"Temple", {1252.30,-1130.80,-89.00,1378.30,-1026.30,110.90}},
- {"Temple", {1252.30,-1026.30,-89.00,1391.00,-926.90,110.90}},
- {"Temple", {1252.30,-926.90,-89.00,1357.00,-910.10,110.90}},
- {"Temple", {952.60,-1130.80,-89.00,1096.40,-937.10,110.90}},
- {"Temple", {1096.40,-1130.80,-89.00,1252.30,-1026.30,110.90}},
- {"Temple", {1096.40,-1026.30,-89.00,1252.30,-910.10,110.90}},
- {"The Camel's Toe", {2087.30,1203.20,-89.00,2640.40,1383.20,110.90}},
- {"The Clown's Pocket", {2162.30,1783.20,-89.00,2437.30,1883.20,110.90}},
- {"The Emerald Isle", {2011.90,2202.70,-89.00,2237.40,2508.20,110.90}},
- {"The Farm", {-1209.60,-1317.10,114.90,-908.10,-787.30,251.90}},
- {"The Four Dragons Casino", {1817.30,863.20,-89.00,2027.30,1083.20,110.90}},
- {"The High Roller", {1817.30,1283.20,-89.00,2027.30,1469.20,110.90}},
- {"The Mako Span", {1664.60,401.70,0.00,1785.10,567.20,200.00}},
- {"The Panopticon", {-947.90,-304.30,-1.10,-319.60,327.00,200.00}},
- {"The Pink Swan", {1817.30,1083.20,-89.00,2027.30,1283.20,110.90}},
- {"The Sherman Dam", {-968.70,1929.40,-3.00,-481.10,2155.20,200.00}},
- {"The Strip", {2027.40,863.20,-89.00,2087.30,1703.20,110.90}},
- {"The Strip", {2106.70,1863.20,-89.00,2162.30,2202.70,110.90}},
- {"The Strip", {2027.40,1783.20,-89.00,2162.30,1863.20,110.90}},
- {"The Strip", {2027.40,1703.20,-89.00,2137.40,1783.20,110.90}},
- {"The Visage", {1817.30,1863.20,-89.00,2106.70,2011.80,110.90}},
- {"The Visage", {1817.30,1703.20,-89.00,2027.40,1863.20,110.90}},
- {"Unity Station", {1692.60,-1971.80,-20.40,1812.60,-1932.80,79.50}},
- {"Valle Ocultado", {-936.60,2611.40,2.00,-715.90,2847.90,200.00}},
- {"Verdant Bluffs", {930.20,-2488.40,-89.00,1249.60,-2006.70,110.90}},
- {"Verdant Bluffs", {1073.20,-2006.70,-89.00,1249.60,-1842.20,110.90}},
- {"Verdant Bluffs", {1249.60,-2179.20,-89.00,1692.60,-1842.20,110.90}},
- {"Verdant Meadows", {37.00,2337.10,-3.00,435.90,2677.90,200.00}},
- {"Verona Beach", {647.70,-2173.20,-89.00,930.20,-1804.20,110.90}},
- {"Verona Beach", {930.20,-2006.70,-89.00,1073.20,-1804.20,110.90}},
- {"Verona Beach", {851.40,-1804.20,-89.00,1046.10,-1577.50,110.90}},
- {"Verona Beach", {1161.50,-1722.20,-89.00,1323.90,-1577.50,110.90}},
- {"Verona Beach", {1046.10,-1722.20,-89.00,1161.50,-1577.50,110.90}},
- {"Vinewood", {787.40,-1310.20,-89.00,952.60,-1130.80,110.90}},
- {"Vinewood", {787.40,-1130.80,-89.00,952.60,-954.60,110.90}},
- {"Vinewood", {647.50,-1227.20,-89.00,787.40,-1118.20,110.90}},
- {"Vinewood", {647.70,-1416.20,-89.00,787.40,-1227.20,110.90}},
- {"Whitewood Estates", {883.30,1726.20,-89.00,1098.30,2507.20,110.90}},
- {"Whitewood Estates", {1098.30,1726.20,-89.00,1197.30,2243.20,110.90}},
- {"Willowfield", {1970.60,-2179.20,-89.00,2089.00,-1852.80,110.90}},
- {"Willowfield", {2089.00,-2235.80,-89.00,2201.80,-1989.90,110.90}},
- {"Willowfield", {2089.00,-1989.90,-89.00,2324.00,-1852.80,110.90}},
- {"Willowfield", {2201.80,-2095.00,-89.00,2324.00,-1989.90,110.90}},
- {"Willowfield", {2541.70,-1941.40,-89.00,2703.50,-1852.80,110.90}},
- {"Willowfield", {2324.00,-2059.20,-89.00,2541.70,-1852.80,110.90}},
- {"Willowfield", {2541.70,-2059.20,-89.00,2703.50,-1941.40,110.90}},
- {"Yellow Bell Station", {1377.40,2600.40,-21.90,1492.40,2687.30,78.00}},
- {"Los Santos", {44.60,-2892.90,-242.90,2997.00,-768.00,900.00}},
- {"Las Venturas", {869.40,596.30,-242.90,2997.00,2993.80,900.00}},
- {"Bone County", {-480.50,596.30,-242.90,869.40,2993.80,900.00}},
- {"Tierra Robada", {-2997.40,1659.60,-242.90,-480.50,2993.80,900.00}},
- {"Tierra Robada", {-1213.90,596.30,-242.90,-480.50,1659.60,900.00}},
- {"San Fierro", {-2997.40,-1115.50,-242.90,-1213.90,1659.60,900.00}},
- {"Red County", {-1213.90,-768.00,-242.90,2997.00,596.30,900.00}},
- {"Flint County", {-1213.90,-2892.90,-242.90,44.60,-768.00,900.00}},
- {"Whetstone", {-2997.40,-2892.90,-242.90,-1213.90,-1115.50,900.00}}
- };
- new TazerHolster[MAX_PLAYERS];
- //PICKUPS
- new iVIPLounge1;
- new iVIPSpas12;
- new iVIPM4;
- new iVIPAK47;
- new iVIPHP;
- new iVIPARMOR;
- new iVIPCRACK;
- new iVIPKNIFE;
- new iHeal1;
- new iHeal2;
- new iDrughouse;
- new iCracklab;
- new iMget1;
- new iMget2;
- new iMget3;
- new iCrateGet;
- new iClothes;
- new iArrest1;
- new iArrest2;
- new iArrest3;
- new iArrest4;
- new iDeliver;
- new iSprunk;
- new iFBI;
- new ipaintball;
- new iVault;
- new Text3D:VehicleLabel[MAX_VEHICLES];
- new iDetective;
- new iProd;
- new iProd2;
- new iLawyer;
- new iDealer;
- new iMechanic;
- new iBodyguard;
- new iArms;
- new iTaxi;
- new iSmuggler;
- new iTraining;
- //new iTrashman; // Trashman
- //new iTrashUniform;
- new para;
- new dildo;
- new poolcue;
- //dion
- new PlayerCell; // COMMENTED
- new iOrder;
- new iOrder2;
- new iPoint1;
- new iPoint2;
- new iPoint3;
- new iPoint4;
- new CheckNumber[MAX_PLAYERS];
- new vehName[][] = // array for vehicle names to be displayed
- {
- "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster",
- "Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
- "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer",
- "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach",
- "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow",
- "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair",
- "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic",
- "Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton",
- "Regina", "Comet", "BMX", "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher",
- "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick",
- "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher",
- "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "Roadtrain",
- "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck",
- "Fortune", "Cadrona", "SWAT Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan",
- "Blade", "Streak", "Freight", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder",
- "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster",
- "Uranus", "Jester", "Sultan", "Stratium", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
- "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30",
- "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
- "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "LSPD Car", "SFPD Car", "LVPD Car",
- "Police Rancher", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs",
- "Boxville", "Tiller", "Utility Trailer"
- };
- new VehicleFriendlyNames[212][] = {
- {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},
- {"Dumper"},{"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},
- {"Pony"},{"Mule"},{"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},
- {"Washington"},{"Bobcat"},{"Mr. Whoopee"},{"BF. Injection"},{"Hunter"},{"Premier"},{"Enforcer"},
- {"Securicar"},{"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Article Trailer"},
- {"Previon"},{"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},
- {"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Article Trailer 2"},{"Turismo"},{"Speeder"},
- {"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},{"Skimmer"},
- {"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},{"Sanchez"},
- {"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},{"Rustler"},{"ZR-350"},
- {"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},{"Baggage"},{"Dozer"},
- {"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},{"Jetmax"},{"Hotring"},
- {"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},{"Mesa"},{"RC Goblin"},
- {"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},{"Super GT"},{"Elegant"},
- {"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},{"Tanker"},{"Roadtrain"},
- {"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},{"NRG-500"},{"HPV1000"},
- {"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},{"Willard"},{"Forklift"},
- {"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},{"Blade"},{"Freight"},{"Streak"},
- {"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},{"Firetruck LA"},{"Hustler"},{"Intruder"},
- {"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},{"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},
- {"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},{"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},
- {"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},{"Bandito"},{"Freight Flat"},{"Streak Carriage"},
- {"Kart"},{"Mower"},{"Dunerider"},{"Sweeper"},{"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},
- {"Stafford"},{"BF-400"},{"Newsvan"},{"Tug"},{"Article Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Mobile Hotdog"},
- {"Club"},{"Freight Carriage"},{"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},
- {"Police Car (SFPD)"},{"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T Van"},{"Alpha"},
- {"Phoenix"},{"Glendale"},{"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},
- {"Boxville"},{"Farm Plow"},{"Utility Trailer"}
- };
- stock GetVehicleFriendlyName(vehicleid)
- {
- new GVFNstring[56];
- format(GVFNstring, sizeof(GVFNstring), VehicleFriendlyNames[GetVehicleModel(vehicleid)-400]);
- return GVFNstring;
- }
- static invalidskins[] = {1,2,3,4,5,7,12,15,17,18,21,23,26,27,30,32,33,34,40,41,50,51,60,64,73,76,85,98,103,106,114,118,136,142,148,152,154,157,160,166,172,197,204,207,214,241,245,248,252,254,259,268,269,272,276,277,278,282,283,284,286,287,288,292};
- static Float: SkinOffSet2[299][6] = {
- {0.135928, 0.002891, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 0
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 1
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 2
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 3
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 4
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 5
- {0.155785, 0.005998, -0.014326, 0.000000, 0.000000, 347.188201},//Skin - 6
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 7
- {0.131067, -0.013737, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 8
- {0.118922, -0.015322, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 9
- {0.125779, -0.001459, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 10
- {0.129249, -0.014101, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 11
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 12
- {0.161076, -0.015624, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 13
- {0.112204, -0.023196, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 14
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 15
- {0.150166, -0.008718, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 16
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 17
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 18
- {0.153609, -0.003207, -0.007717, 0.000000, 0.000000, 357.608825},//Skin - 19
- {0.143831, 0.001813, -0.010588, 0.000000, 0.000000, 357.608825}, //Skin - 20
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 21
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 22
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 23
- {0.127352, 0.009877, -0.006845, 0.726156, 359.666778, 348.825012},//Skin - 24
- {0.124666, -0.029373, -0.006845, 0.726156, 359.666778, 329.940704},//Skin - 25
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 26
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 27
- {0.128768, 0.041474, -0.007667, 0.726156, 359.666778, 355.429199}, //Skin - 28
- {0.166457, -0.006228, -0.012669, 0.726156, 359.666778, 354.612152},//Skin - 29
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 30
- {0.096077, -0.023233, -0.009101, 0.726156, 359.666778, 343.094055},//Skin - 31
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 32
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 33
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 34
- {0.155565, 0.014400, -0.009101, 0.726156, 359.666778, 6.131487}, //Skin - 35
- {0.156485, 0.013641, -0.009101, 0.726156, 359.666778, 6.131487}, //Skin - 36
- {0.144815, 0.013641, -0.009374, 0.726156, 359.666778, 350.562103}, //Skin - 37
- {0.113347, -0.006682, -0.009374, 0.726156, 359.666778, 350.562103},//Skin - 38
- {0.147231, -0.014448, -0.004786, 0.726156, 359.666778, 357.303253},//Skin - 39
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 40
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 41
- {0.082446, 0.004202, -0.004786, 0.726156, 359.666778, 357.303253}, //Skin - 42
- {0.104901, 0.004013, -0.004786, 0.726156, 359.666778, 342.983184}, //Skin - 43
- {0.116172, -0.001954, -0.004786, 0.726156, 359.666778, 357.100677},//Skin - 44
- {0.153321, 0.025744, -0.008666, 0.726156, 359.666778, 10.704365}, //Skin - 45
- {0.160556, 0.007781, -0.010438, 0.726156, 359.666778, 0.991972}, //Skin - 46
- {0.179010, -0.035613, -0.010438, 0.726156, 359.666778, 347.956573},//Skin - 47
- {0.123363, 0.008694, -0.010438, 0.726156, 359.666778, 347.956573}, //Skin - 48
- {0.167061, -0.037899, -0.010438, 0.726156, 359.666778, 347.775817},//Skin - 49
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 50
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 51
- {0.129040, 0.016069, -0.010438, 0.726156, 359.666778, 347.775817}, //Skin - 52
- {0.129040, 0.016069, -0.006084, 0.726156, 359.666778, 347.775817}, //Skin - 53
- {0.137743, -0.016369, -0.011731, 0.726156, 359.666778, 355.812011},//Skin - 54
- {0.137743, -0.016369, -0.011731, 0.726156, 359.666778, 355.812011},//Skin - 55
- {0.174539, -0.000662, -0.007289, 0.726156, 359.666778, 352.847045},//Skin - 56
- {0.109382, -0.002955, -0.007289, 0.726156, 359.666778, 352.847045},//Skin - 57
- {0.152276, -0.029331, -0.008357, 0.726156, 359.666778, 332.070648},//Skin - 58
- {0.129599, -0.019172, -0.012204, 0.726156, 359.666778, 332.070648},//Skin - 59
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 60
- {0.130350, 0.000897, -0.000747, 0.726156, 359.666778, 332.070648}, //Skin - 61
- {0.150659, -0.035485, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 62
- {0.119340, -0.006483, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 63
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 64
- {0.133055, -0.000092, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 65
- {0.129061, -0.006499, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 66
- {0.127292, 0.010318, -0.006299, 0.726156, 359.666778, 341.617431}, //Skin - 67
- {0.138791, -0.025311, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 68
- {0.148132, 0.003970, -0.002304, 0.726156, 359.666778, 340.120025}, //Skin - 69
- {0.129753, 0.006469, -0.006376, 0.726156, 359.666778, 354.029815}, //Skin - 70
- {0.125663, 0.015428, -0.006376, 0.726156, 359.666778, 354.029815}, //Skin - 71
- {0.125663, 0.015428, -0.009030, 0.726156, 359.666778, 354.029815}, //Skin - 72
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 73
- {0.135729, -0.018656, -0.013554, 0.000000, 0.000000, 337.893737}, //Skin - 74
- {0.141888, -0.042810, -0.006206, 0.000000, 0.000000, 337.893737}, //Skin - 75
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 76
- {0.124348, -0.017813, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 77
- {0.124348, 0.000583, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 78
- {0.102654, -0.010906, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 79
- {0.102654, -0.010906, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 81
- {0.167928, 0.031601, -0.006206, 0.000000, 0.000000, 17.955888}, //Skin - 82
- {0.159998, 0.023540, -0.006206, 0.000000, 0.000000, 17.955888}, //Skin - 83
- {0.169630, 0.019315, -0.006206, 0.000000, 0.000000, 17.955888}, //Skin - 84
- {0.163052, -0.039735, -0.006206, 0.000000, 0.000000, 341.169891}, //Skin - 85
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 86
- {0.144811, -0.007521, -0.014207, 0.000000, 0.000000, 341.169891}, //Skin - 87
- {0.129932, -0.007521, -0.007289, 0.000000, 0.000000, 341.169891}, //Skin - 88
- {0.151147, -0.038608, -0.009597, 0.000000, 0.000000, 343.694549}, //Skin - 89
- {0.147416, -0.031632, -0.009597, 0.000000, 0.000000, 343.694549}, //Skin - 90
- {0.157728, -0.009677, -0.009597, 0.000000, 0.000000, 0.934848}, //Skin - 91
- {0.136577, -0.015592, -0.009597, 0.000000, 0.000000, 341.013824}, //Skin - 92
- {0.143821, 0.000631, -0.008385, 0.000000, 0.000000, 358.808868}, //Skin - 93
- {0.100521, 0.003151, -0.007624, 0.000000, 0.000000, 358.808868}, //Skin - 94
- {0.122833, -0.006031, -0.007624, 0.000000, 0.000000, 358.808868}, //Skin - 95
- {0.145296, 0.003959, -0.007624, 0.000000, 0.000000, 358.808868}, //Skin - 96
- {0.141658, 0.016474, -0.007624, 0.000000, 0.000000, 9.683902}, //Skin - 97
- {0.145276, -0.002846, -0.007624, 0.000000, 0.000000, 340.239593}, //Skin - 98
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 99
- {0.161745, -0.010244, -0.007624, 0.000000, 0.000000, 351.499267}, //Skin - 100
- {0.151006, -0.030994, -0.005366, 0.000000, 0.000000, 340.428894}, //Skin - 101
- {0.147111, 0.003794, -0.012433, 0.000000, 0.000000, 358.069244}, //Skin - 102
- {0.154213, -0.052348, -0.003511, 356.299316, 0.000000, 336.751647},//Skin - 103
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 104
- {0.153814, -0.039614, -0.006756, 356.299316, 0.000000, 336.930084},//Skin - 105
- {0.153638, -0.039614, -0.013630, 356.299316, 0.000000, 336.930084},//Skin - 106
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 107
- {0.140473, -0.026201, -0.000469, 0.390689, 355.405181, 335.554260},//Skin - 108
- {0.140904, -0.007227, -0.008114, 0.390689, 355.405181, 335.554260},//Skin - 109
- {0.140904, -0.007227, -0.008114, 0.390689, 355.405181, 335.554260},//Skin - 110
- {0.134860, 0.001485, -0.010145, 0.390689, 358.632415, 347.730010},//Skin - 111
- {0.124823, 0.001485, -0.009402, 0.390689, 358.632415, 347.730010},//Skin - 112
- {0.157999, -0.012039, -0.006082, 0.390689, 358.632415, 347.730010},//Skin - 113
- {0.144906, -0.005139, -0.009654, 0.390689, 358.632415, 336.830108},//Skin - 114
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 116
- {0.152829, -0.009735, -0.009654, 0.390689, 358.632415, 336.830108},//Skin - 117
- {0.113804, 0.009252, -0.009654, 0.390689, 358.632415, 345.244384},//Skin - 118
- {0.113804, 0.009252, -0.009654, 0.390689, 358.632415, 345.244384},//Skin - 119
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin -120
- {0.154275, -0.037484, -0.009654, 0.390689, 358.632415, 337.676666},//Skin - 121
- {0.155674, -0.015613, -0.004339, 0.390689, 358.632415, 350.571228},//Skin - 122
- {0.136433, -0.019181, -0.004339, 0.390689, 358.632415, 340.261840},//Skin - 123
- {0.163258, -0.032386, -0.013128, 0.390689, 358.632415, 340.261840},//Skin - 124
- {0.153242, -0.029651, -0.002434, 0.390689, 358.632415, 333.367614},//Skin - 125
- {0.127978, -0.001961, -0.008867, 0.390689, 358.632415, 347.279052},//Skin - 126
- {0.160856, -0.025356, -0.004428, 0.390689, 358.632415, 347.279052},//Skin - 127
- {0.150266, -0.009032, -0.006781, 0.390689, 358.632415, 347.223754},//Skin - 128
- {0.158060, 0.022907, -0.006781, 0.390689, 358.632415, 349.378875},//Skin - 129
- {0.111739, 0.012673, -0.006781, 0.390689, 358.632415, 349.378875},//Skin - 130
- {0.091638, -0.011600, -0.008686, 0.390689, 358.632415, 336.674468},//Skin - 131
- {0.125788, 0.000635, -0.005915, 0.390689, 358.632415, 343.007751},//Skin - 132
- {0.031324, -0.014154, -0.005915, 0.390689, 358.632415, 343.007751},//Skin - 133
- {0.142321, 0.015417, -0.005915, 0.243191, 358.632415, 350.329559},//Skin - 133
- {0.128780, -0.030750, 0.006687, 173.184967, 358.632415, 27.422966},//Skin - 134
- {0.115882, -0.004931, -0.003807, 358.837646, 358.632415, 346.206237},//Skin - 135
- {0.127531, -0.008916, -0.003807, 358.837646, 358.632415, 346.206237},//Skin - 136
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 137
- {0.148992, -0.017748, -0.006509, 358.837646, 358.632415, 350.742156},//Skin - 138
- {0.148992, -0.017748, -0.006509, 358.837646, 358.632415, 350.742156},//Skin - 139
- {0.147315, 0.001708, -0.006509, 358.837646, 358.632415, 354.390045},//Skin - 140
- {0.144315, -0.013571, -0.006509, 358.837646, 358.632415, 354.390045},//Skin - 141
- {0.144315, -0.002729, -0.010357, 358.837646, 358.632415, 354.390045},//Skin - 142
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 143
- {0.177516, -0.070868, -0.009114, 358.837646, 358.632415, 331.679321},//Skin - 144
- {0.139578, -0.008750, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 145
- {0.139578, -0.014406, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 146
- {0.115592, -0.010754, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 147
- {0.150735, -0.000459, -0.004405, 358.837646, 358.632415, 9.362450},//Skin - 148
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 149
- {0.149485, -0.008709, -0.006168, 358.837646, 358.632415, 2.276566},//Skin - 150
- {0.168162, -0.009708, -0.012160, 359.504821, 4.442328, 355.348114},//Skin - 151
- {0.156369, -0.024521, -0.012160, 359.504821, 0.415596, 355.348114},//Skin - 152
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 153
- {0.119297, -0.016080, -0.010776, 359.504821, 0.415596, 341.522827},//Skin - 154
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 155
- {0.172295, -0.065549, -0.007187, 359.504821, 0.415596, 336.175567},//Skin - 156
- {0.126340, -0.030764, -0.007187, 359.504821, 0.415596, 336.175567},//Skin - 157
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 158
- {0.154280, 0.002166, -0.010436, 359.504821, 0.415596, 357.792144},//Skin - 159
- {0.121469, -0.007383, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 160
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 161
- {0.139495, -0.007383, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 162
- {0.113212, -0.005302, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 163
- {0.120208, 0.003533, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 164
- {0.135111, 0.005091, -0.006407, 359.504821, 0.415596, 352.954559},//Skin - 165
- {0.122118, 0.005091, -0.006407, 359.504821, 0.415596, 352.954559},//Skin - 166
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 167
- {0.125229, 0.005091, -0.013084, 359.504821, 0.415596, 352.954559},//Skin - 168
- {0.153451, -0.018119, -0.013276, 359.504821, 0.415596, 358.219451},//Skin - 169
- {0.141395, -0.009131, -0.013276, 359.504821, 0.415596, 347.866027},//Skin - 170
- {0.157631, -0.028753, -0.006450, 359.504821, 0.415596, 339.935516},//Skin - 171
- {0.152687, -0.027057, -0.007731, 359.504821, 0.415596, 344.054809},//Skin - 172
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 173
- {0.165146, 0.015393, -0.007731, 359.504821, 0.415596, 344.001678},//Skin - 174
- {0.162788, -0.019696, -0.007731, 359.504821, 0.415596, 344.001678},//Skin - 175
- {0.157728, -0.027188, -0.012891, 359.504821, 0.415596, 345.804748},//Skin - 176
- {0.187507, 0.010472, -0.012891, 359.504821, 0.415596, 12.315887},//Skin - 177
- {0.153901, -0.027720, -0.007884, 359.504821, 0.415596, 344.553527},//Skin - 178
- {0.137445, -0.009757, -0.012987, 359.504821, 0.415596, 344.553527},//Skin - 179
- {0.173041, -0.006323, -0.012987, 359.504821, 0.415596, 3.267552},//Skin - 180
- {0.143467, 0.016897, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 181
- {0.114480, 0.006202, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 182
- {0.114480, 0.008813, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 183
- {0.128122, -0.012152, -0.013144, 359.504821, 0.415596, 336.326538},//Skin - 184
- {0.156171, 0.007268, -0.013144, 359.504821, 0.415596, 10.805211},//Skin - 185
- {0.156409, -0.034861, -0.007927, 359.504821, 0.415596, 336.978668},//Skin - 186
- {0.118034, -0.024105, -0.002947, 359.504821, 0.415596, 336.978668},//Skin - 187
- {0.128686, -0.029632, -0.002947, 358.201873, 0.415596, 329.325042},//Skin - 188
- {0.172639, -0.026749, -0.012705, 358.201873, 0.415596, 349.092590},//Skin - 189
- {0.180897, -0.026749, -0.007224, 358.201873, 0.415596, 349.092590},//Skin - 190
- {0.180897, -0.026749, -0.007224, 358.201873, 0.415596, 349.092590},//Skin - 191
- {0.178725, -0.010278, -0.007224, 358.201873, 0.415596, 354.053405},//Skin - 192
- {0.172020, -0.010278, -0.010734, 358.201873, 0.415596, 354.053405},//Skin - 193
- {0.172020, -0.010278, -0.010734, 358.201873, 0.415596, 354.053405},//Skin - 194
- {0.176089, -0.032526, -0.005110, 358.201873, 0.415596, 341.814422},//Skin - 195
- {0.118042, 0.007002, -0.005110, 358.201873, 0.415596, 341.814422},//Skin - 196
- {0.143840, -0.042712, -0.007556, 358.201873, 0.415596, 341.814422},//Skin - 197
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 198
- {0.148060, -0.032384, -0.009754, 358.201873, 0.415596, 333.484924},//Skin - 199
- {0.148060, -0.032384, -0.009754, 358.201873, 0.415596, 333.484924},//Skin - 200
- {0.140799, 0.025145, -0.009754, 358.201873, 0.415596, 5.040688},//Skin - 201
- {0.140799, 0.015851, -0.009754, 358.201873, 0.415596, 349.796478},//Skin - 202
- {0.140799, -0.004372, -0.013685, 358.201873, 0.415596, 349.796478},//Skin - 203
- {0.154274, 0.006245, -0.013685, 358.201873, 0.415596, 2.035465},//Skin - 204
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 205
- {0.154274, 0.016669, -0.013685, 358.201873, 0.415596, 2.035465},//Skin - 206
- {0.106604, 0.004805, -0.011840, 358.201873, 0.415596, 2.035465},//Skin - 207
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 208
- {0.148378, -0.003807, -0.011840, 358.201873, 0.415596, 2.035465},//Skin - 209
- {0.113854, 0.001969, -0.011840, 358.201873, 0.415596, 343.826263},//Skin - 210
- {0.149539, -0.028623, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 211
- {0.104024, -0.014549, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 212
- {0.145820, -0.029160, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 213
- {0.148646, -0.008515, -0.009621, 358.201873, 0.415596, 1.360260},//Skin - 214
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 215
- {0.148646, -0.005935, -0.004058, 358.201873, 0.415596, 1.360260},//Skin - 216
- {0.148646, -0.015611, -0.004058, 358.201873, 0.415596, 340.374938},//Skin - 217
- {0.133952, -0.030138, -0.009880, 358.201873, 0.415596, 340.374938},//Skin - 218
- {0.140503, -0.033425, -0.005693, 358.201873, 0.415596, 340.374938},//Skin - 219
- {0.114608, 0.009020, -0.009135, 358.201873, 0.415596, 352.932006},//Skin - 220
- {0.186516, -0.044762, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 221
- {0.186516, -0.044762, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 222
- {0.179908, -0.010779, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 223
- {0.156689, -0.015437, -0.009135, 358.201873, 0.415596, 352.741638},//Skin - 224
- {0.156689, -0.015437, -0.009135, 358.201873, 0.415596, 352.741638},//Skin - 225
- {0.134990, -0.034685, -0.009135, 358.201873, 0.415596, 340.812927},//Skin - 226
- {0.151760, 0.002680, -0.009135, 358.201873, 0.415596, 340.812927},//Skin - 227
- {0.167410, -0.028664, -0.009135, 358.201873, 0.415596, 340.250427},//Skin - 228
- {0.127699, -0.015571, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 229
- {0.100555, -0.007753, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 230
- {0.126940, 0.016886, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 231
- {0.132949, -0.017515, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 232
- {0.146124, -0.008425, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 233
- {0.125714, -0.021018, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 234
- {0.084982, -0.009809, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 235
- {0.114669, -0.005190, -0.008594, 358.201873, 0.415596, 351.301177},//Skin - 236
- {0.123264, -0.014946, -0.008594, 358.201873, 0.415596, 351.301177},//Skin - 237
- {0.146656, -0.023925, -0.006749, 358.201873, 0.415596, 334.356781},//Skin - 238
- {0.133769, -0.007373, -0.006749, 358.201873, 0.415596, 343.105895},//Skin - 239
- {0.165378, -0.020173, -0.005869, 358.201873, 0.415596, 348.352233},//Skin - 240
- {0.143331, -0.133577, -0.011472, 358.201873, 0.415596, 312.328857},//Skin - 241
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 242
- {0.098602, 0.002084, -0.011472, 358.201873, 0.415596, 348.195495},//Skin - 243
- {0.124240, -0.011682, -0.006423, 358.201873, 0.415596, 341.555999},//Skin - 244
- {0.158155, -0.044311, -0.005439, 358.201873, 0.415596, 336.024902},//Skin - 245
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 246
- {0.164307, -0.040974, -0.006797, 358.201873, 0.415596, 337.067047},//Skin - 247
- {0.191578, -0.040435, -0.010605, 358.201873, 0.415596, 340.908203},//Skin - 248
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 249
- {0.135208, -0.015243, -0.011916, 358.201873, 0.415596, 340.908203},//Skin - 250
- {0.134272, -0.027377, -0.006035, 358.201873, 0.415596, 333.416168},//Skin - 251
- {0.158813, -0.038977, -0.006035, 358.201873, 0.415596, 336.013519},//Skin - 252
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 253
- {0.165106, -0.048880, -0.009719, 358.201873, 0.415596, 331.050933},//Skin - 254
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 255
- {0.142586, 0.020829, -0.008549, 358.201873, 0.415596, 2.765411},//Skin - 256
- {0.134018, -0.024462, -0.008549, 358.201873, 0.415596, 339.642486},//Skin - 257
- {0.147750, -0.042854, -0.008114, 0.951334, 0.415596, 330.441131},//Skin - 258
- {0.147750, -0.042854, -0.008114, 0.951334, 0.415596, 330.441131},//Skin - 259
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 260
- {0.134710, 0.006798, -0.008114, 358.188964, 0.415596, 352.703582},//Skin - 261
- {0.111691, 0.006798, -0.008114, 358.188964, 0.415596, 352.703582},//Skin - 262
- {0.146077, -0.005195, -0.008114, 358.188964, 0.415596, 3.866970},//Skin - 263
- {0.135858, -0.157842, -0.008114, 358.188964, 0.415596, 314.852203},//Skin - 264
- {0.127964, 0.000132, -0.008114, 358.188964, 0.415596, 352.699432},//Skin - 265
- {0.127964, -0.002646, -0.008114, 358.188964, 0.415596, 352.699432},//Skin - 266
- {0.132329, -0.014261, -0.007384, 1.504234, 0.415596, 352.699432},//Skin - 267
- {0.145951, -0.043442, -0.010053, 1.504234, 0.415596, 320.469390},//Skin - 268
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 269
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 270
- {0.141851, -0.034538, -0.010580, 1.504234, 0.415596, 340.349456},//Skin - 271
- {0.136473, -0.057088, -0.008204, 1.504234, 0.415596, 318.134399},//Skin - 272
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 273
- {0.124270, 0.003252, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 274
- {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 275
- {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 276
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 277
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 278
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 279
- {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 280
- {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 281
- {0.140515, 0.009018, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 282
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 283
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 284
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 285
- {0.140515, 0.001933, -0.008204, 1.504234, 0.415596, 346.744995}, //Skin - 286
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 287
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 288
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 289
- {0.128789, -0.014062, -0.007850, 1.504234, 0.415596, 340.341094},//Skin - 290
- {0.158929, -0.027358, -0.010655, 1.504234, 0.415596, 337.298858},//Skin - 291
- {0.113309, -0.012434, -0.010655, 1.504234, 0.415596, 337.298858},//Skin - 292
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 293
- {0.158438, -0.023891, -0.007217, 1.504234, 0.415596, 337.298858},//Skin - 294
- {0.145000, -0.032054, -0.007217, 1.504234, 0.415596, 336.385589},//Skin - 295
- {0.139293, -0.069554, -0.010619, 1.504234, 0.415596, 320.746429},//Skin - 296
- {0.148252, -0.066463, -0.010619, 1.504234, 0.415596, 320.729705},//Skin - 297
- {0.126423, -0.066463, -0.010619, 1.504234, 0.415596, 320.729705},//Skin - 298
- {0.144949, -0.040691, -0.008599, 1.504234, 0.415596, 320.729705}//Skin - 299
- };
- new Float:SkinOffSet[300][7] = {
- {0.098771, 0.030772, -0.000335, 85.342658, 84.122947, 4.236968 }, // - 0
- {0.100766, 0.028630, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 1
- {0.083712, 0.033132, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 2
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 3
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 4
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 5
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 6
- {0.090066, 0.043458, -0.006523, 87.936676, 82.110870, 4.236968 }, // - 7
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 8
- {0.070977, 0.028663, 0.000147, 81.164970, 92.128402, 4.236968 }, // - 9
- {0.072317, 0.032179, -0.002934, 86.843269, 84.196006, 4.236968 }, // - 10
- {0.072317, 0.035465, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 11
- {0.072317, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 12
- {0.076569, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 13
- {0.091310, 0.049169, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 14
- {0.073734, 0.006292, -0.002755, 86.843269, 84.196006, 4.236968 }, // - 15
- {0.092845, 0.040331, 0.000183, 86.843269, 82.864280, 4.236968 }, // - 16
- {0.088241, 0.030184, -0.000157, 86.843269, 82.864280, 4.236968 }, // - 17
- {0.061677, 0.029596, -0.007398, 86.843269, 82.864280, 4.236968 }, // - 18
- {0.079911, 0.029596, -0.002934, 86.843269, 82.864280, 4.236968 }, // - 19
- {0.095079, 0.029596, -0.001718, 85.261871, 86.296562, 4.236968 }, // - 20
- {0.093728, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 21
- {0.079585, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 22
- {0.090786, 0.041737, -0.005263, 85.261871, 81.636192, 4.236968 }, // - 23
- {0.085247, 0.026941, -0.000317, 85.261871, 81.636192, 4.236968 }, // - 24
- {0.081646, 0.031448, -0.001113, 89.393653, 81.665985, 4.236968 }, // - 25
- {0.083700, 0.033814, -0.001960, 86.436462, 81.665985, 4.236968 }, // - 26
- {0.092498, 0.037321, -0.001960, 86.436462, 85.568023, 4.236968 }, // - 27
- {0.097068, 0.041360, -0.007881, 86.771400, 85.568023, 4.236968 }, // - 28
- {0.083456, 0.050595, 0.001011, 86.771400, 77.201461, 4.236968 }, // - 29
- {0.076983, 0.047168, -0.006161, 86.771400, 74.329719, 4.236968 }, // - 30
- {0.083798, 0.042184, -0.001869, 86.771400, 83.181861, 4.236968 }, // - 31
- {0.053021, -0.000587, -0.001869, 86.771400, 66.859710, 4.236968 },// - 32
- {0.034386, 0.013324, -0.001869, 86.771400, 80.314460, 4.236968 }, // - 33
- {0.104669, 0.037365, -0.001403, 86.771400, 87.178382, 4.236968 }, // - 34
- {0.102659, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 35
- {0.107638, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 36
- {0.107638, 0.035879, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 37
- {0.107638, 0.041106, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 38
- {0.080326, 0.035634, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 39
- {0.080326, 0.027371, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 40
- {0.084617, 0.039613, -0.001620, 86.771400, 93.020492, 4.236968 }, // - 41
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 42
- {0.040075, 0.025445, -0.000974, 86.771400, 92.964149, 4.236968 }, // - 43
- {0.077369, 0.028469, -0.000974, 86.771400, 78.435791, 4.236968 }, // - 44
- {0.064145, 0.028684, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 45
- {0.091993, 0.056559, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 46
- {0.084582, 0.051277, -0.005034, 86.771400, 84.762802, 4.236968 }, // - 47
- {0.092182, 0.042095, -0.003533, 86.771400, 84.762802, 4.236968 }, // - 48
- {0.086866, 0.032203, -0.001021, 86.771400, 84.762802, 4.236968 }, // - 49
- {0.099350, 0.009422, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 50
- {0.099350, 0.030598, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 51
- {0.099350, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 52
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 53
- {0.079123, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 54
- {0.063159, 0.029641, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 55
- {0.070293, 0.029641, -0.000570, 86.771400, 84.762802, 4.236968 }, // - 56
- {0.111305, 0.045368, -0.000570, 86.771400, 84.458084, 4.236968 }, // - 57
- {0.084901, 0.020965, -0.000570, 86.771400, 79.542411, 4.236968 }, // - 58
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 59
- {0.090164, 0.044163, -0.004754, 86.771400, 79.542411, 4.236968 }, // - 60
- {0.087151, 0.041447, -0.000885, 90.928329, 89.598678, 0.000000 }, // - 61
- {0.094350, 0.041447, 0.005717, 90.928329, 89.598678, 0.000000 }, // - 62
- {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 63
- {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 64
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 65
- {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 66
- {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 67
- {0.087317, 0.039646, -0.004032, 90.928329, 89.598678, 0.000000 }, // - 68
- {0.074873, 0.039646, -0.003072, 90.928329, 89.598678, 0.000000 }, // - 69
- {0.090391, 0.042364, 0.005494, 90.928329, 89.598678, 0.000000 }, // - 70
- {0.090391, 0.022298, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 71
- {0.090391, 0.039580, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 72
- {0.090391, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 73
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 74
- {0.083113, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 75
- {0.072957, 0.028956, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 76
- {0.069398, 0.039981, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 77
- {0.105738, 0.010001, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 78
- {0.078264, 0.019668, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 79
- {0.087377, 0.022096, -0.001993, 90.928329, 79.030494, 0.000000 }, // - 80
- {0.087377, 0.022096, -0.001635, 90.928329, 79.030494, 0.000000 }, // - 81
- {0.100623, 0.043063, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 82
- {0.092528, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 83
- {0.102086, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 84
- {0.081954, 0.041672, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 85
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 86
- {0.077010, 0.046925, -0.003438, 90.928329, 91.590301, 0.000000 }, // - 87
- {0.069952, 0.042635, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 88
- {0.093827, 0.019258, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 89
- {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 90
- {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 91
- {0.066464, 0.038135, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 92
- {0.066464, 0.038135, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 93
- {0.048124, 0.010598, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 94
- {0.084997, 0.006773, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 95
- {0.100076, 0.026633, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 96
- {0.061686, 0.027537, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 97
- {0.098318, 0.053993, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 98
- {0.098318, 0.033702, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 99
- {0.086149, 0.042526, -0.001690, 90.928329, 77.587478, 0.000000 }, // - 100
- {0.081864, 0.030555, -0.001690, 90.928329, 78.145759, 0.000000 }, // - 101
- {0.081864, 0.047914, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 102
- {0.089607, 0.036717, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 103
- {0.079655, 0.042021, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 104
- {0.091779, 0.037620, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 105
- {0.084179, 0.035251, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 106
- {0.089387, 0.040297, -0.006006, 90.928329, 78.145759, 0.000000 }, // - 107
- {0.081930, 0.030756, 0.001523, 90.928329, 78.145759, 0.000000 }, // - 108
- {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 109
- {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 110
- {0.106601, 0.028021, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 111
- {0.096335, 0.015873, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 112
- {0.105827, 0.046620, -0.001395, 90.928329, 90.217376, 0.000000 }, // - 113
- {0.097520, 0.044296, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 114
- {0.097408, 0.043470, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 115
- {0.092588, 0.049832, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 116
- {0.081444, 0.037602, -0.003125, 90.928329, 90.217376, 0.000000 }, // - 117
- {0.078678, 0.037602, -0.001816, 90.928329, 90.217376, 0.000000 }, // - 118
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 119
- {0.089214, 0.029291, -0.000784, 90.928329, 84.624763, 0.000000 }, // - 120
- {0.086825, 0.033424, -0.000784, 90.928329, 77.233818, 0.000000 }, // - 121
- {0.082869, 0.030783, -0.000950, 90.928329, 77.233818, 0.000000 }, // - 122
- {0.096117, 0.048957, -0.006245, 90.928329, 87.579650, 0.000000 }, // - 123
- {0.103663, 0.040022, 0.000449, 90.928329, 87.579650, 0.000000 }, // - 124
- {0.099326, 0.031202, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 125
- {0.099326, 0.031132, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 126
- {0.099326, 0.039279, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 127
- {0.099326, 0.047422, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 128
- {0.088817, 0.021210, 0.000730, 90.928329, 87.579650, 0.000000 }, // - 129
- {0.025784, 0.028323, 0.000730, 90.928329, 59.394767, 0.000000 }, // - 130
- {0.068455, 0.031841, -0.004470, 90.928329, 79.979003, 0.000000 }, // - 131
- {0.012930, 0.008392, -0.004470, 90.928329, 72.129173, 0.000000 }, // - 132
- {0.102457, 0.032260, -0.003338, 90.928329, 84.534217, 0.000000 }, // - 133
- {0.085976, 0.014956, -0.003338, 90.928329, 80.308830, 0.000000 }, // - 134
- {0.071574, 0.028186, -0.001588, 90.928329, 80.308830, 0.000000 }, // - 135
- {0.085219, 0.016666, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 136
- {0.065114, 0.009318, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 137
- {0.066890, 0.040024, -0.000738, 90.928329, 87.341934, 0.000000 }, // - 138
- {0.072037, 0.036141, -0.000702, 90.928329, 87.341934, 0.000000 }, // - 139
- {0.069108, 0.042194, -0.000436, 90.928329, 87.341934, 0.000000 }, // - 140
- {0.058717, 0.043547, -0.000436, 90.928329, 87.209770, 0.000000 }, // - 141
- {0.104196, 0.039601, -0.005481, 90.928329, 87.209770, 0.000000 }, // - 142
- {0.090929, 0.045881, -0.012780, 90.928329, 87.209770, 0.000000 }, // - 143
- {0.098291, 0.042464, -0.006952, 90.928329, 83.081665, 0.000000 }, // - 144
- {0.080087, 0.030122, 0.000606, 90.928329, 83.081665, 0.000000 }, // - 145
- {0.093500, 0.030690, -0.001545, 90.928329, 83.081665, 0.000000 }, // - 146
- {0.079566, 0.020138, 0.004838, 90.928329, 73.715591, 0.000000 }, // - 147
- {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 148
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 149
- {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 150
- {0.083426, 0.032359, -0.005717, 90.928329, 88.295433, 0.000000 }, // - 151
- {0.072349, 0.019623, -0.000747, 90.928329, 82.624351, 0.000000 }, // - 152
- {0.075065, 0.015351, 0.006545, 90.928329, 71.041442, 0.000000 }, // - 153
- {0.062227, 0.029731, -0.004938, 90.928329, 84.602760, 0.000000 }, // - 154
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 155
- {0.079936, 0.049000, -0.000304, 90.928329, 82.926010, 0.000000 }, // - 156
- {0.067550, 0.035686, -0.000017, 90.928329, 82.926010, 0.000000 }, // - 157
- {0.090676, 0.039383, -0.001726, 90.928329, 88.667900, 0.000000 }, // - 158
- {0.090676, 0.039383, -0.003532, 90.928329, 88.667900, 0.000000 }, // - 159
- {0.098662, 0.017441, -0.001589, 90.928329, 88.667900, 0.000000 }, // - 160
- {0.105388, 0.038409, 0.003155, 90.928329, 88.667900, 0.000000 }, // - 161
- {0.097415, 0.036904, -0.000525, 90.928329, 88.667900, 0.000000 }, // - 162
- {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 163
- {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 164
- {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 165
- {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 166
- {0.095996, 0.038787, 0.000484, 90.928329, 84.315711, 0.000000 }, // - 167
- {0.089094, 0.034001, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 168
- {0.075700, 0.028082, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 169
- {0.093751, 0.041968, -0.005545, 90.928329, 84.315711, 0.000000 }, // - 170
- {0.090124, 0.031055, -0.000505, 90.928329, 84.315711, 0.000000 }, // - 171
- {0.066033, 0.032915, -0.002713, 90.928329, 84.315711, 0.000000 }, // - 172
- {0.088287, 0.045350, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 173
- {0.087750, 0.042129, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 174
- {0.092384, 0.039294, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 175
- {0.097661, 0.039065, -0.006344, 90.928329, 80.736480, 0.000000 }, // - 176
- {0.097114, 0.039641, -0.006692, 90.928329, 80.736480, 0.000000 }, // - 177
- {0.069354, 0.039641, -0.000474, 90.928329, 80.736480, 0.000000 }, // - 178
- {0.091414, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 179
- {0.094914, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 180
- {0.117232, 0.033217, -0.001099, 90.928329, 82.396362, 0.000000 }, // - 181
- {0.082569, 0.032748, -0.003248, 90.928329, 87.394371, 0.000000 }, // - 182
- {0.095527, 0.027237, -0.001960, 90.928329, 86.443649, 0.000000 }, // - 183
- {0.095527, 0.040994, -0.006878, 90.928329, 86.443649, 0.000000 }, // - 184
- {0.085663, 0.030601, -0.002345, 90.928329, 81.496513, 0.000000 }, // - 185
- {0.085663, 0.030601, -0.001015, 90.928329, 81.496513, 0.000000 }, // - 186
- {0.076527, 0.027211, 0.008500, 90.928329, 74.401092, 0.000000 }, // - 187
- {0.096669, 0.032578, 0.001662, 90.928329, 83.502502, 0.000000 }, // - 188
- {0.098753, 0.032129, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 189
- {0.092821, 0.035572, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 190
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 191
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 192
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 193
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 194
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 195
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 196
- {0.100630, 0.020568, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 197
- {0.077905, 0.028523, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 198
- {0.099095, 0.022463, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 199
- {0.103182, 0.031106, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 200
- {0.078426, 0.038546, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 201
- {0.101092, 0.035797, -0.002997, 89.675476, 82.081153, 0.000000 }, // - 202
- {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 203
- {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 204
- {0.092969, 0.027782, -0.002959, 89.675476, 84.463294, 0.000000 }, // - 205
- {0.105109, 0.036128, -0.000471, 89.675476, 84.463294, 0.000000 }, // - 206
- {0.066892, 0.024410, -0.002792, 89.675476, 84.463294, 0.000000 }, // - 207
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 208
- {0.084046, 0.013608, -0.002792, 89.675476, 81.667831, 0.000000 }, // - 209
- {0.084046, 0.013608, -0.001034, 89.675476, 81.667831, 0.000000 }, // - 210
- {0.067610, 0.033777, -0.001034, 89.675476, 85.214485, 0.000000 }, // - 211
- {0.094159, 0.020717, 0.000715, 89.675476, 85.214485, 0.000000 }, // - 212
- {0.098744, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 213
- {0.068755, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 214
- {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 215
- {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 216
- {0.095765, 0.030034, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 217
- {0.085486, 0.039427, -0.003311, 89.675476, 85.214485, 0.000000 }, // - 218
- {0.068874, 0.027850, -0.001021, 89.675476, 85.214485, 0.000000 }, // - 219
- {0.052931, 0.050390, -0.002062, 89.675476, 88.113647, 0.000000 }, // - 220
- {0.094479, 0.034432, 0.000875, 89.675476, 83.572830, 0.000000 }, // - 221
- {0.094479, 0.034432, -0.000596, 89.675476, 83.572830, 0.000000 }, // - 222
- {0.094479, 0.062073, -0.003098, 89.675476, 83.572830, 0.000000 }, // - 223
- {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 224
- {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 225
- {0.072095, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 226
- {0.110619, 0.043037, -0.001466, 89.675476, 86.927627, 0.000000 }, // - 227
- {0.099446, 0.050772, -0.001466, 89.675476, 85.103805, 0.000000 }, // - 228
- {0.078635, 0.023680, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 229
- {0.043357, 0.028726, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 230
- {0.092488, 0.049972, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 231
- {0.092488, 0.016739, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 232
- {0.071677, 0.037055, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 233
- {0.082745, 0.004209, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 234
- {0.057909, 0.021331, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 235
- {0.079016, 0.021331, -0.000419, 89.675476, 77.678733, 0.000000 }, // - 236
- {0.074572, 0.021331, -0.000419, 89.675476, 84.527442, 0.000000 }, // - 237
- {0.074572, 0.038346, -0.001500, 89.675476, 84.527442, 0.000000 }, // - 238
- {0.111645, 0.011549, 0.006237, 89.675476, 84.527442, 0.000000 }, // - 239
- {0.090766, 0.044221, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 240
- {0.069491, 0.049021, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 241
- {0.059706, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 242
- {0.065242, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 243
- {0.065242, 0.051077, -0.001103, 89.675476, 89.461883, 0.000000 }, // - 244
- {0.082393, 0.038233, 0.000410, 89.675476, 89.461883, 0.000000 }, // - 245
- {0.079338, 0.044859, -0.002535, 89.675476, 89.461883, 0.000000 }, // - 246
- {0.101566, 0.037019, 0.000750, 89.675476, 83.514060, 0.000000 }, // - 247
- {0.091887, 0.047776, -0.000040, 89.675476, 83.514060, 0.000000 }, // - 248
- {0.089745, 0.044044, 0.004071, 89.675476, 83.514060, 0.000000 }, // - 249
- {0.094214, 0.044044, -0.007274, 89.675476, 83.514060, 0.000000 }, // - 250
- {0.072282, 0.044044, -0.001468, 89.675476, 90.444763, 0.000000 }, // - 251
- {0.095764, 0.034224, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 252
- {0.087454, 0.026208, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 253
- {0.099198, 0.037362, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 254
- {0.070845, 0.019943, 0.003505, 89.675476, 73.529716, 0.000000 }, // - 255
- {0.065373, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 256
- {0.070077, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 257
- {0.089536, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 258
- {0.084822, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 259
- {0.093009, 0.031491, -0.001568, 89.675476, 83.002151, 0.000000 }, // - 260
- {0.093009, 0.015023, -0.001477, 89.675476, 83.002151, 0.000000 }, // - 261
- {0.076580, 0.039782, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 262
- {0.076580, 0.028967, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 263
- {0.075424, 0.043059, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 264
- {0.089655, 0.021726, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 265
- {0.096792, 0.014114, -0.003062, 89.675476, 85.166038, 0.000000 }, // - 266
- {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 267
- {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 268
- {0.102252, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 269
- {0.102252, 0.024989, 0.000529, 89.675476, 85.166038, 0.000000 }, // - 270
- {0.096134, 0.025462, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 271
- {0.099226, 0.032663, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 272
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 273
- {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 274
- {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 275
- {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 276
- {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 277
- {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 278
- {0.087652, 0.059379, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 279
- {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 280
- {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 281
- {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 282
- {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 283
- {0.090877, 0.053674, 0.009879, 89.675476, 88.636062, 0.000000 }, // - 284
- {0.104320, 0.041487, 0.008021, 89.675476, 88.636062, 0.000000 }, // - 285
- {0.087062, 0.021779, -0.003307, 89.675476, 88.636062, 0.000000 }, // - 286
- {0.073173, 0.048856, 0.005337, 89.675476, 92.561180, 0.000000 }, // - 287
- {0.090294, 0.027592, -0.003497, 89.675476, 92.561180, 0.000000 }, // - 288
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 289
- {0.086562, 0.042698, -0.000612, 89.675476, 92.561180, 0.000000 }, // - 290
- {0.096768, 0.039233, -0.000612, 89.675476, 83.550270, 0.000000 }, // - 291
- {0.079939, 0.020731, -0.005162, 89.675476, 83.550270, 0.000000 }, // - 292
- {0.097107, 0.027826, -0.005162, 89.675476, 88.505996, 0.000000 }, // - 293
- {0.097107, 0.037636, 0.000618, 89.675476, 88.505996, 0.000000 }, // - 294
- {0.079985, 0.035006, -0.000826, 89.675476, 87.533462, 0.000000 }, // - 295
- {0.088445, 0.024209, -0.002076, 89.675476, 73.285072, 0.000000 }, // - 296
- {0.094039, 0.035411, 0.000490, 89.675476, 84.277572, 0.000000 }, // - 297
- {0.099553, 0.024683, -0.002919, 89.675476, 84.277572, 0.000000 }, // - 298
- {0.099553, 0.044356, -0.000285, 89.675476, 84.277572, 0.000000 } // - 299
- };
- new Float:SkinOffSet3[300][7] = {
- {0.098771, 0.030772, -0.000335, 85.342658, 84.122947, 4.236968 }, // - 0
- {0.100766, 0.028630, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 1
- {0.083712, 0.033132, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 2
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 3
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 4
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 5
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 6
- {0.090066, 0.043458, -0.006523, 87.936676, 82.110870, 4.236968 }, // - 7
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 8
- {0.070977, 0.028663, 0.000147, 81.164970, 92.128402, 4.236968 }, // - 9
- {0.072317, 0.032179, -0.002934, 86.843269, 84.196006, 4.236968 }, // - 10
- {0.072317, 0.035465, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 11
- {0.072317, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 12
- {0.076569, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 13
- {0.091310, 0.049169, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 14
- {0.073734, 0.006292, -0.002755, 86.843269, 84.196006, 4.236968 }, // - 15
- {0.092845, 0.040331, 0.000183, 86.843269, 82.864280, 4.236968 }, // - 16
- {0.088241, 0.030184, -0.000157, 86.843269, 82.864280, 4.236968 }, // - 17
- {0.061677, 0.029596, -0.007398, 86.843269, 82.864280, 4.236968 }, // - 18
- {0.079911, 0.029596, -0.002934, 86.843269, 82.864280, 4.236968 }, // - 19
- {0.095079, 0.029596, -0.001718, 85.261871, 86.296562, 4.236968 }, // - 20
- {0.093728, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 21
- {0.079585, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 22
- {0.090786, 0.041737, -0.005263, 85.261871, 81.636192, 4.236968 }, // - 23
- {0.085247, 0.026941, -0.000317, 85.261871, 81.636192, 4.236968 }, // - 24
- {0.081646, 0.031448, -0.001113, 89.393653, 81.665985, 4.236968 }, // - 25
- {0.083700, 0.033814, -0.001960, 86.436462, 81.665985, 4.236968 }, // - 26
- {0.092498, 0.037321, -0.001960, 86.436462, 85.568023, 4.236968 }, // - 27
- {0.097068, 0.041360, -0.007881, 86.771400, 85.568023, 4.236968 }, // - 28
- {0.083456, 0.050595, 0.001011, 86.771400, 77.201461, 4.236968 }, // - 29
- {0.076983, 0.047168, -0.006161, 86.771400, 74.329719, 4.236968 }, // - 30
- {0.083798, 0.042184, -0.001869, 86.771400, 83.181861, 4.236968 }, // - 31
- {0.053021, -0.000587, -0.001869, 86.771400, 66.859710, 4.236968 },// - 32
- {0.034386, 0.013324, -0.001869, 86.771400, 80.314460, 4.236968 }, // - 33
- {0.104669, 0.037365, -0.001403, 86.771400, 87.178382, 4.236968 }, // - 34
- {0.102659, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 35
- {0.107638, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 36
- {0.107638, 0.035879, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 37
- {0.107638, 0.041106, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 38
- {0.080326, 0.035634, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 39
- {0.080326, 0.027371, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 40
- {0.084617, 0.039613, -0.001620, 86.771400, 93.020492, 4.236968 }, // - 41
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 42
- {0.040075, 0.025445, -0.000974, 86.771400, 92.964149, 4.236968 }, // - 43
- {0.077369, 0.028469, -0.000974, 86.771400, 78.435791, 4.236968 }, // - 44
- {0.064145, 0.028684, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 45
- {0.091993, 0.056559, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 46
- {0.084582, 0.051277, -0.005034, 86.771400, 84.762802, 4.236968 }, // - 47
- {0.092182, 0.042095, -0.003533, 86.771400, 84.762802, 4.236968 }, // - 48
- {0.086866, 0.032203, -0.001021, 86.771400, 84.762802, 4.236968 }, // - 49
- {0.099350, 0.009422, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 50
- {0.099350, 0.030598, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 51
- {0.099350, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 52
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 53
- {0.079123, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 54
- {0.063159, 0.029641, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 55
- {0.070293, 0.029641, -0.000570, 86.771400, 84.762802, 4.236968 }, // - 56
- {0.111305, 0.045368, -0.000570, 86.771400, 84.458084, 4.236968 }, // - 57
- {0.084901, 0.020965, -0.000570, 86.771400, 79.542411, 4.236968 }, // - 58
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 59
- {0.090164, 0.044163, -0.004754, 86.771400, 79.542411, 4.236968 }, // - 60
- {0.087151, 0.041447, -0.000885, 90.928329, 89.598678, 0.000000 }, // - 61
- {0.094350, 0.041447, 0.005717, 90.928329, 89.598678, 0.000000 }, // - 62
- {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 63
- {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 64
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 65
- {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 66
- {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 67
- {0.087317, 0.039646, -0.004032, 90.928329, 89.598678, 0.000000 }, // - 68
- {0.074873, 0.039646, -0.003072, 90.928329, 89.598678, 0.000000 }, // - 69
- {0.090391, 0.042364, 0.005494, 90.928329, 89.598678, 0.000000 }, // - 70
- {0.090391, 0.022298, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 71
- {0.090391, 0.039580, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 72
- {0.090391, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 73
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 74
- {0.083113, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 75
- {0.072957, 0.028956, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 76
- {0.069398, 0.039981, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 77
- {0.105738, 0.010001, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 78
- {0.078264, 0.019668, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 79
- {0.087377, 0.022096, -0.001993, 90.928329, 79.030494, 0.000000 }, // - 80
- {0.087377, 0.022096, -0.001635, 90.928329, 79.030494, 0.000000 }, // - 81
- {0.100623, 0.043063, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 82
- {0.092528, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 83
- {0.102086, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 84
- {0.081954, 0.041672, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 85
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 86
- {0.077010, 0.046925, -0.003438, 90.928329, 91.590301, 0.000000 }, // - 87
- {0.069952, 0.042635, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 88
- {0.093827, 0.019258, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 89
- {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 90
- {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 91
- {0.066464, 0.038135, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 92
- {0.066464, 0.038135, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 93
- {0.048124, 0.010598, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 94
- {0.084997, 0.006773, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 95
- {0.100076, 0.026633, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 96
- {0.061686, 0.027537, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 97
- {0.098318, 0.053993, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 98
- {0.098318, 0.033702, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 99
- {0.086149, 0.042526, -0.001690, 90.928329, 77.587478, 0.000000 }, // - 100
- {0.081864, 0.030555, -0.001690, 90.928329, 78.145759, 0.000000 }, // - 101
- {0.081864, 0.047914, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 102
- {0.089607, 0.036717, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 103
- {0.079655, 0.042021, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 104
- {0.091779, 0.037620, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 105
- {0.084179, 0.035251, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 106
- {0.089387, 0.040297, -0.006006, 90.928329, 78.145759, 0.000000 }, // - 107
- {0.081930, 0.030756, 0.001523, 90.928329, 78.145759, 0.000000 }, // - 108
- {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 109
- {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 110
- {0.106601, 0.028021, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 111
- {0.096335, 0.015873, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 112
- {0.105827, 0.046620, -0.001395, 90.928329, 90.217376, 0.000000 }, // - 113
- {0.097520, 0.044296, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 114
- {0.097408, 0.043470, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 115
- {0.092588, 0.049832, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 116
- {0.081444, 0.037602, -0.003125, 90.928329, 90.217376, 0.000000 }, // - 117
- {0.078678, 0.037602, -0.001816, 90.928329, 90.217376, 0.000000 }, // - 118
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 119
- {0.089214, 0.029291, -0.000784, 90.928329, 84.624763, 0.000000 }, // - 120
- {0.086825, 0.033424, -0.000784, 90.928329, 77.233818, 0.000000 }, // - 121
- {0.082869, 0.030783, -0.000950, 90.928329, 77.233818, 0.000000 }, // - 122
- {0.096117, 0.048957, -0.006245, 90.928329, 87.579650, 0.000000 }, // - 123
- {0.103663, 0.040022, 0.000449, 90.928329, 87.579650, 0.000000 }, // - 124
- {0.099326, 0.031202, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 125
- {0.099326, 0.031132, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 126
- {0.099326, 0.039279, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 127
- {0.099326, 0.047422, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 128
- {0.088817, 0.021210, 0.000730, 90.928329, 87.579650, 0.000000 }, // - 129
- {0.025784, 0.028323, 0.000730, 90.928329, 59.394767, 0.000000 }, // - 130
- {0.068455, 0.031841, -0.004470, 90.928329, 79.979003, 0.000000 }, // - 131
- {0.012930, 0.008392, -0.004470, 90.928329, 72.129173, 0.000000 }, // - 132
- {0.102457, 0.032260, -0.003338, 90.928329, 84.534217, 0.000000 }, // - 133
- {0.085976, 0.014956, -0.003338, 90.928329, 80.308830, 0.000000 }, // - 134
- {0.071574, 0.028186, -0.001588, 90.928329, 80.308830, 0.000000 }, // - 135
- {0.085219, 0.016666, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 136
- {0.065114, 0.009318, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 137
- {0.066890, 0.040024, -0.000738, 90.928329, 87.341934, 0.000000 }, // - 138
- {0.072037, 0.036141, -0.000702, 90.928329, 87.341934, 0.000000 }, // - 139
- {0.069108, 0.042194, -0.000436, 90.928329, 87.341934, 0.000000 }, // - 140
- {0.058717, 0.043547, -0.000436, 90.928329, 87.209770, 0.000000 }, // - 141
- {0.104196, 0.039601, -0.005481, 90.928329, 87.209770, 0.000000 }, // - 142
- {0.090929, 0.045881, -0.012780, 90.928329, 87.209770, 0.000000 }, // - 143
- {0.098291, 0.042464, -0.006952, 90.928329, 83.081665, 0.000000 }, // - 144
- {0.080087, 0.030122, 0.000606, 90.928329, 83.081665, 0.000000 }, // - 145
- {0.093500, 0.030690, -0.001545, 90.928329, 83.081665, 0.000000 }, // - 146
- {0.079566, 0.020138, 0.004838, 90.928329, 73.715591, 0.000000 }, // - 147
- {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 148
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 149
- {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 150
- {0.083426, 0.032359, -0.005717, 90.928329, 88.295433, 0.000000 }, // - 151
- {0.072349, 0.019623, -0.000747, 90.928329, 82.624351, 0.000000 }, // - 152
- {0.075065, 0.015351, 0.006545, 90.928329, 71.041442, 0.000000 }, // - 153
- {0.062227, 0.029731, -0.004938, 90.928329, 84.602760, 0.000000 }, // - 154
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 155
- {0.079936, 0.049000, -0.000304, 90.928329, 82.926010, 0.000000 }, // - 156
- {0.067550, 0.035686, -0.000017, 90.928329, 82.926010, 0.000000 }, // - 157
- {0.090676, 0.039383, -0.001726, 90.928329, 88.667900, 0.000000 }, // - 158
- {0.090676, 0.039383, -0.003532, 90.928329, 88.667900, 0.000000 }, // - 159
- {0.098662, 0.017441, -0.001589, 90.928329, 88.667900, 0.000000 }, // - 160
- {0.105388, 0.038409, 0.003155, 90.928329, 88.667900, 0.000000 }, // - 161
- {0.097415, 0.036904, -0.000525, 90.928329, 88.667900, 0.000000 }, // - 162
- {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 163
- {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 164
- {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 165
- {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 166
- {0.095996, 0.038787, 0.000484, 90.928329, 84.315711, 0.000000 }, // - 167
- {0.089094, 0.034001, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 168
- {0.075700, 0.028082, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 169
- {0.093751, 0.041968, -0.005545, 90.928329, 84.315711, 0.000000 }, // - 170
- {0.090124, 0.031055, -0.000505, 90.928329, 84.315711, 0.000000 }, // - 171
- {0.066033, 0.032915, -0.002713, 90.928329, 84.315711, 0.000000 }, // - 172
- {0.088287, 0.045350, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 173
- {0.087750, 0.042129, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 174
- {0.092384, 0.039294, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 175
- {0.097661, 0.039065, -0.006344, 90.928329, 80.736480, 0.000000 }, // - 176
- {0.097114, 0.039641, -0.006692, 90.928329, 80.736480, 0.000000 }, // - 177
- {0.069354, 0.039641, -0.000474, 90.928329, 80.736480, 0.000000 }, // - 178
- {0.091414, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 179
- {0.094914, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 180
- {0.117232, 0.033217, -0.001099, 90.928329, 82.396362, 0.000000 }, // - 181
- {0.082569, 0.032748, -0.003248, 90.928329, 87.394371, 0.000000 }, // - 182
- {0.095527, 0.027237, -0.001960, 90.928329, 86.443649, 0.000000 }, // - 183
- {0.095527, 0.040994, -0.006878, 90.928329, 86.443649, 0.000000 }, // - 184
- {0.085663, 0.030601, -0.002345, 90.928329, 81.496513, 0.000000 }, // - 185
- {0.085663, 0.030601, -0.001015, 90.928329, 81.496513, 0.000000 }, // - 186
- {0.076527, 0.027211, 0.008500, 90.928329, 74.401092, 0.000000 }, // - 187
- {0.096669, 0.032578, 0.001662, 90.928329, 83.502502, 0.000000 }, // - 188
- {0.098753, 0.032129, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 189
- {0.092821, 0.035572, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 190
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 191
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 192
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 193
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 194
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 195
- {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 196
- {0.100630, 0.020568, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 197
- {0.077905, 0.028523, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 198
- {0.099095, 0.022463, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 199
- {0.103182, 0.031106, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 200
- {0.078426, 0.038546, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 201
- {0.101092, 0.035797, -0.002997, 89.675476, 82.081153, 0.000000 }, // - 202
- {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 203
- {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 204
- {0.092969, 0.027782, -0.002959, 89.675476, 84.463294, 0.000000 }, // - 205
- {0.105109, 0.036128, -0.000471, 89.675476, 84.463294, 0.000000 }, // - 206
- {0.066892, 0.024410, -0.002792, 89.675476, 84.463294, 0.000000 }, // - 207
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 208
- {0.084046, 0.013608, -0.002792, 89.675476, 81.667831, 0.000000 }, // - 209
- {0.084046, 0.013608, -0.001034, 89.675476, 81.667831, 0.000000 }, // - 210
- {0.067610, 0.033777, -0.001034, 89.675476, 85.214485, 0.000000 }, // - 211
- {0.094159, 0.020717, 0.000715, 89.675476, 85.214485, 0.000000 }, // - 212
- {0.098744, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 213
- {0.068755, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 214
- {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 215
- {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 216
- {0.095765, 0.030034, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 217
- {0.085486, 0.039427, -0.003311, 89.675476, 85.214485, 0.000000 }, // - 218
- {0.068874, 0.027850, -0.001021, 89.675476, 85.214485, 0.000000 }, // - 219
- {0.052931, 0.050390, -0.002062, 89.675476, 88.113647, 0.000000 }, // - 220
- {0.094479, 0.034432, 0.000875, 89.675476, 83.572830, 0.000000 }, // - 221
- {0.094479, 0.034432, -0.000596, 89.675476, 83.572830, 0.000000 }, // - 222
- {0.094479, 0.062073, -0.003098, 89.675476, 83.572830, 0.000000 }, // - 223
- {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 224
- {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 225
- {0.072095, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 226
- {0.110619, 0.043037, -0.001466, 89.675476, 86.927627, 0.000000 }, // - 227
- {0.099446, 0.050772, -0.001466, 89.675476, 85.103805, 0.000000 }, // - 228
- {0.078635, 0.023680, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 229
- {0.043357, 0.028726, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 230
- {0.092488, 0.049972, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 231
- {0.092488, 0.016739, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 232
- {0.071677, 0.037055, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 233
- {0.082745, 0.004209, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 234
- {0.057909, 0.021331, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 235
- {0.079016, 0.021331, -0.000419, 89.675476, 77.678733, 0.000000 }, // - 236
- {0.074572, 0.021331, -0.000419, 89.675476, 84.527442, 0.000000 }, // - 237
- {0.074572, 0.038346, -0.001500, 89.675476, 84.527442, 0.000000 }, // - 238
- {0.111645, 0.011549, 0.006237, 89.675476, 84.527442, 0.000000 }, // - 239
- {0.090766, 0.044221, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 240
- {0.069491, 0.049021, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 241
- {0.059706, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 242
- {0.065242, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 243
- {0.065242, 0.051077, -0.001103, 89.675476, 89.461883, 0.000000 }, // - 244
- {0.082393, 0.038233, 0.000410, 89.675476, 89.461883, 0.000000 }, // - 245
- {0.079338, 0.044859, -0.002535, 89.675476, 89.461883, 0.000000 }, // - 246
- {0.101566, 0.037019, 0.000750, 89.675476, 83.514060, 0.000000 }, // - 247
- {0.091887, 0.047776, -0.000040, 89.675476, 83.514060, 0.000000 }, // - 248
- {0.089745, 0.044044, 0.004071, 89.675476, 83.514060, 0.000000 }, // - 249
- {0.094214, 0.044044, -0.007274, 89.675476, 83.514060, 0.000000 }, // - 250
- {0.072282, 0.044044, -0.001468, 89.675476, 90.444763, 0.000000 }, // - 251
- {0.095764, 0.034224, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 252
- {0.087454, 0.026208, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 253
- {0.099198, 0.037362, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 254
- {0.070845, 0.019943, 0.003505, 89.675476, 73.529716, 0.000000 }, // - 255
- {0.065373, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 256
- {0.070077, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 257
- {0.089536, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 258
- {0.084822, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 259
- {0.093009, 0.031491, -0.001568, 89.675476, 83.002151, 0.000000 }, // - 260
- {0.093009, 0.015023, -0.001477, 89.675476, 83.002151, 0.000000 }, // - 261
- {0.076580, 0.039782, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 262
- {0.076580, 0.028967, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 263
- {0.075424, 0.043059, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 264
- {0.089655, 0.021726, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 265
- {0.096792, 0.014114, -0.003062, 89.675476, 85.166038, 0.000000 }, // - 266
- {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 267
- {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 268
- {0.102252, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 269
- {0.102252, 0.024989, 0.000529, 89.675476, 85.166038, 0.000000 }, // - 270
- {0.096134, 0.025462, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 271
- {0.099226, 0.032663, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 272
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 273
- {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 274
- {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 275
- {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 276
- {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 277
- {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 278
- {0.087652, 0.059379, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 279
- {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 280
- {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 281
- {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 282
- {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 283
- {0.090877, 0.053674, 0.009879, 89.675476, 88.636062, 0.000000 }, // - 284
- {0.104320, 0.041487, 0.008021, 89.675476, 88.636062, 0.000000 }, // - 285
- {0.087062, 0.021779, -0.003307, 89.675476, 88.636062, 0.000000 }, // - 286
- {0.073173, 0.048856, 0.005337, 89.675476, 92.561180, 0.000000 }, // - 287
- {0.090294, 0.027592, -0.003497, 89.675476, 92.561180, 0.000000 }, // - 288
- {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 289
- {0.086562, 0.042698, -0.000612, 89.675476, 92.561180, 0.000000 }, // - 290
- {0.096768, 0.039233, -0.000612, 89.675476, 83.550270, 0.000000 }, // - 291
- {0.079939, 0.020731, -0.005162, 89.675476, 83.550270, 0.000000 }, // - 292
- {0.097107, 0.027826, -0.005162, 89.675476, 88.505996, 0.000000 }, // - 293
- {0.097107, 0.037636, 0.000618, 89.675476, 88.505996, 0.000000 }, // - 294
- {0.079985, 0.035006, -0.000826, 89.675476, 87.533462, 0.000000 }, // - 295
- {0.088445, 0.024209, -0.002076, 89.675476, 73.285072, 0.000000 }, // - 296
- {0.094039, 0.035411, 0.000490, 89.675476, 84.277572, 0.000000 }, // - 297
- {0.099553, 0.024683, -0.002919, 89.675476, 84.277572, 0.000000 }, // - 298
- {0.099553, 0.044356, -0.000285, 89.675476, 84.277572, 0.000000 } // - 299
- };
- new GunObjects[47][0] = { // (c) gimini
- {0},// Emty
- {331},// Brass Knuckles
- {333},// Golf Club
- {334},// Nitestick
- {335},// Knife
- {336},// Baseball Bat
- {337},// Showel
- {338},// Pool Cue
- {339},// Katana
- {341},// Chainsaw
- {321},// Purple Dildo
- {322},// Small White Dildo
- {323},// Long White Dildo
- {324},// Vibrator
- {325},// Flowers
- {326},// Cane
- {342},// Grenade
- {343},// Tear Gas
- {344},// Molotov
- {0},
- {0},
- {0},
- {346},// Glock
- {347},// Silenced Colt
- {348},// Desert Eagle
- {349},// Shotgun
- {350},// Sawn Off
- {351},// Combat Shotgun
- {352},// Micro UZI
- {353},// MP5
- {355},// AK47
- {356},// M4
- {372},// Tec9
- {357},// Rifle
- {358},// Sniper Rifle
- {359},// Rocket Launcher
- {360},// HS Rocket Launcher
- {361},// Flamethrower
- {362},// Minigun
- {363},// Detonator
- {364},// Detonator Button
- {365},// Spraycan
- {366},// Fire Extinguisher
- {367},// Camera
- {368},// Nightvision
- {368},// Infrared Vision
- {371}// Parachute
- };
- enum SavePlayerPosEnum
- {
- Float:LastX,
- Float:LastY,
- Float:LastZ
- };
- new SavePlayerPos[MAX_PLAYERS][SavePlayerPosEnum];
- enum StopAniPos
- {
- Float:PosX,
- Float:PosY,
- Float:PosZ
- };
- new PlayerPosition[MAX_PLAYERS][StopAniPos];
- new UpdateSeconds = 1;
- enum Prison_Buttons_Info // COMMENTED
- {
- ButtonID3, // Button Gate
- ButtonID4, // Button Cells
- PrisonGate, // Gate
- PrisonCells1, // Bars
- PrisonCells2, // Bars
- GateTimerID,
- CellTimerID,
- CellOpened,
- GateOpened
- };
- new Prison_Buttons[Prison_Buttons_Info]; // COMMENTED
- enum LSPD_Door_Info
- {
- ObjectID1,
- ObjectID2,
- ObjectID3,
- ObjectID4,
- ButtonID1, // Into
- ButtonID2, // Out
- TimerID,
- Opened
- };
- new LSPD_Door[LSPD_Door_Info];
- public Float:GetDistanceBetweenPlayers(p1,p2)
- {
- new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
- if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
- {
- return -1.00;
- }
- GetPlayerPos(p1,x1,y1,z1);
- GetPlayerPos(p2,x2,y2,z2);
- return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
- }
- stock GetColorCode2(clr[])
- {
- new color = -1;
- if (IsNumeric(clr))
- {
- color = strval(clr);
- return color;
- }
- if (strcmp(clr, "black", true)==0) color=0x000000FF;
- if (strcmp(clr, "white", true)==0) color=0xFFFFFF00;
- if (strcmp(clr, "blue", true)==0) color=0x2641FEAA;
- if (strcmp(clr, "red", true)==0) color=0xEA0000FF;
- if (strcmp(clr, "green", true)==0) color=0x33AA33AA;
- if (strcmp(clr, "purple", true)==0) color=0xC2A2DAAA;
- if (strcmp(clr, "yellow", true)==0) color=0xFFFF00AA;
- if (strcmp(clr, "lightblue", true)==0) color=0x33CCFFAA;
- if (strcmp(clr, "lightgreen", true)==0) color=0x9ACD32AA;
- if (strcmp(clr, "brown", true)==0) color=0x876330FF;
- if (strcmp(clr, "pink", true)==0) color=0xFF8282AA;
- if (strcmp(clr, "orange", true)==0) color=0xF4A41900;
- if (strcmp(clr, "beige", true)==0) color=0xF0CC0000;
- if (strcmp(clr, "turquise", true)==0) color=0x2B77A100;
- return color;
- }
- new Music[MAX_PLAYERS];
- new Songs[7][1] = {
- {1187},
- {1185},
- {1183},
- {1097},
- {1076},
- {1068},
- {1062}
- };
- new FishNamesNumber = 22;
- new FishNames[22][20] = {
- {"Jacket"},
- {"Amberjack"},
- {"Grouper"},
- {"Red Snapper"},
- {"Pants"},
- {"Trout"},
- {"Blue Marlin"},
- {"Can"},
- {"Mackeral"},
- {"Sea Bass"},
- {"Shoes"},
- {"Pike"},
- {"Sail Fish"},
- {"Garbage"},
- {"Tuna"},
- {"Eel"},
- {"Dolphin"},
- {"Shark"},
- {"Turtle"},
- {"Catfish"},
- {"Money Bag"},
- {"Swordfish"}
- };
- /*new StoleObjectNamesNumber = 9;
- new StoleObjectNames[9][20] = {
- {"LCD TV"},
- {"DVD Player"},
- {"Laptop"},
- {"iPhone"},
- {"Video camera"},
- {"Rolex watch"},
- {"Toy car"},
- {"Teddy bear"},
- {"MP3 player"},
- };*/
- new Float:PaintballSpawns[7][3] = {
- {-1136.5530,1078.7391,1345.8062},
- {-1097.9240,1039.3434,1343.1390},
- {-1026.2610,1051.7496,1342.3792},
- {-1044.7739,1096.0839,1346.1598},
- {-1008.6546,1022.7844,1341.0078},
- {-975.2208,1089.7521,1348.4375},
- {-978.1649,1035.5266,1345.0063}
- };
- new Float:HospitalSpawns[2][4] = {
- {1176.6326,-1325.5374,14.0309,270.0000},
- {2034.1111,-1404.4347,17.5000,180.0000}
- };
- // COMMENTED
- new Float:PrisonSpawns[12][4] = {
- {1772.8984,-1581.8361,1636.9736,0.0000},
- {1779.1259,-1581.6355,1636.9736,0.0000},
- {1784.5406,-1581.5651,1636.9736,0.0000},
- {1790.4741,-1581.5254,1636.9736,0.0000},
- {1795.7205,-1581.5287,1636.9736,0.0000},
- {1800.6487,-1581.1351,1636.9736,0.0000},
- {1800.5258,-1557.4760,1636.9736,180.0000},
- {1796.1321,-1557.8774,1636.9736,180.0000},
- {1790.5198,-1558.0527,1636.9736,180.0000},
- {1784.5649,-1557.9910,1636.9736,180.0000},
- {1779.5862,-1557.9115,1636.9736,180.0000},
- {1773.6440,-1557.8591,1636.9736,180.0000}
- };
- // COMMENTED
- new Float:CIASpawns[12][4] = {
- {1772.8984,-1581.8361,1636.9736,0.0000},
- {1779.1259,-1581.6355,1636.9736,0.0000},
- {1784.5406,-1581.5651,1636.9736,0.0000},
- {1790.4741,-1581.5254,1636.9736,0.0000},
- {1795.7205,-1581.5287,1636.9736,0.0000},
- {1800.6487,-1581.1351,1636.9736,0.0000},
- {1800.5258,-1557.4760,1636.9736,180.0000},
- {1796.1321,-1557.8774,1636.9736,180.0000},
- {1790.5198,-1558.0527,1636.9736,180.0000},
- {1784.5649,-1557.9910,1636.9736,180.0000},
- {1779.5862,-1557.9115,1636.9736,180.0000},
- {1773.6440,-1557.8591,1636.9736,180.0000}
- };
- enum pBoxingStats
- {
- TitelName[128],
- TitelWins,
- TitelLoses,
- };
- new Titel[pBoxingStats];
- enum pLSPDPass
- {
- LSPD
- }
- new Pass[pLSPDPass];
- enum sInfo
- {
- sCreated,
- Float:sX,
- Float:sY,
- Float:sZ,
- sObject,
- };
- new SpikeInfo[MAX_SPIKESTRIPS][sInfo];
- enum fInfo
- {
- FamilyTaken,
- FamilyName[24],
- FamilyMOTD[64],
- FamilyLeader[MAX_PLAYER_NAME],
- FamilyBank,
- FamilyCash,
- FamilySafe,
- Float:FamilySafePos[3],
- FamilyPot,
- FamilyCrack,
- FamilyMats,
- FamilyMembers,
- FamilySkins,
- FamilySkin1,
- FamilySkin2,
- FamilySkin3,
- FamilySkin4,
- FamilySkin5,
- FamilySkin6,
- FamilySkin7,
- FamilySkin8,
- PickupID,
- FStrikes,
- Colt45,
- Shotgun,
- MP5,
- AK47,
- M4,
- SPAS12,
- Rifle,
- Sniper
- };
- new FamilyInfo[10][fInfo];
- new FamilyRank[10][6][24];
- enum tInfo
- {
- tModel,
- Float:tLocationx,
- Float:tLocationy,
- Float:tLocationz,
- Float:tAngle,
- tColorOne,
- tColorTwo,
- tOwner[MAX_PLAYER_NAME],
- tOwned,
- tLock,
- tEngine,
- tPaintjob,
- tOwnable,
- tFaction,
- tVIP,
- tAlarm,
- tAlarmStarted,
- tTrunkOpened,
- tInsured,
- tGun1,
- tGun2,
- Float:tArmor,
- tCrack,
- tPot,
- tNOS,
- tHoodOpened,
- tPrice,
- tLicensePlate[9],
- tDisabled,
- tGang,
- tPlateColor,
- tVehRemote,
- tGPS,
- tNeon,
- tNeonON,
- tComponent0,
- tComponent1,
- tComponent2,
- tComponent3,
- tComponent4,
- tComponent5,
- tComponent6,
- tComponent7,
- tComponent8,
- tComponent9,
- tComponent10,
- tComponent11,
- tComponent12,
- tComponent13,
- tDuplicateKeys,
- tTowServices,
- tImp,
- tImpPrice,
- tRentable,
- Neon,
- NeonObject,
- };
- new CarInfo[2000][tInfo];
- new CarSys[sizeof(CarInfo)];
- enum hInfo
- {
- Float:hLocation_x,
- Float:hLocation_y,
- Float:hLocation_z,
- Float:hExitAngle,
- Float:hIntLocationx,
- Float:hIntLocationy,
- Float:hIntLocationz,
- Float:hEnterAngle,
- hVirtualWorld,
- hInterior,
- hOwner[MAX_PLAYER_NAME],
- hOwned,
- hLocked,
- hAlarm,
- hAlarmON,
- hGun1,
- hGun2,
- hGun3,
- hGun4,
- hCrack,
- hPot,
- hPrice,
- hLevel,
- hSafe,
- hSafeCode,
- hCameras,
- hCash,
- hMaterials,
- hVulnerable,
- Float:hSafex,
- Float:hSafey,
- Float:hSafez,
- hRenters,
- hName[25],
- hRentable,
- hRent,
- hSafeOpen,
- };
- new HouseInfo[600][hInfo];
- //new HouseIcon[sizeof(HouseInfo)];
- new HousePickup[sizeof(HouseInfo)];
- new HouseSafe[sizeof(HouseInfo)];
- new Text3D:HouseLabel[600];
- enum bInfo
- {
- Float:bLocation_x,
- Float:bLocation_y,
- Float:bLocation_z,
- Float:bExitAngle,
- Float:bIntLocationx,
- Float:bIntLocationy,
- Float:bIntLocationz,
- Float:bEnterAngle,
- bVirtualWorld,
- bInterior,
- bOwner[MAX_PLAYER_NAME],
- bOwned,
- bLocked,
- bPrice,
- bType,
- bCameras,
- bTill,
- bProducts,
- bName[25],
- bFee,
- bPInt,
- bPVW,
- bLottoTime,
- bLottoJackpot,
- bNewLottoJackpot,
- };
- new BizInfo[600][bInfo];
- new BizPickup[sizeof(BizInfo)];
- new BizIcon[sizeof(BizInfo)];
- new Text3D:BizLabel[600];
- enum pFishing
- {
- pFish1[20],
- pFish2[20],
- pFish3[20],
- pFish4[20],
- pFish5[20],
- pWeight1,
- pWeight2,
- pWeight3,
- pWeight4,
- pWeight5,
- pFid1,
- pFid2,
- pFid3,
- pFid4,
- pFid5,
- pLastFish,
- pFishID,
- pLastWeight,
- };
- new Fishes[MAX_PLAYERS][pFishing];
- /*enum pRobbingHouse
- {
- pStolenObject1[20],
- pStolenObject2[20],
- pStolenObject3[20],
- pStolenObject4[20],
- pStolenObject5[20],
- pSOValue1,
- pSOValue2,
- pSOValue3,
- pSOValue4,
- pSOValue5,
- };
- new StolenObjects[MAX_PLAYERS][pRobbingHouse];*/
- enum eCars
- {
- Float:pos_x,
- Float:pos_y,
- Float:pos_z,
- Float:z_angle,
- };
- enum pInfo
- {
- pKey[128],
- pLevel,
- pAdmin,
- pBand,
- pPermBand,
- pPrisonReason[56],
- pPrisonedBy[32],
- pAdminJailed,
- pWarns,
- pAWarns,
- pDisabled,
- pDonateRank,
- pVIPJoinDate[32],
- pVIPExpDate[32],
- pLastLogin[32],
- pFactionMod,
- pBanAppealer,
- pGangMod,
- gPupgrade,
- pConnectTime,
- pReg,
- pSex,
- pAge,
- pOrigin,
- pMuted,
- pExp,
- pCash,
- pAccount,
- pCrimes,
- pCrime[6],
- pCrimeReporter0[MAX_PLAYER_NAME],
- pCrimeReporter1[MAX_PLAYER_NAME],
- pCrimeReporter2[MAX_PLAYER_NAME],
- pCrimeReporter3[MAX_PLAYER_NAME],
- pCrimeReporter4[MAX_PLAYER_NAME],
- pCrimeReporter5[MAX_PLAYER_NAME],
- pCrimeDate0[32],
- pCrimeDate1[32],
- pCrimeDate2[32],
- pCrimeDate3[32],
- pCrimeDate4[32],
- pCrimeDate5[32],
- pKills,
- pDeaths,
- pCHits,
- pFHits,
- pArrested,
- pPhoneBook,
- pWatch,
- pSuitcase,
- pSuitcasecash,
- pSuitcasecrack,
- pSuitcasepot,
- pSuitcasemats,
- pToolbox,
- pLotto,
- pLottoNr,
- pLottoNr2,
- pLottoNr3,
- pLottoNr4,
- pLottoNr5,
- pLottoNr6,
- pPlayLotto,
- pWinLotto,
- pWinLotto2,
- pFishes,
- pBiggestFish,
- pJob,
- pPayCheck,
- pHeadValue,
- pJailed,
- pJailTime,
- pMats,
- pCarParts,
- pPot,
- pCrack,
- pLeader,
- pMember,
- pSFMember, // Sub-faction Member ( 0 = none, 1 = SWAT[LSPD], 2 = IA[LSPD], 3 = SIU[LSPD], 4 = ACU[FBI], 5 = GHOST[SS] )
- pSFLeader, // Sub-faction leader ( 0 = none, 1 = SWAT[LSPD], 2 = IA[LSPD], 3 = SIU[LSPD], 4 = ACU[FBI], 5 = GHOST[SS] )
- pFMember,
- pGang,
- pRank,
- pFRank,
- pChangeRank,
- pDetSkill,
- pSexSkill,
- pBoxSkill,
- pLawSkill,
- pMechSkill,
- pJackSkill,
- pCarSkill,
- pNewsSkill,
- pDrugsSkill,
- pArmsSkill,
- // pTrashSkill, // Trashman
- pSmugglerSkill,
- pFishSkill,
- pFightingStyle,
- Float:pHealth,
- Float:pArmor,
- pHungry,
- pThirsty,
- pSHealth,
- pInt,
- pLocal,
- pVirtualWorld,
- pModel,
- pGlasses,
- pBandana,
- pHelmet,
- pCMask,
- pHat,
- pClothes,
- pPnumber,
- pPbiskey,
- pPaptkey,
- pCarLic,
- pFlyLic,
- pBoatLic,
- pFishLic,
- pGunLic,
- pGun0,
- pGun1,
- pGun2,
- pGun3,
- pGun4,
- pGun5,
- pGun6,
- pGun7,
- pGun8,
- pGun9,
- pGun10,
- pGun11,
- pGun12,
- hCash,
- hPot,
- hCrack,
- hValue,
- pCarTime,
- pDrugsTime,
- pLawyerTime,
- pLawyerFreeTime,
- pMechTime,
- pSexTime,
- pPayDay,
- pPayDayHad,
- pCDPlayer,
- pDice,
- pSpraycan,
- pScrew,
- pCrowbar,
- pHammer,
- pFlash,
- pRake,
- pWrench,
- pRope,
- pCigars,
- pSprunk,
- pCredits,
- pDonuts,
- pCookies,
- pWT,
- pWTc,
- pBombs,
- pScope,
- pMask,
- pWins,
- pLoses,
- pTut,
- pOnDuty,
- pHospital,
- pAdjustable,
- pMarried,
- pMarriedTo[128],
- pContractBy[128],
- pIP[16],
- pWantedLevel,
- pNewbieMuted,
- pReportMuted,
- pAdMuted,
- pSafeSpawn,
- Float:pSPos_x,
- Float:pSPos_y,
- Float:pSPos_z,
- Float:pSPos_r,
- pHelper,
- pRequestingBackup,
- pVipColor,
- pBlindfolds,
- pSpeakPhone,
- pSeeds,
- pStealth,
- pFakeIP,
- pPaintballGun1,
- pPaintballGun2,
- pCarKey1,
- pCarKey2,
- pCarKey3,
- pRentKey,
- pHouseKey,
- pBizKey,
- pInHouse,
- pInBiz,
- pInCar,
- pProducts,
- pRenthouse,
- pHSafeattempt,
- Lockpicking,
- CLockpick,
- HLockpick,
- RobHouse,
- RobHouseTime,
- RobHouseID,
- };
- new PlayerInfo[MAX_PLAYERS][pInfo];
- enum iInfo
- {
- iAdmin[128],
- iMOTD[128],
- iPassword[128],
- iNeedPass,
- iLock,
- iPlayers,
- };
- new IRCInfo[10][iInfo];
- //FACTION SKINS
- new FactSkins1[11][1] = { //police
- {71}, //cadet
- {280},
- {281},
- {282},
- {283},
- {284},
- {288},
- {265}, //tenpenny
- {266}, //pulaski
- {267}, //hernandez
- {141} //chick skin
- };
- new FactSkins2[3][1] = { //FBI
- {165},
- {166},
- {286}
- };
- new FactSkins3[6][1] = { //SASP
- {283},
- {282},
- {288},
- {281},
- {265},
- {34}
- };
- new FactSkins4[6][1] = { //fire/ambulance
- {274},
- {275},
- {276},
- {277},
- {278},
- {279}
- };
- new FactSkins5[1][1] = { //National Guards
- {287}
- };
- new FactSkins6[8][1] = { //Senate
- {147},
- {148},
- {150},
- {187},
- {227},
- {228},
- {76},
- {9}
- };
- new FactSkins7[3][1] = { //SS
- {163},
- {164},
- {165}
- };
- new FactSkins8[25][1] = { //hitman agency
- {101},
- {89},
- {218},
- {46},
- {94}, //5
- {51},
- {81},
- {99},
- {75},
- {134}, //10
- {213},
- {230},
- {252},
- {82},
- {167}, //15
- {68},
- {171},
- {189},
- {129},
- {130}, //20
- {70},
- {160},
- {33},
- {32},
- {78} //25
- };
- new FactSkins9[4][1] = { //news faction
- {188},
- {187},
- {227},
- {150}
- };
- new FactSkins10[3][1] = { //taxi faction
- {255},
- {253},
- {61}
- };
- new PedSkins[176][1] = {
- {299}, //default skin
- {10},
- {101},
- {12},
- {13},
- //{136},
- {14},
- //{142},
- //{143},
- {15}, //10
- {151},
- {156},
- {168},
- {170},
- //{180},
- {182},
- {54},
- {183},
- {184},
- {75}, //20
- //{185},
- {19},
- {216},
- {20},
- {206},
- //{21},
- //{22},
- {210},
- {214},
- {215}, //30
- //{220},
- {221},
- {225},
- {226},
- //{222},
- {223},
- {231},
- {228},
- {234},
- {76}, //40
- {235},
- {236},
- {89},
- {88},
- //{24},
- {218},
- {240},
- //{25},
- {250},
- {261}, //50
- //{28},
- {40},
- {41},
- {35},
- {37},
- {38},
- {36},
- {44},
- //{69},
- {43}, //60
- {46},
- {9},
- {93},
- {39},
- {48},
- {47},
- {262},
- {229},
- {58},
- {59}, //70
- {60},
- {232},
- {233},
- {67},
- {7},
- {72},
- {55},
- {94},
- {95},
- {98}, //80
- {56},
- {128},
- {129},
- {130},
- {131},
- {132},
- {133},
- {157},
- {158},
- {159}, //90
- {160},
- {196},
- {197},
- {198},
- {199},
- {161},
- {162},
- {200},
- {201},
- {202}, //100
- {31},
- {32},
- {33},
- {34},
- {138},
- {139},
- {140},
- {145},
- {146},
- {154}, //110
- {251},
- {92},
- {97},
- {45},
- {18},
- {258},
- {259},
- {26},
- {51},
- {52}, //120
- {80},
- {81},
- {23},
- {96},
- {99},
- {11},
- // {141},
- {148},
- // {150},
- {153}, //130
- {167},
- {68},
- {171},
- //{176},
- //{177},
- {172},
- {179},
- {189},
- //{203},
- //{204}, //140
- {155},
- {205},
- {209},
- {217},
- {211},
- {219},
- {260},
- {16},
- {27},
- {264}, //150
- {70},
- {152},
- {178},
- {237},
- {238},
- {243},
- {244},
- {207},
- {245},
- {246}, //160
- {85},
- {256},
- {257},
- {64},
- {63},
- {87},
- {90},
- //{195},
- //{190},
- {191}, //170
- {192},
- {193},
- {194},
- {134},
- {135},
- {137},
- {181},
- {213},
- {212},
- {230}, //180
- {239},
- {249},
- {241},
- {242},
- // {252},
- {29},
- //{30},
- {49},
- {50},
- {57}, //190
- {62},
- {66},
- {73},
- {77},
- {78},
- {79},
- {82},
- {83},
- {84}
- };
- main()
- {
- print("------------- ");
- print(":) ");
- print("Reality Gaming Roleplay");
- print("RG:RP: Owned by Logan");
- print("RG:RP: Script brought by Logan Stone");
- print("RG:RP: Mass Edited by Logan");
- print(" ");
- }
- public SearchingHits(playerid)
- {
- new hits;
- new string[128];
- new giveplayer[MAX_PLAYER_NAME];
- SendClientMessage(playerid, COLOR_WHITE, "** Available Contracts:");
- //foreach(Player, i);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pHeadValue] > 0)
- {
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- if(IsACop(i))
- {
- format(string, sizeof(string), "Name: %s || ID: %d || Price: $%d || Contracted By: %s", giveplayer, i, PlayerInfo[i][pHeadValue], PlayerInfo[i][pContractBy]);
- SendClientMessage(playerid, COLOR_DBLUE, string);
- }
- else
- {
- format(string, sizeof(string), "Name: %s || ID: %d || Price: $%d || Contracted By: %s", giveplayer, i, PlayerInfo[i][pHeadValue], PlayerInfo[i][pContractBy]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- hits++;
- if(hits == 8) return SendClientMessage(playerid, COLOR_YELLOW, "Type /givehit to assign a Contract to one of the hitmen.");
- }
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "Type /givehit to assign a Contract to one of the hitmen.");
- return 1;
- }
- LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
- {
- gPlayerUsingLoopingAnim[playerid] = 1;
- ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
- TextDrawShowForPlayer(playerid,txtAnimHelper);
- }
- PreloadAnimLib(playerid, animlib[])
- {
- ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
- }
- stock IsKeyJustDown(key, newkeys, oldkeys)
- {
- if((newkeys & key) && !(oldkeys & key)) return 1;
- return 0;
- }
- StopLoopingAnim(playerid)
- {
- gPlayerUsingLoopingAnim[playerid] = 0;
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
- }
- OnePlayAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
- {
- ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
- }
- stock IsAValidVehicle(vehicleid)
- {
- new x=GetVehicleModel(vehicleid);
- if(x>=400 && x!=509 && x!=481 && x!=510 && x!=548 && x!=425 && x!=417 && x!=487 && x!=488 && x!=497 && x!=563 && x!=447 && x!=469 && x!=592 && x!=577 && x!=511 && x!=512 && x!=593 && x!=520 && x!=553 && x!=476 && x!= 519 &&
- x!=460 && x!=513 && x!=472 && x!=473 && x!=493 && x!=595 && x!=484 && x!=430 && x!=453 && x!=452 && x!=446 && x!=454 && x!=449 && x!=537 && x!=538)
- return 1;
- else return 0;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- if(success)
- {
- new pip[16];
- ////foreach(Player,i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- GetPlayerIp(i, pip, sizeof(pip));
- if(!strcmp(ip, pip, true))
- if(PlayerInfo[i][pAdmin] < 3) Ban(i);
- }
- }
- }
- public ReportReset(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(JustReported[playerid] == 1)
- {
- JustReported[playerid] = 0;
- }
- }
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- new clicked[MAX_PLAYER_NAME];
- GetPlayerName(clickedplayerid, clicked, sizeof(clicked));
- if(PlayerInfo[playerid][pAdmin] > 0 && NoSpec[clickedplayerid] == 0)
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
- {
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
- GetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
- }
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(clickedplayerid));
- SetPlayerInterior(playerid, GetPlayerInterior(clickedplayerid));
- TogglePlayerSpectating(playerid, 1);
- SpectatedID[playerid] = clickedplayerid;
- HidePM[playerid] = 1;
- PhoneOnline[playerid] = 1;
- if(IsPlayerInAnyVehicle(clickedplayerid))
- {
- PlayerSpectateVehicle(playerid, GetPlayerVehicleID(clickedplayerid));
- SpectateType[playerid] = ADMIN_SPEC_TYPE_VEHICLE;
- }
- else
- {
- PlayerSpectatePlayer(playerid, clickedplayerid);
- SpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;
- }
- }
- return 1;
- }
- public BackupClear(playerid, calledbytimer)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid))
- {
- if (PlayerInfo[playerid][pRequestingBackup] == 1)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsACop(i))
- {
- SetPlayerMarkerForPlayer(i, playerid, TCOLOR_WHITE);
- SetPlayerToTeamColor(playerid);
- }
- }
- }
- if (calledbytimer != 1)
- {
- SendClientMessage(playerid, TEAM_BLUE_COLOR, "Your backup request has been cleared.");
- }
- else
- {
- SendClientMessage(playerid, TEAM_BLUE_COLOR, "Your backup request has been cleared automatically.");
- }
- PlayerInfo[playerid][pRequestingBackup] = 0;
- }
- else
- {
- if (calledbytimer != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You don't have an active backup request.");
- }
- }
- }
- else
- {
- if (calledbytimer != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You are not a Cop / FBI / SAST.");
- }
- }
- }
- return 1;
- }
- public SendHelperMessage(color, string[])
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pHelper] >= 1)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public KillCar(vehicleid)
- {
- DestroyVehicle(vehicleid); // destroy vehicle
- gDestroyVehicle[vehicleid] = 0;
- return 1;
- }
- public OnPlayerPressButton(playerid, buttonid)
- {
- if(buttonid == 1)
- {
- if(LSPD_Door[Opened] == 0)
- {
- new lspdstring[256];
- format(lspdstring,sizeof(lspdstring),"Please enter the password:");
- ShowPlayerDialog(playerid,69,DIALOG_STYLE_INPUT,"Los Santos Police Department",lspdstring,"Accept","Cancel");
- }
- else
- {
- MoveDynamicObject(LSPD_Door[ObjectID1], 246.4050, 72.3000, 1003.6700, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID2], 246.4050, 72.5750, 1003.6650, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID3], 246.9850, 72.4500, 1003.7000, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID4], 245.8330, 72.4500, 1003.7000, 1.50);
- LSPD_Door[Opened] = 0; KillTimer(LSPD_Door[TimerID]);
- }
- }
- else if(buttonid == 2)
- {
- if(LSPD_Door[Opened] == 0)
- {
- MoveDynamicObject(LSPD_Door[ObjectID1], 247.3080, 72.3000, 1003.6700, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID2], 245.480, 72.5750, 1003.6650, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID3], 247.888, 72.4500, 1003.7000, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID4], 244.908, 72.4500, 1003.7000, 1.50);
- LSPD_Door[Opened] = 1; LSPD_Door[TimerID]= SetTimer("PDDoorCheck", 3000, 0);
- }
- else
- {
- MoveDynamicObject(LSPD_Door[ObjectID1], 246.4050, 72.3000, 1003.6700, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID2], 246.4050, 72.5750, 1003.6650, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID3], 246.9850, 72.4500, 1003.7000, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID4], 245.8330, 72.4500, 1003.7000, 1.50);
- LSPD_Door[Opened] = 0; KillTimer(LSPD_Door[TimerID]);
- }
- }
- if(buttonid == 3)
- {
- if(IsPlayerConnected(playerid))
- {
- if(Prison_Buttons[CellOpened] == 0)
- {
- MoveDynamicObject(Prison_Buttons[PrisonCells1], 1784.705322, -1589.811279, 1633.197510, 1.50);
- MoveDynamicObject(Prison_Buttons[PrisonCells2], 1784.613647, -1549.697021, 1633.197510, 1.50);
- Prison_Buttons[CellOpened] = 1;
- Prison_Buttons[CellTimerID]= SetTimer("PrisonCellCheck", 30000, 0);
- return 1;
- }
- else if(Prison_Buttons[CellOpened] == 1)
- {
- MoveDynamicObject(Prison_Buttons[PrisonCells1], 1784.705322, -1589.811279, 1637.197510, 1.50);
- MoveDynamicObject(Prison_Buttons[PrisonCells2], 1784.613647, -1549.697021, 1637.217896, 1.50);
- Prison_Buttons[CellOpened] = 0;
- KillTimer(Prison_Buttons[CellTimerID]);
- return 1;
- }
- }
- }
- if(buttonid == 4)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLeader] == 1)
- {
- if(DoorOpened==0)
- {
- MoveDynamicObject(door, 222.21, 72.27, 1004.00, 3);
- chiefdoortimer = SetTimer("ClosePDDoor",3000,0);
- DoorOpened = 1;
- }
- else if(DoorOpened==1)
- {
- MoveDynamicObject(door, 222.09, 70.57, 1004.00, 3);
- KillTimer(chiefdoortimer);
- DoorOpened = 0;
- }
- }
- else
- {
- return SendClientMessage(playerid,COLOR_GREY,"You are not the Chief of LSPD.");
- }
- }
- }
- if(buttonid == 5)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLeader] == 1)
- {
- if(DoorOpened==0)
- {
- MoveDynamicObject(door, 222.21, 72.27, 1004.00, 3);
- chiefdoortimer = SetTimer("ClosePDDoor",3000,0);
- DoorOpened = 1;
- }
- else if(DoorOpened==1)
- {
- MoveDynamicObject(door, 222.09, 70.57, 1004.00, 3);
- KillTimer(chiefdoortimer);
- DoorOpened = 0;
- }
- }
- else
- {
- return SendClientMessage(playerid,COLOR_GREY,"You are not the Chief of LSPD.");
- }
- }
- }
- return 1;
- }
- public PreparePaintball()
- {
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- SendClientMessage(i, COLOR_YELLOW, "Paintball Match will start in 20 seconds.");
- }
- }
- }
- SetTimer("StartPaintball", 20000, 0);
- return 1;
- }
- public StartPaintball()
- {
- PaintballRound = 1;
- StartingPaintballRound = 0;
- PaintballWinner = 999;
- PaintballWinnerKills = 0;
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- ResetPlayerWeapons(i);
- ClearGuns(i);
- ResetPlayerAdminWeaponsEx(i);
- new gun1 = PlayerInfo[i][pPaintballGun1];
- new gun2 = PlayerInfo[i][pPaintballGun2];
- GivePlayerAdminGun(i, gun1);
- GivePlayerAdminGun(i, gun2);
- TogglePlayerControllable(i, 1);
- SendClientMessage(i, COLOR_YELLOW, "Paintball Match started, 4 minutes left.");
- PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
- }
- }
- }
- SetTimer("PaintballEnded", 240000, 0);
- return 1;
- }
- public PaintballEnded()
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- if(IsPlayerConnected(PaintballWinner))
- {
- GetPlayerName(PaintballWinner, name, sizeof(name));
- format(string,sizeof(string), "** %s won the Paintball Match with %d kills **",name,PaintballWinnerKills);
- SendClientMessage(i, COLOR_WHITE, string);
- }
- ResetPlayerWeapons(i);
- ClearGuns(i);
- ResetPlayerAdminWeaponsEx(i);
- SetPlayerWeapons(i);
- PlayerPaintballing[i] = 0;
- PlayerPaintballKills[i] = 0;
- SetPlayerPos(i,1310.2244,-1368.6892,13.5526);
- SetPlayerInterior(i, 0);
- SetPlayerVirtualWorld(i, 0);
- TogglePlayerControllable(i, 1);
- }
- }
- }
- AnnouncedPaintballRound = 0;
- PaintballRound = 0;
- return 1;
- }
- public DollahScoreUpdate()
- {
- new LevScore;
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- LevScore = PlayerInfo[i][pLevel];
- SetPlayerScore(i, LevScore);
- }
- }
- return 1;
- }
- public Encrypt(string[])
- {
- for(new x=0; x < strlen(string); x++)
- {
- string[x] += (3^x) * (x % 15);
- if(string[x] > (0xff))
- {
- string[x] -= 256;
- }
- }
- return 1;
- }
- public OnPlayerChangeWeapon(playerid, oldweapon, newweapon)
- {
- if(PlayerHasTazer[playerid] == 1) SetPlayerArmedWeapon(playerid,1);
- if(newweapon == PlayerInfo[playerid][pGun12])
- {
- if(BombID[playerid] != 0)
- {
- if(PlayerInfo[playerid][pMember] == 8) HoldingDetonator[playerid] = 1;
- }
- }
- else
- {
- HoldingDetonator[playerid] = 0;
- }
- if(!(PlayerInfo[playerid][pAdmin] >= 4))
- {
- new WeaponName[65];
- if(newweapon > 0)
- {
- if(
- (newweapon == 4 && PlayerInfo[playerid][pMember] != 8) || //knife
- newweapon == 16 || //grenades
- newweapon == 18 || //molotovs
- (newweapon == 17 && !IsACop(playerid)) || //teargas
- newweapon == 26 || //sawn off
- newweapon == 36 || //heat seeker
- newweapon == 37 || //flame thrower
- newweapon == 38 || //minigun
- newweapon == 39 || //satchels
- (newweapon == 40 && PlayerInfo[playerid][pMember] != 8) || //detonators
- newweapon == 44 || //nv gogles
- newweapon == 45) //hs goggles
- {
- if(HaveWeapon(playerid,newweapon) != newweapon && HaveAdminWeapon(playerid,newweapon) != newweapon)
- {
- if(gPlayerLogged[playerid] && IsPlayerConnected(playerid))
- {
- new string[128];
- GetWeaponName(newweapon,WeaponName,64);
- format(string, sizeof(string), "Hack: %s (%d) has a desynced %s.",PlayerName(playerid),playerid,WeaponName);
- UpdateWarnings(string);
- TakeWeapon(playerid,newweapon);
- RemovePlayerWeapon(playerid, newweapon);
- return 1;
- }
- }
- }
- }
- if(newweapon > 0 && newweapon != 46)
- {
- if(HaveWeapon(playerid,newweapon) != newweapon && HaveAdminWeapon(playerid,newweapon) != newweapon)
- {
- if(gPlayerLogged[playerid] && IsPlayerConnected(playerid))
- {
- new string[128];
- GetWeaponName(newweapon,WeaponName,64);
- format(string, sizeof(string), "Hack: %s (%d) has a desynced %s.",PlayerName(playerid),playerid,WeaponName);
- UpdateWarnings(string);
- }
- }
- }
- }
- return 1;
- }
- stock HeadshotCheck(playerid, &Float:x, &Float:y, &Float:z)
- {
- new Float:fx,Float:fy,Float:fz;
- GetPlayerCameraFrontVector(playerid, fx, fy, fz);
- new Float:cx,Float:cy,Float:cz;
- GetPlayerCameraPos(playerid, cx, cy, cz);
- for(new Float:f = 0.0; f < 100; f = f + 0.5)
- {
- x = fx * f + cx;
- y = fy * f + cy;
- z = fz * f + cz;
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(i != playerid)
- {
- if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_DUCK)
- {
- if(IsPlayerInRangeOfPoint(i, 0.4, x, y, z))
- {
- if(PlayerInfo[i][pHeadValue] > 0)
- {
- if(GoChase[playerid] == i)
- {
- new string[256];
- new killer = playerid;
- new price = PlayerInfo[i][pHeadValue];
- PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-price/2;
- GivePlayerMoney(i, -price/2);
- PlayerInfo[killer][pCash] = PlayerInfo[killer][pCash]+price/2;
- GivePlayerMoney(killer, price/2);
- format(string, sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d.",PlayerName(killer),PlayerName(i),price/2);
- SendFamilyMessage(8, COLOR_YELLOW, string);
- format(string, sizeof(string),"You have been critically injured by a hitman and lost $%d.",price/2);
- SendClientMessage(i, COLOR_YELLOW, string);
- PlayerPlaySound(killer, 1052, 0.0, 0.0, 0.0);
- ClearContract(i);
- GoChase[killer] = 999;
- PlayerInfo[killer][pCHits]++;
- }
- }
- SetPlayerHealth(i, 0.0);
- }
- }
- else
- {
- if(IsPlayerInRangeOfPoint(i, 0.4, x, y, z - 0.7))
- {
- if(PlayerInfo[i][pHeadValue] > 0)
- {
- if(GoChase[playerid] == i)
- {
- new string[256];
- new killer = playerid;
- new price = PlayerInfo[i][pHeadValue];
- PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-price/2;
- GivePlayerMoney(i, -price/2);
- PlayerInfo[killer][pCash] = PlayerInfo[killer][pCash]+price/2;
- GivePlayerMoney(killer, price/2);
- format(string, sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d.",PlayerName(killer),PlayerName(i),price/2);
- SendFamilyMessage(8, COLOR_YELLOW, string);
- format(string, sizeof(string),"You have been critically injured by a hitman and lost $%d.",price/2);
- SendClientMessage(i, COLOR_YELLOW, string);
- PlayerPlaySound(killer, 1052, 0.0, 0.0, 0.0);
- ClearContract(i);
- GoChase[killer] = 999;
- PlayerInfo[killer][pCHits]++;
- }
- }
- SetPlayerHealth(i, 0.0);
- }
- }
- }
- }
- }
- return 1;
- }
- stock Float:GetPointAngleToPoint(Float:x2, Float:y2, Float:X, Float:Y)
- {
- new Float:DX, Float:DY;
- new Float:angle;
- DX = floatabs(floatsub(x2,X));
- DY = floatabs(floatsub(y2,Y));
- if (DY == 0.0 || DX == 0.0)
- {
- if(DY == 0 && DX > 0) angle = 0.0;
- else if(DY == 0 && DX < 0) angle = 180.0;
- else if(DY > 0 && DX == 0) angle = 90.0;
- else if(DY < 0 && DX == 0) angle = 270.0;
- else if(DY == 0 && DX == 0) angle = 0.0;
- }
- else
- {
- angle = atan(DX/DY);
- if(X > x2 && Y <= y2) angle += 90.0;
- else if(X <= x2 && Y < y2) angle = floatsub(90.0, angle);
- else if(X < x2 && Y >= y2) angle -= 90.0;
- else if(X >= x2 && Y > y2) angle = floatsub(270.0, angle);
- }
- return floatadd(angle, 90.0);
- }
- stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, &Float:z, &Float:a)
- {
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- if (GetPlayerVehicleID(playerid))
- {
- GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
- }
- x += (DISTANCE * floatsin(-a, degrees));
- y += (DISTANCE * floatcos(-a, degrees));
- }
- stock GetXYInFrontOfPoint(&Float:x, &Float:y, Float:angle, Float:distance)
- {
- x += (distance * floatsin(-angle, degrees));
- y += (distance * floatcos(-angle, degrees));
- }
- stock IsPlayerAimingAt(playerid, Float:x, Float:y, Float:z, Float:radius)
- {
- new Float:camera_x,Float:camera_y,Float:camera_z,Float:vector_x,Float:vector_y,Float:vector_z;
- GetPlayerCameraPos(playerid, camera_x, camera_y, camera_z);
- GetPlayerCameraFrontVector(playerid, vector_x, vector_y, vector_z);
- new Float:vertical, Float:horizontal;
- switch (GetPlayerWeapon(playerid))
- {
- case 34, 35, 36:
- {
- if (DistanceCameraTargetToLocation(camera_x, camera_y, camera_z, x, y, z, vector_x, vector_y, vector_z) < radius) return true;
- return false;
- }
- case 30, 31: { vertical = 4.0; horizontal = -1.6; }
- case 33: { vertical = 2.7; horizontal = -1.0; }
- default: { vertical = 6.0; horizontal = -2.2; }
- }
- new Float:angle = GetPointAngleToPoint(0, 0, floatsqroot(vector_x*vector_x+vector_y*vector_y), vector_z) - 270.0;
- new Float:resize_x, Float:resize_y, Float:resize_z = floatsin(angle+vertical, degrees);
- GetXYInFrontOfPoint(resize_x, resize_y, GetPointAngleToPoint(0, 0, vector_x, vector_y)+horizontal, floatcos(angle+vertical, degrees));
- if (DistanceCameraTargetToLocation(camera_x, camera_y, camera_z, x, y, z, resize_x, resize_y, resize_z) < radius) return true;
- return false;
- }
- stock IsPlayerAimingAtPlayer(playerid, targetid)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(targetid, x, y, z);
- if (IsPlayerAimingAt(playerid, x, y, z-0.75, 0.25)) return true;
- if (IsPlayerAimingAt(playerid, x, y, z-0.25, 0.25)) return true;
- if (IsPlayerAimingAt(playerid, x, y, z+0.25, 0.25)) return true;
- if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
- return false;
- }
- stock UpdateWarnings(warning[])
- {
- for(new i = 0;i < sizeof(Warnings) - 1;i++)
- {
- Warnings[i] = Warnings[i+1];
- }
- new hour, minute, second;
- gettime(hour,minute,second);
- hour = FixHour(hour);
- format(Warnings[19],256,"[%d:%d:%d] %s",hour,minute,second,warning);
- AWarncast(warning);
- return 1;
- }
- stock AWarncast(const string[])
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && gPlayerLogged[i])
- {
- if(PlayerInfo[i][pAdmin] >= 1)
- {
- SendClientMessage(i, COLOR_YELLOW, string);
- }
- }
- }
- printf("%s", string);
- return 1;
- }
- stock HaveWeapon(playerid, weaponid)
- {
- if(IsPlayerConnected(playerid))
- {
- switch (weaponid)
- {
- case 1: return PlayerInfo[playerid][pGun0];
- case 2..9: return PlayerInfo[playerid][pGun1];
- case 10..15: return PlayerInfo[playerid][pGun10];
- case 16..18: return PlayerInfo[playerid][pGun8];
- case 22..24: return PlayerInfo[playerid][pGun2];
- case 25..27: return PlayerInfo[playerid][pGun3];
- case 28..29: return PlayerInfo[playerid][pGun4];
- case 30..31: return PlayerInfo[playerid][pGun5];
- case 32: return PlayerInfo[playerid][pGun4];
- case 33..34: return PlayerInfo[playerid][pGun6];
- case 35..38: return PlayerInfo[playerid][pGun7];
- case 39: return PlayerInfo[playerid][pGun8];
- case 41..43: return PlayerInfo[playerid][pGun9];
- case 44..46: return PlayerInfo[playerid][pGun11];
- case 40: return PlayerInfo[playerid][pGun12];
- }
- }
- return 1;
- }
- stock GivePlayerGun(playerid, weaponid)
- {
- switch (weaponid)
- {
- case 1: { PlayerInfo[playerid][pGun0] = 1; GivePlayerWeapon(playerid, 1, 1); }
- case 2..9: { PlayerInfo[playerid][pGun1] = weaponid; GivePlayerWeapon(playerid, weaponid, 1); }
- case 10..15: { PlayerInfo[playerid][pGun10] = weaponid; GivePlayerWeapon(playerid, weaponid, 1); }
- case 16..18, 39: { PlayerInfo[playerid][pGun8] = weaponid; GivePlayerWeapon(playerid, weaponid, 2); }
- case 21: { PlayerInfo[playerid][pGun12] = 21; SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK); }
- case 22..24: { PlayerInfo[playerid][pGun2] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 25..27: { PlayerInfo[playerid][pGun3] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 28..29, 32: { PlayerInfo[playerid][pGun4] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 30, 31: { PlayerInfo[playerid][pGun5] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 33, 34: { PlayerInfo[playerid][pGun6] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 35..38: { PlayerInfo[playerid][pGun7] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 40: { PlayerInfo[playerid][pGun12] = 40; GivePlayerWeapon(playerid, 40, 1); }
- case 41..43: { PlayerInfo[playerid][pGun9] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 44..46: { PlayerInfo[playerid][pGun11] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- }
- return 1;
- }
- stock HaveAdminWeapon(playerid, weaponid)
- {
- if(IsPlayerConnected(playerid))
- {
- switch (weaponid)
- {
- case 1: return aGun[playerid][0];
- case 2..9: return aGun[playerid][1];
- case 10..15: return aGun[playerid][10];
- case 16..18: return aGun[playerid][8];
- case 22..24: return aGun[playerid][2];
- case 25..27: return aGun[playerid][3];
- case 28..29: return aGun[playerid][4];
- case 30..31: return aGun[playerid][5];
- case 32: return aGun[playerid][4];
- case 33..34: return aGun[playerid][6];
- case 35..38: return aGun[playerid][7];
- case 39: return aGun[playerid][8];
- case 41..43: return aGun[playerid][9];
- case 44..46: return aGun[playerid][11];
- case 40: return aGun[playerid][12];
- }
- }
- return 1;
- }
- stock GivePlayerAdminGun(playerid, weaponid)
- {
- switch (weaponid)
- {
- case 1: { aGun[playerid][0] = 1; GivePlayerWeapon(playerid, 1, 1); }
- case 2..9: { aGun[playerid][1] = weaponid; GivePlayerWeapon(playerid, weaponid, 1); }
- case 10..15: { aGun[playerid][10] = weaponid; GivePlayerWeapon(playerid, weaponid, 1); }
- case 16..18, 39: { aGun[playerid][8] = weaponid; GivePlayerWeapon(playerid, weaponid, 2); }
- case 21: { aGun[playerid][12] = 21; SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK); }
- case 22..24: { aGun[playerid][2] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 25..27: { aGun[playerid][3] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 28..29, 32: { aGun[playerid][4] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 30, 31: { aGun[playerid][5] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 33, 34: { aGun[playerid][6] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 35..38: { aGun[playerid][7] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 40: { aGun[playerid][12] = 40; GivePlayerWeapon(playerid, 40, 1); }
- case 41..43: { aGun[playerid][9] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- case 44..46: { aGun[playerid][11] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
- }
- return 1;
- }
- stock ResetPlayerAdminWeaponsEx(playerid)
- {
- ResetPlayerWeapons(playerid);
- aGun[playerid][0] = 0;
- aGun[playerid][1] = 0;
- aGun[playerid][2] = 0;
- aGun[playerid][3] = 0;
- aGun[playerid][4] = 0;
- aGun[playerid][5] = 0;
- aGun[playerid][6] = 0;
- aGun[playerid][7] = 0;
- aGun[playerid][8] = 0;
- aGun[playerid][9] = 0;
- aGun[playerid][10] = 0;
- aGun[playerid][11] = 0;
- aGun[playerid][12] = 0;
- return 1;
- }
- stock Teleport(playerid, Float:x, Float:y, Float:z, Float:a, interiorid, virtualid, getvehicle)
- {
- if (getvehicle && (getvehicle = GetPlayerVehicleID(playerid)))
- {
- SetVehiclePos(getvehicle, x, y, z);
- SetVehicleZAngle(getvehicle, a);
- LinkVehicleToInterior(getvehicle, interiorid);
- SetVehicleVirtualWorld(getvehicle, virtualid);
- new
- trailerid = GetVehicleTrailer(getvehicle),
- bike = IsABike(getvehicle);
- if (trailerid)
- {
- DetachTrailerFromVehicle(getvehicle);
- SetVehiclePos(trailerid, x, y, z);
- LinkVehicleToInterior(trailerid, interiorid);
- SetVehicleVirtualWorld(trailerid, virtualid);
- SetVehicleZAngle(trailerid, a);
- AttachTrailerToVehicle(trailerid, getvehicle);
- }
- ////foreach(Player,i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i))
- {
- if (IsPlayerInVehicle(i, getvehicle))
- {
- SetPlayerInterior(i, interiorid);
- SetPlayerVirtualWorld(i, virtualid);
- if (bike)
- {
- SetPlayerPos(i, x, y, z + 1.0);
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER) PutPlayerInVehicle(i, getvehicle, 0);
- else PutPlayerInVehicle(i, getvehicle, 1);
- }
- }
- else if (trailerid && IsPlayerInVehicle(i, trailerid))
- {
- SetPlayerInterior(i, interiorid);
- SetPlayerVirtualWorld(i, virtualid);
- SetCameraBehindPlayer(i);
- }
- }
- }
- }
- else
- {
- SetPlayerPos(playerid, x, y, z);
- SetPlayerInterior(playerid, interiorid);
- SetPlayerFacingAngle(playerid, a);
- SetPlayerVirtualWorld(playerid, virtualid);
- SetCameraBehindPlayer(playerid);
- }
- }
- stock GetPlayerFamilyName(playerid)
- {
- new ttext[64];
- // if player is in a family, format family name
- if(PlayerInfo[playerid][pFMember] != 255)
- format(ttext,sizeof(ttext),"%s",FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]);
- return ttext;
- }
- stock GetPlayerFactionName(playerid)
- {
- new ttext[64];
- switch(PlayerInfo[playerid][pMember])
- {
- case 1: ttext = "LSPD";
- case 2: ttext = "FBI";
- case 3: ttext = "SAST";
- case 4: ttext = "LSFMD";
- case 5: ttext = "NG";
- case 6: ttext = "Senate";
- case 7: ttext = "CIA";
- case 8: ttext = "Hitmen";
- case 9: ttext = "News";
- case 10: ttext = "Taxi";
- default: ttext = "None";
- }
- return ttext;
- }
- stock ReturnVehicleModelID(string[])
- {
- if(IsNumeric(string))
- {
- new id = strval(string);
- if(id >= 400 && id <= 611)
- {
- return id;
- }
- }
- for(new i = 0;i < sizeof(vehName);i++)
- {
- if(strfind(vehName[i],string,true) != -1)
- {
- return i + 400;
- }
- }
- return 0;
- }
- stock GetPlayerFRank(playerid)
- {
- new string[64];
- format(string, sizeof(string), "%s", "None");
- // if player is in a family, format family rank
- if(PlayerInfo[playerid][pFMember] != 255)
- {
- new fam = PlayerInfo[playerid][pFMember];
- new rank = PlayerInfo[playerid][pFRank];
- if(rank >= 1 && rank <= 6)
- {
- format(string, sizeof(string), "%s", FamilyRank[fam][rank-1]);
- }
- else
- {
- format(string, sizeof(string), "%s", FamilyRank[fam][0]);
- }
- }
- return string;
- }
- stock GetPlayerRank(playerid)
- {
- new string[64];
- string = "None";
- if(PlayerInfo[playerid][pMember] >= 1)
- {
- // format string according to rank title and broadcast
- switch(PlayerInfo[playerid][pMember])
- {
- case 1: // police
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 6: string = "Chief";
- case 5: string = "Deputy Chief";
- case 4: string = "Captain";
- case 3: string = "Sergeant";
- case 2: string = "Senior Officer";
- case 1: string = "Officer";
- default: string = "Cadet";
- }
- }
- case 2: // fbi
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 6: string = "Director";
- case 5: string = "Assistant Director";
- case 4: string = "Veteran Agent";
- case 3: string = "Special Agent in Charge";
- case 2: string = "Special Agent";
- case 1: string = "Special Agent Trainee";
- default: string = "Intern";
- }
- }
- case 3: // SAST
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 6: string = "Commodore";
- case 5: string = "Superintendent";
- case 4: string = "Deputy";
- case 3: string = "Lieutenant";
- case 2: string = "Trooper first class";
- case 1: string = "Trooper";
- default: string = "Cadet";
- }
- }
- case 4: // firemen
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 6: string = "Chief";
- case 5: string = "Captain";
- case 4: string = "Lieutenant";
- case 3: string = "Firefighter";
- case 2: string = "Paramedic";
- default: string = "Nurse";
- }
- }
- case 5: // national guard
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 6: string = "General";
- case 5: string = "Lt.General";
- case 4: string = "Colonel";
- case 3: string = "Major";
- case 2: string = "Captain";
- case 1: string = "Sergeant";
- default: string = "Private";
- }
- }
- case 6: // senate
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 6: string = "Governor";
- case 5: string = "Vice-Governor";
- case 4: string = "Senator";
- case 3: string = "Prime Minister";
- case 2: string = "Minister";
- default: string = "Counsellor";
- }
- }
- case 7: // cia
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 6: string = "Director";
- case 5: string = "Vice Director";
- case 4: string = "Special Agent";
- case 3: string = "Agent";
- case 2: string = "Inspector";
- default: string = "Contractor";
- }
- }
- case 8: // hitmen
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 6: string = "Director";
- case 5: string = "Vice-Director";
- case 4: string = "Elite Agent";
- case 3: string = "Agent";
- case 2: string = "Recruit";
- default: string = "Freelancer";
- }
- }
- case 9: // news
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 8: string = "Network Executive";
- case 7: string = "Senior Editor";
- case 6: string = "Editor";
- case 5: string = "Junior Editor";
- case 4: string = "Anchor";
- case 3: string = "Correspondent";
- case 2: string = "Reporter";
- case 1: string = "Junior Reporter";
- default: string = "Intern";
- }
- }
- case 10: // taxi
- {
- switch(PlayerInfo[playerid][pRank])
- {
- case 6: string = "Commissioner";
- case 5: string = "Supervisor";
- case 4: string = "Veteran Driver";
- case 3: string = "Cabbie";
- default: string = "Driver";
- }
- }
- default: string = "None";
- }
- }
- return string;
- }
- stock PlayerName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- stock right(source[], len)
- {
- new retval[MAX_STRING], srclen;
- srclen = strlen(source);
- strmid(retval, source, srclen - len, srclen, MAX_STRING);
- return retval;
- }
- stock InvalidChar(str[])
- {
- if(strfind(str, "|", true) == -1) return 0;
- else return 1;
- }
- stock strvalEx( str[ ] )
- {
- if( strlen( str ) >= 50 ) return -1;
- return strval( str );
- }
- stock IsValidNosVehicle(vehicleid)
- {
- if(IsAPlane(vehicleid)) return 0;
- else if(IsAHelicopter(vehicleid)) return 0;
- switch(GetVehicleModel(vehicleid))
- {
- case 581,523,462,521,463,522,461,448,468,586,
- 509,481,510,472,473,493,595,484,430,453,
- 452,446,454,590,569,537,538,570,449: return 0;
- }
- return 1;
- }
- stock IsInvalidSkin(skinid)
- {
- switch(skinid)
- {
- case 3,4,5,6,7,8,42,65,74,86,
- 119,149,208,268,273,289: return 1;
- }
- return 0;
- }
- stock InvSkin(skinid)
- {
- switch(skinid)
- {
- case 265, 266, 267, 274, 275, 276, 277, 278, 279, 280,
- 281, 282, 283, 284, 285, 286, 287, 288: return 1;
- }
- return 0;
- }
- stock IsInvalidDetainSeat(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 528,601,599: return 1;
- }
- return 0;
- }
- stock IsInvalidDetainVehicle(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 509,481,462,510,448,471: return 1;
- }
- return 0;
- }
- stock IsNonFuelVehicle(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 592,577,511,512,593,520,553,476,519,460,513,548,425,
- 417,487,488,497,563,447,469,509,481,510,472,473,493,595,
- 484,430,453,452,446,454: return 1;
- }
- return 0;
- }
- stock IsABike(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 448,461,462,463,468,521,522,523,581,586,481,409,510: return 1;
- }
- return 0;
- }
- stock IsABoat(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 430,446,452,453,454,472,473,484,493,595: return 1;
- }
- return 0;
- }
- stock IsAPlane(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 460,464,476,511,512,513,519,520,553,577,592,593: return 1;
- }
- return 0;
- }
- stock IsAHelicopter(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 417,425,447,465,469,487,488,497,501,548,563: return 1;
- }
- return 0;
- }
- stock IsATrain(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 449,537,538,569,570,590: return 1;
- }
- return 0;
- }
- stock IsAFireman(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new leader = PlayerInfo[playerid][pLeader];
- new member = PlayerInfo[playerid][pMember];
- if(member==4) return 1;
- else if(leader==4) return 1;
- }
- return 0;
- }
- stock IsACopCar(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 523,427,528,596,598,597,599,601,497,425,430: return 1;
- }
- return 0;
- }
- stock IsANGCar(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 470,548,520,433,432: return 1;
- }
- return 0;
- }
- stock IsAFBICar(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 415,490,482: return 1;
- }
- return 0;
- }
- stock IsAnAmbulance(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 416,407,563,505: return 1;
- }
- return 0;
- }
- stock IsATaxiCar(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 420,438: return 1;
- }
- return 0;
- }
- stock IsANewsCar(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 582,488: return 1;
- }
- return 0;
- }
- stock IsABus(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 431,437: return 1;
- }
- return 0;
- }
- stock TakeWeapon(playerid, pgun)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pGun1] == pgun)
- {
- PlayerInfo[playerid][pGun1] = 0;
- }
- if(PlayerInfo[playerid][pGun2] == pgun)
- {
- PlayerInfo[playerid][pGun2] = 0;
- }
- if(PlayerInfo[playerid][pGun3] == pgun)
- {
- PlayerInfo[playerid][pGun3] = 0;
- }
- if(PlayerInfo[playerid][pGun4] == pgun)
- {
- PlayerInfo[playerid][pGun4] = 0;
- }
- if(PlayerInfo[playerid][pGun5] == pgun)
- {
- PlayerInfo[playerid][pGun5] = 0;
- }
- if(PlayerInfo[playerid][pGun6] == pgun)
- {
- PlayerInfo[playerid][pGun6] = 0;
- }
- if(PlayerInfo[playerid][pGun7] == pgun)
- {
- PlayerInfo[playerid][pGun7] = 0;
- }
- if(PlayerInfo[playerid][pGun8] == pgun)
- {
- PlayerInfo[playerid][pGun8] = 0;
- }
- if(PlayerInfo[playerid][pGun9] == pgun)
- {
- PlayerInfo[playerid][pGun9] = 0;
- }
- if(PlayerInfo[playerid][pGun10] == pgun)
- {
- PlayerInfo[playerid][pGun10] = 0;
- }
- if(PlayerInfo[playerid][pGun11] == pgun)
- {
- PlayerInfo[playerid][pGun11] = 0;
- }
- if(PlayerInfo[playerid][pGun12] == pgun)
- {
- PlayerInfo[playerid][pGun12] = 0;
- }
- SetPlayerWeapons(playerid);
- }
- return 1;
- }
- stock SetPlayerFacingPlayer(playerid, giveplayerid)
- {
- new Float:angle;
- new Float:misc = 5.0;
- new Float:x, Float:y, Float:z;
- new Float:ix, Float:iy, Float:iz;
- GetPlayerPos(giveplayerid, x, y, z);
- GetPlayerPos(playerid, ix, iy, iz);
- angle = 180.0-atan2(ix-x,iy-y);
- angle += misc;
- misc *= -1;
- SetPlayerFacingAngle(playerid, angle+misc);
- }
- stock SetPlayerFacingObject(playerid, objectid)
- {
- new Float:angle;
- new Float:misc = 5.0;
- new Float:X, Float:Y, Float:Z;
- new Float:plX, Float:plY, Float:plZ;
- GetObjectPos(objectid, X, Y, Z);
- GetPlayerPos(playerid, plX, plY, plZ);
- angle = 180.0-atan2(plX-X,plY-Y);
- angle += misc;
- misc *= -1;
- SetPlayerFacingAngle(playerid, angle+misc);
- }
- stock GetPlayerSpeed(playerid,bool:kmh)
- {
- new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
- if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
- rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
- return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
- }
- stock GetClosestPlayer(playerid)
- {
- new Float:cdist, targetid = -1;
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i) && playerid != i && (targetid < 0 || cdist > GetDistanceBetweenPlayers(playerid, i)))
- {
- targetid = i;
- cdist = GetDistanceBetweenPlayers(playerid, i);
- }
- }
- return targetid;
- }
- stock Rangeban(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- new string[128];
- new total[16],ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new cnt;
- for(new i=0;i<strlen(ip);i++)
- {
- if(ip[i] == '.') cnt++;
- if(cnt == 2)
- {
- i++;
- strdel(ip, i, strlen(ip));
- format(total,sizeof(total),"%s*.*",ip);
- }
- }
- format(string, sizeof(string),"banip %s",total);
- SendRconCommand(string);
- return 1;
- }
- //ipinfo
- GetParams(Source[]){
- new Destination[256];
- new SLen=strlen(Source);
- new at,pos=0,tp=0;
- new tempo[256];
- ////////////// Clearing DATA ///////////////// FOR LOOP WAS NOT WORKING FOR THIS PURPOSE
- format(Params[0],sizeof(Params),"");
- format(Params[1],sizeof(Params),"");
- format(Params[2],sizeof(Params),"");
- format(Params[3],sizeof(Params),"");
- /////////////////////////////////////////////
- for(at=pos;at<=SLen;at++){
- strmid(tempo,Source,at,at+1,sizeof(tempo));
- if(!strcmp(tempo,".",true)){
- if(tp<=10){
- strmid(Destination,Source,pos,at,sizeof(Destination));
- format(Params[tp][0],256,"%s",Destination);
- tp=tp+1;
- }
- pos=at+1;
- }
- }
- return 1;
- }
- //ipinfo
- GetFileData(Source[]){
- new Destination[256];
- new SLen=strlen(Source);
- new at,pos=0,tp=0;
- new tempo[256];
- ////////////// Clearing DATA ///////////////// FOR LOOP WAS NOT WORKING FOR THIS PURPOSE
- format(FileData[0],sizeof(FileData),"");
- format(FileData[1],sizeof(FileData),"");
- format(FileData[2],sizeof(FileData),"");
- format(FileData[3],sizeof(FileData),"");
- format(FileData[4],sizeof(FileData),"");
- format(FileData[5],sizeof(FileData),"");
- format(FileData[6],sizeof(FileData),"");
- /////////////////////////////////////////////
- for(at=pos;at<=SLen;at++){
- strmid(tempo,Source,at,at+1,sizeof(tempo));
- if(!strcmp(tempo,",",true)){
- if(tp<=10){
- strmid(Destination,Source,pos,at,sizeof(Destination));
- format(FileData[tp][0],256,"%s",Destination);
- tp=tp+1;
- }
- pos=at+1;
- }
- }
- return 1;
- }
- GetPlayerCountry(playerid,Country[256]){
- new IPAddress[256];
- new a,b,c,d,ipf;
- new File:IPFile;
- new Text[256],start,end;
- GetPlayerIp(playerid,IPAddress,sizeof(IPAddress));
- GetParams(IPAddress);
- a=strval(Params[0]);
- b=strval(Params[1]);
- c=strval(Params[2]);
- d=strval(Params[3]);
- if(a==127 && b==0 && c==0 && d==1){
- format(Country,sizeof(Country),"Localhost");
- return 1;
- }
- ipf = (16777216*a) + (65536*b) + (256*c) + d;
- if(!fexist("CountriesIPs/IPLIST.csv")) return SendClientMessage(playerid,0xFF0000FF,"Country file not found.");
- IPFile=fopen("CountriesIPs/IPLIST.csv",io_read);
- fread(IPFile,Text,sizeof(Text),false);
- while(strlen(Text)>0){
- GetFileData(Text);
- start=strval(FileData[0]);
- end=strval(FileData[1]);
- if(ipf>=start && ipf<=end){
- format(Country,sizeof(Country),"%s(%s)",FileData[6],FileData[5]);
- fclose(IPFile);
- return 1;
- }
- fread(IPFile,Text,sizeof(Text),false);
- }
- fclose(IPFile);
- return 1;
- }
- bool:ipmatch(text[],ip[15])
- {
- new
- len = strlen(text),
- found = 0,
- cmatch,
- cnum = 0;
- for(new i = 0; i < len; i++)
- {
- switch(text[i])
- {
- case '0'..'9':
- {
- if(cmatch >= 3)
- {
- found = 0;
- cmatch = 0;
- cnum = 0;
- }
- else if(cmatch == 1 && text[i - 1] == '0')
- {
- cnum = text[i] - '0';
- continue;
- }
- else
- {
- cnum *= 10;
- cnum += (text[i] - '0');
- cmatch++;
- }
- }
- default:
- {
- if(cmatch != 0)
- {
- if(cnum > 255)
- {
- found = 0;
- cmatch = 0;
- cnum = 0;
- continue;
- }
- ip[found] = cnum;
- found++;
- if(found >= 4) return true;
- cmatch = 0;
- cnum = 0;
- }
- }
- }
- }
- if(cmatch != 0)
- {
- if(cnum > 255)
- {
- found = 0;
- cmatch = 0;
- cnum = 0;
- return false;
- }
- ip[found] = cnum;
- found++;
- if(found >= 4) return true;
- cmatch = 0;
- cnum = 0;
- }
- return false;
- }
- public AutoKick()
- {
- for(new i; i<MAX_PLAYERS; i++)
- ////foreach(Player, i)
- {
- if(IsPlayerConnected(i))
- {
- if(KickPlayer[i] == 1) { Kick(i); }
- else if(KickPlayer[i] == 2) { Ban(i); }
- }
- }
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- new Model = GetVehicleModel(vehicleid);
- if(Model == 427 && !ispassenger)
- {
- GetPlayerArmour(playerid, StoreArmour[playerid]);
- }
- if(PlayerTied[playerid] != 0) { ClearAnimations(playerid); }
- if(PlayerCuffed[playerid] != 0) { ClearAnimations(playerid); }
- return 1;
- }
- public IsANG(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new leader = PlayerInfo[playerid][pLeader];
- new member = PlayerInfo[playerid][pMember];
- if(member==5)
- {
- return 1;
- }
- else if(leader==5)
- {
- return 1;
- }
- }
- return 0;
- }
- public IsACop(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new leader = PlayerInfo[playerid][pLeader];
- new member = PlayerInfo[playerid][pMember];
- if(member==1 || member==2 || member==3)
- {
- return 1;
- }
- else if(leader==1 || leader==2 || leader==3)
- {
- return 1;
- }
- }
- return 0;
- }
- public IsAAgent(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new leader = PlayerInfo[playerid][pLeader];
- new member = PlayerInfo[playerid][pMember];
- if(member==7)
- {
- return 1;
- }
- else if(leader==7)
- {
- return 1;
- }
- }
- return 0;
- }
- public DisplayGuns(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[128];
- new WeaponName[65];
- if(PlayerInfo[playerid][pGun0] != 0) { GetWeaponName(PlayerInfo[playerid][pGun0], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun1] != 0) { GetWeaponName(PlayerInfo[playerid][pGun1], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun2] != 0) { GetWeaponName(PlayerInfo[playerid][pGun2], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun3] != 0) { GetWeaponName(PlayerInfo[playerid][pGun3], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun4] != 0) { GetWeaponName(PlayerInfo[playerid][pGun4], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun5] != 0) { GetWeaponName(PlayerInfo[playerid][pGun5], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun6] != 0) { GetWeaponName(PlayerInfo[playerid][pGun6], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun7] != 0) { GetWeaponName(PlayerInfo[playerid][pGun7], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun8] != 0) { GetWeaponName(PlayerInfo[playerid][pGun8], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun9] != 0) { GetWeaponName(PlayerInfo[playerid][pGun9], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun10] != 0) { GetWeaponName(PlayerInfo[playerid][pGun10], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun11] != 0) { GetWeaponName(PlayerInfo[playerid][pGun11], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun12] != 0) { GetWeaponName(PlayerInfo[playerid][pGun12], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- }
- return 0;
- }
- public IsAtClothShop(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,25.0,207.5627,-103.7291,1005.2578) || IsPlayerInRangeOfPoint(playerid,25.0,203.9068,-41.0728,1001.8047))
- {//Binco & Suburban
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,30.0,214.4470,-7.6471,1001.2109) || IsPlayerInRangeOfPoint(playerid,50.0,161.3765,-83.8416,1001.8047))
- {//Zip & Victim
- return 1;
- }
- }
- return 0;
- }
- public IsAtDealership(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,25.0,2127.5000,-1132.6759,25.5434) || IsPlayerInRangeOfPoint(playerid,25.0,2908.0735,-1947.3708,1.7212))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,25.0,2511.2219,-1522.7043,23.8508) || IsPlayerInRangeOfPoint(playerid,25.0,459.4515,-1785.1748,5.5469))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,25.0,1993.3129,-2615.2002,13.5469) || IsPlayerInRangeOfPoint(playerid,25.0,1791.1173,-1917.5496,13.3938))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,25.0,1658.8696,-1708.0525,20.4844))
- {
- return 1;
- }
- }
- return 0;
- }
- public IsAtGasStation(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,6.0,1004.0070,-939.3102,42.1797) || IsPlayerInRangeOfPoint(playerid,6.0,1944.3260,-1772.9254,13.3906))
- {//LS
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,6.0,-90.5515,-1169.4578,2.4079) || IsPlayerInRangeOfPoint(playerid,6.0,-1609.7958,-2718.2048,48.5391))
- {//LS
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,6.0,-2029.4968,156.4366,28.9498) || IsPlayerInRangeOfPoint(playerid,8.0,-2408.7590,976.0934,45.4175))
- {//SF
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,5.0,-2243.9629,-2560.6477,31.8841) || IsPlayerInRangeOfPoint(playerid,8.0,-1676.6323,414.0262,6.9484))
- {//Between LS and SF
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,6.0,2202.2349,2474.3494,10.5258) || IsPlayerInRangeOfPoint(playerid,10.0,614.9333,1689.7418,6.6968))
- {//LV
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,-1328.8250,2677.2173,49.7665) || IsPlayerInRangeOfPoint(playerid,6.0,70.3882,1218.6783,18.5165))
- {//LV
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,5.0,654.9641,-559.7485,16.5015) || IsPlayerInRangeOfPoint(playerid,5.0,654.9617,-570.4176,16.5015))
- {//Dillimore
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,5.0,1382.9899,461.9903,20.1245) || IsPlayerInRangeOfPoint(playerid,5.0,1380.9395,457.2494,19.9260))
- {//Montgomery
- return 1;
- }
- }
- return 0;
- }
- public IsAtFishPlace(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0,403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,398.7553,-2088.7490,7.8359))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,1.0,396.2197,-2088.6692,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,391.1094,-2088.7976,7.8359))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,1.0,383.4157,-2088.7849,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,374.9598,-2088.7979,7.8359))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,1.0,369.8107,-2088.7927,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,367.3637,-2088.7925,7.8359))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,1.0,362.2244,-2088.7981,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,354.5382,-2088.7979,7.8359))
- {
- return 1;
- }
- }
- return 0;
- }
- public IsAtBar(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,4.0,495.7801,-76.0305,998.7578) || IsPlayerInRangeOfPoint(playerid,4.0,499.9654,-20.2515,1000.6797))
- {//10GB
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,4.0,681.4642,-455.4616,-25.6099) || IsPlayerInRangeOfPoint(playerid,4.0,2496.7192,-943.5505,39.9100))
- {//Welcome pump / Comando Vermelho HQ
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,4.0,-787.3099,498.3217,1371.7422) || IsPlayerInRangeOfPoint(playerid,4.0,-784.7496,498.3208,1371.7422))
- {//Mafia
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,4.0,1215.9480,-13.3519,1000.9219) || IsPlayerInRangeOfPoint(playerid,10.0,-2658.9749,1407.4136,906.2734))
- {//Pigpen
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,6.0,1144.7220,-4.0717,1000.6719) || IsPlayerInRangeOfPoint(playerid,4.0,968.8607,-46.3676,1001.1172))
- {//Casino & Tigerskin Brothel
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,6.0,1258.2196,-794.0273,1084.2344) || IsPlayerInRangeOfPoint(playerid,6.0,1557.1156,-1896.4205,869.0624))
- {// Madd Doggs Mansion & Triads Club
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 15.0, 1950.8726, 1017.5034, 992.4745) || IsPlayerInRangeOfPoint(playerid,6.0, 2537.5300,-1285.6221,1054.6406))
- { // ??? & Big Smoke House
- return 1;
- }
- }
- return 0;
- }
- public IsAtATM(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,1008.0930,-929.5586,42.3281) || IsPlayerInRangeOfPoint(playerid,2.0,2227.61,-1710.96,13.59) || IsPlayerInRangeOfPoint(playerid,2.0,1929.5021,-1783.4802,13.5469) || IsPlayerInRangeOfPoint(playerid,4.0,1464.8420,-988.7259,1402.7000))
- {//vinwood station & other in gym
- return 1;
- }
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(IsPlayerNPC(playerid))
- {
- printf("OnDialogResponse: BotKick: %d", playerid);
- return 1;
- }
- if(dialogid == 9974 && response)
- {
- new bizid = BizEditID[playerid];
- new Interior;
- new Float:X, Float:Y, Float:Z;
- switch(listitem)
- {
- case 0:
- {
- X = 1456.27;
- Y = -1000.79;
- Z = 1402.70;
- Interior = 1;
- }
- case 1:
- {
- X = 386.27;
- Y = 173.65;
- Z = 1008.38;
- Interior = 3;
- }
- case 2:
- {
- X = 246.82;
- Y = 62.32;
- Z = 1003.64;
- Interior = 6;
- }
- case 3:
- {
- X = 1241.31;
- Y = -773.69;
- Z = 1084.01;
- Interior = 5;
- }
- case 4:
- {
- X = 318.57;
- Y = 1114.48;
- Z = 1083.88;
- Interior = 5;
- }
- case 5:
- {
- X = 2352.94;
- Y = -1180.93;
- Z = 1027.98;
- Interior = 5;
- }
- case 6:
- {
- X = -25.94;
- Y = -141.56;
- Z = 1003.55;
- Interior = 16;
- }
- case 7:
- {
- X = 285.47;
- Y = -41.80;
- Z = 1001.52;
- Interior = 1;
- }
- case 8:
- {
- X = 285.85;
- Y = -86.78;
- Z = 1001.52;
- Interior = 4;
- }
- case 9:
- {
- X = 296.86;
- Y = -112.07;
- Z = 1001.52;
- Interior = 6;
- }
- case 10:
- {
- X = 315.78;
- Y = -143.66;
- Z = 999.60;
- Interior = 7;
- }
- case 11:
- {
- X = 316.37;
- Y = -170.30;
- Z = 999.59;
- Interior = 6;
- }
- case 12:
- {
- X = 207.66;
- Y = -111.26;
- Z = 1005.13;
- Interior = 15;
- }
- case 13:
- {
- X = 204.22;
- Y = -168.86;
- Z = 1000.52;
- Interior = 14;
- }
- case 14:
- {
- X = 206.99;
- Y = -140.38;
- Z = 1003.51;
- Interior = 3;
- }
- case 15:
- {
- X = 203.77;
- Y = -50.66;
- Z = 1001.80;
- Interior = 1;
- }
- case 16:
- {
- X = 227.56;
- Y = -8.10;
- Z = 1002.21;
- Interior = 5;
- }
- case 17:
- {
- X = 161.40;
- Y = -97.11;
- Z = 1001.80;
- Interior = 18;
- }
- case 18:
- {
- X = 493.40;
- Y = -24.88;
- Z = 1000.68;
- Interior = 17;
- }
- case 19:
- {
- X = 501.93;
- Y = -67.56;
- Z = 998.76;
- Interior = 11;
- }
- case 20:
- {
- X = 460.56;
- Y = -88.67;
- Z = 999.55;
- Interior = 4;
- }
- case 21:
- {
- X = -2240.468505;
- Y = 137.060440;
- Z = 1035.414062;
- Interior = 6;
- }
- case 22:
- {
- X = -2158.64;
- Y = 643.14;
- Z = 1052.38;
- Interior = 1;
- }
- case 23:
- {
- X = 2496.049804;
- Y = -1695.238159;
- Z = 1014.742187;
- Interior = 3;
- }
- case 24:
- {
- X = 513.882507;
- Y = -11.269994;
- Z = 1001.565307;
- Interior = 3;
- }
- }
- new vw = 1000 + random(199999999999999999);
- BizInfo[bizid][bIntLocationx] = X;
- BizInfo[bizid][bIntLocationy] = Y;
- BizInfo[bizid][bIntLocationz] = Z;
- BizInfo[bizid][bInterior] = Interior;
- BizInfo[bizid][bVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this business interior.");
- }
- if(dialogid == 9973 && response)
- {
- new houseid = HouseEditID[playerid];
- new interior;
- new Float:X, Float:Y, Float:Z;
- switch(listitem)
- {
- case 0:
- {
- X = -2170.30;
- Y = 639.41;
- Z = 1052.38;
- interior = 1;
- }
- case 1:
- {
- X = 2495.98;
- Y = -1692.08;
- Z = 1014.74;
- interior = 3;
- }
- case 2:
- {
- X = 1260.65;
- Y = -785.40;
- Z = 1091.91;
- interior = 5;
- }
- case 3:
- {
- X = 2548.80;
- Y = -1294.69;
- Z = 1060.98;
- interior = 2;
- }
- case 4:
- {
- X = 2468.84;
- Y = -1698.32;
- Z = 1013.51;
- interior = 2;
- }
- case 5:
- {
- X = 2807.61;
- Y = -1174.76;
- Z = 1025.57;
- interior = 8;
- }
- case 6:
- {
- X = 235.26;
- Y = 1186.68;
- Z = 1080.26;
- interior = 3;
- }
- case 7:
- {
- X = 226.79;
- Y = 1239.96;
- Z = 1082.14;
- interior = 2;
- }
- case 8:
- {
- X = 223.05;
- Y = 1287.08;
- Z = 1082.14;
- interior = 1;
- }case 9:
- {
- X = 250.83;
- Y = 1034.96;
- Z = 1084.73;
- interior = 7;
- }
- case 10:
- {
- X = 295.08;
- Y = 1472.26;
- Z = 1080.26;
- interior = 15;
- }
- case 11:
- {
- X = 327.91;
- Y = 1477.72;
- Z = 1084.44;
- interior = 15;
- }
- case 12:
- {
- X = 387.23;
- Y = 1471.74;
- Z = 1080.19;
- interior = 7;
- }
- case 13:
- {
- X = 2262.83;
- Y = -1210.46;
- Z = 1049.03;
- interior = 10;
- }
- case 14:
- {
- X = 2259.38;
- Y = -1135.92;
- Z = 1050.64;
- interior = 10;
- }
- case 15:
- {
- X = 2365.24;
- Y = -1135.60;
- Z = 1050.88;
- interior = 8;
- }
- }
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = X;
- HouseInfo[houseid][hIntLocationy] = Y;
- HouseInfo[houseid][hIntLocationz] = Z;
- HouseInfo[houseid][hInterior] = interior;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have changed this house interior.");
- }
- if(dialogid == 9012 && response)
- {
- new carid = GetPlayerVehicleID(playerid);
- if(IsValidObject(ObjectSelect[carid][0]) || IsValidObject(ObjectSelect[carid][1]))
- {
- DestroyObject(ObjectSelect[carid][0]);
- DestroyObject(ObjectSelect[carid][1]);
- }
- switch(listitem)
- {
- case 0:CarInfo[carid][NeonObject]=18648;
- case 1:CarInfo[carid][NeonObject]=18647;
- case 2:CarInfo[carid][NeonObject]=18649;
- case 3:CarInfo[carid][NeonObject]=18652;
- case 4:CarInfo[carid][NeonObject]=18651;
- case 5:CarInfo[carid][NeonObject]=18650;
- case 6:
- {
- if(!IsPlayerInVehicle(playerid, GetPlayerVehicleID(playerid)))
- return SendClientMessage(playerid, COLOR_GREY, "You have to be in a vehicle.");
- if(CarInfo[carid][Neon] == 1)
- {
- DestroyObject(ObjectSelect[carid][0]);
- DestroyObject(ObjectSelect[carid][1]);
- CarInfo[carid][Neon] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You removed neon from this vehicle.");
- return 1;
- }
- else
- return SendClientMessage(playerid, COLOR_GREY, "You have to be in a vehicle with neon.");
- }
- }
- ObjectSelect[carid][0] = CreateDynamicObject(CarInfo[carid][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
- ObjectSelect[carid][1] = CreateDynamicObject(CarInfo[carid][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(ObjectSelect[carid][0], carid, -0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(ObjectSelect[carid][1], carid, 0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
- CarInfo[carid][Neon] = 1;
- PlayerPlaySound(playerid, 1133, 0, 0, 0);
- PlayerInfo[playerid][pCash] -= 2500;
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]-2500);
- SendClientMessage(playerid, COLOR_WHITE, "Neons has been successfully installed on the vehicle!.");
- }
- if(dialogid == SIUMENU1)
- {
- if(listitem == 0) // Civilian Clothing
- {
- ShowPlayerDialog(playerid, SIUMENU2, DIALOG_STYLE_LIST, "Civilian Clothing","Slicker\nOld Man\nHobo\nSkater\nBaseball Player\nTexan\nIndian", "Dress", "Cancel");
- }
- if(listitem == 1) // Mafia Clothing
- {
- ShowPlayerDialog(playerid, SIUMENU3, DIALOG_STYLE_LIST, "Mafia Clothing", "Boss\nContracter\nHitman\nSmuggler\nImporter", "Dress", "Cancel");
- }
- if(listitem == 2) // Gang Clothing
- {
- ShowPlayerDialog(playerid, SIUMENU4, DIALOG_STYLE_LIST, "Gang Clothing", "Grove\nBalla\nBiker\nVato\nYakuza\nBlood\n1NATION", "Dress", "Cancel");
- }
- }
- if(dialogid == SIUMENU2)
- {
- if(listitem == 0)
- {
- SetPlayerSkin(playerid, 7);
- PlayerInfo[playerid][pModel] = 7;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 1)
- {
- SetPlayerSkin(playerid, 15);
- PlayerInfo[playerid][pModel] = 15;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 2)
- {
- SetPlayerSkin(playerid, 137);
- PlayerInfo[playerid][pModel] = 137;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 3)
- {
- SetPlayerSkin(playerid, 23);
- PlayerInfo[playerid][pModel] = 23;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 4)
- {
- SetPlayerSkin(playerid, 24);
- PlayerInfo[playerid][pModel] = 24;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 5)
- {
- SetPlayerSkin(playerid, 34);
- PlayerInfo[playerid][pModel] = 34;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 6)
- {
- SetPlayerSkin(playerid, 128);
- PlayerInfo[playerid][pModel] = 128;
- TogglePlayerControllable(playerid, 1);
- }
- }
- if(dialogid == SIUMENU3)
- {
- if(listitem == 0)
- {
- SetPlayerSkin(playerid, 113);
- PlayerInfo[playerid][pModel] = 113;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 1)
- {
- SetPlayerSkin(playerid, 127);
- PlayerInfo[playerid][pModel] = 127;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 2)
- {
- SetPlayerSkin(playerid, 125);
- PlayerInfo[playerid][pModel] = 125;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 3)
- {
- SetPlayerSkin(playerid, 112);
- PlayerInfo[playerid][pModel] = 112;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 4)
- {
- SetPlayerSkin(playerid, 111);
- PlayerInfo[playerid][pModel] = 111;
- TogglePlayerControllable(playerid, 1);
- }
- }
- if(dialogid == SIUMENU4)
- {
- if(listitem == 0)
- {
- SetPlayerSkin(playerid, 107);
- PlayerInfo[playerid][pModel] = 107;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 1)
- {
- SetPlayerSkin(playerid, 104);
- PlayerInfo[playerid][pModel] = 104;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 2)
- {
- SetPlayerSkin(playerid, 100);
- PlayerInfo[playerid][pModel] = 100;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 3)
- {
- SetPlayerSkin(playerid, 108);
- PlayerInfo[playerid][pModel] = 108;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 4)
- {
- SetPlayerSkin(playerid, 123);
- PlayerInfo[playerid][pModel] = 123;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 5)
- {
- SetPlayerSkin(playerid, 19);
- PlayerInfo[playerid][pModel] = 19;
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 6)
- {
- SetPlayerSkin(playerid, 21);
- PlayerInfo[playerid][pModel] = 21;
- TogglePlayerControllable(playerid, 1);
- }
- }
- if(dialogid == BUYCARDIALOG)
- {
- if(response)
- {
- new vehicle = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_RED, "* You have to be level 2 or higher to buy a vehicle.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < CarInfo[vehicle][tPrice])
- {
- SendClientMessage(playerid, COLOR_RED, "* You don't have enought money to buy this vehicle.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] <= 1 && PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0)
- {
- SendClientMessage(playerid, COLOR_RED, "* You already own 2 vehicles.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- new sendername[MAX_PLAYER_NAME];
- new price = CarInfo[vehicle][tPrice];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[playerid][pCash] -= price;
- GivePlayerMoney(playerid,-price);
- if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0)
- {
- PlayerInfo[playerid][pCarKey1] = GetPlayerVehicleID(playerid);
- }
- else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0)
- {
- PlayerInfo[playerid][pCarKey2] = GetPlayerVehicleID(playerid);
- }
- else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] == 0)
- {
- PlayerInfo[playerid][pCarKey3] = GetPlayerVehicleID(playerid);
- }
- else if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] != 0)
- {
- PlayerInfo[playerid][pCarKey1] = GetPlayerVehicleID(playerid);
- }
- else if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] != 0)
- {
- PlayerInfo[playerid][pCarKey1] = GetPlayerVehicleID(playerid);
- }
- else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] != 0)
- {
- PlayerInfo[playerid][pCarKey2] = GetPlayerVehicleID(playerid);
- }
- CarInfo[vehicle][tOwned] = 1;
- strmid(CarInfo[vehicle][tOwner], sendername, 0, strlen(sendername), 255);
- DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
- SendClientMessage(playerid,COLOR_YELLOW, "You have bought this car !");
- SendClientMessage(playerid,COLOR_YELLOW, "Use /carhelp to see the commands.");
- return 1;
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- }
- if(dialogid == 5353)
- {
- if(response)
- {
- new vehicle = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pCash] < CarInfo[vehicle][tPrice])
- {
- SendClientMessage(playerid, COLOR_RED, "* You don't have enought money to buy this car.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(PlayerInfo[playerid][pCarKey1] != 0 || PlayerInfo[playerid][pCarKey2] != 0 || PlayerInfo[playerid][pCarKey3] != 0)
- {
- SendClientMessage(playerid, COLOR_RED, "* Can't rent while owning a vehicle.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(PlayerInfo[playerid][pRentKey] != 0)
- {
- SendClientMessage(playerid, COLOR_RED, "* You already rent a car.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- new sendername[MAX_PLAYER_NAME], string[128];
- new price = CarInfo[vehicle][tPrice];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[playerid][pCash] -= price;
- GivePlayerMoney(playerid,-price);
- CarInfo[vehicle][tOwned] = 1;
- PlayerInfo[playerid][pRentKey] = vehicle;
- strmid(CarInfo[vehicle][tOwner], sendername, 0, strlen(sendername), 255);
- format(string, sizeof(string), "LS-%d", Random(1000, 9999));
- strmid(CarInfo[vehicle][tLicensePlate], string, 0, strlen(string), 255);
- SetVehicleNumberPlate(vehicle, string);
- DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
- SendClientMessage(playerid,COLOR_YELLOW, "You've rented this car");
- SendClientMessage(playerid,COLOR_YELLOW, "Use /carrenthelp to see the commands.");
- return 1;
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- }
- if(dialogid == SKINMENU)
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(!IsNumeric(inputtext))
- {
- SendClientMessage(playerid, COLOR_GREY, "You must enter a number for the skin ID.");
- return 1;
- }
- if(strval(inputtext) < 0 || strval(inputtext) > 299) return SendClientMessage(playerid, COLOR_GREY, " Skin can't be below 0 or above 299.");
- if(!(strval(inputtext) >= 265 && strval(inputtext) <= 298))
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- SetPlayerSkin(playerid, strval(inputtext));
- PlayerInfo[playerid][pModel] = strval(inputtext);
- SendClientMessage(playerid, COLOR_YELLOW, "* You're new clothes have been purchased for $2,500.");
- PlayerInfo[playerid][pCash] -= 500;
- GivePlayerMoney(playerid, -500);
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford that!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** Restricted Skin!");
- return 1;
- }
- }
- }
- if(dialogid == 9387)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 800) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- GivePlayerWeapon(playerid, 4, 99999);
- GivePlayerMoney(playerid, -800);
- }
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- GivePlayerWeapon(playerid, 23, 99999);
- GivePlayerMoney(playerid, -1000);
- }
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- GivePlayerWeapon(playerid, 25, 99999);
- GivePlayerMoney(playerid, -1500);
- }
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- GivePlayerWeapon(playerid, 24, 99999);
- GivePlayerMoney(playerid, -5000);
- }
- }
- case 4:
- {
- if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- GivePlayerWeapon(playerid, 29, 99999);
- GivePlayerMoney(playerid, -2500);
- }
- }
- case 5:
- {
- if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- if(PlayerInfo[playerid][pRank] < 2) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
- {
- GivePlayerWeapon(playerid, 33, 99999);
- GivePlayerMoney(playerid, -3000);
- }
- }
- }
- case 6:
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- if(PlayerInfo[playerid][pRank] < 2) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
- {
- GivePlayerWeapon(playerid, 30, 99999);
- GivePlayerMoney(playerid, -10000);
- }
- }
- }
- case 7:
- {
- if(GetPlayerMoney(playerid) < 12000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- if(PlayerInfo[playerid][pRank] < 2) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
- {
- GivePlayerWeapon(playerid, 31, 99999);
- GivePlayerMoney(playerid, -12000);
- }
- }
- }
- case 8:
- {
- if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- if(PlayerInfo[playerid][pRank] < 2) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
- {
- SetPlayerArmour(playerid, 100);
- GivePlayerMoney(playerid, -3000);
- }
- }
- }
- case 9:
- {
- if(GetPlayerMoney(playerid) < 35000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
- {
- GivePlayerWeapon(playerid, 27, 99999);
- GivePlayerMoney(playerid, -35000);
- }
- }
- }
- case 10:
- {
- if(GetPlayerMoney(playerid) < 35000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
- {
- GivePlayerWeapon(playerid, 34, 99999);
- GivePlayerMoney(playerid, -35000);
- }
- }
- }
- case 11:
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
- {
- GivePlayerWeapon(playerid, 44, 99999);
- GivePlayerMoney(playerid, -2000);
- }
- }
- }
- case 12:
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
- {
- GivePlayerWeapon(playerid, 45, 99999);
- GivePlayerMoney(playerid, -2000);
- }
- }
- }
- case 13:
- {
- if(GetPlayerMoney(playerid) < 100000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
- {
- if(PlayerInfo[playerid][pRank] < 4) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 4 to purchase this!");
- {
- PlayerInfo[playerid][pBombs] += 1;
- GivePlayerMoney(playerid, -2000);
- }
- }
- }
- }
- if(PlayerInfo[playerid][pBlindfolds] > 3)
- {
- PlayerInfo[playerid][pBlindfolds] = 3;
- }
- if(PlayerInfo[playerid][pBombs] > 3)
- {
- PlayerInfo[playerid][pBombs] = 3;
- }
- }
- }
- if(dialogid == 1) //LOGIN
- {
- if(gPlayerLogged[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
- return 1;
- }
- if(response)
- {
- if(!strlen(inputtext))
- {
- DisplayDialogForPlayer(playerid, 1); //login
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password.");
- return 1;
- }
- if(strlen(inputtext) >= 50)
- {
- DisplayDialogForPlayer(playerid, 1); //login
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password is too long.");
- return 0;
- }
- new tmppass[64];
- new playername[MAX_PLAYER_NAME];
- strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
- GetPlayerName(playerid, playername, sizeof(playername));
- if(strlen(playername) == 3)
- {
- if(strcmp(playername, "Smo", true) == 0)
- {
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, that name is too short, please change it.");
- Kick(playerid);
- return 1;
- }
- }
- Encrypt(tmppass);
- OnPlayerLogin(playerid,tmppass,inputtext);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You chose to leave the server.");
- Kick(playerid);
- }
- }
- if(dialogid == 2) //REGISTER
- {
- if(gPlayerLogged[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
- return 1;
- }
- if(response)
- {
- if(strlen(inputtext) >= 50)
- {
- DisplayDialogForPlayer(playerid, 2); //register
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password is too long.");
- return 0;
- }
- new sendername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new namestring = strfind(sendername, "_", true);
- if(namestring == -1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Your name must be in the Firstname_Lastname format.");
- Kick(playerid);
- return 1;
- }
- else
- {
- if(!strlen(inputtext))
- {
- DisplayDialogForPlayer(playerid, 2); //register
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password.");
- return 1;
- }
- new string[128];
- format(string, sizeof(string), "%s.ini", sendername);
- // if(dini_Exists(string))
- if(fexist(string))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "That name is already taken, please choose a different one.");
- return 1;
- }
- new tmppass[64];
- strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
- Encrypt(tmppass);
- OnPlayerRegister(playerid,tmppass);
- OnPlayerLogin(playerid,tmppass,inputtext);
- gPlayerAccount[playerid] = 1;
- gPlayerSpawned[playerid] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you have been logged in automatically.");
- SendClientMessage(playerid, COLOR_YELLOW, "You have been automaticly refunded, thank you.");
- }
- }
- else
- {
- DisplayDialogForPlayer(playerid, 2); //register
- }
- }
- if(dialogid == 99)
- {
- if(response)
- {
- SetTimerEx("UseBM", 180*1000, 0,"i",playerid);
- SendClientMessage(playerid, COLOR_GREY, "You must wait 3 minutes before purchasing another weapon.");
- UseBMTimer[playerid] = 1;
- if(listitem == 0) // Deagle
- {
- if(PlayerInfo[playerid][pCash] < 15000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-15000;
- GivePlayerMoney(playerid,-15000);
- GivePlayerWeapon(playerid, 24, 999999);
- PlayerInfo[playerid][pGun2] = 24;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 1) // M4
- {
- if(PlayerInfo[playerid][pCash] < 30000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-30000;
- GivePlayerMoney(playerid,-30000);
- GivePlayerWeapon(playerid, 31, 999999);
- PlayerInfo[playerid][pGun5] = 31;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 2) // Spas12
- {
- if(PlayerInfo[playerid][pCash] < 90000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-90000;
- GivePlayerMoney(playerid,-90000);
- GivePlayerWeapon(playerid, 27, 999999);
- PlayerInfo[playerid][pGun3] = 27;
- TogglePlayerControllable(playerid,1);
- }
- }
- }
- }
- if(dialogid == 100)
- {
- if(response)
- {
- BMPurchased[playerid] += 1;
- if(BMPurchased[playerid] == 2) { SetTimerEx("UseBM", 180*1000, 0,"i",playerid); UseBMTimer[playerid] = 1; SendClientMessage(playerid, COLOR_GREY, "You must wait 3 minutes before purchasing another weapon."); }
- if(listitem == 0) // Deagle
- {
- if(PlayerInfo[playerid][pCash] < 12000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-12000;
- GivePlayerMoney(playerid,-12000);
- GivePlayerWeapon(playerid, 24, 999999);
- PlayerInfo[playerid][pGun2] = 24;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 1) // M4
- {
- if(PlayerInfo[playerid][pCash] < 20000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20000;
- GivePlayerMoney(playerid,-20000);
- GivePlayerWeapon(playerid, 31, 999999);
- PlayerInfo[playerid][pGun5] = 31;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 2) // Spas12
- {
- if(PlayerInfo[playerid][pCash] < 70000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-70000;
- GivePlayerMoney(playerid,-70000);
- GivePlayerWeapon(playerid, 27, 999999);
- PlayerInfo[playerid][pGun3] = 27;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 3) // Sniper
- {
- if(PlayerInfo[playerid][pCash] < 65000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-65000;
- GivePlayerMoney(playerid,-65000);
- GivePlayerWeapon(playerid, 34, 999999);
- PlayerInfo[playerid][pGun6] = 34;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 4) // Knife
- {
- if(PlayerInfo[playerid][pCash] < 500000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500000;
- GivePlayerMoney(playerid,-500000);
- GivePlayerWeapon(playerid, 4, 999999);
- PlayerInfo[playerid][pGun1] = 4;
- TogglePlayerControllable(playerid,1);
- }
- }
- }
- }
- if(dialogid == BINCODIALOG) //Binco
- {
- if(response)
- {
- if(listitem == 0) //Skin
- {
- ShowPlayerDialog(playerid, SKINMENU, DIALOG_STYLE_INPUT, "Clothing Select","Note: Buying a new skin will cost you $2,500\nPlease, enter the skin id you want to purchase:", "Buy", "Cancel");
- return 1;
- }
- if(listitem == 1) //Glasses
- {
- ShowPlayerDialog(playerid,BUYGLASSES,DIALOG_STYLE_LIST,"Glasses menu","Common Red ($200)\nCommon Orange ($200)\nCommon Green ($200)\nCommon Blue ($200)\nCommon Purple ($200)\nCommon Espiral ($200)\nCommon Black ($200)\nCommon Eyes ($200)\nCommon Xadrex ($200)\nCommon Transparent ($200)\nCommon XRayVision ($200)\nNext","Buy","Cancel"); //Glasses 1
- return 1;
- }
- if(listitem == 2) //Hats
- {
- ShowPlayerDialog(playerid,BUYHAT,DIALOG_STYLE_LIST,"Hats menu","Berret 1 ($500\nBerret 2 ($500)\nBerret 3 ($500)\nBerret 4 ($500)\nBerret 5 ($500)\nHat 1 ($500)\nHat 2 ($500)\nHat 3 ($500)\nHat 4 ($500)\nHat 5 ($500)\nHat 6 ($500)\nHat 7 ($500)\nNext","Buy","Cancel"); //Hats1
- return 1;
- }
- if(listitem == 3) //Bandana
- {
- ShowPlayerDialog(playerid,BUYBANDANA,DIALOG_STYLE_LIST,"Bandanas menu","Skull Bandana ($500)\nBlack & White Bandana ($250)\nGreen Bandana ($250)\nArmy Bandana ($300)\nPink Bandana ($250)\nTriangle Bandana ($250)\nBlack & Blue Bandana ($500)\nSpiral Bandana ($250)\nYellow Bandana ($250)\nTriangle Bandana 2 ($250)\n","Buy","Cancel"); //Bandanas
- return 1;
- }
- if(listitem == 4) //Mask
- {
- ShowPlayerDialog(playerid,BUYMASK,DIALOG_STYLE_LIST,"Mask menu","Zorro Mask ($1000)\nWhite Mask ($1000)\nRed Mask ($1000)\nGreen Mask ($1000)","Buy","Cancel"); //Mask
- return 1;
- }
- if(listitem == 5) //Helmet
- {
- ShowPlayerDialog(playerid,BUYHELMET,DIALOG_STYLE_LIST,"Helmet menu","Red & White Helmet ($1000)\nBlue & White Helmet ($850)\nRed Helmet ($700)\nBlue Helmet ($700)\nGreen Helmet ($700)","Buy","Cancel"); //Helmets
- return 1;
- }
- }
- }
- if(dialogid == BUYHAT) //Hats
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18921;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "* Your new hat has been purchased for $500. Use /hat to put it on.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
- }
- }
- if(listitem == 1) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18922;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "* Your new hat has been purchased for $500. Use /hat to put it on.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
- }
- }
- if(listitem == 2) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18923;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "* Your new hat has been purchased for $500. Use /hat to put it on.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
- }
- }
- if(listitem == 3) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18924;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "* Your new hat has been purchased for $500. Use /hat to put it on.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
- }
- }
- if(listitem == 4) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18925;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18926;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 6) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18927;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 7) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18928;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 8) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18929;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 9) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18930;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 10) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18931;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 11) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18932;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 12) //Next
- {
- ShowPlayerDialog(playerid,BUYHAT2,DIALOG_STYLE_LIST,"Hats menu","Hat 8 ($500)\nHat 9 ($500)\nHat 10 ($500)\nCap Back 1 ($500)\nCap Back 2 ($500)\nCap Back 3 ($500)\nCap Back 4 ($500)\nCap Back 5 ($500)\nHat Boater 1 ($500)\nHat Boater 2 ($500)\nHat Boater 3 ($500)\nHat Bowler 1 ($500)\nNext","Buy","Cancel"); //Hats2
- return 1;
- }
- }
- else // Back
- {
- ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
- return 1;
- }
- }
- if(dialogid == BUYHAT2) //Hats
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18933;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18934;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18935;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18939;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18940;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18941;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 6) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18942;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 7) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18943;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 8) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18944;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 9) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18945;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 10) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18946;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 11) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18947;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 12) //Next
- {
- ShowPlayerDialog(playerid,BUYHAT3,DIALOG_STYLE_LIST,"Hats menu","Hat Bowler 2 ($500)\nHat Bowler 3 ($500)\nHat Bowler 4 ($500)\nHat Bowler 5 ($500)\nBoxing Helmet ($500)\nBurgerShot Hat ($500)\nCowboy Hat ($500)\nCowboy Hat 2 ($500)\nCowboy Hat 3 ($500)\nCowboy Hat 4 ($500)\nCowboy Hat 5 ($500)","Buy","Cancel"); //Hats3
- return 1;
- }
- }
- else // Back
- {
- ShowPlayerDialog(playerid,BUYHAT,DIALOG_STYLE_LIST,"Hats menu","Berret 1 ($500\nBerret 2 ($500)\nBerret 3 ($500)\nBerret 4 ($500)\nBerret 5 ($500)\nHat 1 ($500)\nHat 2 ($500)\nHat 3 ($500)\nHat 4 ($500)\nHat 5 ($500)\nHat 6 ($500)\nHat 7 ($500)\nNext","Buy","Back"); //Hats1
- return 1;
- }
- }
- if(dialogid == BUYHAT3) //Hats
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18948;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18949;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18950;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18951;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18952;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 19094;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 6) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 19095;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 7) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 19096;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 8) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 19097;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 9) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 19098;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 10) //Hat
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pHat] = 18962;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- else // Back
- {
- ShowPlayerDialog(playerid,BUYHAT2,DIALOG_STYLE_LIST,"Hats menu","Hat 8 ($500)\nHat 9 ($500)\nHat 10 ($500)\nCap Back 1 ($500)\nCap Back 2 ($500)\nCap Back 3 ($500)\nCap Back 4 ($500)\nCap Back 5 ($500)\nHat Boater 1 ($500)\nHat Boater 2 ($500)\nHat Boater 3 ($500)\nHat Bowler 1 ($500)\nNext","Buy","Cancel"); //Hats2
- return 1;
- }
- }
- if(dialogid == BUYGLASSES) //Glasses
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Glass 1
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19006;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //Glasses2
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19007;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //Glasses3
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19008;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //Glasses4
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19009;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4) //Glasses5
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19010;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5) //Glasses6
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19011;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 6) //Glasses7
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19012;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 7) //Glasses8
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19013;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 8) //Glasses9
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19014;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 9) //Glasses10
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19015;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 10) //Glasses11
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19016;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 11) //Next
- {
- ShowPlayerDialog(playerid,BUYGLASSES2,DIALOG_STYLE_LIST,"Glasses menu","Square Yellow ($200)\nSquare Orange ($200)\nSquare Red ($200)\nSquare Blue ($200)\nSquare Green ($200)\nRayBan Gray ($300)\nRayBan Blue ($300)\nRayBan Purple ($300)\nRayBan Pink ($300)\nRayBan Red ($300)\nRayBan Orange ($300)\nNext","Buy","Back"); //Glasses 2
- return 1;
- }
- }
- else
- {
- ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
- return 1;
- }
- }
- if(dialogid == BUYGLASSES2) //Glasses
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Glasses12
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19017;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //Glasses13
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19018;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //Glasses14
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19019;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //Glasses15
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19020;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4) //Glasses16
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19021;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5) //Glasses17
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid,-300);
- PlayerInfo[playerid][pGlasses] = 19022;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 6) //Glasses18
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid,-300);
- PlayerInfo[playerid][pGlasses] = 19023;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 7) //Glasses19
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid,-300);
- PlayerInfo[playerid][pGlasses] = 19024;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 8) //Glasses20
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid,-300);
- PlayerInfo[playerid][pGlasses] = 19025;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 9) //Glasses21
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid,-300);
- PlayerInfo[playerid][pGlasses] = 19026;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 10) //Glasses22
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid,-300);
- PlayerInfo[playerid][pGlasses] = 19027;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 11) //Next
- {
- ShowPlayerDialog(playerid,BUYGLASSES3,DIALOG_STYLE_LIST,"Glasses menu","RayBan Yellow ($300)\nRayBan Green ($300)\nCircular Normal ($200)\nCircular Yellow ($200)\nCircular Red ($200)\nCircular Black ($200)\nCircular Xadrex ($200)\nCircular Thunders ($200)\nBlack Cop glasses ($500)\nRed Cop glasses ($500)\nBlue Cop glasses ($500)","Buy","Back"); //Glasses 3
- return 1;
- }
- }
- else
- {
- ShowPlayerDialog(playerid,BUYGLASSES,DIALOG_STYLE_LIST,"Glasses menu","Common Red ($200)\nCommon Orange ($200)\nCommon Green ($200)\nCommon Blue ($200)\nCommon Purple ($200)\nCommon Espiral ($200)\nCommon Black ($200)\nCommon Eyes ($200)\nCommon Xadrex ($200)\nCommon Transparent ($200)\nCommon XRayVision ($200)\nNext","Buy","Cancel"); //Glasses 1
- return 1;
- }
- }
- if(dialogid == BUYGLASSES3) //Glasses
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Glasses23
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid,-300);
- PlayerInfo[playerid][pGlasses] = 19028;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //Glasses24
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid,-300);
- PlayerInfo[playerid][pGlasses] = 19029;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //Glasses25
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19030;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //Glasses26
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19031;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4) //Glasses27
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19032;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5) //Glasses28
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19033;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 6) //Glasses29
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19034;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 7) //Glasses30
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- PlayerInfo[playerid][pGlasses] = 19035;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 8) //Glasses31
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pGlasses] = 19138;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $500. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 9) //Glasses32
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pGlasses] = 19139;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $500. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 10) //Glasses33
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pGlasses] = 19140;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $500. Use /glasses to put them on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- else
- {
- ShowPlayerDialog(playerid,BUYGLASSES2,DIALOG_STYLE_LIST,"Glasses menu","Square Yellow ($200)\nSquare Orange ($200)\nSquare Red ($200)\nSquare Blue ($200)\nSquare Green ($200)\nRayBan Gray ($300)\nRayBan Blue ($300)\nRayBan Purple ($300)\nRayBan Pink ($300)\nRayBan Red ($300)\nRayBan Orange ($300)\nNext","Buy","Back"); //Glasses 2
- return 1;
- }
- }
- if(dialogid == BUYBANDANA) //Bandana
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pBandana] = 18911;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $500. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 249)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
- GivePlayerMoney(playerid,-250);
- PlayerInfo[playerid][pBandana] = 18912;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 250;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 249)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
- GivePlayerMoney(playerid,-250);
- PlayerInfo[playerid][pBandana] = 18913;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 250;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid,-300);
- PlayerInfo[playerid][pBandana] = 18914;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $300. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 249)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
- GivePlayerMoney(playerid,-250);
- PlayerInfo[playerid][pBandana] = 18915;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 250;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 249)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
- GivePlayerMoney(playerid,-250);
- PlayerInfo[playerid][pBandana] = 18916;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 250;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 6) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pBandana] = 18917;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $500. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 7) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 249)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
- GivePlayerMoney(playerid,-250);
- PlayerInfo[playerid][pBandana] = 18918;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 250;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 8) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 249)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
- GivePlayerMoney(playerid,-250);
- PlayerInfo[playerid][pBandana] = 18919;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 250;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 9) //Bandana
- {
- if(PlayerInfo[playerid][pCash] > 249)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
- GivePlayerMoney(playerid,-250);
- PlayerInfo[playerid][pBandana] = 18920;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 250;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- else
- {
- ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
- return 1;
- }
- }
- if(dialogid == BUYHELMET) //Helmet
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Helmet
- {
- if(PlayerInfo[playerid][pCash] > 999)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- PlayerInfo[playerid][pHelmet] = 18645;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $1000. Use /helmet to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //Helmet
- {
- if(PlayerInfo[playerid][pCash] > 849)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-850;
- GivePlayerMoney(playerid,-850);
- PlayerInfo[playerid][pHelmet] = 18976;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $750. Use /helmet to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 850;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //Helmet
- {
- if(PlayerInfo[playerid][pCash] > 699)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
- GivePlayerMoney(playerid,-700);
- PlayerInfo[playerid][pHelmet] = 18977;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $700. Use /helmet to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 700;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //Helmet
- {
- if(PlayerInfo[playerid][pCash] > 699)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
- GivePlayerMoney(playerid,-700);
- PlayerInfo[playerid][pHelmet] = 18978;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $700. Use /helmet to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 700;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4) //Helmet
- {
- if(PlayerInfo[playerid][pCash] > 699)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
- GivePlayerMoney(playerid,-700);
- PlayerInfo[playerid][pHelmet] = 18979;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $700. Use /helmet to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 700;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- else
- {
- ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
- return 1;
- }
- }
- if(dialogid == BUYMASK) //Mask
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Mask
- {
- if(PlayerInfo[playerid][pCash] > 999)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- PlayerInfo[playerid][pCMask] = 18974;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new mask has been purchased for $1000. Use /fmask to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //Mask
- {
- if(PlayerInfo[playerid][pCash] > 999)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- PlayerInfo[playerid][pCMask] = 19036;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new mask has been purchased for $1000. Use /fmask to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //Mask
- {
- if(PlayerInfo[playerid][pCash] > 999)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- PlayerInfo[playerid][pCMask] = 19037;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new mask has been purchased for $1000. Use /fmask to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //Mask
- {
- if(PlayerInfo[playerid][pCash] > 999)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- PlayerInfo[playerid][pCMask] = 19038;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_YELLOW, "** Your new mask has been purchased for $1000. Use /fmask to put it on");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- else
- {
- ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
- return 1;
- }
- }
- if(dialogid == TRUNKPUTSTUFF) //Trunk put stuff
- {
- if(response)
- {
- if(listitem == 0) //Put gun
- {
- ShowPlayerDialog(playerid,TRUNKPUTGUN,DIALOG_STYLE_LIST,"Put a gun in this trunk","Slot 1\nSlot 2","Put","Cancel"); //Trunk put gun
- return 1;
- }
- if(listitem == 1) //Put armor
- {
- new counter = 0;
- new result;
- new plyName[MAX_PLAYER_NAME];
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- return 1;
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't open the trunk while you're in the car.");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have a trunk.");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the trunk first.");
- return 1;
- }
- GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
- if(PlayerInfo[playerid][pArmor] != 0)
- {
- CarInfo[result][tArmor] = PlayerInfo[playerid][pArmor];
- SetPlayerArmour(playerid, 0);
- PlayerInfo[playerid][pArmor] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts a vest in the trunk.", sendername);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s puts a vest in vehicle %d.", ip, day, month, year,PlayerName(playerid), result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You haven't got any armour.");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, "Found more then one car in range.");
- return 1;
- }
- }
- return 1;
- }
- if(listitem == 2) //Put crack
- {
- ShowPlayerDialog(playerid,TRUNKPUTCRACK,DIALOG_STYLE_INPUT,"Put crack","How many grams of crack do you want to put ?","Put","Cancel"); //Trunk put crack
- }
- if(listitem == 3) //Put pot
- {
- ShowPlayerDialog(playerid,TRUNKPUTPOT,DIALOG_STYLE_INPUT,"Put pot","How many grams of pot do you want to put ?","Put","Cancel"); //Trunk put pot
- }
- }
- }
- if(dialogid == TRUNKPUTGUN) //Trunk put gun
- {
- if(response)
- {
- if(listitem == 0) //Put gun 1
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- }
- case 1:
- {
- if(CarInfo[result][tGun1] == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- new buffer[512];
- new gunname[100];
- new gunID = GetPlayerWeapon(playerid);
- if(gunID != 0)
- {
- if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
- if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
- if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
- GetWeaponName(gunID, gunname, sizeof(gunname));
- CarInfo[result][tGun1] = gunID;
- format(buffer, sizeof(buffer), "You have put your %s in the car's trunk.", gunname);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- RemovePlayerWeapon(playerid, gunID);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts a %s in the trunk.", sendername, gunname);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s puts a %s in vehicle %d.", ip, day, month, year,PlayerName(playerid), gunname, result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- if(listitem == 1) //Put gun 2
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- }
- case 1:
- {
- if(CarInfo[result][tGun2] == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- new buffer[512];
- new gunname[100];
- new gunID = GetPlayerWeapon(playerid);
- if(gunID != 0)
- {
- if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
- if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
- if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
- GetWeaponName(gunID, gunname, sizeof(gunname));
- CarInfo[result][tGun2] = gunID;
- format(buffer, sizeof(buffer), "You have put your %s in the car's trunk.", gunname);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- RemovePlayerWeapon(playerid, gunID);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts a %s in the trunk.", sendername, gunname);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s puts a %s in vehicle %d.", ip, day, month, year,PlayerName(playerid), gunname, result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- }
- }
- if(dialogid == TRUNKTAKEGUN) //Trunk take gun
- {
- if(response)
- {
- if(listitem == 0) //Take gun 1
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- return 1;
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- if(CarInfo[result][tGun1] != 0)
- {
- new buffer[512];
- new gunName[100];
- GivePlayerGun(playerid, CarInfo[result][tGun1]);
- GetWeaponName(CarInfo[result][tGun1], gunName, sizeof(gunName));
- format(buffer, sizeof(buffer), "You've taken a %s from the vehicle.", gunName);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- CarInfo[result][tGun1] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s takes a %s from the trunk.", sendername, gunName);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes a %s from vehicle %d.", ip, day, month, year,PlayerName(playerid), gunName, result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- if(listitem == 1) //Take gun 2
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- return 1;
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- if(CarInfo[result][tGun2] != 0)
- {
- new buffer[512];
- new gunName[100];
- GivePlayerGun(playerid, CarInfo[result][tGun2]);
- GetWeaponName(CarInfo[result][tGun2], gunName, sizeof(gunName));
- format(buffer, sizeof(buffer), "You've taken a %s from the vehicle.", gunName);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- CarInfo[result][tGun2] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s takes a %s from the trunk.", sendername, gunName);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes a %s from vehicle %d.", ip, day, month, year,PlayerName(playerid), gunName, result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- }
- }
- if(dialogid == TRUNKTAKESTUFF) //Trunk take stuff
- {
- if(response)
- {
- if(listitem == 0) //Take gun
- {
- ShowPlayerDialog(playerid,TRUNKTAKEGUN,DIALOG_STYLE_LIST,"Take a gun from this trunk","Slot 1\nSlot 2","Take","Cancel"); //Trunk put gun
- return 1;
- }
- if(listitem == 1) //Take armor
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- return 1;
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- if(CarInfo[result][tArmor] != 0)
- {
- SetPlayerArmour(playerid, CarInfo[result][tArmor]);
- PlayerInfo[playerid][pArmor] = CarInfo[result][tArmor];
- CarInfo[result][tArmor] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s takes a vest from the trunk.", sendername);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes a vest from vehicle %d.", ip, day, month, year,PlayerName(playerid), result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This trunk haven't got any vest inside ");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- if(listitem == 2) //Take crack
- {
- ShowPlayerDialog(playerid,TRUNKTAKECRACK,DIALOG_STYLE_INPUT,"Take crack","How many grams of crack do you want to take ?","Take","Cancel"); //Trunk take crack
- }
- if(listitem == 3) //Take pot
- {
- ShowPlayerDialog(playerid,TRUNKTAKEPOT,DIALOG_STYLE_INPUT,"Take pot","How many grams of pot do you want to take ?","Take","Cancel"); //Trunk take pot
- }
- }
- }
- if(dialogid == TRUNKTAKECRACK) //Take Crack
- {
- if(response)
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new crack = strval(inputtext);
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- return 1;
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- new pcrack = PlayerInfo[playerid][pCrack];
- new calc = crack+pcrack;
- if(calc > 25)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't have that much crack on you");
- return 1;
- }
- if(crack > CarInfo[result][tCrack])
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have that much in the trunk");
- return 1;
- }
- if(CarInfo[result][tCrack] != 0)
- {
- PlayerInfo[playerid][pCrack] += crack;
- CarInfo[result][tCrack] -= crack;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s takes some crack from the trunk.", sendername);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes %d crack from vehicle %d.", ip, day, month, year,PlayerName(playerid), crack, result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This trunk haven't got any crack inside ");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == TRUNKPUTPOT) //Put Pot
- {
- if(response)
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new pot = strval(inputtext);
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- return 1;
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- new tpot = CarInfo[result][tPot];
- new calc = pot+tpot;
- if(calc > 500)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't have that much pot in your trunk");
- return 1;
- }
- if(pot > PlayerInfo[playerid][pPot])
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have that much on you");
- return 1;
- }
- if(PlayerInfo[playerid][pPot] != 0)
- {
- PlayerInfo[playerid][pPot] -= pot;
- CarInfo[result][tPot] += pot;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts some pot in the trunk.", sendername);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s puts %d pot in vehicle %d.", ip, day, month, year,PlayerName(playerid), pot, result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any pot on you.");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, "Found more then one car in range.");
- return 1;
- }
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == TRUNKPUTCRACK) //Put Crack
- {
- if(response)
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new crack = strval(inputtext);
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- return 1;
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- new tcrack = CarInfo[result][tCrack];
- new calc = crack+tcrack;
- if(calc > 500)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't have that much crack in your trunk");
- return 1;
- }
- if(crack > PlayerInfo[playerid][pCrack])
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have that much on you");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] != 0)
- {
- PlayerInfo[playerid][pCrack] -= crack;
- CarInfo[result][tCrack] += crack;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts some crack in the trunk.", sendername);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "* %s [%d/%d/%d] %s puts %d crack in vehicle %d.", ip, day, month, year,PlayerName(playerid), crack, result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any crack on you.");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, "Found more then one car in range.");
- return 1;
- }
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == TRUNKTAKEPOT) //Take pot
- {
- if(response)
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new pot = strval(inputtext);
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- return 1;
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- new ppot = PlayerInfo[playerid][pPot];
- new calc = pot+ppot;
- if(calc > 50)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't have that much pot on you");
- return 1;
- }
- if(pot > CarInfo[result][tPot])
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have that much in the trunk");
- return 1;
- }
- if(CarInfo[result][tPot] != 0)
- {
- PlayerInfo[playerid][pPot] += pot;
- CarInfo[result][tPot] -= pot;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s takes some pot from the trunk.", sendername);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes %d pot from vehicle %d.", ip, day, month, year,PlayerName(playerid), pot, result);
- TrunkLog(logstring);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This trunk haven't got any pot inside ");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == TRUNKDIALOG) //Trunk
- {
- if(response)
- {
- if(listitem == 0) //Open / Close
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk from a passenger seat");
- return 1;
- }
- if(GetPlayerState(playerid) == 2 && CarInfo[result][tVehRemote] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " This car doesn't have a remote for the trunk");
- return 1;
- }
- if(CarInfo[result][tLock] == 1)
- {
- SendClientMessage(playerid, COLOR_RED, "This trunk is locked");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] == 0)
- {
- GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
- CarInfo[result][tTrunkOpened] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "Trunk {2F991A}open!");
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has opened the trunk.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(CarInfo[result][tTrunkOpened] == 1)
- {
- GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
- CarInfo[result][tTrunkOpened] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Trunk {E31919}closed!");
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has closed the trunk.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- if(listitem == 1) //Check
- {
- new counter = 0;
- new result;
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
- return 1;
- }
- if(CarInfo[result][tTrunkOpened] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
- return 1;
- }
- new gunname1[64];
- if(CarInfo[result][tGun1] != 0)
- {
- GetWeaponName(CarInfo[result][tGun1], gunname1, sizeof(gunname1));
- }
- else { gunname1 = "Empty"; }
- new gunname2[64];
- if(CarInfo[result][tGun2] != 0)
- {
- GetWeaponName(CarInfo[result][tGun2], gunname2, sizeof(gunname2));
- }
- else { gunname2 = "Empty"; }
- new coordsstring[128];
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- format(coordsstring, sizeof(coordsstring),"Gun Slot 1: %s",gunname1);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);
- format(coordsstring, sizeof(coordsstring),"Gun Slot 2: %s",gunname2);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);
- format(coordsstring, sizeof(coordsstring),"Armor: %f",CarInfo[result][tArmor]);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);
- format(coordsstring, sizeof(coordsstring),"Crack: %d",CarInfo[result][tCrack]);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);
- format(coordsstring, sizeof(coordsstring),"Pot: %d",CarInfo[result][tPot]);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s looks inside the trunk and checks it.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- if(listitem == 2) //Put stuff
- {
- ShowPlayerDialog(playerid,TRUNKPUTSTUFF,DIALOG_STYLE_LIST,"Put a gun in this trunk","Put gun\nPut vest\nPut crack\nPut pot","Put","Cancel"); //Trunk put stuff
- }
- if(listitem == 3) //Take stuff
- {
- ShowPlayerDialog(playerid,TRUNKTAKESTUFF,DIALOG_STYLE_LIST,"Take a gun from this trunk","Take gun\nTake vest\nTake crack\nTake pot","Take","Cancel"); //Trunk take stuff
- }
- }
- }
- if(dialogid == CARTRACK) //Car menu
- {
- if(response)
- {
- if(listitem == 0) //Car1
- {
- if(PlayerInfo[playerid][pCarKey1] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot.");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pCarKey1];
- new Float:cX, Float:cY, Float:cZ;
- GetVehiclePos(car, cX, cY, cZ);
- if(CarInfo[car][tGPS] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have a GPS.");
- return 1;
- }
- SetPlayerCheckpoint(playerid, cX, cY, cZ, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
- SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle last position was marked on your GPS");
- return 1;
- }
- }
- if(listitem == 1) //Car2
- {
- if(PlayerInfo[playerid][pCarKey2] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot.");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pCarKey2];
- new Float:cX, Float:cY, Float:cZ;
- GetVehiclePos(car, cX, cY, cZ);
- if(CarInfo[car][tGPS] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have a GPS");
- return 1;
- }
- SetPlayerCheckpoint(playerid, cX, cY, cZ, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
- SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle last position was marked on your GPS");
- return 1;
- }
- }
- if(listitem == 2) //Car3
- {
- if(PlayerInfo[playerid][pCarKey3] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pCarKey3];
- new Float:cX, Float:cY, Float:cZ;
- GetVehiclePos(car, cX, cY, cZ);
- if(CarInfo[car][tGPS] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have a GPS");
- return 1;
- }
- SetPlayerCheckpoint(playerid, cX, cY, cZ, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
- SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle last position was marked on your GPS");
- return 1;
- }
- }
- if(listitem == 3) //RentCar
- {
- if(PlayerInfo[playerid][pRentKey] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pRentKey];
- new Float:cX, Float:cY, Float:cZ;
- GetVehiclePos(car, cX, cY, cZ);
- SetPlayerCheckpoint(playerid, cX, cY, cZ, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
- SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle last position was marked on your GPS");
- return 1;
- }
- }
- }
- }
- if(dialogid == DEALERSHIPDIALOG) //Dealerships
- {
- if(response)
- {
- if(listitem == 0) //Sport
- {
- SetPlayerCheckpoint(playerid, 2127.5000,-1132.6759,25.5434, 4.0);
- SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
- return 1;
- }
- if(listitem == 1) //Boats
- {
- SetPlayerCheckpoint(playerid, 2908.0735,-1947.3708,1.7212, 4.0);
- SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
- return 1;
- }
- if(listitem == 2) //4x4
- {
- SetPlayerCheckpoint(playerid, 2511.2219,-1522.7043,23.8508, 4.0);
- SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
- return 1;
- }
- if(listitem == 3) //Faggio
- {
- SetPlayerCheckpoint(playerid, 459.4515,-1785.1748,5.5469, 4.0);
- SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
- return 1;
- }
- if(listitem == 4) //Planes
- {
- SetPlayerCheckpoint(playerid, 1993.3129,-2615.2002,13.5469, 4.0);
- SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
- return 1;
- }
- if(listitem == 5) //Lowriders
- {
- SetPlayerCheckpoint(playerid, 1791.1173,-1917.5496,13.3938, 4.0);
- SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
- return 1;
- }
- if(listitem == 6) //Low class
- {
- SetPlayerCheckpoint(playerid, 1658.8696,-1708.0525,20.4844, 4.0);
- SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
- return 1;
- }
- if(listitem == 7) //Car rental
- {
- SetPlayerCheckpoint(playerid, 899.27, -1664.34, 13.55, 4.0);
- SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
- return 1;
- }
- }
- }
- if(dialogid == CARDIALOG) //Car menu
- {
- if(response)
- {
- new vehicle = PlayerInfo[playerid][pCarKey1];
- new vehicle2 = PlayerInfo[playerid][pCarKey2];
- new vehicle3 = PlayerInfo[playerid][pCarKey3];
- new price = CarInfo[vehicle][tPrice];
- new price2 = CarInfo[vehicle2][tPrice];
- new price3 = CarInfo[vehicle2][tPrice];
- new alarm = price / 100 * 10;
- new alarm2 = price2 / 100 * 10;
- new alarm3 = price2 / 100 * 10;
- new gps = price / 100 * 15;
- new gps2 = price2 / 100 * 15;
- new gps3 = price3 / 100 * 15;
- new insurance;
- new insurance2;
- new insurance3;
- new remote;
- new remote2;
- new remote3;
- new licenseplate = price / 100 * 15;
- new licenseplate2 = price2 / 100 * 15;
- new licenseplate3 = price3 / 100 * 15;
- new towcar = price / 100 * 20; // 20 percent from the vehicle price
- new towcar2 = price2 / 100 * 20; // 20 percent from the vehicle price
- new towcar3 = price3 / 100 * 20; // 20 percent from the vehicle price
- new dkeys = price / 100; // 1 percent from the vehicle price
- new dkeys2 = price2 / 100; // 1 percent from the vehicle price
- new dkeys3 = price3 / 100; // 1 percent from the vehicle price
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { insurance = 0; }
- else { insurance = price / 100 * 25; }
- if(IsAPlane(vehicle2) || IsABike(vehicle2) || IsAHelicopter(vehicle2) || IsATrain(vehicle2) || IsABoat(vehicle2) || IsABus(vehicle2)) { insurance2 = 0; }
- else { insurance2 = price / 100 * 25; }
- if(IsAPlane(vehicle3) || IsABike(vehicle3) || IsAHelicopter(vehicle3) || IsATrain(vehicle3) || IsABoat(vehicle3) || IsABus(vehicle3)) { insurance3 = 0; }
- else { insurance3 = price / 100 * 25; }
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { remote = 0; }
- else { remote = price / 100 * 2; }
- if(IsAPlane(vehicle2) || IsABike(vehicle2) || IsAHelicopter(vehicle2) || IsATrain(vehicle2) || IsABoat(vehicle2) || IsABus(vehicle2)) { remote2 = 0; }
- else { remote2 = price / 100 * 2; }
- if(IsAPlane(vehicle3) || IsABike(vehicle3) || IsAHelicopter(vehicle3) || IsATrain(vehicle3) || IsABoat(vehicle3) || IsABus(vehicle3)) { remote3 = 0; }
- else { remote3 = price / 100 * 2; }
- if(listitem == 0) //Car1
- {
- if(PlayerInfo[playerid][pCarKey1] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new carlock = PlayerInfo[playerid][pCarKey1];
- new Float:cX, Float:cY, Float:cZ;
- GetVehiclePos(carlock, cX, cY, cZ);
- if(IsPlayerInRangeOfPoint(playerid, 4, cX, cY, cZ))
- {
- new carupgrade[256];
- format(carupgrade,sizeof(carupgrade),"Alarm ($%d)\nInsurance ($%d)\nCustom license plate ($%d)\nVehicle remote ($%d)\nGPS ($%d)\nTow services ($%d)\nDuplicate keys ($%d)",alarm,insurance,licenseplate,remote,gps,towcar,dkeys);
- ShowPlayerDialog(playerid,OWNCARUPGRADE,DIALOG_STYLE_LIST,"Upgrade your vehicle",carupgrade,"Upgrade","Cancel"); //
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
- return 1;
- }
- }
- }
- if(listitem == 1) //Car2
- {
- if(PlayerInfo[playerid][pCarKey2] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new carlock2 = PlayerInfo[playerid][pCarKey2];
- new Float:cX2, Float:cY2, Float:cZ2;
- GetVehiclePos(carlock2, cX2, cY2, cZ2);
- if(IsPlayerInRangeOfPoint(playerid, 10, cX2, cY2, cZ2))
- {
- new carupgrade2[256];
- format(carupgrade2,sizeof(carupgrade2),"Alarm ($%d)\nInsurance ($%d)\nCustom license plate ($%d)\nVehicle remote ($%d)\nGPS ($%d)\nTow services ($%d)\nDuplicate keys ($%d)",alarm2,insurance2,licenseplate2,remote2,gps2,towcar2,dkeys2);
- ShowPlayerDialog(playerid,OWNCARUPGRADE2,DIALOG_STYLE_LIST,"Upgrade your vehicle",carupgrade2,"Upgrade","Cancel"); //
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
- return 1;
- }
- }
- }
- if(listitem == 2) //Car3
- {
- if(PlayerInfo[playerid][pCarKey3] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new carlock3 = PlayerInfo[playerid][pCarKey3];
- new Float:cX3, Float:cY3, Float:cZ3;
- GetVehiclePos(carlock3, cX3, cY3, cZ3);
- if(IsPlayerInRangeOfPoint(playerid, 10, cX3, cY3, cZ3))
- {
- new carupgrade3[256];
- format(carupgrade3,sizeof(carupgrade3),"Alarm ($%d)\nInsurance ($%d)\nCustom license plate ($%d)\nVehicle remote ($%d)\nGPS ($%d)\nTow services ($%d)\nDuplicate keys ($%d)",alarm3,insurance3,licenseplate3,remote3,gps3,towcar3,dkeys3);
- ShowPlayerDialog(playerid,OWNCARUPGRADE3,DIALOG_STYLE_LIST,"Upgrade your vehicle",carupgrade3,"Upgrade","Cancel"); //
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
- return 1;
- }
- }
- }
- }
- }
- if(dialogid == GIVEKEYS) //Give Keys
- {
- if(response)
- {
- new string[128];
- if(listitem == 0) //Car1
- {
- if(PlayerInfo[playerid][pCarKey1] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pCarKey1];
- if(CarInfo[car][tDuplicateKeys] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have duplicate keys");
- return 1;
- }
- KeysID[playerid] = car;
- format(string, sizeof(string), "* You offered %s the keys of your %s.", PlayerName(KeysOfferTo[playerid]), GetVehicleFriendlyName(car));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has offered you the keys of his %s, (type /accept keys) to accept.", PlayerName(playerid), GetVehicleFriendlyName(car));
- SendClientMessage(KeysOfferTo[playerid], COLOR_LIGHTBLUE, string);
- return 1;
- }
- }
- if(listitem == 1) //Car2
- {
- if(PlayerInfo[playerid][pCarKey2] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pCarKey2];
- if(CarInfo[car][tDuplicateKeys] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have duplicate keys");
- return 1;
- }
- KeysID[playerid] = car;
- format(string, sizeof(string), "* You offered %s the keys of your %s.", PlayerName(KeysOfferTo[playerid]), GetVehicleFriendlyName(car));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has offered you the keys of his %s, (type /accept keys) to accept.", PlayerName(playerid), GetVehicleFriendlyName(car));
- SendClientMessage(KeysOfferTo[playerid], COLOR_LIGHTBLUE, string);
- return 1;
- }
- }
- if(listitem == 2) //Car3
- {
- if(PlayerInfo[playerid][pCarKey3] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pCarKey3];
- if(CarInfo[car][tDuplicateKeys] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have duplicate keys");
- return 1;
- }
- KeysID[playerid] = car;
- format(string, sizeof(string), "* You offered %s the keys of your %s.", PlayerName(KeysOfferTo[playerid]), GetVehicleFriendlyName(car));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has offered you the keys of his %s, (type /accept keys) to accept.", PlayerName(playerid), GetVehicleFriendlyName(car));
- SendClientMessage(KeysOfferTo[playerid], COLOR_LIGHTBLUE, string);
- return 1;
- }
- }
- }
- }
- if(dialogid == TOWCAR) //Tow car
- {
- if(response)
- {
- if(listitem == 0) //Car1
- {
- if(PlayerInfo[playerid][pCarKey1] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pCarKey1];
- if(CarInfo[car][tTowServices] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The tow services are not enabled for this vehicle");
- return 1;
- }
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if (IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == car)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle is currently in use");
- return 1;
- }
- }
- }
- SetTimerEx("TowVehicle", 150000, 0, "d", car);
- SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
- SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle is being towed where it was last parked, it will be there soon");
- return 1;
- }
- }
- if(listitem == 1) //Car2
- {
- if(PlayerInfo[playerid][pCarKey2] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pCarKey2];
- if(CarInfo[car][tTowServices] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The tow services are not enabled for this vehicle");
- return 1;
- }
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if (IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == car)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle is currently in use");
- return 1;
- }
- }
- }
- SetTimerEx("TowVehicle", 150000, 0, "d", car);
- SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
- SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle is being towed where it was last parked, it will be there soon");
- return 1;
- }
- }
- if(listitem == 2) //Car3
- {
- if(PlayerInfo[playerid][pCarKey3] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
- return 1;
- }
- else
- {
- new car = PlayerInfo[playerid][pCarKey3];
- if(CarInfo[car][tTowServices] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The tow services are not enabled for this vehicle");
- return 1;
- }
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if (IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == car)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle is currently in use");
- return 1;
- }
- }
- }
- SetTimerEx("TowVehicle", 150000, 0, "d", car);
- SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
- SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle is being towed where it was last parked, it will be there soon");
- return 1;
- }
- }
- }
- }
- if(dialogid == VEHINFO) // Veh info
- {
- if(response)
- {
- SendClientMessage(playerid, COLOR_WHITE,"Vehicle HELP: Type a command for more infomation");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /trunk /park /lockpick /carupgrade /sellcartomarket /sellcar /hood");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /trackcar /towcar /givekeys /clearmods /dealerships /engine /lights");
- return 1;
- }
- }
- if(dialogid == BUYLP) //LP
- {
- if(response)
- {
- for(new h = 1; h < sizeof(CarInfo); h++)
- {
- if(strcmp(inputtext, CarInfo[h][tLicensePlate], true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This license plate is already registered");
- return 1;
- }
- }
- if(strlen(inputtext) >= 9)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The plate number is too long.");
- return 0;
- }
- new vehicle = PlayerInfo[playerid][pCarKey1];
- new price = CarInfo[vehicle][tPrice];
- new licenseplate = price / 100 * 15;
- new lp[9];
- strmid(lp, inputtext, 0, strlen(inputtext), 255);
- PlayerInfo[playerid][pCash] -= licenseplate;
- GivePlayerMoney(playerid,-licenseplate);
- strmid(CarInfo[vehicle][tLicensePlate], lp, 0, strlen(lp), 9);
- SendClientMessage(playerid, COLOR_YELLOW, "You have ordered a new license plate for your vehicle");
- }
- return 1;
- }
- if(dialogid == BUYLP2) //LP2
- {
- if(response)
- {
- for(new h = 1; h < sizeof(CarInfo); h++)
- {
- if(strcmp(inputtext, CarInfo[h][tLicensePlate], true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This license plate is already registered");
- return 1;
- }
- }
- if(strlen(inputtext) >= 9)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The plate number is too long.");
- return 0;
- }
- new vehicle = PlayerInfo[playerid][pCarKey2];
- new price = CarInfo[vehicle][tPrice];
- new licenseplate = price / 100 * 15;
- new lp[9];
- strmid(lp, inputtext, 0, strlen(inputtext), 255);
- PlayerInfo[playerid][pCash] -= licenseplate;
- GivePlayerMoney(playerid,-licenseplate);
- strmid(CarInfo[vehicle][tLicensePlate], lp, 0, strlen(lp), 9);
- SendClientMessage(playerid, COLOR_YELLOW, "You have ordered a new license plate for your vehicle");
- }
- return 1;
- }
- if(dialogid == BUYLP3) //LP2
- {
- if(response)
- {
- for(new h = 1; h < sizeof(CarInfo); h++)
- {
- if(strcmp(inputtext, CarInfo[h][tLicensePlate], true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This license plate is already registered");
- return 1;
- }
- }
- if(strlen(inputtext) >= 9)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The plate number is too long.");
- return 0;
- }
- new vehicle = PlayerInfo[playerid][pCarKey3];
- new price = CarInfo[vehicle][tPrice];
- new licenseplate = price / 100 * 15;
- new lp[9];
- strmid(lp, inputtext, 0, strlen(inputtext), 255);
- PlayerInfo[playerid][pCash] -= licenseplate;
- GivePlayerMoney(playerid,-licenseplate);
- strmid(CarInfo[vehicle][tLicensePlate], lp, 0, strlen(lp), 9);
- SendClientMessage(playerid, COLOR_YELLOW, "You have ordered a new license plate for your vehicle");
- }
- return 1;
- }
- if(dialogid == OWNCARUPGRADE) //Car menu
- {
- if(response)
- {
- new vehicle = PlayerInfo[playerid][pCarKey1];
- new price = CarInfo[vehicle][tPrice];
- new alarm = price / 100 * 10;
- new insurance;
- new remote;
- new gps = price / 100 * 15;
- new licenseplate = price / 100 * 15;
- new towcar = price / 100 * 20;
- new dkeys = price / 100;
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { insurance = 0; }
- else { insurance = price / 100 * 25; }
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { remote = 0; }
- else { remote = price / 100 * 2; }
- if(listitem == 0) //Alarm
- {
- if(PlayerInfo[playerid][pCash] < alarm)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- if(CarInfo[vehicle][tAlarm] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= alarm;
- GivePlayerMoney(playerid,-alarm);
- CarInfo[vehicle][tAlarm] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have bought an alarm for your vehicle. This will let you know if someone is trying to jack your car");
- return 1;
- }
- if(listitem == 1) //Insurance
- {
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
- return 1;
- }
- if(CarInfo[vehicle][tInsured] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < insurance)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= insurance;
- GivePlayerMoney(playerid,-insurance);
- CarInfo[vehicle][tInsured] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have upgraded your vehicle insurance. Now all your stuff from the trunk will save when your car explodes");
- return 1;
- }
- if(listitem == 2) //Plate
- {
- if(PlayerInfo[playerid][pCash] < licenseplate)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- ShowPlayerDialog(playerid, BUYLP, DIALOG_STYLE_INPUT, "License Plate","Note: Your custom license plate can have maximum 8 characters\nPlease use only capital leters and numbers else an admin will edit it", "Buy", "Cancel");
- return 1;
- }
- if(listitem == 3) //Remote
- {
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
- return 1;
- }
- if(CarInfo[vehicle][tVehRemote] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < remote)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= remote;
- GivePlayerMoney(playerid,-remote);
- CarInfo[vehicle][tVehRemote] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have bought a remote for your vehicle. Now you can open the trunk or hood while you're inside the car");
- return 1;
- }
- if(listitem == 4) //GPS
- {
- if(CarInfo[vehicle][tGPS] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < gps)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade.");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= gps;
- GivePlayerMoney(playerid,-gps);
- CarInfo[vehicle][tGPS] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have bought a GPS for your vehicle. Now you can track your car anywhere ( /trackcar )");
- return 1;
- }
- if(listitem == 5) //Tow
- {
- if(CarInfo[vehicle][tTowServices] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < towcar)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade.");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= towcar;
- GivePlayerMoney(playerid,-towcar);
- CarInfo[vehicle][tTowServices] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have enabled the Tow Services for your vehicle. Now you can ask them to tow your vehicle anytime ( /towcar )");
- return 1;
- }
- if(listitem == 6) //Duplicate keys
- {
- if(CarInfo[vehicle][tDuplicateKeys] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < dkeys)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= dkeys;
- GivePlayerMoney(playerid,-dkeys);
- CarInfo[vehicle][tDuplicateKeys] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have purchased duplicate keys for your vehicle. Now you hand them to anyone ( /givekeys )");
- return 1;
- }
- }
- }
- if(dialogid == OWNCARUPGRADE2) //Car menu
- {
- if(response)
- {
- new vehicle = PlayerInfo[playerid][pCarKey2];
- new price = CarInfo[vehicle][tPrice];
- new alarm = price / 100 * 10;
- new insurance;
- new remote;
- new gps = price / 100 * 15;
- new licenseplate = price / 100 * 15;
- new towcar = price / 100 * 20;
- new dkeys = price / 100;
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { insurance = 0; }
- else { insurance = price / 100 * 25; }
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { remote = 0; }
- else { remote = price / 100 * 2; }
- if(listitem == 0) //Alarm
- {
- if(PlayerInfo[playerid][pCash] < alarm)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- if(CarInfo[vehicle][tAlarm] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= alarm;
- GivePlayerMoney(playerid,-alarm);
- CarInfo[vehicle][tAlarm] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have bought an alarm for your vehicle. This will let you know if someone is trying to jack your car");
- return 1;
- }
- if(listitem == 1) //Insurance
- {
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
- return 1;
- }
- if(CarInfo[vehicle][tInsured] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < insurance)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= insurance;
- GivePlayerMoney(playerid,-insurance);
- CarInfo[vehicle][tInsured] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have upgraded your vehicle insurance. Now all your stuff from the trunk will save when your car explodes");
- return 1;
- }
- if(listitem == 2) //Plate
- {
- if(PlayerInfo[playerid][pCash] < licenseplate)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- ShowPlayerDialog(playerid, BUYLP2, DIALOG_STYLE_INPUT, "License Plate","Note: Your custom license plate can have maximum 8 characters\nPlease use only capital leters and numbers else an admin will edit it", "Buy", "Cancel");
- return 1;
- }
- if(listitem == 3) //Remote
- {
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
- return 1;
- }
- if(CarInfo[vehicle][tVehRemote] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < remote)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= remote;
- GivePlayerMoney(playerid,-remote);
- CarInfo[vehicle][tVehRemote] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have bought a remote for your vehicle. Now you can open the trunk or hood while you're inside the car");
- return 1;
- }
- if(listitem == 4) //GPS
- {
- if(CarInfo[vehicle][tGPS] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < gps)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= gps;
- GivePlayerMoney(playerid,-gps);
- CarInfo[vehicle][tGPS] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have bought a GPS for your vehicle. Now you can track your car anywhere ( /cartrack )");
- return 1;
- }
- if(listitem == 5) //Tow
- {
- if(CarInfo[vehicle][tTowServices] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < towcar)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= towcar;
- GivePlayerMoney(playerid,-towcar);
- CarInfo[vehicle][tTowServices] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have enabled the Tow Services for your vehicle. Now you can ask them to tow your vehicle anytime ( /towcar )");
- return 1;
- }
- if(listitem == 6) //Duplicate keys
- {
- if(CarInfo[vehicle][tDuplicateKeys] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < dkeys)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= dkeys;
- GivePlayerMoney(playerid,-dkeys);
- CarInfo[vehicle][tDuplicateKeys] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have purchased duplicate keys for your vehicle. Now you hand them to anyone ( /givekeys )");
- return 1;
- }
- }
- }
- if(dialogid == OWNCARUPGRADE3) //Car menu
- {
- if(response)
- {
- new vehicle = PlayerInfo[playerid][pCarKey3];
- new price = CarInfo[vehicle][tPrice];
- new alarm = price / 100 * 10;
- new insurance;
- new remote;
- new gps = price / 100 * 15;
- new licenseplate = price / 100 * 15;
- new towcar = price / 100 * 20;
- new dkeys = price / 100;
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { insurance = 0; }
- else { insurance = price / 100 * 25; }
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { remote = 0; }
- else { remote = price / 100 * 2; }
- if(listitem == 0) //Alarm
- {
- if(PlayerInfo[playerid][pCash] < alarm)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- if(CarInfo[vehicle][tAlarm] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= alarm;
- GivePlayerMoney(playerid,-alarm);
- CarInfo[vehicle][tAlarm] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have bought an alarm for your vehicle. This will let you know if someone is trying to jack your car");
- return 1;
- }
- if(listitem == 1) //Insurance
- {
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
- return 1;
- }
- if(CarInfo[vehicle][tInsured] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < insurance)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= insurance;
- GivePlayerMoney(playerid,-insurance);
- CarInfo[vehicle][tInsured] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have upgraded your vehicle insurance. Now all your stuff from the trunk will save when your car explodes");
- return 1;
- }
- if(listitem == 2) //Plate
- {
- if(PlayerInfo[playerid][pCash] < licenseplate)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- ShowPlayerDialog(playerid, BUYLP3, DIALOG_STYLE_INPUT, "License Plate","Note: Your custom license plate can have maximum 8 characters\nPlease use only capital leters and numbers else an admin will edit it", "Buy", "Cancel");
- return 1;
- }
- if(listitem == 3) //Remote
- {
- if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
- return 1;
- }
- if(CarInfo[vehicle][tVehRemote] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < remote)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= remote;
- GivePlayerMoney(playerid,-remote);
- CarInfo[vehicle][tVehRemote] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have bought a remote for your vehicle. Now you can open the trunk or hood while you're inside the car");
- return 1;
- }
- if(listitem == 4) //GPS
- {
- if(CarInfo[vehicle][tGPS] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < gps)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= gps;
- GivePlayerMoney(playerid,-gps);
- CarInfo[vehicle][tGPS] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have bought a GPS for your vehicle. Now you can track your car anywhere ( /cartrack )");
- return 1;
- }
- if(listitem == 5) //Tow
- {
- if(CarInfo[vehicle][tTowServices] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < towcar)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= towcar;
- GivePlayerMoney(playerid,-towcar);
- CarInfo[vehicle][tTowServices] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have enabled the Tow Services for your vehicle. Now you can ask them to tow your vehicle anytime ( /towcar )");
- return 1;
- }
- if(listitem == 6) //Duplicate keys
- {
- if(CarInfo[vehicle][tDuplicateKeys] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < dkeys)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= dkeys;
- GivePlayerMoney(playerid,-dkeys);
- CarInfo[vehicle][tDuplicateKeys] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have purchased duplicate keys for your vehicle. Now you hand them to anyone ( /givekeys )");
- return 1;
- }
- }
- }
- if(dialogid == LOTTODIALOG) //Lotto
- {
- if(response)
- {
- new string[128];
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //1 chance
- {
- if(PlayerInfo[playerid][pCash] > 4999)
- {
- new randlotto = random(15);
- new randlotto2 = random(15);
- new randlotto3 = random(15);
- while(randlotto == 0) randlotto = random(15);
- while(randlotto2 == 0 || randlotto2 == randlotto) randlotto2 = random(15);
- while(randlotto3 == 0 || randlotto3 == randlotto2 || randlotto3 == randlotto) randlotto3 = random(15);
- PlayerInfo[playerid][pCash] -= 5000;
- GivePlayerMoney(playerid, -5000);
- PlayerInfo[playerid][pLottoNr] = randlotto;
- PlayerInfo[playerid][pLottoNr2] = randlotto2;
- PlayerInfo[playerid][pLottoNr3] = randlotto3;
- PlayerInfo[playerid][pPlayLotto] = biz;
- format(string, sizeof(string), "Ticket purchased. Your numbers are %d, %d and %d", randlotto, randlotto2, randlotto3);
- SendClientMessage(playerid, COLOR_GREEN, string);
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1250;
- BizInfo[biz][bNewLottoJackpot] += 3750;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //2 chances
- {
- if(PlayerInfo[playerid][pCash] > 14999)
- {
- new randlotto = random(15);
- new randlotto2 = random(15);
- new randlotto3 = random(15);
- while(randlotto == 0) randlotto = random(15);
- while(randlotto2 == 0 || randlotto2 == randlotto) randlotto2 = random(15);
- while(randlotto3 == 0 || randlotto3 == randlotto2 || randlotto3 == randlotto) randlotto3 = random(15);
- new randlotto4 = random(15);
- new randlotto5 = random(15);
- new randlotto6 = random(15);
- while(randlotto4 == 0) randlotto4 = random(15);
- while(randlotto5 == 0 || randlotto5 == randlotto4) randlotto5 = random(15);
- while(randlotto6 == 0 || randlotto6 == randlotto5 || randlotto6 == randlotto4) randlotto6 = random(15);
- PlayerInfo[playerid][pCash] -= 15000;
- GivePlayerMoney(playerid, -15000);
- PlayerInfo[playerid][pLottoNr] = randlotto;
- PlayerInfo[playerid][pLottoNr2] = randlotto2;
- PlayerInfo[playerid][pLottoNr3] = randlotto3;
- PlayerInfo[playerid][pLottoNr4] = randlotto4;
- PlayerInfo[playerid][pLottoNr5] = randlotto5;
- PlayerInfo[playerid][pLottoNr6] = randlotto6;
- PlayerInfo[playerid][pPlayLotto] = biz;
- format(string, sizeof(string), "Ticket purchased. Your numbers are %d, %d and %d", randlotto, randlotto2, randlotto3);
- SendClientMessage(playerid, COLOR_GREEN, string);
- format(string, sizeof(string), "Ticket purchased. Your numbers are %d, %d and %d", randlotto4, randlotto5, randlotto6);
- SendClientMessage(playerid, COLOR_GREEN, string);
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 3750;
- BizInfo[biz][bNewLottoJackpot] += 11250;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- }
- if(dialogid == suitcasediag) //Suitcase
- {
- if(response)
- {
- if(listitem == 0) // Check suitcase
- {
- new suitcash, suitcrack, suitpot, suitmats, string[512];
- suitcash = PlayerInfo[playerid][pSuitcasecash];
- suitcrack = PlayerInfo[playerid][pSuitcasecrack];
- suitpot = PlayerInfo[playerid][pSuitcasepot];
- suitmats = PlayerInfo[playerid][pSuitcasemats];
- format(string, sizeof(string), " {1DC7D3}Money: {FFFC00}$%d\n {1DC7D3}Crack: {FFFC00}%dg\n {1DC7D3}Pot: {FFFC00}%dg\n {1DC7D3}Materials: {FFFC00}%d", suitcash, suitcrack, suitpot, suitmats);
- ShowPlayerDialog(playerid,60,DIALOG_STYLE_MSGBOX ,"Suitcase information", string, "Close", "");
- }
- if(listitem == 1) // Take
- {
- ShowPlayerDialog(playerid,suitcasediag2,DIALOG_STYLE_LIST,"Suitcase","Money\nCrack\nPot\nMaterials","Select","Cancel"); //Suitcase
- Suitcaseaction[playerid] = 1; // Selected option is TAKE
- }
- if(listitem == 2) // Put
- {
- ShowPlayerDialog(playerid,suitcasediag2,DIALOG_STYLE_LIST,"Suitcase","Money\nCrack\nPot\nMaterials","Select","Cancel"); //Suitcase
- Suitcaseaction[playerid] = 2; // Selected option is PUT
- }
- if(listitem == 3) // Change password (Disabled)
- {
- return 1;
- }
- if(listitem == 4) // Lock (Disabled)
- {
- return 1;
- }
- return 1;
- }
- }
- if(dialogid == suitcasediag2) //Suitcase
- {
- if(response)
- {
- new suitcash, suitcrack, suitpot, suitmats, string[512];
- suitcash = PlayerInfo[playerid][pSuitcasecash];
- suitcrack = PlayerInfo[playerid][pSuitcasecrack];
- suitpot = PlayerInfo[playerid][pSuitcasepot];
- suitmats = PlayerInfo[playerid][pSuitcasemats];
- if(listitem == 0) // Money
- {
- if(Suitcaseaction[playerid] == 1) // If the Suitcaseaction is 1, will take money
- {
- Suitcaseaction[playerid] = 11;
- format(string, sizeof(string), "You have a total of $%d in your suitcase\nType below the amount of money you want to take", suitcash);
- ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Take - Money",string,"Take","Cancel");
- }
- if(Suitcaseaction[playerid] == 2) // Will put money
- {
- Suitcaseaction[playerid] = 21;
- format(string, sizeof(string), "You have a total of $%d in your suitcase\nType below the amount of money you want to put", suitcash);
- ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Put - Money",string,"Put","Cancel");
- }
- }
- if(listitem == 1) // Crack
- {
- if(Suitcaseaction[playerid] == 1)
- {
- Suitcaseaction[playerid] = 12;
- format(string, sizeof(string), "You have a total of %dg of crack in your suitcase\nType below the amount of crack you want to take", suitcrack);
- ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Take - Crack",string,"Take","Cancel");
- }
- if(Suitcaseaction[playerid] == 2)
- {
- Suitcaseaction[playerid] = 22;
- format(string, sizeof(string), "You have a total of %dg of crack in your suitcase\nType below the amount of crack you want to put", suitcrack);
- ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Put - Crack",string,"Put","Cancel");
- }
- }
- if(listitem == 2) // Pot
- {
- if(Suitcaseaction[playerid] == 1)
- {
- Suitcaseaction[playerid] = 13;
- format(string, sizeof(string), "You have a total of %dg of pot in your suitcase\nType below the amount of pot you want to take", suitpot);
- ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Take - Pot",string,"Take","Cancel");
- }
- if(Suitcaseaction[playerid] == 2)
- {
- Suitcaseaction[playerid] = 23;
- format(string, sizeof(string), "You have a total of %dg of crack in your suitcase\nType below the amount of pot you want to put", suitpot);
- ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Put - Pot",string,"Put","Cancel");
- }
- }
- if(listitem == 3) // Materials
- {
- if(Suitcaseaction[playerid] == 1)
- {
- Suitcaseaction[playerid] = 14;
- format(string, sizeof(string), "You have a total of %d materials in your suitcase\nType below the amount of materials you want to take", suitmats);
- ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Take - Materials",string,"Take","Cancel");
- }
- if(Suitcaseaction[playerid] == 2)
- {
- Suitcaseaction[playerid] = 24;
- format(string, sizeof(string), "You have a total of %d materials in your suitcase\nType below the amount of materials you want to put", suitmats);
- ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Put - Materials",string,"Put","Cancel");
- }
- }
- }
- }
- if(dialogid == suitcasediag3)
- {
- if(response)
- {
- if(strlen(inputtext))
- {
- new string[256];
- new amount = strval(inputtext);
- if(amount < 1)
- {
- if(Suitcaseaction[playerid] == 11 || Suitcaseaction[playerid] == 12 || Suitcaseaction[playerid] == 13 || Suitcaseaction[playerid] == 14)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't take negative amounts !");
- return 1;
- }
- if(Suitcaseaction[playerid] == 21 || Suitcaseaction[playerid] == 22 || Suitcaseaction[playerid] == 23 || Suitcaseaction[playerid] == 24)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't put negative amounts !");
- return 1;
- }
- }
- if(Suitcaseaction[playerid] == 11)
- {
- if(amount > PlayerInfo[playerid][pSuitcasecash])
- {
- format(string, sizeof(string), "Error: The amount of money you want to take is more than what is in your suitcase.");
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + amount;
- GivePlayerMoney(playerid,amount);
- PlayerInfo[playerid][pSuitcasecash] = PlayerInfo[playerid][pSuitcasecash] - amount;
- format(string, sizeof(string), "* %s takes some cash out of the suitcase and puts it in their wallet.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(Suitcaseaction[playerid] == 12)
- {
- if(amount > PlayerInfo[playerid][pSuitcasecrack])
- {
- format(string, sizeof(string), "Error: The amount of crack you want to take is more than what is in your suitcase.");
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack] + amount;
- PlayerInfo[playerid][pSuitcasecrack] = PlayerInfo[playerid][pSuitcasecrack] - amount;
- format(string, sizeof(string), "* %s takes some crack out of the suitcase and puts it in their pocket.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(Suitcaseaction[playerid] == 13)
- {
- if(amount > PlayerInfo[playerid][pSuitcasepot])
- {
- format(string, sizeof(string), "Error: The amount of pot you want to take is more than what is in your suitcase.");
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot] + amount;
- PlayerInfo[playerid][pSuitcasepot] = PlayerInfo[playerid][pSuitcasepot] - amount;
- format(string, sizeof(string), "* %s takes some pot out of the suitcase and puts it in their pocket.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(Suitcaseaction[playerid] == 14)
- {
- if(amount > PlayerInfo[playerid][pSuitcasemats])
- {
- format(string, sizeof(string), "Error: The amount of materials you want to take is more than what is in your suitcase.");
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats] + amount;
- PlayerInfo[playerid][pSuitcasemats] = PlayerInfo[playerid][pSuitcasemats] - amount;
- format(string, sizeof(string), "* %s takes some materials out of the suitcase and puts it in their pocket.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(Suitcaseaction[playerid] == 21)
- {
- new calcvalue = PlayerInfo[playerid][pSuitcasecash] + amount;
- if(calcvalue > 1000000)
- {
- format(string, sizeof(string), "Error: The maximum amount of money you can store is $1.000.000, you have already $%d in your suitcase", PlayerInfo[playerid][pSuitcasecash]);
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < amount)
- {
- format(string, sizeof(string), "Error: The amount of money you want to put is more than what you have.");
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] - amount;
- GivePlayerMoney(playerid,-amount);
- PlayerInfo[playerid][pSuitcasecash] = PlayerInfo[playerid][pSuitcasecash] + amount;
- format(string, sizeof(string), "* %s takes some cash out of their wallet and puts it in their suitcase", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(Suitcaseaction[playerid] == 22)
- {
- new calcvalue = PlayerInfo[playerid][pSuitcasecrack] + amount;
- if(calcvalue > 50)
- {
- format(string, sizeof(string), "Error: The maximum amount of crack you can store is 50g, you have already %dg in your suitcase", PlayerInfo[playerid][pSuitcasecrack]);
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] < amount)
- {
- format(string, sizeof(string), "Error: The amount of crack you want to put is more than what you have.");
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack] - amount;
- PlayerInfo[playerid][pSuitcasecrack] = PlayerInfo[playerid][pSuitcasecrack] + amount;
- format(string, sizeof(string), "* %s takes some crack out of their pocket and puts it in their suitcase", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(Suitcaseaction[playerid] == 23)
- {
- new calcvalue = PlayerInfo[playerid][pSuitcasepot] + amount;
- if(calcvalue > 50)
- {
- format(string, sizeof(string), "Error: The maximum amount of pot you can store is 50g, you have already %dg in your suitcase", PlayerInfo[playerid][pSuitcasepot]);
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- if(PlayerInfo[playerid][pPot] < amount)
- {
- format(string, sizeof(string), "Error: The amount of pot you want to put is more than what you have.");
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot] - amount;
- PlayerInfo[playerid][pSuitcasepot] = PlayerInfo[playerid][pSuitcasepot] + amount;
- format(string, sizeof(string), "* %s takes some pot out of their pocket and puts it in their suitcase", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(Suitcaseaction[playerid] == 24)
- {
- new calcvalue = PlayerInfo[playerid][pSuitcasemats] + amount;
- if(calcvalue > 20000)
- {
- format(string, sizeof(string), "Error: The maximum amount of materials you can store is 20.000, you have already %d in your suitcase", PlayerInfo[playerid][pSuitcasemats]);
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- if(PlayerInfo[playerid][pMats] < amount)
- {
- format(string, sizeof(string), "Error: The amount of materials you want to put is more than what you have.");
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
- return 1;
- }
- PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats] - amount;
- PlayerInfo[playerid][pSuitcasemats] = PlayerInfo[playerid][pSuitcasemats] + amount;
- format(string, sizeof(string), "* %s takes some materials out of their pocket and puts it in their suitcase", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- }
- return 1;
- }
- if(dialogid == donutshopdiag1) //Donuts shop
- {
- new string[256];
- if(response)
- {
- if(listitem == 0) //Full HP
- {
- if(PlayerInfo[playerid][pDonuts] >= 3)
- {
- format(string, sizeof(string), "You have exchanged 3 donuts for an aspirin !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- SetPlayerHealth(playerid, 100.0);
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 3;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 1) //Full Armor
- {
- if(PlayerInfo[playerid][pDonuts] >= 3)
- {
- format(string, sizeof(string), "You have exchanged 3 donuts for an Kevlar vest !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- SetPlayerArmour(playerid, 100.0);
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 3;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 2) //25g crack
- {
- if(PlayerInfo[playerid][pDonuts] >= 3)
- {
- format(string, sizeof(string), "You have exchanged 4 donuts for 25g of crack !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack] + 25;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 4;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 3) //25g pot
- {
- if(PlayerInfo[playerid][pDonuts] >= 3)
- {
- format(string, sizeof(string), "You have exchanged 4 donuts for 25g of pot !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot] + 25;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 4;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 4) //Weapon - Deagle
- {
- if(PlayerInfo[playerid][pDonuts] >= 5)
- {
- format(string, sizeof(string), "You have exchanged 5 donuts for a Deagle !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 24, 999999);
- PlayerInfo[playerid][pGun2] = 24;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 5;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 5) //Weapon - MP5
- {
- if(PlayerInfo[playerid][pDonuts] >= 6)
- {
- format(string, sizeof(string), "You have exchanged 6 donuts for a MP5 !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 29, 999999);
- PlayerInfo[playerid][pGun4] = 29;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 6;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 6) //Weapon - M4
- {
- if(PlayerInfo[playerid][pDonuts] >= 7)
- {
- format(string, sizeof(string), "You have exchanged 6 donuts for a M4 !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 31, 999999);
- PlayerInfo[playerid][pGun5] = 31;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 7;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 7) //Weapon - AK47
- {
- if(PlayerInfo[playerid][pDonuts] >= 7)
- {
- format(string, sizeof(string), "You have exchanged 7 donuts for a AK47 !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 30, 999999);
- PlayerInfo[playerid][pGun5] = 30;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 7;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 8) //Weapon - Spas12
- {
- if(PlayerInfo[playerid][pDonuts] >= 10)
- {
- format(string, sizeof(string), "You have exchanged 10 donuts for a SPAS12 !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 27, 999999);
- PlayerInfo[playerid][pGun3] = 27;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 10;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 9) //Weapon - Sniper
- {
- if(PlayerInfo[playerid][pDonuts] >= 10)
- {
- format(string, sizeof(string), "You have exchanged 10 donuts for a Sniper !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 34, 999999);
- PlayerInfo[playerid][pGun6] = 34;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 10;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 10) //More...
- {
- ShowPlayerDialog(playerid,donutshopdiag2,DIALOG_STYLE_LIST,"-= Donuts Shop =-","Free house move [20 Donuts]\nFree name change [20 Donuts]\n10.000 materials [20 Donuts]\n$100.000 [25 Donuts]\nSpecial - Camera [25 Donuts]\nSpecial - Vault Code [25 Donuts]\nSpecial - TEC9 [50 Donuts]\nSpecial - Minigun [100 Donuts\nSpecial - RPG [100 Donuts]\nBronze VIP (1 month) [250 Donuts]\nSilver VIP (1 month) [1000 Donuts]","Exchange","Cancel"); //Donuts shop
- }
- }
- return 1;
- }
- if(dialogid == donutshopdiag2) //Donuts shop 2
- {
- new string[256];
- if(response)
- {
- if(listitem == 0) //
- {
- format(string, sizeof(string), "Disabled option !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- return 1;
- }
- if(listitem == 1) //
- {
- format(string, sizeof(string), "Disabled option !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- }
- if(listitem == 2) //10k mats
- {
- if(PlayerInfo[playerid][pDonuts] >= 20)
- {
- format(string, sizeof(string), "You have exchanged 20 donuts for 10.000 materials !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats] + 10000;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 20;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 3) //$100k
- {
- if(PlayerInfo[playerid][pDonuts] >= 25)
- {
- format(string, sizeof(string), "You have exchanged 25 donuts for $100.000 !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + 100000;
- GivePlayerMoney(playerid, 100000);
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 25;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 4) //Camera
- {
- if(PlayerInfo[playerid][pDonuts] >= 25)
- {
- format(string, sizeof(string), "You have exchanged 25 donuts for a Camera !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 43, 999999);
- PlayerInfo[playerid][pGun9] = 43;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 25;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 5) //Vault
- {
- if(PlayerInfo[playerid][pDonuts] >= 25)
- {
- format(string, sizeof(string), "You have exchanged 25 donuts for the bank vault code !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- new showpass = VPass;
- format(string, sizeof(string), "The code is: %d.", showpass);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 25;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 6) //TEC9
- {
- if(PlayerInfo[playerid][pDonuts] >= 50)
- {
- format(string, sizeof(string), "You have exchanged 50 donuts for a TEC9 !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 32, 999999);
- PlayerInfo[playerid][pGun4] = 32;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 50;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 7) //Minigun
- {
- if(PlayerInfo[playerid][pDonuts] >= 100)
- {
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Disabled option !");
- return 1;
- /*format(string, sizeof(string), "You have exchanged 100 donuts for a Minigun !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 38, 999999);
- PlayerInfo[playerid][pGun7] = 38;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 100;*/
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 8) //RPG
- {
- if(PlayerInfo[playerid][pDonuts] >= 100)
- {
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Disabled option !");
- return 1;
- /*format(string, sizeof(string), "You have exchanged 100 donuts for a Rocket Launcher !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- GivePlayerWeapon(playerid, 35, 999999);
- PlayerInfo[playerid][pGun7] = 35;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 100;*/
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 9) //VIP
- {
- if(PlayerInfo[playerid][pDonuts] >= 250)
- {
- if (PlayerInfo[playerid][pDonateRank] > 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are already VIP");
- return 1;
- }
- new Year, Month, Day;
- getdate(Year, Month, Day);
- format(string, sizeof(string), "You have exchanged 250 donuts for a month of Bronze VIP !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- format(string, 32, "%02d/%02d/%d", Month, Day, Year);
- strmid(PlayerInfo[playerid][pVIPJoinDate], string, 0, strlen(string), 255);
- format(string, 32, "%02d/%02d/%d", Month+1, Day, Year);
- strmid(PlayerInfo[playerid][pVIPExpDate], string, 0, strlen(string), 255);
- if(Month == 12) { format(PlayerInfo[playerid][pVIPExpDate], 32, "%02d/%02d/%d", 1, Day, Year+1); }
- format(string, sizeof(string), "Join Date: %s, Expire Date: %s", PlayerInfo[playerid][pVIPJoinDate], PlayerInfo[playerid][pVIPExpDate]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- PlayerInfo[playerid][pDonateRank] = 1;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 250;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- if(listitem == 10) //VIP
- {
- if(PlayerInfo[playerid][pDonuts] >= 1000)
- {
- if (PlayerInfo[playerid][pDonateRank] > 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are already VIP");
- return 1;
- }
- new Year, Month, Day;
- getdate(Year, Month, Day);
- format(string, sizeof(string), "You have exchanged 1000 donuts for a month of Silver VIP !");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- format(string, 32, "%02d/%02d/%d", Month, Day, Year);
- strmid(PlayerInfo[playerid][pVIPJoinDate], string, 0, strlen(string), 255);
- format(string, 32, "%02d/%02d/%d", Month+1, Day, Year);
- strmid(PlayerInfo[playerid][pVIPExpDate], string, 0, strlen(string), 255);
- if(Month == 12) { format(PlayerInfo[playerid][pVIPExpDate], 32, "%02d/%02d/%d", 1, Day, Year+1); }
- format(string, sizeof(string), "Join Date: %s, Expire Date: %s", PlayerInfo[playerid][pVIPJoinDate], PlayerInfo[playerid][pVIPExpDate]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- PlayerInfo[playerid][pDonateRank] = 2;
- PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 1000;
- }
- else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
- }
- }
- return 1;
- }
- if(dialogid == AMMUNATIONDIALOG) //Ammu
- {
- if(response)
- {
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Vest
- {
- if(PlayerInfo[playerid][pCash] > 1499)
- {
- new Float:playerArmor;
- GetPlayerArmour(playerid, playerArmor);
- PlayerInfo[playerid][pCash] -= 1500;
- GivePlayerMoney(playerid, -1500);
- if(playerArmor > 49) { SendClientMessage(playerid, COLOR_GREY, " You already have a vest !"); return 1; }
- else { SetPlayerArmour(playerid, 50.0); }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vest purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //mp5
- {
- if(PlayerInfo[playerid][pCash] > 2499)
- {
- PlayerInfo[playerid][pCash] -= 2500;
- GivePlayerMoney(playerid, -2500);
- GivePlayerGun(playerid, 29);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Weapon purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 2500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //Shotgun
- {
- if(PlayerInfo[playerid][pCash] > 1999)
- {
- PlayerInfo[playerid][pCash] -= 2000;
- GivePlayerMoney(playerid, -2000);
- GivePlayerGun(playerid, 25);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Weapon purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 2000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //Colt45
- {
- if(PlayerInfo[playerid][pCash] > 399)
- {
- PlayerInfo[playerid][pCash] -= 500;
- GivePlayerMoney(playerid, -500);
- GivePlayerGun(playerid, 22);
- SetPlayerSkillLevel(playerid, 0, 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Weapon purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- }
- if(dialogid == FAQ) //FAQ
- {
- if(response)
- {
- new mstring[1500], titlestring[128], line1[512], line2[512], line3[512];
- if(listitem == 0) //Level Up
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to level up");
- format(line1, sizeof(line1), "{AAC4E5}First of all you will need to gain respect points ( /stats ) to see how many you got.\nOnce the respect is full you can /levelup.");
- format(line2, sizeof(line2), "{FFFF00}\nHow to gain respect points:\n{AAC4E5}You get 1 respect point every time you /signcheck.\nYou /signcheck every hour, at paycheck time (:00).");
- format(line3, sizeof(line3), "\n{AAC4E5}As higher your level is, as higher the required respect points and price for the next level will be.\nBeing a high level brings you higher paychecks and more respect around.");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 1) //Buy car
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to buy a car");
- format(line1, sizeof(line1), "{AAC4E5}First of all, you need level 2 to buy a car. You can type /dealerships to see the dealership locations.\nOnce you're there you will see cars having a price on them.");
- format(line2, sizeof(line2), "\n{AAC4E5}If a car doesn't have a price on it means it's not for sale.\nIf there are no cars at the dealership means they all have been bought.");
- format(line3, sizeof(line3), "\n{AAC4E5}To buy the car just get inside it. You can also buy a car from another player.");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 2) //Buy house
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to buy a house");
- format(line1, sizeof(line1), "{AAC4E5}First of all, you need level 2 to buy a house.\nThe available houses will have a red \"Property for sale\" text on their icons.");
- format(line2, sizeof(line2), "\n{AAC4E5}To buy the house, go in front of the house icon and type /buyhouse.");
- format(line3, sizeof(line3), "\n{AAC4E5}You can also buy a house from another player.");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 3) //Buy biz
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to buy a business");
- format(line1, sizeof(line1), "{AAC4E5}First of all, you need level 2 to buy a business.\nThe available businesses will have a message shown on their icon \"Business for sale\".");
- format(line2, sizeof(line2), "\n{AAC4E5}To buy the business, go in front of the icon and type /buybiz.");
- format(line3, sizeof(line3), "\n{AAC4E5}You can also buy a business from another player. Note that they're pretty expensive");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 4) //Join faction
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to join a faction");
- format(line1, sizeof(line1), "{AAC4E5}Most of the factions requires you to post an application on our forums (www.ms-roleplay.tk) in order to join them.\nHowever, if you're lucky enought there can be live recruitments.");
- format(line2, sizeof(line2), "\n{AAC4E5}For most of the factions you're required to have at least level 3,\nstill if you show a good roleplay you might be allowed in.");
- format(line3, sizeof(line3), "\n{AAC4E5}Hitman Agency can't be joined by applying on forums, you can only get handpicked by it's leader.Heavy roleplay is required.\n\nYou can now be in a faction and a gang in the same time.");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 5) //Join gang
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to join a gang");
- format(line1, sizeof(line1), "{AAC4E5}In order to join a gang you need to find their leaders IC'ly and roleplay with them.");
- format(line2, sizeof(line2), "\n{AAC4E5}Most of the time they're using the advertisments to recruit people (Example: Hiring staff).\nYou can also use it, saying that you're looking for a job, or you can just find them in their hangout place");
- format(line3, sizeof(line3), "\n{AAC4E5}Most of the families don't require you to have a high level, still you need some roleplay skills.\nYou can use /families for a list with our existing gangs.\n\nYou can now be in a faction and a gang in the same time.");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 6) //Vip
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to become a vip");
- format(line1, sizeof(line1), "{FFFF00}There are 2 ways to become a VIP:\n\n{AAC4E5}1. Donate real money to the server, $3 for bronze VIP, $7 for silver or $12 for gold.");
- format(line2, sizeof(line2), "{AAC4E5}2. You can buy VIP in game using your donuts (/exchange inside the donut store located behind All Saints).\nYou need 250 donuts for a bronze VIP and 1000 donuts for silver VIP.");
- format(line3, sizeof(line3), "\n{AAC4E5}The VIP lasts for 1 month, and can be renewed in the same ways.\nFor a list of VIP features check our forums (www.ms-roleplay.tk).");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 7) //Donuts
- {
- format(titlestring, sizeof(titlestring), "{CC0000}What's the use of donuts and how to get them");
- format(line1, sizeof(line1), "{FFFF00}There are several ways to get donuts:\n\n{AAC4E5}1. Show a good roleplay skills and an admin might reward you with some donuts.\n2. Donut hunt events, you can /pickdonut from the ground if you find any.");
- format(line2, sizeof(line2), "{AAC4E5}3. Win events, donuts are one of the rewards for winning any kind of event (DM, TDM and so on).\n4. Buy donuts from other players.");
- format(line3, sizeof(line3), "\n{AAC4E5}You can have as many donuts as you want, they can pe exchanged for cool stuff (such as money, drugs, guns, VIP)\ninside the donut store located behind All Saints.");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 8) //Staff
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to become a staff member");
- format(line1, sizeof(line1), "{CC0000}First of all never ask for it.\n{AAC4E5}If we think that you deserve a position in our staff you'll be announced");
- format(line2, sizeof(line2), "{AAC4E5}Second, we have enought professional admins, scritpers, mappers right now.");
- format(line3, sizeof(line3), "\n{AAC4E5}So basically there is no way to become an admin or scripter or mapper right now. Just wait your chance patiently.");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 9) //Bank
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to rob the bank");
- format(line1, sizeof(line1), "{AAC4E5}First of all, the vault is protected by a 6 digit code.\nTo get the code you need to /exchange 25 donuts in the donut store.");
- format(line2, sizeof(line2), "{AAC4E5}Once you got the code, go in front of the vault and type /robbank, then insert the given code.\nOnce you did it and opened the vault you have 30 seconds to start loading the cash (/loadcash).\nAfter you selected one of the given options and the loading time is over, a random location will be marked on your map.\nGo there and you will keep the money.");
- format(line3, sizeof(line3), "\n{AAC4E5}The vault code will always reset after every robbery attempt.\nThe reload time between robberies is 2 hours.");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 10) //Refund
- {
- format(titlestring, sizeof(titlestring), "{CC0000}How to get a refund");
- format(line1, sizeof(line1), "{AAC4E5}Basically a refund means transfering your stats here from another server.");
- format(line2, sizeof(line2), "{AAC4E5}In order to get a refund you will need a screenshot of your stats from the server you played or you're still playing.");
- format(line3, sizeof(line3), "\n{AAC4E5}Once you have the screenshot go to (www.ms-roleplay.tk) and post a game related request.\nOnce you posted it wait patiently for an admin to check it and refund you.");
- format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
- ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
- }
- if(listitem == 11) //Help
- {
- DisplayDialogForPlayer(playerid, 79);
- }
- return 1;
- }
- }
- if(dialogid == FAQ2) //FAQ2
- {
- if(response)
- {
- ShowPlayerDialog(playerid,FAQ,DIALOG_STYLE_LIST,"Frequently asked questions","How to level up\nHow to buy a car\nHow to buy a house\nHow to buy a business\nHow to join a faction\nHow to join a gang\nHow to become VIP\nWhat's the use of donuts and how to get them\nHow to become a staff member\nHow to rob the bank\nHow to get a refund\nGeneral help","Ok","Cancel"); //FAQ
- return 1;
- }
- }
- if(dialogid == 3) //247
- {
- if(response)
- {
- new string[128];
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //dice
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- PlayerInfo[playerid][pDice] = 1;
- format(string, sizeof(string), "~r~-$%d", 500);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Dice purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /dice to use.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][pCash] > 4999)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-5000;
- GivePlayerMoney(playerid,-5000);
- gSpeedo[playerid] = 1;
- format(string, sizeof(string), "~r~-$%d", 5000);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Speedometer purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /speedo to use.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 5000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][pCash] > 49)
- {
- if(Condom[playerid] <= 6)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
- GivePlayerMoney(playerid,-50);
- Condom[playerid] ++;
- format(string, sizeof(string), "~r~-$%d", 50);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Condom purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 50;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3)
- {
- if(PlayerInfo[playerid][pCash] > 2499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-2500;
- GivePlayerMoney(playerid, - 2500);
- PlayerInfo[playerid][pCDPlayer] = 1;
- format(string, sizeof(string), "~r~-$%d", 2500);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "CD-Player purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /music to use.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 2500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4)
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- if(PlayerInfo[playerid][pSpraycan] <= 10)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid, -200);
- PlayerInfo[playerid][pSpraycan] += 10;
- format(string, sizeof(string), "~r~-$%d", 200);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "10 Spraycans purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /colorcar or /paintcar while inside a vehicle.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5)
- {
- if(PlayerInfo[playerid][pCash] > 399)
- {
- if(PlayerInfo[playerid][pRope] <= 3)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
- GivePlayerMoney(playerid, -400);
- PlayerInfo[playerid][pRope] += 3;
- format(string, sizeof(string), "~r~-$%d", 400);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "3 Ropes purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /tie while driving a car to tie someone.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 400;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 6)
- {
- if(PlayerInfo[playerid][pCash] > 69)
- {
- if(PlayerInfo[playerid][pCigars] <= 10)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-70;
- GivePlayerMoney(playerid, -70);
- PlayerInfo[playerid][pCigars] += 10;
- format(string, sizeof(string), "~r~-$%d", 70);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "10 Cigars purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /usecigar to use your cigars, once used press left mouse button to smoke, F to throw away.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 70;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 7)
- {
- if(PlayerInfo[playerid][pCash] > 9)
- {
- if(PlayerInfo[playerid][pSprunk] <= 3)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10;
- GivePlayerMoney(playerid, -10);
- PlayerInfo[playerid][pSprunk] += 1;
- format(string, sizeof(string), "~r~-$%d", 10);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Sprunk purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /usesprunk to use your sprunk, once used press left mouse button to drink, F to throw away.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 10;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 8)
- {
- if(PlayerInfo[playerid][pCash] > 199)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid, -200);
- PlayerInfo[playerid][pWT] = 1;
- format(string, sizeof(string), "~r~-$%d", 200);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Walkie Talkie purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /WT to talk in your walkie talkie, type /channel to adjust the channel number.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 200;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 9)
- {
- if(PlayerInfo[playerid][pCash] > 299)
- {
- if(PlayerInfo[playerid][pScrew] <= 5)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
- GivePlayerMoney(playerid, -300);
- PlayerInfo[playerid][pScrew] += 5;
- format(string, sizeof(string), "~r~-$%d", 300);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "5 Screw Drivers purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /lockpick to pick the locks on people's vehicles. /screwdriver to pull it out.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 300;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 10)
- {
- if(PlayerInfo[playerid][pCash] >= 599)
- {
- if(PlayerInfo[playerid][pBlindfolds] <= 2)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-600;
- GivePlayerMoney(playerid, -600);
- PlayerInfo[playerid][pBlindfolds] += 2;
- format(string, sizeof(string), "~r~-$%d", 600);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "2 Blindfolds purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /blindfold to blindfold a tied player.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 600;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 11)
- {
- if(PlayerInfo[playerid][pCash] > 699)
- {
- if(PlayerInfo[playerid][pCrowbar] == 0)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
- GivePlayerMoney(playerid, -700);
- PlayerInfo[playerid][pCrowbar] = 1;
- format(string, sizeof(string), "~r~-$%d", 700);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "1 Crowbar purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /breakin to break into a house. /crowbar to pull it out.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 700;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 12)
- {
- if(PlayerInfo[playerid][pCash] > 99)
- {
- if(PlayerInfo[playerid][pWatch] == 0)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
- GivePlayerMoney(playerid, -100);
- PlayerInfo[playerid][pWatch] = 1;
- format(string, sizeof(string), "~r~-$%d", 100);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Watch purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /time to check the time on your watch. /watch to put it on.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 100;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 13)
- {
- if(PlayerInfo[playerid][pCash] > 1499)
- {
- if(PlayerInfo[playerid][pSuitcase] == 0)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1500;
- GivePlayerMoney(playerid, -1500);
- PlayerInfo[playerid][pSuitcase] = 1;
- format(string, sizeof(string), "~r~-$%d", 1500);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Suitcase purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /suitcase to check available options.");
- //SetPlayerAttachedObject( playerid, 0, 1210, 6, 0.259532, -0.043030, -0.009978, 85.185333, 271.380615, 253.650283, 1.000000, 1.000000, 1.000000 );
- //HoldingSuitcase[playerid] = 1;
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 14)
- {
- if(PlayerInfo[playerid][pCash] > 499)
- {
- if(PlayerInfo[playerid][pWrench] < 5)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid, -500);
- PlayerInfo[playerid][pWrench] += 1;
- format(string, sizeof(string), "~r~-$%d", 500);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Wrench purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /fix to repair a vehicle. /wrench to pull it out");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 15)
- {
- if(PlayerInfo[playerid][pCash] > 699)
- {
- if(PlayerInfo[playerid][pHammer] < 1)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
- GivePlayerMoney(playerid, -700);
- PlayerInfo[playerid][pHammer] = 1;
- format(string, sizeof(string), "~r~-$%d", 700);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Hammer purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /hammer to pull it out");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 700;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 16)
- {
- if(PlayerInfo[playerid][pCash] > 999)
- {
- if(PlayerInfo[playerid][pRake] < 1)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid, -1000);
- PlayerInfo[playerid][pRake] = 1;
- format(string, sizeof(string), "~r~-$%d", 500);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Rake purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /rake to pull it out");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 17)
- {
- if(PlayerInfo[playerid][pCash] > 999)
- {
- if(PlayerInfo[playerid][pFlash] < 1)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid, -1000);
- PlayerInfo[playerid][pFlash] = 1;
- format(string, sizeof(string), "~r~-$%d", 500);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Flashlight purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /flashlight to pull it out");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- }
- if(dialogid == 4) //bar
- {
- if(response)
- {
- new string[128];
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //beer
- {
- if(PlayerInfo[playerid][pCash] > 59)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-60;
- GivePlayerMoney(playerid, -60);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
- format(string, sizeof(string), "~r~-$%d", 60);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Beer purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 60;
- BizInfo[biz][bProducts]--;
- }
- UserSprunk[playerid] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //vodka
- {
- if(PlayerInfo[playerid][pCash] > 99)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
- GivePlayerMoney(playerid, -100);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
- format(string, sizeof(string), "~r~-$%d", 100);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Vodka purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 100;
- BizInfo[biz][bProducts]--;
- }
- UserSprunk[playerid] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //whiskey
- {
- if(PlayerInfo[playerid][pCash] > 99)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
- GivePlayerMoney(playerid, -100);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
- format(string, sizeof(string), "~r~-$%d", 100);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Whiskey purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 100;
- BizInfo[biz][bProducts]--;
- }
- UserSprunk[playerid] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //wine
- {
- if(PlayerInfo[playerid][pCash] > 99)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
- GivePlayerMoney(playerid, -100);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
- format(string, sizeof(string), "~r~-$%d", 100);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Wine purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 100;
- BizInfo[biz][bProducts]--;
- }
- UserSprunk[playerid] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4) //soda
- {
- if(PlayerInfo[playerid][pCash] > 49)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
- GivePlayerMoney(playerid, -50);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
- format(string, sizeof(string), "~r~-$%d", 50);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Soda purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 50;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5) //cigar
- {
- if(PlayerInfo[playerid][pCash] > 99)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
- GivePlayerMoney(playerid, -100);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
- format(string, sizeof(string), "~r~-$%d", 100);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Cigar purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 100;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- }
- if(dialogid == PAINTBALLDIALOG) //PB
- {
- if(response)
- {
- if(listitem == 0) //Deagle+Spas
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- PlayerInfo[playerid][pPaintballGun1] = 24;
- PlayerInfo[playerid][pPaintballGun2] = 27;
- PaintballPlayers ++;
- PlayerPaintballing[playerid] = 1;
- new rand = random(sizeof(PaintballSpawns));
- SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 2);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- ClearGuns(playerid);
- ResetPlayerAdminWeaponsEx(playerid);
- new gun1 = PlayerInfo[playerid][pPaintballGun1];
- new gun2 = PlayerInfo[playerid][pPaintballGun2];
- GivePlayerAdminGun(playerid, gun1);
- GivePlayerAdminGun(playerid, gun2);
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
- SendClientMessage(i, COLOR_GREEN, string);
- }
- }
- }
- }
- if(listitem == 1) //Spas+M4
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- PlayerInfo[playerid][pPaintballGun1] = 31;
- PlayerInfo[playerid][pPaintballGun2] = 27;
- PaintballPlayers ++;
- PlayerPaintballing[playerid] = 1;
- new rand = random(sizeof(PaintballSpawns));
- SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 2);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- ClearGuns(playerid);
- ResetPlayerAdminWeaponsEx(playerid);
- new gun1 = PlayerInfo[playerid][pPaintballGun1];
- new gun2 = PlayerInfo[playerid][pPaintballGun2];
- GivePlayerAdminGun(playerid, gun1);
- GivePlayerAdminGun(playerid, gun2);
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
- SendClientMessage(i, COLOR_GREEN, string);
- }
- }
- }
- }
- if(listitem == 2) //Deagle+MP5
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- PlayerInfo[playerid][pPaintballGun1] = 24;
- PlayerInfo[playerid][pPaintballGun2] = 29;
- PaintballPlayers ++;
- PlayerPaintballing[playerid] = 1;
- new rand = random(sizeof(PaintballSpawns));
- SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 2);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- ClearGuns(playerid);
- ResetPlayerAdminWeaponsEx(playerid);
- new gun1 = PlayerInfo[playerid][pPaintballGun1];
- new gun2 = PlayerInfo[playerid][pPaintballGun2];
- GivePlayerAdminGun(playerid, gun1);
- GivePlayerAdminGun(playerid, gun2);
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
- SendClientMessage(i, COLOR_GREEN, string);
- }
- }
- }
- }
- if(listitem == 3) //Shawnoff+Sniper
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- PlayerInfo[playerid][pPaintballGun1] = 26;
- PlayerInfo[playerid][pPaintballGun2] = 34;
- PaintballPlayers ++;
- PlayerPaintballing[playerid] = 1;
- new rand = random(sizeof(PaintballSpawns));
- SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 2);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- ClearGuns(playerid);
- ResetPlayerAdminWeaponsEx(playerid);
- new gun1 = PlayerInfo[playerid][pPaintballGun1];
- new gun2 = PlayerInfo[playerid][pPaintballGun2];
- GivePlayerAdminGun(playerid, gun1);
- GivePlayerAdminGun(playerid, gun2);
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
- SendClientMessage(i, COLOR_GREEN, string);
- }
- }
- }
- }
- if(listitem == 4) //Deagle+Tec9
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- PlayerInfo[playerid][pPaintballGun1] = 24;
- PlayerInfo[playerid][pPaintballGun2] = 32;
- PaintballPlayers ++;
- PlayerPaintballing[playerid] = 1;
- new rand = random(sizeof(PaintballSpawns));
- SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 2);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- ClearGuns(playerid);
- ResetPlayerAdminWeaponsEx(playerid);
- new gun1 = PlayerInfo[playerid][pPaintballGun1];
- new gun2 = PlayerInfo[playerid][pPaintballGun2];
- GivePlayerAdminGun(playerid, gun1);
- GivePlayerAdminGun(playerid, gun2);
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
- SendClientMessage(i, COLOR_GREEN, string);
- }
- }
- }
- }
- }
- }
- if(dialogid == 5) //gym
- {
- if(response)
- {
- if(listitem == 0) //normal
- {
- if(PlayerInfo[playerid][pCash] > 49999)
- {
- PlayerInfo[playerid][pFightingStyle] = 4;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 1) //boxing
- {
- if(PlayerInfo[playerid][pCash] > 49999)
- {
- PlayerInfo[playerid][pFightingStyle] = 5;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
- GivePlayerMoney(playerid, -50000);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 2) //kung fu
- {
- if(PlayerInfo[playerid][pCash] > 49999)
- {
- PlayerInfo[playerid][pFightingStyle] = 6;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
- GivePlayerMoney(playerid, -50000);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 3) //kneehead
- {
- if(PlayerInfo[playerid][pCash] > 49999)
- {
- PlayerInfo[playerid][pFightingStyle] = 7;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
- GivePlayerMoney(playerid, -50000);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 4) //grabkick
- {
- if(PlayerInfo[playerid][pCash] > 49999)
- {
- PlayerInfo[playerid][pFightingStyle] = 15;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
- GivePlayerMoney(playerid, -50000);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- if(listitem == 5) //elbow
- {
- if(PlayerInfo[playerid][pCash] > 49999)
- {
- PlayerInfo[playerid][pFightingStyle] = 26;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
- GivePlayerMoney(playerid, -50000);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- }
- }
- if(dialogid == 7) //Cafeteria // COMMENTED
- {
- if(response)
- {
- new Float:playerHP;
- GetPlayerHealth(playerid, playerHP);
- new biz = PlayerInfo[playerid][pInBiz];
- if(listitem == 0) //Bread
- {
- if(PlayerInfo[playerid][pCash] > 20)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
- GivePlayerMoney(playerid, -20);
- if(playerHP > 98) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, playerHP + 2.0); }
- SendClientMessage(playerid, COLOR_GRAD4, "Bread purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 20;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- if(listitem == 1) //Apple
- {
- if(PlayerInfo[playerid][pCash] > 30)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-30;
- GivePlayerMoney(playerid, -3);
- if(playerHP > 97) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, playerHP + 3.0); }
- SendClientMessage(playerid, COLOR_GRAD4, "Apple purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 30;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- if(listitem == 2) //Cok O Pops
- {
- if(PlayerInfo[playerid][pCash] > 50)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
- GivePlayerMoney(playerid, -50);
- if(playerHP > 95) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, playerHP + 5.0); }
- SendClientMessage(playerid, COLOR_GRAD4, "Cok O Pops purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 50;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- if(listitem == 3) //Mashed Potatoes
- {
- if(PlayerInfo[playerid][pCash] > 50)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
- GivePlayerMoney(playerid, -50);
- if(playerHP > 95) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, playerHP + 5.0); }
- SendClientMessage(playerid, COLOR_GRAD4, "Mashed Potatoes purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 50;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- if(listitem == 4) //Carrot
- {
- if(PlayerInfo[playerid][pCash] > 10)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10;
- GivePlayerMoney(playerid, -10);
- if(playerHP > 99) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, playerHP + 1.0); }
- SendClientMessage(playerid, COLOR_GRAD4, "Carrot purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 10;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- if(listitem == 5) //Green Beans
- {
- if(PlayerInfo[playerid][pCash] > 40)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-40;
- GivePlayerMoney(playerid, -40);
- if(playerHP > 96) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, playerHP + 4.0); }
- SendClientMessage(playerid, COLOR_GRAD4, "Green Beans purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 40;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- if(listitem == 6) //Pork Roll
- {
- if(PlayerInfo[playerid][pCash] > 50)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
- GivePlayerMoney(playerid, -50);
- if(playerHP > 95) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, playerHP + 5.0); }
- SendClientMessage(playerid, COLOR_GRAD4, "Pork Roll purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 50;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- if(listitem == 7) //Sausage
- {
- if(PlayerInfo[playerid][pCash] > 70)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-70;
- GivePlayerMoney(playerid, -70);
- if(playerHP > 93) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, playerHP + 7.0); }
- SendClientMessage(playerid, COLOR_GRAD4, "Sausage purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 70;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- if(listitem == 8) //Chicken
- {
- if(PlayerInfo[playerid][pCash] > 150)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-150;
- GivePlayerMoney(playerid, -150);
- if(playerHP > 80) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, playerHP + 20.0); }
- SendClientMessage(playerid, COLOR_GRAD4, "Chicken purchased.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 150;
- BizInfo[biz][bProducts]--;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,1,1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- }
- if(dialogid == 8) //Locker Room
- {
- if(response)
- {
- if(listitem == 0) //Duty
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pOnDuty] == 0) //if player is off duty, set them them on
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* Soldier %s takes their Uniform and Guns from their locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(IsANG(playerid)) { SetPlayerColor(playerid, TCOLOR_LIGHTGREEN); }
- GivePlayerWeapon(playerid, 27, 999999); PlayerInfo[playerid][pGun3] = 27; //Spas12
- GivePlayerWeapon(playerid, 31, 999999); PlayerInfo[playerid][pGun5] = 31; //M4
- GivePlayerWeapon(playerid, 3, 1); PlayerInfo[playerid][pGun1] = 3; //Nitestick
- SetPlayerArmour(playerid, 100.0);
- SetPlayerSkin(playerid, 287);
- PlayerInfo[playerid][pOnDuty] = 1;
- }
- else if(PlayerInfo[playerid][pOnDuty] == 1) //if player is on duty, set them off
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* Soldier %s places their Uniform and Guns in their locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TCOLOR_WHITE);
- PlayerInfo[playerid][pGun3] = 0;
- PlayerInfo[playerid][pGun5] = 0;
- PlayerInfo[playerid][pGun1] = 0;
- ResetPlayerWeapons(playerid);
- SetPlayerArmour(playerid, 0.0);
- SetPlayerSkin(playerid, 46);
- PlayerInfo[playerid][pOnDuty] = 0;
- }
- }
- if(listitem == 1) //Armory
- {
- DisplayDialogForPlayer(playerid, 9); //Weapons
- }
- if(listitem == 2) //Clearing
- {
- SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to clear.");
- LSPDClearing[playerid] = 1;
- }
- if(listitem == 3) //Release Suspect
- {
- SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to release.");
- LSPDClearing[playerid] = 2;
- }
- }
- }
- if(dialogid == 9) //Weapons
- {
- if(response)
- {
- if(listitem == 0) // Mace
- {
- if(PlayerInfo[playerid][pCash] < 20)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
- GivePlayerMoney(playerid,-20);
- GivePlayerWeapon(playerid, 41, 999999);
- PlayerInfo[playerid][pGun9] = 41;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 1) // Night Stick
- {
- if(PlayerInfo[playerid][pCash] < 20)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
- GivePlayerMoney(playerid,-20);
- GivePlayerWeapon(playerid, 3, 1);
- PlayerInfo[playerid][pGun1] = 3;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 2) // Deagle
- {
- if(PlayerInfo[playerid][pCash] < 500)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- GivePlayerWeapon(playerid, 24, 999999);
- PlayerInfo[playerid][pGun2] = 24;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 3) //Shotgun
- {
- if(PlayerInfo[playerid][pCash] < 200)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- GivePlayerWeapon(playerid, 25, 999999);
- PlayerInfo[playerid][pGun3] = 25;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 4) //MP5
- {
- if(PlayerInfo[playerid][pCash] < 400)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
- GivePlayerMoney(playerid,-400);
- GivePlayerWeapon(playerid, 29, 999999);
- PlayerInfo[playerid][pGun4] = 29;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 5) //Rifle
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- GivePlayerWeapon(playerid, 33, 999999);
- PlayerInfo[playerid][pGun6] = 33;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 6) //M4
- {
- if(PlayerInfo[playerid][pCash] < 4000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-4000;
- GivePlayerMoney(playerid,-4000);
- GivePlayerWeapon(playerid, 31, 999999);
- PlayerInfo[playerid][pGun5] = 31;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 7) //Spas12
- {
- if(PlayerInfo[playerid][pCash] < 10000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10000;
- GivePlayerMoney(playerid,-10000);
- GivePlayerWeapon(playerid, 27, 999999);
- PlayerInfo[playerid][pGun3] = 27;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 8)
- {
- if(PlayerInfo[playerid][pCash] < 10000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10000;
- GivePlayerMoney(playerid,-10000);
- GivePlayerWeapon(playerid, 34, 999999); PlayerInfo[playerid][pGun6] = 34; //sniper
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 9) //Grenades
- {
- if(PlayerInfo[playerid][pCash] < 800)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-800;
- GivePlayerMoney(playerid,-800);
- GivePlayerWeapon(playerid, 16, 2);
- PlayerInfo[playerid][pGun8] = 16;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 10)
- {
- if(PlayerInfo[playerid][pCash] < 2000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- TogglePlayerControllable(playerid,1);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-2000;
- GivePlayerMoney(playerid,-2000);
- SetPlayerArmour(playerid, 100);
- }
- }
- }
- }
- if(dialogid == 10) //LSPD
- {
- if(response)
- {
- if(listitem == 0)
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pOnDuty] == 0) //if player is off duty, set them them on
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* Officer %s takes a Badge and Gun from their locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { SetPlayerColor(playerid, TCOLOR_BLUE); }
- else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { SetPlayerColor(playerid, TCOLOR_NAVYBLUE); }
- else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { SetPlayerColor(playerid, TCOLOR_BEIGE); }
- GivePlayerWeapon(playerid, 24, 999999); PlayerInfo[playerid][pGun2] = 24; //deagle
- GivePlayerWeapon(playerid, 41, 999999); PlayerInfo[playerid][pGun9] = 41; //spray
- GivePlayerWeapon(playerid, 3, 1); PlayerInfo[playerid][pGun1] = 3; //nitestick
- SetPlayerArmour(playerid, 100.0);
- PlayerInfo[playerid][pOnDuty] = 1;
- TogglePlayerControllable(playerid,1);
- }
- else if(PlayerInfo[playerid][pOnDuty] == 1) //if player is on duty, set them off
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* Officer %s places a Badge and Gun in their locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TCOLOR_WHITE);
- PlayerInfo[playerid][pGun2] = 0;
- PlayerInfo[playerid][pGun9] = 0;
- PlayerInfo[playerid][pGun1] = 0;
- ResetPlayerWeapons(playerid);
- SetPlayerArmour(playerid, 0.0);
- PlayerInfo[playerid][pOnDuty] = 0;
- SetPlayerSkin( playerid, 46 );
- PlayerInfo[playerid][pModel] = 46;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][pSFMember] != 3 && PlayerInfo[playerid][pRank] <= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "** [Error]: You're not a member of S.I.U / High Command");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- ShowPlayerDialog(playerid, SIUMENU1, DIALOG_STYLE_LIST, "SIU Menu", "Civilian Clothing\nMafia Clothing\nGang Clothing", "Accept", "Cancel");
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the Char you want to use.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
- TogglePlayerControllable(playerid, 0);
- SelectChar[playerid] = 255;
- SelectCharPlace[playerid] = 1;
- if(PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
- ChangeUniform[playerid] = 1;
- }
- if(listitem == 3)
- {
- DisplayDialogForPlayer(playerid, 11); //Armory
- }
- if(listitem == 4)
- {
- if(PlayerInfo[playerid][pSFMember] != 1 && PlayerInfo[playerid][pRank] <= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "** [Error]: You're not a member of S.W.A.T / High Command");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- SetPlayerSkin( playerid, 285 );
- DisplayDialogForPlayer(playerid, 12); //Swat Menu
- }
- if(listitem == 5)
- {
- SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to clear.");
- LSPDClearing[playerid] = 1;
- }
- if(listitem == 6)
- {
- SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to release.");
- LSPDClearing[playerid] = 2;
- }
- }
- }
- if(dialogid == 11)
- {
- if(response)
- {
- if(listitem == 0) // Mace
- {
- if(PlayerInfo[playerid][pCash] < 20)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
- GivePlayerMoney(playerid,-20);
- GivePlayerWeapon(playerid, 41, 999999);
- PlayerInfo[playerid][pGun9] = 41;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 1) // Night Stick
- {
- if(PlayerInfo[playerid][pCash] < 20)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
- GivePlayerMoney(playerid,-20);
- GivePlayerWeapon(playerid, 3, 1);
- PlayerInfo[playerid][pGun1] = 3;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 2) // Deagle
- {
- if(PlayerInfo[playerid][pCash] < 500)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- GivePlayerWeapon(playerid, 24, 999999);
- PlayerInfo[playerid][pGun2] = 24;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 3) //Shotgun
- {
- if(PlayerInfo[playerid][pCash] < 200)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- GivePlayerWeapon(playerid, 25, 999999);
- PlayerInfo[playerid][pGun3] = 25;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 4) //MP5
- {
- if(PlayerInfo[playerid][pCash] < 400)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
- GivePlayerMoney(playerid,-400);
- GivePlayerWeapon(playerid, 29, 999999);
- PlayerInfo[playerid][pGun4] = 29;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 5) //Rifle
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- GivePlayerWeapon(playerid, 33, 999999);
- PlayerInfo[playerid][pGun6] = 33;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 6) //M4
- {
- if(PlayerInfo[playerid][pCash] < 4000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-4000;
- GivePlayerMoney(playerid,-4000);
- GivePlayerWeapon(playerid, 31, 999999);
- PlayerInfo[playerid][pGun5] = 31;
- TogglePlayerControllable(playerid,1);
- }
- }
- }
- }
- if(dialogid == 12) // SWAT MENU
- {
- if(response)
- {
- if(listitem == 0) //WEAPONS
- {
- DisplayDialogForPlayer(playerid, 13);
- }
- if(listitem == 1) //ACCESSORIES
- {
- DisplayDialogForPlayer(playerid, 14);
- }
- }
- }
- if(dialogid == 13) //WEAPONS
- {
- if(response)
- {
- new playercash = PlayerInfo[playerid][pCash];
- if(listitem == 0)
- {
- if(playercash < 500) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- GivePlayerWeapon(playerid, 24, 999999); PlayerInfo[playerid][pGun2] = 24; //deagle
- TogglePlayerControllable(playerid,1);
- }
- if(listitem == 1)
- {
- if(playercash < 200) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- GivePlayerWeapon(playerid, 25, 999999); PlayerInfo[playerid][pGun3] = 25; //shotgun
- TogglePlayerControllable(playerid,1);
- }
- if(listitem == 2)
- {
- if(playercash < 400) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
- GivePlayerMoney(playerid,-400);
- GivePlayerWeapon(playerid, 29, 999999); PlayerInfo[playerid][pGun4] = 29; //mp5
- TogglePlayerControllable(playerid,1);
- }
- if(listitem == 3)
- {
- if(playercash < 1000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- GivePlayerWeapon(playerid, 33, 999999); PlayerInfo[playerid][pGun6] = 33; //rifle
- TogglePlayerControllable(playerid,1);
- }
- if(listitem == 4)
- {
- if(playercash < 4000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-4000;
- GivePlayerMoney(playerid,-4000);
- GivePlayerWeapon(playerid, 31, 999999); PlayerInfo[playerid][pGun5] = 31; //m4
- TogglePlayerControllable(playerid,1);
- }
- if(listitem == 5)
- {
- if(playercash < 10000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10000;
- GivePlayerMoney(playerid,-10000);
- GivePlayerWeapon(playerid, 34, 999999); PlayerInfo[playerid][pGun6] = 34; //sniper
- TogglePlayerControllable(playerid,1);
- }
- if(listitem == 6)
- {
- if(playercash < 10000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10000;
- GivePlayerMoney(playerid,-10000);
- GivePlayerWeapon(playerid, 27, 999999); PlayerInfo[playerid][pGun3] = 27; //spas12
- TogglePlayerControllable(playerid,1);
- }
- }
- }
- if(dialogid == 14) //ACCESSORIES
- {
- if(response)
- {
- new playercash = PlayerInfo[playerid][pCash];
- if(listitem == 0)
- {
- if(playercash < 800) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-800;
- GivePlayerMoney(playerid,-800);
- GivePlayerWeapon(playerid, 17, 2); PlayerInfo[playerid][pGun8] = 17; //teargas
- TogglePlayerControllable(playerid,1);
- }
- if(listitem == 1)
- {
- if(playercash < 1000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- GivePlayerWeapon(playerid, 16, 2); PlayerInfo[playerid][pGun8] = 16; //grenades
- if(GetPlayerAmmo(playerid) >= 2) //ammo fix
- {
- GivePlayerWeapon(playerid, 16, -2);
- }
- TogglePlayerControllable(playerid,1);
- }
- if(listitem == 2)
- {
- if(playercash < 2000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-2000;
- GivePlayerMoney(playerid,-2000);
- SetPlayerArmour(playerid, 100.0);
- TogglePlayerControllable(playerid,1);
- }
- }
- }
- if(dialogid == 15)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerColor(playerid, 0x80008000);
- }
- if(listitem == 1)
- {
- SetPlayerColor(playerid, 0xFFFF0000);
- }
- if(listitem == 2)
- {
- SetPlayerColor(playerid, 0xff000000);
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid, 0x33CCFF00);
- }
- if(listitem == 4)
- {
- SetPlayerColor(playerid, 0xFF990000);
- }
- if(listitem == 5)
- {
- SetPlayerColor(playerid, 0x33AA3300);
- }
- if(listitem == 6)
- {
- SetPlayerColor(playerid, 0x4B00B000);
- }
- if(listitem == 7)
- {
- SetPlayerColor(playerid, 0xFF66FF00);
- }
- if(listitem == 8)
- {
- SetPlayerColor(playerid, 0x00000000);
- }
- }
- return 1;
- }
- if(dialogid == 16)
- {
- if(response)
- {
- if(listitem == 0) //Detective
- {
- DisplayDialogForPlayer(playerid, 17);
- return 1;
- }
- if(listitem == 1) //Lawyer
- {
- DisplayDialogForPlayer(playerid, 20);
- return 1;
- }
- if(listitem == 2) //Product Dealer
- {
- DisplayDialogForPlayer(playerid, 23);
- return 1;
- }
- if(listitem == 3) //Drug Dealer
- {
- DisplayDialogForPlayer(playerid, 26);
- return 1;
- }
- if(listitem == 4) //Mechanic
- {
- DisplayDialogForPlayer(playerid, 29);
- return 1;
- }
- if(listitem == 5) //Bodyguard
- {
- DisplayDialogForPlayer(playerid, 32);
- return 1;
- }
- if(listitem == 6) //Arms Dealer
- {
- DisplayDialogForPlayer(playerid, 35);
- return 1;
- }
- if(listitem == 7) //Boxer
- {
- DisplayDialogForPlayer(playerid, 38);
- return 1;
- }
- if(listitem == 8) //Taxi Driver
- {
- DisplayDialogForPlayer(playerid, 41);
- return 1;
- }
- if(listitem == 9) //Drug Smuggler
- {
- DisplayDialogForPlayer(playerid, 44);
- return 1;
- }
- }
- }
- if(dialogid == 17) //Detective
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 18);
- return 1;
- }
- }
- if(dialogid == 18) //Detective
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 19);
- return 1;
- }
- }
- if(dialogid == 19) // Detective
- {
- return 1;
- }
- if(dialogid == 20) // Lawyer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 21);
- return 1;
- }
- }
- if(dialogid == 21) // Lawyer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 22);
- return 1;
- }
- }
- if(dialogid == 22) // Lawyer
- {
- return 1;
- }
- if(dialogid == 23) // Product Dealer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 24);
- return 1;
- }
- }
- if(dialogid == 24) // Product Dealer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 25);
- return 1;
- }
- }
- if(dialogid == 25) // Product Dealer
- {
- return 1;
- }
- if(dialogid == 26) // Drug Dealer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 27);
- return 1;
- }
- }
- if(dialogid == 27) // Drug Dealer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 28);
- return 1;
- }
- }
- if(dialogid == 28) // Drug Dealer
- {
- return 1;
- }
- if(dialogid == 29) // Mechanic
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 30);
- return 1;
- }
- }
- if(dialogid == 30) // Mechanic
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 31);
- return 1;
- }
- }
- if(dialogid == 31) // Mechanic
- {
- return 1;
- }
- if(dialogid == 32) // Bodyguard
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 33);
- return 1;
- }
- }
- if(dialogid == 33) // Bodyguard
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 34);
- return 1;
- }
- }
- if(dialogid == 34) // Bodyguard
- {
- return 1;
- }
- if(dialogid == 35) // Arms Dealer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 36);
- return 1;
- }
- }
- if(dialogid == 36) // Arms Dealer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 37);
- return 1;
- }
- }
- if(dialogid == 37) // Arms Dealer
- {
- return 1;
- }
- if(dialogid == 38) // Boxer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 39);
- return 1;
- }
- }
- if(dialogid == 39) // Boxer
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 40);
- return 1;
- }
- }
- if(dialogid == 40) // Boxer
- {
- return 1;
- }
- if(dialogid == 41) // Taxi Driver
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 42);
- return 1;
- }
- }
- if(dialogid == 42) // Taxi Driver
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 43);
- return 1;
- }
- }
- if(dialogid == 43) // Taxi Driver
- {
- return 1;
- }
- if(dialogid == 44) // Drug Smuggler
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 45);
- return 1;
- }
- }
- if(dialogid == 45) // Drug Smuggler
- {
- if(response)
- {
- DisplayDialogForPlayer(playerid, 46);
- return 1;
- }
- }
- if(dialogid == 46) // Drug Smuggler
- {
- return 1;
- }
- if(dialogid == 48) //refund
- {
- if(!IsPlayerConnected(RefundingID[playerid]) || RefundingID[playerid] == INVALID_PLAYER_ID)
- {
- RefundingID[playerid] = 999; RefundingNumber[playerid] = 999;
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline / Invalid ID !");
- return 1;
- }
- if(!response) //cancel
- {
- RefundingNumber[playerid] = 999;
- DisplayDialogForPlayer(playerid, 47); //refund
- }
- if(response)
- {
- if(!strlen(inputtext)) //no text inputted
- {
- RefundingNumber[playerid] = 999;
- DisplayDialogForPlayer(playerid, 47); //refund
- return 1;
- }
- new sendername[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- new amount;
- amount = strval(inputtext);
- new string[128];
- new year, month, day;
- getdate(year, month, day);
- new stat = RefundingNumber[playerid];
- new giveplayerid = RefundingID[playerid];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- switch(stat)
- {
- case 0: //Level
- {
- RefundingNumber[playerid] = 999;
- PlayerInfo[giveplayerid][pLevel] = amount; //edit
- format(string, sizeof(string), "* You have set %s's Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 1: //Cash
- {
- RefundingNumber[playerid] = 999;
- PlayerInfo[giveplayerid][pCash] = amount; //edit
- format(string, sizeof(string), "* You have set %s's Cash to $%d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Cash to $%d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Cash to $%d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 2: //Bank
- {
- RefundingNumber[playerid] = 999;
- PlayerInfo[giveplayerid][pAccount] = amount; //edit
- format(string, sizeof(string), "* You have set %s's Bank Account to $%d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Bank Account to $%d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Bank Account to $%d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 3: //Materials
- {
- RefundingNumber[playerid] = 999;
- PlayerInfo[giveplayerid][pMats] = amount; //edit
- format(string, sizeof(string), "* You have set %s's Materials to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Materials to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Materials to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 4: //Crack
- {
- RefundingNumber[playerid] = 999;
- PlayerInfo[giveplayerid][pCrack] = amount; //edit
- format(string, sizeof(string), "* You have set %s's Crack to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Crack to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Crack to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 5: //Pot
- {
- RefundingNumber[playerid] = 999;
- PlayerInfo[giveplayerid][pPot] = amount; //edit
- format(string, sizeof(string), "* You have set %s's Pot to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Pot to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Pot to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 6: //Arms Dealer
- {
- RefundingNumber[playerid] = 999;
- //
- new lvl;
- if(amount == 1) { lvl = 0;}
- else if(amount == 2) { lvl = 50; }
- else if(amount == 3) { lvl = 100; }
- else if(amount == 4) { lvl = 200; }
- else if(amount == 5) { lvl = 400; }
- else if(amount == 6) { lvl = 600; }
- else if(amount == 7) { lvl = 900; }
- else if(amount == 8) { lvl = 1300; }
- else if(amount == 9) { lvl = 2000; }
- else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
- PlayerInfo[giveplayerid][pArmsSkill] = lvl; //edit
- //
- format(string, sizeof(string), "* You have set %s's Arms Dealer Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Arms Dealer Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Arms Dealer Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 7: //Carjacker
- {
- RefundingNumber[playerid] = 999;
- //
- new lvl;
- if(amount == 1) { lvl = 0;}
- else if(amount == 2) { lvl = 50; }
- else if(amount == 3) { lvl = 100; }
- else if(amount == 4) { lvl = 200; }
- else if(amount == 5) { lvl = 400; }
- else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
- PlayerInfo[giveplayerid][pJackSkill] = lvl; //edit
- //
- format(string, sizeof(string), "* You have set %s's Car Jacker Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Car Jacker Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Car Jacker Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 8: //Detective
- {
- RefundingNumber[playerid] = 999;
- //
- new lvl;
- if(amount == 1) { lvl = 0;}
- else if(amount == 2) { lvl = 50; }
- else if(amount == 3) { lvl = 100; }
- else if(amount == 4) { lvl = 200; }
- else if(amount == 5) { lvl = 400; }
- else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
- PlayerInfo[giveplayerid][pDetSkill] = lvl; //edit
- //
- format(string, sizeof(string), "* You have set %s's Detective Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Detective Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Detective Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 9: //Lawyer
- {
- RefundingNumber[playerid] = 999;
- //
- new lvl;
- if(amount == 1) { lvl = 0;}
- else if(amount == 2) { lvl = 50; }
- else if(amount == 3) { lvl = 100; }
- else if(amount == 4) { lvl = 200; }
- else if(amount == 5) { lvl = 400; }
- else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
- PlayerInfo[giveplayerid][pLawSkill] = lvl; //edit
- //
- format(string, sizeof(string), "* You have set %s's Lawyer Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Lawyer Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Lawyer Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 10: //Mechanic
- {
- RefundingNumber[playerid] = 999;
- //
- new lvl;
- if(amount == 1) { lvl = 0;}
- else if(amount == 2) { lvl = 50; }
- else if(amount == 3) { lvl = 100; }
- else if(amount == 4) { lvl = 200; }
- else if(amount == 5) { lvl = 400; }
- else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
- PlayerInfo[giveplayerid][pMechSkill] = lvl; //edit
- //
- format(string, sizeof(string), "* You have set %s's Mechanic Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Mechanic Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Mechanic Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 11: //Drug Dealer
- {
- RefundingNumber[playerid] = 999;
- //
- new lvl;
- if(amount == 1) { lvl = 0;}
- else if(amount == 2) { lvl = 50; }
- else if(amount == 3) { lvl = 100; }
- else if(amount == 4) { lvl = 200; }
- else if(amount == 5) { lvl = 400; }
- else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
- PlayerInfo[giveplayerid][pDrugsSkill] = lvl; //edit
- //
- PlayerInfo[giveplayerid][pDrugsSkill] = amount; //edit
- format(string, sizeof(string), "* You have set %s's Drug Dealer Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Drug Dealer Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Drug Dealer Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 12: //Sex
- {
- RefundingNumber[playerid] = 999;
- //
- new lvl;
- if(amount == 1) { lvl = 0;}
- else if(amount == 2) { lvl = 50; }
- else if(amount == 3) { lvl = 100; }
- else if(amount == 4) { lvl = 200; }
- else if(amount == 5) { lvl = 400; }
- else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
- PlayerInfo[giveplayerid][pSexSkill] = lvl; //edit
- //
- PlayerInfo[giveplayerid][pSexSkill] = amount; //edit
- format(string, sizeof(string), "* You have set %s's Sex Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Sex Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Sex Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 13: //Boxing
- {
- RefundingNumber[playerid] = 999;
- //
- new lvl;
- if(amount == 1) { lvl = 0;}
- else if(amount == 2) { lvl = 50; }
- else if(amount == 3) { lvl = 100; }
- else if(amount == 4) { lvl = 200; }
- else if(amount == 5) { lvl = 400; }
- else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
- PlayerInfo[giveplayerid][pBoxSkill] = lvl; //edit
- //
- format(string, sizeof(string), "* You have set %s's Boxing Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Boxing Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Boxing Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- case 14: //Fishing
- {
- RefundingNumber[playerid] = 999;
- //
- new lvl;
- if(amount == 1) { lvl = 0;}
- else if(amount == 2) { lvl = 50; }
- else if(amount == 3) { lvl = 100; }
- else if(amount == 4) { lvl = 200; }
- else if(amount == 5) { lvl = 400; }
- else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
- PlayerInfo[giveplayerid][pFishSkill] = lvl; //edit
- //
- format(string, sizeof(string), "* You have set %s's Fishing Level to %d.", giveplayer, amount); //edit
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* An Admin has set your Fishing Level to %d.", amount); //edit
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DisplayDialogForPlayer(playerid, 47); //refund
- format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Fishing Level to %d", day, month, year, sendername, giveplayer, amount); //edit
- StatLog(string);
- }
- default:
- {
- DisplayDialogForPlayer(playerid, 47); //refund
- SendClientMessage(giveplayerid, COLOR_GREY, " Invalid stat code !");
- return 1;
- }
- }
- }
- }
- if(dialogid == 47) //refund
- {
- if(!response)
- {
- RefundingID[playerid] = 999;
- }
- if(response)
- {
- new string[128];
- new statname[32];
- new giveplayer[MAX_PLAYER_NAME];
- GetPlayerName(RefundingID[playerid], giveplayer, sizeof(giveplayer));
- switch(listitem)
- {
- case 0:
- {
- RefundingNumber[playerid] = 0;
- statname = "Level";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 1:
- {
- RefundingNumber[playerid] = 1;
- statname = "Cash";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 2:
- {
- RefundingNumber[playerid] = 2;
- statname = "Bank";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- return 1;
- }
- case 3:
- {
- RefundingNumber[playerid] = 3;
- statname = "Materials";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 4:
- {
- RefundingNumber[playerid] = 4;
- statname = "Crack";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 5:
- {
- RefundingNumber[playerid] = 5;
- statname = "Pot";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 6:
- {
- RefundingNumber[playerid] = 6;
- statname = "Arms Dealer Skill";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 7:
- {
- RefundingNumber[playerid] = 7;
- statname = "Carjacker Skill";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 8:
- {
- RefundingNumber[playerid] = 8;
- statname = "Detective Skill";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 9:
- {
- RefundingNumber[playerid] = 9;
- statname = "Lawyer Skill";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 10:
- {
- RefundingNumber[playerid] = 10;
- statname = "Mechanic Skill";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 11:
- {
- RefundingNumber[playerid] = 11;
- statname = "Drug Dealer Skill";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 12:
- {
- RefundingNumber[playerid] = 12;
- statname = "Sex Skill";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 13:
- {
- RefundingNumber[playerid] = 13;
- statname = "Boxing Skill";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- case 14:
- {
- RefundingNumber[playerid] = 14;
- statname = "Fishing Skill";
- format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
- ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
- }
- }
- return 1;
- }
- }
- if(dialogid == 59)
- {
- if(response)
- {
- if(strlen(inputtext))
- {
- new string[256];
- new amount = strval(inputtext);
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't withdraw negative amounts !");
- return 1;
- }
- if(PlayerInfo[playerid][pAccount] < amount)
- {
- format(string, sizeof(string), "Information:\n\nLos Santos Bank has denied your card.\nThe amount of money ($%d), you want to withdraw, is over your bank till ($%d).", amount, PlayerInfo[playerid][pAccount]);
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Los Santos ATM", string, "Done", "Cancel");
- return 1;
- }
- PlayerInfo[playerid][pAccount] -= amount;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+amount;
- GivePlayerMoney(playerid,amount);
- format(string, sizeof(string), "Information:\n\nLos Santos Bank has replied.\nYou have withdrawn $%d from your bank acount.\nNew balance: $%d", amount, PlayerInfo[playerid][pAccount]);
- ShowPlayerDialog(playerid, 61, DIALOG_STYLE_MSGBOX, "Los Santos ATM", string, "Done", "Cancel");
- format(string, sizeof(string), "* %s takes their cash out of the machine and puts their card in their pocket.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- return 1;
- }
- if(dialogid == 60 || dialogid == 61)
- {
- if(response) { }
- return 1;
- }
- if(dialogid == 62)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pDonateRank] >= 1)
- {
- if(PlayerInfo[playerid][pVipColor] == 0)
- {
- PlayerInfo[playerid][pVipColor] = 1;
- SendClientMessage(playerid, 0x80008000, " Your name is now colored!");
- SetPlayerToTeamColor(playerid);
- }
- else if(PlayerInfo[playerid][pVipColor] == 1)
- {
- PlayerInfo[playerid][pVipColor] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, " Your name is no longer colored.");
- SetPlayerToTeamColor(playerid);
- }
- }
- }
- if(listitem == 1) // car tune
- {
- new tempid = GetPlayerVehicleID(playerid);
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid,COLOR_GREY," You are not in a vehicle!");
- return 1;
- }
- if(IsAPlane(tempid) || IsAHelicopter(tempid) || IsABike(tempid) || IsATrain(tempid) || IsABoat(tempid))
- {
- SendClientMessage(playerid,COLOR_GREY," You can't mod this!");
- return 1;
- }
- ShowPlayerDialog(playerid, 63, DIALOG_STYLE_LIST, "Tune Menu","Colors\nPaintjobs\nWheels\nHydraulics", "Select", "Cancel");
- }
- if(listitem == 2) // skin
- {
- SetPlayerSkin(playerid, VIPSkins[random(sizeof(VIPSkins))]);
- }
- }
- return 1;
- }
- if(dialogid == 63)
- {
- if(response)
- {
- if(listitem == 0) // Colors
- {
- ShowPlayerDialog(playerid, 64, DIALOG_STYLE_LIST, "Vehicle Color","Black\nWhite\nDark Blue\nLight Blue\nGreen\nYellow\nPink\nRed", "Change", "Cancel");
- }
- if(listitem == 1) // Paintjobs
- {
- ShowPlayerDialog(playerid, 65, DIALOG_STYLE_LIST, "Paint Jobs","Style1\nStyle2\nStyle3", "Change", "Cancel");
- }
- if(listitem == 2) // Wheels
- {
- ShowPlayerDialog(playerid, 66, DIALOG_STYLE_LIST, "Wheels","Style 1 \nStyle 2 \nStyle 3 \nStyle 4 \nStyle 5 \nStyle 6", "Change", "Cancel");
- }
- if(listitem == 3) // Hydraulics
- {
- new vipcar = GetPlayerVehicleID(playerid);
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid,COLOR_GREY," You are not in a vehicle!");
- return 1;
- }
- if(IsAPlane(vipcar) || IsAHelicopter(vipcar) || IsABike(vipcar) || IsATrain(vipcar) || IsABoat(vipcar))
- {
- SendClientMessage(playerid,COLOR_GREY," You can't mod this!");
- return 1;
- }
- AddVehicleComponent(vipcar, 1087);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- }
- }
- return 1;
- }
- if(dialogid == 64)
- {
- if(response)
- {
- new vipcar = GetPlayerVehicleID(playerid);
- if(listitem == 0) // black
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehicleColor(vipcar,0,0);
- CarInfo[vipcar][tColorOne] = 0;
- CarInfo[vipcar][tColorTwo] = 0;
- }
- if(listitem == 1) //White
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehicleColor(vipcar,1,1);
- CarInfo[vipcar][tColorOne] = 1;
- CarInfo[vipcar][tColorTwo] = 1;
- }
- if(listitem == 2) //Dark Blue
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehicleColor(vipcar,425,425);
- CarInfo[vipcar][tColorOne] = 425;
- CarInfo[vipcar][tColorTwo] = 425;
- }
- if(listitem == 3) // Light Blue
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehicleColor(vipcar,2,2);
- CarInfo[vipcar][tColorOne] = 2;
- CarInfo[vipcar][tColorTwo] = 2;
- }
- if(listitem == 4) //Green
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehicleColor(vipcar,16,16);
- CarInfo[vipcar][tColorOne] = 16;
- CarInfo[vipcar][tColorTwo] = 16;
- }
- if(listitem == 5) //Yellow
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehicleColor(vipcar,6,6);
- CarInfo[vipcar][tColorOne] = 6;
- CarInfo[vipcar][tColorTwo] = 6;
- }
- if(listitem == 6) //Pink
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehicleColor(vipcar,146,146);
- CarInfo[vipcar][tColorOne] = 146;
- CarInfo[vipcar][tColorTwo] = 146;
- }
- if(listitem == 7) // Red
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehicleColor(vipcar,3,3);
- CarInfo[vipcar][tColorOne] = 3;
- CarInfo[vipcar][tColorTwo] = 3;
- }
- }
- return 1;
- }
- if(dialogid == 65)
- {
- if(response)
- {
- new vipcar = GetPlayerVehicleID(playerid);
- if(listitem == 0) // style 1
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehiclePaintjob(vipcar,0);
- CarInfo[vipcar][tPaintjob] = 0;
- }
- if(listitem == 1) //Style 2
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehiclePaintjob(vipcar,1);
- CarInfo[vipcar][tPaintjob] = 1;
- }
- if(listitem == 2) //style 3
- {
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- ChangeVehiclePaintjob(vipcar,2);
- CarInfo[vipcar][tPaintjob] = 2;
- }
- }
- return 1;
- }
- if(dialogid == 66)
- {
- if(response)
- {
- new vipcar = GetPlayerVehicleID(playerid);
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid,COLOR_GREY," You are not in a vehicle!");
- return 1;
- }
- if(IsAPlane(vipcar) || IsAHelicopter(vipcar) || IsABike(vipcar) || IsATrain(vipcar) || IsABoat(vipcar))
- { //in case they somehow bypass the /vip check
- SendClientMessage(playerid,COLOR_GREY," You can't mod this!");
- return 1;
- }
- if(listitem == 0) // style 1
- {
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- AddVehicleComponent(vipcar,1084);
- }
- if(listitem == 1) //Style 2
- {
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- AddVehicleComponent(vipcar,1073);
- }
- if(listitem == 2) //Style 3
- {
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- AddVehicleComponent(vipcar,1075);
- }
- if(listitem == 3) //Style 4
- {
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- AddVehicleComponent(vipcar,1077);
- }
- if(listitem == 4) //Style 5
- {
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- AddVehicleComponent(vipcar,1079);
- }
- if(listitem == 5) //Style 6
- {
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- AddVehicleComponent(vipcar,1080);
- }
- }
- return 1;
- }
- if(dialogid == 67) //LSFMD
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(JobDuty[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Medic Job and will not receive calls anymore.");
- JobDuty[playerid] = 0;
- SetPlayerColor(playerid, TCOLOR_WHITE);
- Medics -= 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Medic Job and will receive calls from people in need.");
- JobDuty[playerid] = 1;
- SetPlayerColor(playerid, TCOLOR_PARAMEDIC);
- Medics += 1;
- }
- }
- if(listitem == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the Char you want to use.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
- TogglePlayerControllable(playerid, 0);
- SelectChar[playerid] = 255;
- SelectCharPlace[playerid] = 1;
- if(PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
- ChangeUniform[playerid] = 1;
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid,68,DIALOG_STYLE_LIST,"Gear","Fire Extinguisher $50\nDeagle $1000\nKevlar $2000\n","Purchase","Cancel"); //Gear
- }
- }
- }
- if(dialogid == 68)
- {
- if(response)
- {
- if(listitem == 0) // Fire Extinguisher
- {
- if(PlayerInfo[playerid][pCash] < 50)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
- GivePlayerMoney(playerid,-50);
- GivePlayerGun(playerid, 42);
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 1) // Deagle
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- GivePlayerWeapon(playerid, 24, 999999);
- PlayerInfo[playerid][pGun2] = 24;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 2) //Kevlar
- {
- if(PlayerInfo[playerid][pCash] < 2000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-2000;
- GivePlayerMoney(playerid,-2000);
- SetPlayerArmour(playerid,100);
- TogglePlayerControllable(playerid,1);
- }
- }
- }
- }
- if(dialogid == 79) // Help
- {
- if(response)
- {
- if(listitem == 0) DisplayDialogForPlayer(playerid, 80); // Account Help
- if(listitem == 1) DisplayDialogForPlayer(playerid, 81); // General Help
- if(listitem == 2) DisplayDialogForPlayer(playerid, 82); // Chat Help
- if(listitem == 3) DisplayDialogForPlayer(playerid, 83); // Toggle Help
- if(listitem == 4) DisplayDialogForPlayer(playerid, 84); // Bank Help
- if(listitem == 5) DisplayDialogForPlayer(playerid, 16); // Job Help
- if(listitem == 6) // Faction
- {
- if(PlayerInfo[playerid][pMember] == 0) { return SendClientMessage(playerid,COLOR_GRAD1,"You are not a member of a faction."); }
- DisplayDialogForPlayer(playerid, 85); // Faction Help
- return 1;
- }
- if(listitem == 7) // Family
- {
- if(PlayerInfo[playerid][pFMember] == 255) { return SendClientMessage(playerid,COLOR_GRAD1,"You are not a member of a family."); }
- DisplayDialogForPlayer(playerid, 86); // Family Help
- return 1;
- }
- if(listitem == 8) // Admin
- {
- if(PlayerInfo[playerid][pAdmin] < 1) { return SendClientMessage(playerid,COLOR_GRAD1,"You are not authorized to use this help box."); }
- DisplayDialogForPlayer(playerid, 87); // Admin Help
- return 1;
- }
- if(listitem == 9) DisplayDialogForPlayer(playerid, 88); // Other Help
- if(listitem == 10) DisplayDialogForPlayer(playerid, 89); // Business Help
- if(listitem == 11) ShowPlayerDialog(playerid,FAQ,DIALOG_STYLE_LIST,"Frequently asked questions","How to level up\nHow to buy a car\nHow to buy a house\nHow to buy a business\nHow to join a faction\nHow to join a gang\nHow to become VIP\nWhat's the use of donuts and how to get them\nHow to become a staff member\nHow to rob the bank\nHow to get a refund\nGeneral help","Ok","Cancel"); //FAQ
- }
- }
- if(dialogid == 80)
- {
- if(response) SendClientMessage(playerid, COLOR_GRAD1, "Account: /stats, /skill, /levelup, /upgrade, /resetupgrades, /changepass, /signcheck.");
- }
- if(dialogid == 81)
- {
- if(response)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "General: /pay, /give, /time, /buy, /drink, /(show)licenses, /setalarm, /buyhouse, /(join/quit)event, /animlist /sellmats.");
- SendClientMessage(playerid, COLOR_GRAD1, "General: /stopani, /tie, /untie, /frisk, /drop, /report, /cancel, /id, /flipcoin, /breakin, /(un)blindfold /helpme.");
- SendClientMessage(playerid, COLOR_GRAD1, "General: /eject, /usepot, /usecrack, /kill, /contract, /fill, /service, /families, /sellcar, /pickweed, /checkweed.");
- }
- }
- if(dialogid == 82)
- {
- if(response) SendClientMessage(playerid, COLOR_GRAD1, "Chat: (/w)hisper, (/o)oc, (/s)hout, (/b)localooc, (/ad)vertise, /me, /do, /low, (/int)ercom, /speakon.");
- }
- if(dialogid == 83) //
- {
- if(response) SendClientMessage(playerid, COLOR_GRAD1, "Toggles: /togooc, /tognewbie, /tognews, /togfam, /togwhisper, /togphone, /togwt, /togfuel, /togalarm");
- }
- if(dialogid == 84) //
- {
- if(response) SendClientMessage(playerid, COLOR_GRAD1, "Bank: /withdraw, /deposit, /atm, /wiretransfer");
- }
- if(dialogid == 85) //
- {
- if(response)
- {
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) // LSPD
- {
- SendClientMessage(playerid, COLOR_GRAD1, " LSPD: (/r)adio (/d)epartments (/m)egaphone (/su)spect /lspd /mdc /detain /arrest /wanted /cuff /tazer /showbadge");
- SendClientMessage(playerid, COLOR_GRAD1, " LSPD: /take /ticket (/gov)ernment /deliver /clothes /(un)invite /ouninvite /giverank /deployspikes /deletespike(s)");
- SendClientMessage(playerid, COLOR_GRAD1, " LSPD: /crb /rrb /rrball /armshield /backshield");
- }
- if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
- {
- SendClientMessage(playerid, COLOR_GRAD1, " FBI: (/r)adio (/d)epartments (/m)egaphone (/su)spect /lspd /mdc /detain /arrest /wanted /cuff /tazer /showbadge");
- SendClientMessage(playerid, COLOR_GRAD1, " FBI: /take /ticket (/gov)ernment /deliver /clothes /(un)invite /ouninvite /giverank /deployspikes /deletespike(s)");
- SendClientMessage(playerid, COLOR_GRAD1, " LSPD: /crb /rrb /rrball /armshield /backshield");
- }
- if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) // SAST
- {
- SendClientMessage(playerid, COLOR_GRAD1, " SAST: (/r)adio (/d)epartments (/m)egaphone (/su)spect /lspd /mdc /detain /arrest /wanted /cuff /tazer /showbadge");
- SendClientMessage(playerid, COLOR_GRAD1, " SAST: /take /ticket (/gov)ernment /deliver /clothes /(un)invite /ouninvite /giverank /deployspikes /deletespike(s)");
- SendClientMessage(playerid, COLOR_GRAD1, " LSPD: /crb /rrb /rrball /armshield /backshield");
- }
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) // LSFMD
- {
- SendClientMessage(playerid, COLOR_GRAD1, " LSFMD: (/r)adio (/d)epartments (/m)egaphone /heal /duty /clothes /(un)invite /ouninvite /giverank");
- }
- if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) //Prison Guards
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Prison Guards: (/r)adio (/d)epartments (/m)egaphone (/su)spect /ng /mdc /detain /wanted /cuff /giverank /tazer");
- SendClientMessage(playerid, COLOR_GRAD1, " Prison Guards: /take /ticket (/gov)ernment /deliver /(un)invite /ouninvite /deployspikes /deletespike(s)");
- }
- if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) //Senate
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Senate: (/r)adio /clothes /settax /taxwithdraw /(un)invite /ouninvite /giverank /senate");
- }
- if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) // Sector 9
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Sector 9: (/r)adio (/d)epartments (/su)spect /lspd /mdc /detain /arrest /wanted /cuff /tazer");
- SendClientMessage(playerid, COLOR_GRAD1, " Sector 9: /take /ticket /deliver /clothes /(un)invite /ouninvite /giverank /changeclothes /showbadge");
- }
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) // Hitman Agency
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Hitman Agency: (/f)amily /contracts /givehit /order /ranks /profile /disguise /plantbomb /pickupbomb /clothes /(un)invite /ouninvite /giverank");
- }
- if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) // News Agency
- {
- SendClientMessage(playerid, COLOR_GRAD1, " News Reporter: /live /news [text] /clothes /(un)invite /ouninvite /giverank");
- }
- if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) // Taxi Cab Company
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Taxi Company: /fare /clothes /(un)invite /ouninvite /giverank");
- }
- }
- }
- if(dialogid == 86) //
- {
- if(response) SendClientMessage(playerid, COLOR_GRAD1, " Family: (/f)amily, /adjust, /fwithdraw, /fdeposit, /fsafe, /fstats, /clothes");
- }
- if(dialogid == 87) //
- {
- if(response) SendClientMessage(playerid, COLOR_GRAD1, "Admin: (/a)dmin, (/ah)elp, /ahousehelp, /abizhelp, /acarhelp");
- }
- if(dialogid == 88) //
- {
- if(response) SendClientMessage(playerid, COLOR_GRAD1, "Other: /cellphonehelp, /househelp, /fishhelp, /irchelp");
- }
- if(dialogid == 89) //
- {
- if(response) SendClientMessage(playerid, COLOR_GRAD1, "Business: /sellbiz, /sellbiztomarket, /biz, /buybiz");
- }
- if(dialogid == 8711)
- {
- if(response == 1)
- {
- new string[128];
- new biz = PlayerInfo[playerid][pInBiz];
- switch(listitem)
- {
- case 0:
- {
- if(!(PlayerInfo[playerid][pPnumber] == 0))
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You already have a cell phone !");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- new randphone = 1000 + random(8999);//minimum 1000 max 9999
- PlayerInfo[playerid][pPnumber] = randphone;
- format(string, sizeof(string), "~r~-$%d", 500);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "Mobile phone purchased, your new phone number is %d.", randphone);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD5, "You can check this anytime by typing /stats.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now type /help to see your cell phone commands.");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- }
- }
- case 1:
- {
- if(PlayerInfo[playerid][pCash] > 349)
- {
- if(PlayerInfo[playerid][pPhoneBook] == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You already have a phonebook!");
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-350;
- GivePlayerMoney(playerid,-350);
- PlayerInfo[playerid][pPhoneBook] = 1;
- format(string, sizeof(string), "~r~-$%d", 350);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Phonebook purchased, you can now look up other players numbers.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /number <id/name> or /address <id/name>");
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 350;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
- }
- }
- case 2:
- {
- ShowPlayerDialog(playerid, 8712, DIALOG_STYLE_LIST, "Buy Phone Credit", "25 $150\n50 $500\n250 $1,000", "Select", "Cancel");
- }
- case 3:
- {
- ShowPlayerDialog(playerid, 8713, DIALOG_STYLE_INPUT, "Number Information", "Enter the phone number you would like to lookup.", "Lookup", "Cancel");
- }
- }
- }
- }
- if(dialogid == 8712)
- {
- if(response == 1)
- {
- new string[128];
- new biz = PlayerInfo[playerid][pInBiz];
- switch(listitem)
- {
- case 0:
- {
- if(PlayerInfo[playerid][pCredits] > 2975)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your phone doesn't support more than 3000 credits.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] > 149)
- {
- PlayerInfo[playerid][pCredits] += 25;
- SendClientMessage(playerid, COLOR_GRAD4, "You have topped up your phone with 25 credits.");
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-150;
- GivePlayerMoney(playerid,-150);
- format(string, sizeof(string), "~r~-$%d", 150);
- GameTextForPlayer(playerid, string, 5000, 1);
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 150;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
- return 1;
- }
- }
- case 1:
- {
- if(PlayerInfo[playerid][pCredits] > 2975)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your phone doesn't support more than 3000 credits.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] > 499)
- {
- PlayerInfo[playerid][pCredits] += 100;
- SendClientMessage(playerid, COLOR_GRAD4, "You have topped up your phone with 100 credits.");
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- format(string, sizeof(string), "~r~-$%d", 500);
- GameTextForPlayer(playerid, string, 5000, 1);
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 500;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
- return 1;
- }
- }
- case 2:
- {
- if(PlayerInfo[playerid][pCredits] > 2975)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your phone doesn't support more than 3000 credits !");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] > 990)
- {
- PlayerInfo[playerid][pCredits] += 250;
- SendClientMessage(playerid, COLOR_GRAD4, "You have topped up your phone with 250 credits.");
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- format(string, sizeof(string), "~r~-$%d", 1000);
- GameTextForPlayer(playerid, string, 5000, 1);
- if(BizInfo[biz][bOwned] == 1)
- {
- BizInfo[biz][bTill] += 1000;
- BizInfo[biz][bProducts]--;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
- return 1;
- }
- }
- }
- }
- }
- if(dialogid == 8713)
- {
- if(response == 1)
- {
- new string[128], string2[128], string3[128];
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- new number = strval(inputtext);
- if(PlayerInfo[i][pPnumber] == number)
- {
- new sex[64];
- if(PlayerInfo[i][pSex] == 1)
- sex = "Male";
- else if(PlayerInfo[i][pSex] == 2)
- sex = "Female";
- format(string, sizeof(string), "Name: %s", PlayerName(i));
- format(string2, sizeof(string2), "Age: %d", PlayerInfo[i][pAge]);
- format(string3, sizeof(string3), "Sex: %s", sex);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_WHITE, string2);
- SendClientMessage(playerid, COLOR_WHITE, string3);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Unknown Phone Number!");
- }
- }
- if(dialogid == LOADTHECASH) // /loadcash
- {
- if(response)
- {
- if(listitem == 0) //Opt 1 - 50k-500k - 6 min of loading
- {
- LoadingCash = 1;
- LoadingCashType[playerid] = 1;
- LoadingCashTime[playerid] = 6;
- }
- if(listitem == 1) //Opt 2 - 50k-1m - 15 min of loading
- {
- LoadingCash = 1;
- LoadingCashType[playerid] = 2;
- LoadingCashTime[playerid] = 10;
- }
- if(listitem == 2) //Opt 3 - 100k-1.5m - 15 min of loading
- {
- LoadingCash = 1;
- LoadingCashType[playerid] = 3;
- LoadingCashTime[playerid] = 15;
- }
- new str[128];
- format(str, sizeof(str), "** %s begins loading the bag with cash.", PlayerName(playerid));
- ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimerEx("RobBank", 1, false, "d", playerid);
- SetTimerEx("RobBankMove", 1, false, "d", playerid);
- return 1;
- }
- }
- if(dialogid == CRACKTHEVAULT) //Bank robbery
- {
- if(response)
- {
- new points = PlayerInfo[playerid][pWantedLevel];
- new pass = strval(inputtext);
- if (pass == VPass)
- {
- SendClientMessage(playerid, COLOR_YELLOW, " You are now wanted, the LSPD will be informed soon !");
- SendClientMessage(playerid, COLOR_GREEN, " You successfully unlocked the vault. It must be opened (( /openvault )) and the cash must be loaded (( /loadcash )) in the next 30 seconds!");
- PlayerInfo[playerid][pWantedLevel] =5;
- SetPlayerWantedLevel(playerid, 5);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- SetTimer("CashLoadCheck", 30000, 0);
- BankRobbery = 1;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, " You are now wanted for attempting to rob the bank !");
- SendClientMessage(playerid, COLOR_RED, " Wrong password!");
- PlayerInfo[playerid][pWantedLevel] = points+1;
- SetPlayerWantedLevel(playerid, points+1);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == 69) //LSPD Password
- {
- if(response)
- {
- new pass = strval(inputtext);
- if (pass == Pass[LSPD])
- {
- MoveDynamicObject(LSPD_Door[ObjectID1], 247.3080, 72.3000, 1003.6700, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID2], 245.480, 72.5750, 1003.6650, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID3], 247.888, 72.4500, 1003.7000, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID4], 244.908, 72.4500, 1003.7000, 1.50);
- LSPD_Door[Opened] = 1; LSPD_Door[TimerID]= SetTimer("PDDoorCheck", 3000, 0);
- return 1;
- }
- else
- {
- new lspdstring[256];
- format(lspdstring,sizeof(lspdstring),"\n {FF0000} Wrong Password\n\n Access denied");
- ShowPlayerDialog(playerid,61,DIALOG_STYLE_MSGBOX ,"{0101DF}Los Santos Police Department",lspdstring, "Exit", "");
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == FBI1) //FBI
- {
- if(response)
- {
- if(listitem == 0)
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pOnDuty] == 0) //if player is off duty, set them them on
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* Agent %s takes a Badge and Gun from their locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { SetPlayerColor(playerid, TCOLOR_NAVYBLUE); }
- GivePlayerWeapon(playerid, 24, 999999); PlayerInfo[playerid][pGun2] = 24; //deagle
- GivePlayerWeapon(playerid, 41, 999999); PlayerInfo[playerid][pGun9] = 41; //spray
- GivePlayerWeapon(playerid, 3, 1); PlayerInfo[playerid][pGun1] = 3; //nitestick
- SetPlayerArmour(playerid, 100.0);
- PlayerInfo[playerid][pOnDuty] = 1;
- TogglePlayerControllable(playerid,1);
- }
- else if(PlayerInfo[playerid][pOnDuty] == 1) //if player is on duty, set them off
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* Agent %s places a Badge and Gun in their locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TCOLOR_WHITE);
- PlayerInfo[playerid][pGun2] = 0;
- PlayerInfo[playerid][pGun9] = 0;
- PlayerInfo[playerid][pGun1] = 0;
- ResetPlayerWeapons(playerid);
- SetPlayerArmour(playerid, 0.0);
- PlayerInfo[playerid][pOnDuty] = 0;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 1)
- {
- new undercoverskins[5];
- undercoverskins[0] = 17;
- undercoverskins[1] = 185;
- undercoverskins[2] = 46;
- undercoverskins[3] = 73;
- undercoverskins[4] = 72;
- new randomnumber = random(sizeof(undercoverskins));
- SetPlayerSkin(playerid, undercoverskins[randomnumber]);
- PlayerInfo[playerid][pModel] = undercoverskins[randomnumber];
- TogglePlayerControllable(playerid,1);
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the Char you want to use.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
- TogglePlayerControllable(playerid, 0);
- SelectChar[playerid] = 255;
- SelectCharPlace[playerid] = 1;
- if(PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- else if(PlayerInfo[playerid][pMember] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
- else if(PlayerInfo[playerid][pLeader] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
- PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
- ChangeUniform[playerid] = 1;
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, FBI2, DIALOG_STYLE_LIST, "FBI", "Mace $20\nNight Stick $20\nDeagle $500\nShotgun $200\nMP5 $400\nRifle $1,000\nM4 $4,000\nMask $15,000","Purchase","Cancel");
- }
- if(listitem == 4)
- {
- if(PlayerInfo[playerid][pRank] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " Only TACTICAL Officers are able to use this !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- SetPlayerSkin( playerid, 285 );
- DisplayDialogForPlayer(playerid, 12); //Swat Menu
- }
- if(listitem == 5)
- {
- SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to clear.");
- LSPDClearing[playerid] = 1;
- }
- if(listitem == 6)
- {
- SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to release.");
- LSPDClearing[playerid] = 2;
- }
- }
- }
- if(dialogid == FBI2)
- {
- if(response)
- {
- if(listitem == 0) // Mace
- {
- if(PlayerInfo[playerid][pCash] < 20)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
- GivePlayerMoney(playerid,-20);
- GivePlayerWeapon(playerid, 41, 999999);
- PlayerInfo[playerid][pGun9] = 41;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 1) // Night Stick
- {
- if(PlayerInfo[playerid][pCash] < 20)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
- GivePlayerMoney(playerid,-20);
- GivePlayerWeapon(playerid, 3, 1);
- PlayerInfo[playerid][pGun1] = 3;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 2) // Deagle
- {
- if(PlayerInfo[playerid][pCash] < 500)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- GivePlayerWeapon(playerid, 24, 999999);
- PlayerInfo[playerid][pGun2] = 24;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 3) //Shotgun
- {
- if(PlayerInfo[playerid][pCash] < 200)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- GivePlayerWeapon(playerid, 25, 999999);
- PlayerInfo[playerid][pGun3] = 25;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 4) //MP5
- {
- if(PlayerInfo[playerid][pCash] < 400)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
- GivePlayerMoney(playerid,-400);
- GivePlayerWeapon(playerid, 29, 999999);
- PlayerInfo[playerid][pGun4] = 29;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 5) //Rifle
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- GivePlayerWeapon(playerid, 33, 999999);
- PlayerInfo[playerid][pGun6] = 33;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 6) //M4
- {
- if(PlayerInfo[playerid][pCash] < 4000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-4000;
- GivePlayerMoney(playerid,-4000);
- GivePlayerWeapon(playerid, 31, 999999);
- PlayerInfo[playerid][pGun5] = 31;
- TogglePlayerControllable(playerid,1);
- }
- }
- if(listitem == 7) //Mask
- {
- if(PlayerInfo[playerid][pCash] < 15000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- else
- {
- if(PlayerInfo[playerid][pRank] > 3)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-15000;
- GivePlayerMoney(playerid,-15000);
- HasBoughtMask[playerid] = 1;
- TogglePlayerControllable(playerid,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not R4+ !");
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- }
- }
- }
- }
- if(dialogid == VEHMENU1)
- {
- if(response)
- {
- if(listitem == 0) //
- {
- ShowPlayerDialog(playerid, VEHMENU2, DIALOG_STYLE_LIST, "Color List", "Red\nBlue\nPink\nBlack\nWhite\nYellow", "Color", "Cancel");
- }
- if(listitem == 1) //
- {
- ShowPlayerDialog(playerid, VEHMENU3, DIALOG_STYLE_LIST, "Modifications", "Nos\nHydralics\nRepair", "Accept", "Cancel");
- }
- }
- }
- if(dialogid == VEHMENU2)
- {
- if(response)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(listitem == 0) //
- {
- ChangeVehicleColor(vehicle, 3, 3);
- PlayerPlaySound(playerid,1134,0,0,0);
- }
- if(listitem == 1) //
- {
- ChangeVehicleColor(vehicle, 2, 2);
- PlayerPlaySound(playerid,1134,0,0,0);
- }
- if(listitem == 2) //
- {
- ChangeVehicleColor(vehicle, 126, 126);
- PlayerPlaySound(playerid,1134,0,0,0);
- }
- if(listitem == 3) //
- {
- ChangeVehicleColor(vehicle, 0, 0);
- PlayerPlaySound(playerid,1134,0,0,0);
- }
- if(listitem == 4) //
- {
- ChangeVehicleColor(vehicle, 1, 1);
- PlayerPlaySound(playerid,1134,0,0,0);
- }
- if(listitem == 5) //
- {
- ChangeVehicleColor(vehicle, 6, 6);
- PlayerPlaySound(playerid,1134,0,0,0);
- }
- }
- }
- if(dialogid == VEHMENU3)
- {
- if(response)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(listitem == 0) //
- {
- AddVehicleComponent(vehicle, 1010);
- PlayerPlaySound(playerid,1133,0,0,0);
- }
- if(listitem == 1) //
- {
- AddVehicleComponent(vehicle, 1087);
- PlayerPlaySound(playerid,1133,0,0,0);
- }
- if(listitem == 2) //
- {
- RepairVehicle(vehicle);
- PlayerPlaySound(playerid,1133,0,0,0);
- }
- }
- }
- return 0;
- }
- public OnPlayerConnect(playerid)
- {
- if(IsPlayerNPC(playerid))
- {
- gPlayerLogged[playerid] = 1;
- }
- if(Security != 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
- Kick(playerid);
- return 1;
- }
- gPlayerAnimLibsPreloaded[playerid] = 0;
- gActivePlayers[playerid]++;
- numplayers++;
- new plname[MAX_PLAYER_NAME];
- new string[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plname, sizeof(plname));
- SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; WTOnline[playerid] = 0; AlarmOnline[playerid] = 0;
- SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; OldHealth[playerid] = 0.0; OldArmour[playerid] = 0.0;
- GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; VehiclePrice[playerid] = 0; VehicleSellID[playerid] = 0;
- TempKey[playerid] = 0; KeysOffer[playerid] = 999; KeysID[playerid] = 0; KeysOfferTo[playerid] = 999;
- DefenseOffer[playerid] = 999; DefensePrice[playerid] = 0; FamilyOffer[playerid] = 999; FactionOffer[playerid] = 999; UserSprunk[playerid] = 0; VehicleOffer[playerid] = 999;
- HousePrice[playerid] = 0; HouseSellID[playerid] = 0; HouseOffer[playerid] = 999; RentOffer[playerid] = 999; RentPrice[playerid] = 999; RentHouseID[playerid] = 999;
- BizPrice[playerid] = 0; BizSellID[playerid] = 0; BizOffer[playerid] = 999; HoldingDetonator[playerid] = 0; Suitcaseaction[playerid] = 0;//HoldingSuitcase[playerid] = 0;
- WithGlasses[playerid] = 0; Parrot[playerid] = 0; WithMask[playerid] = 0; WithHat[playerid] = 0; WithBandana[playerid] = 0; WithHelmet[playerid] = 0;
- CallLawyer[playerid] = 0; WantLawyer[playerid] = 0; KickPlayer[playerid] = 0; CP[playerid] = 0; HouseEditID[playerid] = 999; BizEditID[playerid] = 999;
- UsedFind[playerid] = 0; FReloadTime[playerid] = 0; GotMats[playerid] = 0; TazerTime[playerid] = 0; LoadingCashType[playerid] = 0; LoadingCashTime[playerid] = 0; LoadedCash[playerid] = 0;
- MoneyMessage[playerid] = 0; Condom[playerid] = 0; HasBoughtMask[playerid] = 0; PrisonCell[playerid] = 0; UsingSate[playerid] = 0; ZOOM[playerid] = 0;
- oldsposx[playerid] = 0.0; oldsposy[playerid] = 0.0; oldsposz[playerid] = 0.0; newsposx[playerid] = 0.0; newsposy[playerid] = 0.0; newsposz[playerid] = 0.0;
- STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; PlayerHadDeagle[playerid] = 0; PlayerHasTazer[playerid] = 0;
- RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; AShield[playerid] = 0; BShield[playerid] = 0;
- wrench[playerid] = 0; hammer[playerid] = 0; crowbar[playerid] = 0; chainsawdildo[playerid] = 0; flashlight[playerid] = 0; screwdriver[playerid] = 0; rake[playerid] = 0;
- TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; RefillOffer[playerid] = 999; RefillPrice[playerid] = 0;
- PotOffer[playerid] = 999; PotPrice[playerid] = 0; PotGram[playerid] = 0; Packages[playerid] = 0; Crates[playerid] = 0; PlayerCuffed[playerid] = 0;
- ProdOffer[playerid] = 999; ProdPrice[playerid] = 0; ProdAmount[playerid] = 0; BMPurchased[playerid] = 0;
- PlayerCuffedTime[playerid] = 0; RegistrationStep[playerid] = 0; JustReported[playerid] = 0;
- SpectatedID[playerid] = 0; LSPDClearing[playerid] = 0; SelectDrug[playerid] = 0; HospitalTime[playerid] = 0; NoHospital[playerid] = 0;
- HospitalSpawn[playerid] = 0; JailPrice[playerid] = 0; GoChase[playerid] = 999; PlayerHurt[playerid] = 0;
- BoxWaitTime[playerid] = 0; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0; PlayerBlinded[playerid] = 0;
- BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; LawyerCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
- FindTimePoints[playerid] = 0; FindTime[playerid] = 0; FindingID[playerid] = 0; JobDuty[playerid] = 0;
- Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0; gLastCar[playerid] = 0; FishCount[playerid] = 0;
- gOoc[playerid] = 0; gNewbie[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gFam[playerid] = 0;
- gSpeedo[playerid] = 0; gVehicleLock[playerid] = 0; gGas[playerid] = 1; UseBMTimer[playerid] = 0;
- gPlayerLogged[playerid] = 0; gPlayerAccount[playerid] = 0; PlayerInfo[playerid][pVipColor] = 0;
- PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; Called911[playerid] = 0;
- TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
- HandshakeOffer[playerid] = 999; HandshakeType[playerid] = 0; ContractOffer[playerid] = 999; ContractID[playerid] = 999; TutTime[playerid] = 0;
- TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; Reqhelp[playerid] = 0; NoTP[playerid] = 0; NoSpec[playerid] = 0;
- PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;
- CanTalk[playerid] = 0; PlayersChannel[playerid] = 999; BombInCar[playerid] = 0;
- gPlayerSpawned[playerid] = 0;
- TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
- Locator[playerid] = 0; PlayerPaintballing[playerid] = 0; LockPicking[playerid] = 999; RecentlyShot[playerid] = 0;
- PlayerPaintballKills[playerid] = 0; Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; Fishes[playerid][pLastWeight] = 0;
- ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; RefundingNumber[playerid] = 999; RefundingID[playerid] = 999; RampToggle[playerid] = 0;
- FixCarTimer[playerid] = 0; PickLockTimer[playerid] = 0; SellCarTimer[playerid] = 0; StopAniTimer[playerid] = 0; UseDrugsTimer[playerid] = 0; UseAcceptTimer[playerid] = 0; SellGunTimer[playerid] = 0; UseTazerTimer[playerid] = 0; UseDrinkTimer[playerid] = 0; UseNewbieTimer[playerid] = 0; UseAdmCmdTimer[playerid] = 0; BombID[playerid] = 0; ChangePassTimer[playerid] = 0;
- GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
- aGun[playerid][0] = 0;
- aGun[playerid][1] = 0;
- aGun[playerid][2] = 0;
- aGun[playerid][3] = 0;
- aGun[playerid][4] = 0;
- aGun[playerid][5] = 0;
- aGun[playerid][6] = 0;
- aGun[playerid][7] = 0;
- aGun[playerid][8] = 0;
- aGun[playerid][9] = 0;
- aGun[playerid][10] = 0;
- aGun[playerid][11] = 0;
- aGun[playerid][12] = 0;
- PlayerInfo[playerid][pLevel] = 0;
- PlayerInfo[playerid][pAdmin] = 0;
- PlayerInfo[playerid][pSpeakPhone] = 0;
- PlayerInfo[playerid][pBand] = 0;
- PlayerInfo[playerid][pPermBand] = 0;
- PlayerInfo[playerid][pWarns] = 0;
- PlayerInfo[playerid][pAWarns] = 0;
- PlayerInfo[playerid][pDisabled] = 0;
- PlayerInfo[playerid][pDonateRank] = 0;
- PlayerInfo[playerid][pBanAppealer] = 0;
- PlayerInfo[playerid][pGangMod] = 0;
- PlayerInfo[playerid][pRequestingBackup] = 0;
- PlayerInfo[playerid][gPupgrade] = 0;
- PlayerInfo[playerid][pConnectTime] = 0;
- PlayerInfo[playerid][pReg] = 0;
- PlayerInfo[playerid][pSex] = 0;
- PlayerInfo[playerid][pPrisonedBy] = 0;
- PlayerInfo[playerid][pAdminJailed] = 0;
- PlayerInfo[playerid][pAge] = 0;
- PlayerInfo[playerid][pOrigin] = 0;
- PlayerInfo[playerid][pExp] = 0;
- PlayerInfo[playerid][pAccount] = 0;
- PlayerInfo[playerid][pCrimes] = 0;
- PlayerInfo[playerid][pKills] = 0;
- PlayerInfo[playerid][pDeaths] = 0;
- PlayerInfo[playerid][pCHits] = 0;
- PlayerInfo[playerid][pHelper] = 0;
- PlayerInfo[playerid][pFHits] = 0;
- PlayerInfo[playerid][pArrested] = 0;
- PlayerInfo[playerid][pPhoneBook] = 0;
- PlayerInfo[playerid][pWatch] = 0;
- PlayerInfo[playerid][pSuitcase] = 0;
- PlayerInfo[playerid][pSuitcasecrack] = 0;
- PlayerInfo[playerid][pSuitcasepot] = 0;
- PlayerInfo[playerid][pSuitcasemats] = 0;
- PlayerInfo[playerid][pToolbox] = 0;
- PlayerInfo[playerid][pLotto] = 0;
- PlayerInfo[playerid][pLottoNr] = 0;
- PlayerInfo[playerid][pLottoNr2] = 0;
- PlayerInfo[playerid][pLottoNr3] = 0;
- PlayerInfo[playerid][pLottoNr4] = 0;
- PlayerInfo[playerid][pLottoNr5] = 0;
- PlayerInfo[playerid][pLottoNr6] = 0;
- PlayerInfo[playerid][pPlayLotto] = 999;
- PlayerInfo[playerid][pWinLotto] = 0;
- PlayerInfo[playerid][pWinLotto2] = 0;
- PlayerInfo[playerid][pFishes] = 0;
- PlayerInfo[playerid][pBiggestFish] = 0;
- PlayerInfo[playerid][pStealth] = 0;
- PlayerInfo[playerid][pFakeIP] = 0;
- PlayerInfo[playerid][pJob] = 0;
- PlayerInfo[playerid][pPayCheck] = 0;
- PlayerInfo[playerid][pJailed] = 0;
- PlayerInfo[playerid][pJailTime] = 0;
- PlayerInfo[playerid][pMats] = 0;
- PlayerInfo[playerid][pCarParts] = 0;
- PlayerInfo[playerid][pPot] = 0;
- PlayerInfo[playerid][pCrack] = 0;
- PlayerInfo[playerid][pLeader] = 0;
- PlayerInfo[playerid][pMember] = 0;
- PlayerInfo[playerid][pSFMember] = 0;
- PlayerInfo[playerid][pSFLeader] = 0;
- PlayerInfo[playerid][pFMember] = 255;
- PlayerInfo[playerid][pGang] = 0;
- PlayerInfo[playerid][pRank] = 0;
- PlayerInfo[playerid][pFRank] = 0;
- PlayerInfo[playerid][pChangeRank] = 0;
- PlayerInfo[playerid][pDetSkill] = 0;
- PlayerInfo[playerid][pSexSkill] = 0;
- PlayerInfo[playerid][pBoxSkill] = 0;
- PlayerInfo[playerid][pLawSkill] = 0;
- PlayerInfo[playerid][pMechSkill] = 0;
- PlayerInfo[playerid][pJackSkill] = 0;
- PlayerInfo[playerid][pCarSkill] = 0;
- PlayerInfo[playerid][pNewsSkill] = 0;
- PlayerInfo[playerid][pDrugsSkill] = 0;
- PlayerInfo[playerid][pArmsSkill] = 0;
- // PlayerInfo[playerid][pTrashSkill] = 0; // Trashman
- PlayerInfo[playerid][pSmugglerSkill] = 0;
- PlayerInfo[playerid][pFishSkill] = 0;
- PlayerInfo[playerid][pFightingStyle] = 4;
- PlayerInfo[playerid][pArmor] = 0.0;
- PlayerInfo[playerid][pHungry] = 0;
- PlayerInfo[playerid][pThirsty] = 0;
- PlayerInfo[playerid][pSHealth] = 0;
- PlayerInfo[playerid][pInt] = 15;
- PlayerInfo[playerid][pLocal] = 999;
- PlayerInfo[playerid][pVirtualWorld] = 0;
- PlayerInfo[playerid][pModel] = 299;
- PlayerInfo[playerid][pClothes] = 0;
- PlayerInfo[playerid][pPnumber] = 0;
- PlayerInfo[playerid][pPbiskey] = 255;
- PlayerInfo[playerid][pPaptkey] = 255;
- PlayerInfo[playerid][pCarLic] = 1;
- PlayerInfo[playerid][pMask] = 0;
- PlayerInfo[playerid][pBlindfolds] = 0;
- PlayerInfo[playerid][pFlyLic] = 1;
- PlayerInfo[playerid][pBoatLic] = 1;
- PlayerInfo[playerid][pFishLic] = 1;
- PlayerInfo[playerid][pGunLic] = 1;
- PlayerInfo[playerid][pCarTime] = 0;
- PlayerInfo[playerid][pDrugsTime] = 0;
- PlayerInfo[playerid][pLawyerTime] = 0;
- PlayerInfo[playerid][pLawyerFreeTime] = 0;
- PlayerInfo[playerid][pMechTime] = 0;
- PlayerInfo[playerid][pSexTime] = 0;
- PlayerInfo[playerid][pPayDay] = 0;
- PlayerInfo[playerid][pPayDayHad] = 0;
- PlayerInfo[playerid][pCDPlayer] = 0;
- PlayerInfo[playerid][pDice] = 0;
- PlayerInfo[playerid][pSpraycan] = 0;
- PlayerInfo[playerid][pScrew] = 0;
- PlayerInfo[playerid][pCrowbar] = 0;
- PlayerInfo[playerid][pHammer] = 0;
- PlayerInfo[playerid][pFlash] = 0;
- PlayerInfo[playerid][pRake] = 0;
- PlayerInfo[playerid][pWrench] = 0;
- PlayerInfo[playerid][pRope] = 0;
- PlayerInfo[playerid][pCigars] = 0;
- PlayerInfo[playerid][pSprunk] = 0;
- PlayerInfo[playerid][pCredits] = 0;
- PlayerInfo[playerid][pDonuts] = 0;
- PlayerInfo[playerid][pCookies] = 0;
- PlayerInfo[playerid][pWT] = 0;
- PlayerInfo[playerid][pWTc] = 0;
- PlayerInfo[playerid][pBombs] = 0;
- PlayerInfo[playerid][pScope] = 0;
- PlayerInfo[playerid][pWins] = 0;
- PlayerInfo[playerid][pLoses] = 0;
- PlayerInfo[playerid][pTut] = 0;
- PlayerInfo[playerid][pOnDuty] = 0;
- PlayerInfo[playerid][pHospital] = 0;
- PlayerInfo[playerid][pAdjustable] = 0;
- PlayerInfo[playerid][pWantedLevel] = 0;
- PlayerInfo[playerid][pNewbieMuted] = 0;
- PlayerInfo[playerid][pReportMuted] = 0;
- PlayerInfo[playerid][pAdMuted] = 0;
- PlayerInfo[playerid][pSafeSpawn] = 0;
- PlayerInfo[playerid][pSPos_x] = 0.0;
- PlayerInfo[playerid][pSPos_y] = 0.0;
- PlayerInfo[playerid][pSPos_z] = 0.0;
- PlayerInfo[playerid][pSPos_r] = 0.0;
- PlayerInfo[playerid][Lockpicking] = 0;
- PlayerInfo[playerid][CLockpick] = 0;
- PlayerInfo[playerid][HLockpick] = 999;
- PlayerInfo[playerid][pCarKey1] = 0;
- PlayerInfo[playerid][pCarKey2] = 0;
- PlayerInfo[playerid][pCarKey3] = 0;
- PlayerInfo[playerid][pRentKey] = 0;
- PlayerInfo[playerid][pHouseKey] = 999;
- PlayerInfo[playerid][pBizKey] = 999;
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- PlayerInfo[playerid][pInCar] = 0;
- PlayerInfo[playerid][pRenthouse] = 999;
- PlayerInfo[playerid][pProducts] = 0;
- WeedIsPicked[playerid] = 0;
- WeedTime[playerid] = 0;
- WeedMin[playerid] = 0;
- WeedTime[playerid] = 0;
- WeedGrams[playerid] = 0;
- WeedForPlayer[playerid] = 999;
- WeedIsPicked[playerid] = 0;
- HasPlantWeed[playerid] = 0;
- //PlayerInfo[playerid][pSeeds] = 0;
- TazerHolster[playerid] = 1;
- ClearCrime(playerid);
- ClearFishes(playerid);
- ClearGuns(playerid);
- ClearMarriage(playerid);
- ClearAccent(playerid);
- ClearIP(playerid);
- ClearContract(playerid);
- SetPlayerColor(playerid,TCOLOR_GREY);
- // LSPD AND CITY HALL
- CreateVehicle(525, 1585.5396, -1671.8325, 5.9000, -90.0000, -1, -1, 100);
- CreateVehicle(523, 1558.4196, -1693.7843, 5.5000, 207.0000, -1, -1, 100);
- CreateVehicle(523, 1559.9614, -1693.7628, 5.5000, 207.0000, -1, -1, 100);
- CreateVehicle(523, 1561.7050, -1693.7235, 5.5000, 207.0000, -1, -1, 100);
- CreateVehicle(525, 1585.3743, -1667.5565, 5.9000, -90.0000, -1, -1, 100);
- CreateVehicle(528, 1601.1544, -1684.0786, 5.9000, -270.0000, -1, -1, 100);
- CreateVehicle(528, 1601.5382, -1687.9204, 5.9000, -270.0000, -1, -1, 100);
- CreateVehicle(528, 1601.7278, -1692.1237, 5.9000, -270.0000, -1, -1, 100);
- CreateVehicle(528, 1601.8298, -1696.2258, 5.9000, -270.0000, -1, -1, 100);
- CreateVehicle(528, 1602.1791, -1700.2231, 5.9000, -270.0000, -1, -1, 100);
- CreateVehicle(528, 1602.5720, -1704.4551, 5.9000, -270.0000, -1, -1, 100);
- CreateVehicle(601, 1530.4312, -1645.2939, 5.9000, -180.0000, -1, -1, 100);
- CreateVehicle(601, 1534.6387, -1645.1539, 5.9000, 180.0000, -1, -1, 100);
- CreateVehicle(601, 1538.4253, -1645.2725, 5.9000, 180.0000, -1, -1, 100);
- CreateVehicle(490, 1544.9969, -1651.2014, 6.3000, 90.0000, -1, -1, 100);
- CreateVehicle(490, 1544.9001, -1655.2278, 6.3000, 90.0000, -1, -1, 100);
- CreateVehicle(490, 1544.7266, -1658.8112, 6.3000, 90.0000, -1, -1, 100);
- CreateVehicle(596, 1544.3008, -1668.2274, 6.3000, 90.0000, -1, -1, 100);
- CreateVehicle(596, 1544.1748, -1672.4298, 6.3000, 90.0000, -1, -1, 100);
- CreateVehicle(598, 1544.3123, -1676.3267, 6.3000, 90.0000, -1, -1, 100);
- CreateVehicle(598, 1544.2797, -1680.2941, 6.3000, 90.0000, -1, -1, 100);
- CreateVehicle(598, 1544.5476, -1683.9263, 6.3000, 90.0000, -1, -1, 100);
- CreateVehicle(598, 1529.6075, -1688.1121, 6.3000, 270.0000, -1, -1, 100);
- CreateVehicle(598, 1529.6447, -1683.9005, 6.3000, 270.0000, -1, -1, 100);
- CreateVehicle(596, 1558.4116, -1709.7119, 6.3000, 360.0000, -1, -1, 100);
- CreateVehicle(599, 1564.6244, -1709.2957, 6.3000, 360.0000, -1, -1, 100);
- CreateVehicle(596, 1569.9237, -1708.8081, 6.3000, 360.0000, -1, -1, 100);
- CreateVehicle(599, 1574.1758, -1709.2635, 6.3000, 360.0000, -1, -1, 100);
- CreateVehicle(599, 1579.0237, -1709.4092, 6.3000, 360.0000, -1, -1, 100);
- CreateVehicle(599, 1583.4922, -1709.4017, 6.3000, 360.0000, -1, -1, 100);
- CreateVehicle(596, 1587.5687, -1709.3534, 6.3000, 360.0000, -1, -1, 100);
- CreateVehicle(596, 1591.4481, -1709.4288, 6.3000, 360.0000, -1, -1, 100);
- CreateVehicle(596, 1595.4592, -1710.0826, 6.3000, 360.0000, -1, -1, 100);
- CreateVehicle(596, 1561.6891, -1605.6901, 14.4375, 0.0000, -1, -1, 100);
- CreateVehicle(596, 1564.9484, -1605.8159, 14.4375, 0.0000, -1, -1, 100);
- CreateVehicle(596, 1567.7776, -1605.8296, 14.4375, 0.0000, -1, -1, 100);
- CreateVehicle(599, 1576.3418, -1605.8481, 14.4375, 180.0000, -1, -1, 100);
- CreateVehicle(599, 1580.0601, -1605.7533, 14.4375, 180.0000, -1, -1, 100);
- CreateVehicle(596, 1604.6956, -1610.0343, 14.4375, 90.0000, -1, -1, 100);
- CreateVehicle(596, 1604.8864, -1613.2399, 14.4375, 90.0000, -1, -1, 100);
- CreateVehicle(596, 1604.8221, -1616.4774, 14.4375, 90.0000, -1, -1, 100);
- // LSPD FENCES
- CreateDynamicObject(970, 1538.92, -1680.06, 13.00, 0.00, 0.00, 270.00);
- CreateDynamicObject(970, 1538.92, -1675.92, 13.00, 0.00, 0.00, 270.00);
- CreateDynamicObject(970, 1538.90, -1669.76, 13.00, 0.00, 0.00, 270.00);
- CreateDynamicObject(970, 1538.91, -1665.65, 13.00, 0.00, 0.00, 270.00);
- CreateDynamicObject(970, 1536.84, -1663.68, 13.00, 0.00, 0.00, 360.00);
- CreateDynamicObject(970, 1536.84, -1682.11, 13.00, 0.00, 0.00, 360.00);
- CreateDynamicObject(970, 1536.07, -1696.08, 13.00, 0.00, 0.00, 309.00);
- CreateDynamicObject(970, 1536.28, -1649.98, 13.00, 0.00, 0.00, 222.00);
- CreateDynamicObject(970, 1534.77, -1684.18, 13.00, 0.00, 0.00, 270.00);
- CreateDynamicObject(970, 1534.76, -1688.30, 13.00, 0.00, 0.00, 270.00);
- CreateDynamicObject(970, 1534.77, -1692.41, 13.00, 0.00, 0.00, 270.00);
- CreateDynamicObject(970, 1534.74, -1661.59, 13.00, 0.00, 0.00, 270.00);
- CreateDynamicObject(970, 1534.73, -1657.48, 13.00, 0.00, 0.00, 270.00);
- CreateDynamicObject(970, 1534.74, -1653.37, 13.00, 0.00, 0.00, 270.00);
- // CITY HALL FENCES
- CreateDynamicObject(982, 1536.34, -1739.94, 13.24, 0.00, 0.00, 270.00);
- CreateDynamicObject(983, 1551.53, -1742.05, 13.24, 0.00, 0.00, 229.00);
- CreateDynamicObject(982, 1510.73, -1739.94, 13.24, 0.00, 0.00, 270.00);
- CreateDynamicObject(997, 1496.00, -1740.47, 12.94, 0.00, 0.00, 360.00);
- CreateDynamicObject(983, 1495.70, -1742.24, 13.24, 0.00, 0.00, 316.00);
- CreateDynamicObject(997, 1492.68, -1740.47, 12.94, 0.00, 0.00, 360.00);
- CreateDynamicObject(997, 1489.40, -1740.48, 12.94, 0.00, 0.00, 360.00);
- CreateDynamicObject(997, 1486.12, -1740.50, 12.94, 0.00, 0.00, 360.00);
- CreateDynamicObject(997, 1482.83, -1740.49, 12.94, 0.00, 0.00, 360.00);
- CreateDynamicObject(997, 1477.53, -1740.53, 12.94, 0.00, 0.00, 360.00);
- CreateDynamicObject(997, 1474.21, -1740.55, 12.94, 0.00, 0.00, 360.00);
- CreateDynamicObject(997, 1470.90, -1740.55, 12.94, 0.00, 0.00, 360.00);
- CreateDynamicObject(997, 1467.62, -1740.56, 12.94, 0.00, 0.00, 360.00);
- CreateDynamicObject(983, 1468.21, -1742.41, 13.24, 0.00, 0.00, -316.00);
- CreateDynamicObject(982, 1453.22, -1740.11, 13.24, 0.00, 0.00, 270.00);
- CreateDynamicObject(982, 1427.62, -1740.10, 13.24, 0.00, 0.00, 270.00);
- CreateDynamicObject(983, 1412.30, -1742.06, 13.24, 0.00, 0.00, 308.00);
- CreateDynamicMapIcon(1564.5457, -1675.3245, 61.8977, 30, 0); //lspd
- CreateDynamicMapIcon(1461.8095, -1010.9515, 61.1702, 52, 0); //bank
- CreateDynamicMapIcon(2143.5302, -2259.8565, 26.5776, 51, 0); //matfactory 01
- CreateDynamicMapIcon(2287.9749, -1105.7727, 37.9766, 51, 0); //matfactory 02
- CreateDynamicMapIcon(2166.3771, -1675.383, 15.0859, 24, 0); //drughouse
- CreateDynamicMapIcon(2337.8855, -1185.4025, 35.5452, 16, 0); //crackhouse
- CreateDynamicMapIcon(411.8294, -2050.2601, -0.4745, 9, 0); //pier
- CreateDynamicMapIcon(545.6451,-1293.9248,17.2422, 56, 0); //job product dealer
- CreateDynamicMapIcon(2329.4089, -2316.0997, 13.5468, 56, 0); //job mechanic
- CreateDynamicMapIcon(2226.1716, -1718.1792, 13.5165, 56, 0); //job bodyguard
- CreateDynamicMapIcon(1741.7062, -1863.6664, 13.5748, 56, 0); //job taxi
- CreateDynamicMapIcon(1381.0413, -1088.8511, 27.3906, 56, 0); //job lawyer
- CreateDynamicMapIcon(2048.4106, -1409.1826, 75.0372, 22, 0); //hospital 01
- CreateDynamicMapIcon(1147.9742, -1344.0618, 49.2668, 22, 0); //hospital 02
- CreateDynamicMapIcon(1498.4185, -2182.5278, 14.1682, 20, 0); //fire department
- CreateDynamicMapIcon(63.9923, -305.5689, 1.5781, 11, 0); //drug factory
- CreateDynamicMapIcon(612.8910, -564.9972, 26.1432, 30, 0); //PD
- CreateDynamicMapIcon(1310.2244,-1368.6892,13.5526, 23, 0); //paintball skull
- CreateDynamicMapIcon(-500.5291,-528.6747,25.5234, 51, 0); //matfactory 03
- CreateDynamicMapIcon(2127.5000,-1132.6759,25.5434, 55, 0); //dealership
- CreateDynamicMapIcon(2908.0735,-1947.3708,1.7212, 55, 0); //dealership
- CreateDynamicMapIcon(2511.2219,-1522.7043,23.8508, 55, 0); //dealership
- CreateDynamicMapIcon(1993.3129,-2615.2002,13.5469, 55, 0); //dealership
- CreateDynamicMapIcon(1658.8696,-1708.0525,20.4844, 55, 0); //dealership
- CreateDynamicMapIcon(459.4515,-1785.1748,5.5469, 55, 0); //dealership
- CreateDynamicMapIcon(1791.1173,-1917.5496,13.3938, 55, 0); //dealership
- CreateDynamicMapIcon(2270.0977,-2340.3416,13.5469, 27, 0); //mechanic garage
- //LSPD+GYM_end
- //House
- CreateDynamicObject(19126, 1310.64, -630.77, 108.64, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1356.42, -625.72, 110.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1347.22, -604.20, 109.57, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1332.58, -600.23, 108.56, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1341.13, -600.01, 108.89, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1324.03, -603.85, 108.32, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1315.47, -609.24, 108.04, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1302.77, -615.38, 107.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1295.93, -617.46, 106.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1290.09, -617.29, 105.28, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1286.34, -624.88, 105.28, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1293.85, -625.76, 105.29, 0.00, 0.00, 0.00);
- CreateDynamicObject(19127, 1276.79, -616.88, 102.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19127, 1285.78, -612.56, 102.29, 0.00, 0.00, 0.00);
- CreateDynamicObject(19127, 1318.27, -653.11, 113.02, 0.00, 0.00, 0.00);
- CreateDynamicObject(19127, 1313.86, -640.35, 113.02, 0.00, 0.00, 0.00);
- CreateDynamicObject(19127, 1348.98, -628.35, 112.94, 0.00, 0.00, 0.00);
- CreateDynamicObject(19127, 1360.85, -663.47, 112.90, 0.00, 0.00, 0.00);
- CreateDynamicObject(19127, 1350.10, -667.15, 112.90, 0.00, 0.00, 0.00);
- CreateDynamicObject(19127, 1342.24, -644.89, 112.90, 0.00, 0.00, 0.00);
- CreateDynamicObject(4206, 1336.45, -650.74, 107.97, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1321.77, -647.84, 108.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1323.66, -647.21, 108.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1328.59, -666.54, 108.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1349.81, -666.60, 108.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1360.48, -662.87, 108.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1364.17, -607.44, 110.18, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1368.11, -622.18, 110.18, 0.00, 0.00, 0.00);
- CreateDynamicObject(19125, 1284.87, -597.08, 100.13, 0.00, 0.00, 0.00);
- CreateDynamicObject(19125, 1291.73, -607.50, 100.38, 0.00, 0.00, 0.00);
- CreateDynamicObject(19125, 1263.83, -619.67, 103.12, 0.00, 0.00, 0.00);
- CreateDynamicObject(19125, 1255.42, -611.80, 103.12, 0.00, 0.00, 0.00);
- CreateDynamicObject(19425, 1252.51, -614.15, 102.74, 0.00, 0.00, 100.00);
- CreateDynamicObject(19425, 1253.08, -617.41, 102.74, 0.00, 0.00, 100.00);
- CreateDynamicObject(19425, 1253.66, -620.66, 102.74, 0.00, 0.00, 100.00);
- CreateDynamicObject(16151, 1334.22, -644.73, 108.44, 0.00, 0.00, 110.00);
- CreateDynamicObject(19121, 1345.64, -649.75, 108.61, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1342.49, -641.28, 108.61, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1339.35, -645.87, 108.34, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1329.55, -649.26, 108.35, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1334.73, -643.69, 108.34, 0.00, 0.00, 0.00);
- CreateDynamicObject(2209, 1330.09, -665.35, 108.05, 0.00, 0.00, 146.00);
- CreateDynamicObject(1752, 1329.22, -665.11, 108.83, 0.00, 0.00, 150.00);
- CreateDynamicObject(1795, 1317.57, -649.22, 108.12, 0.00, 0.00, 18.00);
- CreateDynamicObject(1795, 1315.73, -643.75, 108.12, 0.00, 0.00, 18.00);
- CreateDynamicObject(19121, 1313.84, -639.91, 108.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1315.29, -644.70, 108.38, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1305.97, -621.33, 105.79, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1325.06, -656.47, 108.52, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1338.15, -663.34, 108.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1347.51, -660.08, 108.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(19121, 1320.41, -637.89, 108.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(966, 1283.77, -613.76, 102.05, 0.00, 0.00, 36.00);
- CreateDynamicObject(967, 1285.36, -613.97, 101.84, 0.00, 0.00, 126.00);
- CreateDynamicObject(968, 1283.75, -613.79, 102.93, 0.00, 0.00, 36.00);
- //End house
- //FBI HQ
- CreateDynamicObject(19425, 1761.28, -1693.23, 12.42, 0.00, 0.00, 90.00);
- CreateDynamicObject(19425, 1761.28, -1689.92, 12.42, 0.00, 0.00, 90.00);
- CreateDynamicObject(19425, 1761.23, -1698.84, 12.42, 0.00, 0.00, 90.00);
- CreateDynamicObject(19425, 1761.23, -1702.14, 12.42, 0.00, 0.00, 90.00);
- CreateDynamicObject(996, 1803.25, -1721.93, 13.08, 0.00, 0.00, -2.00);
- CreateDynamicObject(967, 1762.63, -1688.00, 12.38, 0.00, 0.00, 272.00);
- CreateDynamicObject(966, 1762.03, -1695.91, 12.43, 0.00, 0.00, -90.00);
- CreateDynamicObject(966, 1762.05, -1696.44, 12.43, 0.00, 0.00, 90.00);
- CreateDynamicObject(967, 1762.61, -1704.63, 12.38, 0.00, 0.00, -91.00);
- CreateDynamicObject(19126, 1761.96, -1697.09, 12.93, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1762.01, -1695.20, 12.93, 0.00, 0.00, 0.00);
- CreateDynamicObject(968, 1762.05, -1695.89, 13.09, 0.00, 0.00, 90.00);
- CreateDynamicObject(968, 1762.05, -1696.49, 13.09, 0.00, 0.00, 90.00);
- CreateDynamicObject(19126, 1754.97, -1688.16, 12.93, 0.00, 0.00, 0.00);
- CreateDynamicObject(19126, 1755.17, -1704.46, 12.93, 0.00, 0.00, 0.00);
- //FBI HQ END
- //AMY MAPPING END
- //dion
- CreateDynamicMapIcon(1359.6918, 312.5298, 24.5555, 18, 0);
- CreateDynamicMapIcon(1257.5867, 204.4746, 19.7174, 17, 0);
- CreateDynamicMapIcon(1295.9426, 232.6621, 23.7565, 50, 0);
- GetPlayerName(playerid, plname, sizeof(plname));
- format(string, sizeof(string), "%s.ini", plname);
- if(fexist(string))
- {
- gPlayerAccount[playerid] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: That name is registered, please wait to login.");
- SendClientMessage(playerid, COLOR_YELLOW, "HINT: You can now login by typing your password below.");
- DisplayDialogForPlayer(playerid, 1); //login
- return 1;
- }
- else
- {
- gPlayerAccount[playerid] = 0;
- SendClientMessage(playerid,COLOR_YELLOW,"You dont have an account. Please register your account to proceed.");
- DisplayDialogForPlayer(playerid, 2); //register
- return 1;
- }
- }
- public JoinChannel(playerid, number, line[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )
- {
- JoinChannelNr(playerid, number);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Wrong Channel Password !");
- }
- }
- return 1;
- }
- public JoinChannelNr(playerid, number)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayersChannel[playerid] < 999)
- {
- format(string, sizeof(string), "* %s has left the Channel.", sendername);
- SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
- IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
- }
- new channel; channel = number; channel += 1;
- PlayersChannel[playerid] = number;
- IRCInfo[PlayersChannel[playerid]][iPlayers] += 1;
- new wstring[128];
- format(string, sizeof(string), "%s", sendername);
- strmid(wstring, string, 0, strlen(string), 255);
- if(strcmp(IRCInfo[number][iAdmin],wstring, true ) == 0 )
- {
- format(string, sizeof(string), "* You have joined IRC Channel %d as the Administrator.", channel);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- else
- {
- format(string, sizeof(string), "* You have joined IRC Channel %d, Admin: %s.", channel, IRCInfo[number][iAdmin]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- format(string, sizeof(string), "MOTD: %s.", IRCInfo[number][iMOTD]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s has joined the Channel.", sendername);
- SendIRCMessage(number, COLOR_GREEN, string);
- }
- return 1;
- }
- public ClearAccent(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "none");
- strmid(Accent[playerid], string, 0, strlen(string), 255);
- }
- return 1;
- }
- public ClearMarriage(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "Nobody");
- strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
- PlayerInfo[playerid][pMarried] = 0;
- }
- return 1;
- }
- public ClearContract(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "Nobody");
- strmid(PlayerInfo[playerid][pContractBy], string, 0, strlen(string), 255);
- PlayerInfo[playerid][pHeadValue] = 0;
- }
- return 1;
- }
- public ClearIP(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[16];
- format(string, sizeof(string), "None");
- strmid(PlayerInfo[playerid][pIP], string, 0, strlen(string), 255);
- }
- return 1;
- }
- public ClearFamily(family)
- {
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pFMember] == family)
- {
- SendClientMessage(i, COLOR_LIGHTBLUE, "* The Family you are in got deleted by an Admin, you were kicked.");
- PlayerInfo[i][pFMember] = 255;
- PlayerInfo[i][pFRank] = 0;
- PlayerInfo[i][pModel] = 299;
- SetPlayerSkin(i, 299);
- }
- }
- }
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "None");
- FamilyInfo[family][FamilyTaken] = 0;
- strmid(FamilyInfo[family][FamilyName], string, 0, strlen(string), 255);
- strmid(FamilyInfo[family][FamilyMOTD], string, 0, strlen(string), 255);
- strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
- FamilyInfo[family][FamilyBank] = 0;
- FamilyInfo[family][FamilyCash] = 0;
- FamilyInfo[family][FamilySafe] = 0;
- FamilyInfo[family][FamilySafePos][0] = 0.0;
- FamilyInfo[family][FamilySafePos][1] = 0.0;
- FamilyInfo[family][FamilySafePos][2] = 0.0;
- FamilyInfo[family][FamilyPot] = 0;
- FamilyInfo[family][FamilyCrack] = 0;
- FamilyInfo[family][FamilyMats] = 0;
- format(string, sizeof(string), "Outsider");
- strmid(FamilyRank[family][0], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Associate");
- strmid(FamilyRank[family][1], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Soldier");
- strmid(FamilyRank[family][2], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Capo");
- strmid(FamilyRank[family][3], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Underboss");
- strmid(FamilyRank[family][4], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Godfather");
- strmid(FamilyRank[family][5], string, 0, strlen(string), 255);
- FamilyInfo[family][FamilyMembers] = 0;
- DestroyDynamicPickup(FamilyInfo[family][PickupID]);
- printf("DestroyPickup %d",FamilyInfo[family][PickupID]);
- FamilyInfo[family][PickupID] = CreateDynamicPickup(1239, 23, FamilyInfo[family][FamilySafePos][0],FamilyInfo[family][FamilySafePos][1], FamilyInfo[family][FamilySafePos][2]);
- FamilyInfo[family][FStrikes] = 0;
- SaveFamilies();
- return 1;
- }
- public ClearCrime(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- PlayerInfo[playerid][pCrime][0] = 0;
- PlayerInfo[playerid][pCrime][1] = 0;
- PlayerInfo[playerid][pCrime][2] = 0;
- PlayerInfo[playerid][pCrime][3] = 0;
- PlayerInfo[playerid][pCrime][4] = 0;
- PlayerInfo[playerid][pCrime][5] = 0;
- strmid(PlayerInfo[playerid][pCrimeReporter0], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[playerid][pCrimeReporter1], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[playerid][pCrimeReporter2], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[playerid][pCrimeReporter3], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[playerid][pCrimeReporter4], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[playerid][pCrimeReporter5], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[playerid][pCrimeDate0], "0/0/0", 0, strlen("0/0/0"), 255);
- strmid(PlayerInfo[playerid][pCrimeDate1], "0/0/0", 0, strlen("0/0/0"), 255);
- strmid(PlayerInfo[playerid][pCrimeDate2], "0/0/0", 0, strlen("0/0/0"), 255);
- strmid(PlayerInfo[playerid][pCrimeDate3], "0/0/0", 0, strlen("0/0/0"), 255);
- strmid(PlayerInfo[playerid][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
- strmid(PlayerInfo[playerid][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
- }
- return 1;
- }
- stock ClearVIP(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- PlayerInfo[playerid][pDonateRank] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your VIP has expired, if you wish to renew it, contact an Executive Admin.");
- strmid(PlayerInfo[playerid][pVIPJoinDate], "0/0/0", 0, strlen("0/0/0"), 255);
- strmid(PlayerInfo[playerid][pVIPExpDate], "0/0/0", 0, strlen("0/0/0"), 255);
- }
- }
- public FishCost(playerid, fish)
- {
- if(IsPlayerConnected(playerid))
- {
- new cost = 0;
- switch (fish)
- {
- case 1:
- {
- cost = 1;
- }
- case 2:
- {
- cost = 3;
- }
- case 3:
- {
- cost = 3;
- }
- case 5:
- {
- cost = 5;
- }
- case 6:
- {
- cost = 2;
- }
- case 8:
- {
- cost = 8;
- }
- case 9:
- {
- cost = 12;
- }
- case 11:
- {
- cost = 9;
- }
- case 12:
- {
- cost = 7;
- }
- case 14:
- {
- cost = 12;
- }
- case 15:
- {
- cost = 9;
- }
- case 16:
- {
- cost = 7;
- }
- case 17:
- {
- cost = 7;
- }
- case 18:
- {
- cost = 10;
- }
- case 19:
- {
- cost = 4;
- }
- case 21:
- {
- cost = 3;
- }
- }
- return cost;
- }
- return 0;
- }
- public ClearFishes(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[MAX_PLAYER_NAME];
- Fishes[playerid][pFid1] = 0; Fishes[playerid][pFid2] = 0; Fishes[playerid][pFid3] = 0;
- Fishes[playerid][pFid4] = 0; Fishes[playerid][pFid5] = 0;
- Fishes[playerid][pWeight1] = 0; Fishes[playerid][pWeight2] = 0; Fishes[playerid][pWeight3] = 0;
- Fishes[playerid][pWeight4] = 0; Fishes[playerid][pWeight5] = 0;
- format(string, sizeof(string), "None");
- strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
- strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
- strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
- strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
- strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
- }
- return 1;
- }
- public ClearGuns(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- ResetPlayerWeapons(playerid);
- PlayerInfo[playerid][pGun0] = 0;
- PlayerInfo[playerid][pGun1] = 0;
- PlayerInfo[playerid][pGun2] = 0;
- PlayerInfo[playerid][pGun3] = 0;
- PlayerInfo[playerid][pGun4] = 0;
- PlayerInfo[playerid][pGun5] = 0;
- PlayerInfo[playerid][pGun6] = 0;
- PlayerInfo[playerid][pGun7] = 0;
- PlayerInfo[playerid][pGun8] = 0;
- PlayerInfo[playerid][pGun9] = 0;
- PlayerInfo[playerid][pGun10] = 0;
- PlayerInfo[playerid][pGun11] = 0;
- PlayerInfo[playerid][pGun12] = 0;
- PlayerInfo[playerid][pBombs] = 0;
- PlayerInfo[playerid][pScope] = 0;
- }
- return 1;
- }
- public ClearFishID(playerid, fish)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "None");
- switch (fish)
- {
- case 1:
- {
- strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight1] = 0;
- Fishes[playerid][pFid1] = 0;
- }
- case 2:
- {
- strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight2] = 0;
- Fishes[playerid][pFid2] = 0;
- }
- case 3:
- {
- strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight3] = 0;
- Fishes[playerid][pFid3] = 0;
- }
- case 4:
- {
- strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight4] = 0;
- Fishes[playerid][pFid4] = 0;
- }
- case 5:
- {
- strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight5] = 0;
- Fishes[playerid][pFid5] = 0;
- }
- }
- }
- return 1;
- }
- public Lotto(number)
- {
- new JackpotFallen = 0;
- new string[128];
- new winner[MAX_PLAYER_NAME];
- format(string, sizeof(string), "Lottery News: Today the Winning Number has fallen on: %d.", number);
- OOCOff(COLOR_WHITE, string);
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pLottoNr] > 0)
- {
- if(PlayerInfo[i][pLottoNr] == number)
- {
- JackpotFallen = 1;
- GetPlayerNameEx(i, winner, sizeof(winner));
- format(string, sizeof(string), "Lottery News: %s has won the Jackpot of $%d with their Lottery Ticket.", winner, Jackpot);
- OOCOff(COLOR_WHITE, string);
- format(string, sizeof(string), "* You have Won $%d with your Lottery Ticket.", Jackpot);
- SendClientMessage(i, COLOR_YELLOW, string);
- PlayerInfo[i][pCash] = PlayerInfo[i][pCash]+Jackpot;
- GivePlayerMoney(i, Jackpot);
- }
- else
- {
- SendClientMessage(i, COLOR_LIGHTBLUE, "* You haven't won with your Lottery Ticket this time.");
- }
- }
- PlayerInfo[i][pLottoNr] = 0;
- }
- }
- if(JackpotFallen)
- {
- new rand = random(125000); rand += 15789;
- Jackpot = rand;
- SaveStuff();
- format(string, sizeof(string), "Lottery News: The new Jackpot has been started with $%d.", Jackpot);
- OOCOff(COLOR_WHITE, string);
- }
- else
- {
- new rand = random(15000); rand += 2158;
- Jackpot += rand;
- SaveStuff();
- format(string, sizeof(string), "Lottery News: The Jackpot has been raised to $%d.", Jackpot);
- OOCOff(COLOR_WHITE, string);
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- new caller = Mobile[playerid];
- gActivePlayers[playerid]--;
- numplayers--;
- PlayerInfo[playerid][pAdjustable] = 1;
- if(LoadingCashType[playerid] != 0)
- {
- LoadingCashType[playerid] = 0;
- LoadingCashTime[playerid] = 0;
- LoadedCash[playerid] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- DisablePlayerCheckpoint(playerid);
- RemovePlayerAttachedObject(playerid,bankbag);
- SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- return 1;
- }
- if(PlayerInfo[playerid][Lockpicking] != 0)
- {
- PlayerInfo[playerid][Lockpicking] = 0;
- PlayerInfo[playerid][CLockpick] = 0;
- PlayerInfo[playerid][HLockpick] = 999;
- }
- if(HasPlantWeed[playerid] != 0) DestroyObject(Weed[playerid]);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- switch(reason)
- {
- case 0: format(string, sizeof(string), "* %s has left the server. (Timeout)", sendername);
- case 1: format(string, sizeof(string), "* %s has left the server. (Leaving)", sendername);
- case 2: format(string, sizeof(string), "* %s has left the server. (Kicked)", sendername);
- }
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- ProxDetector(30.0, playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW);
- }
- if(PlayerTied[playerid] > 0 || PlayerCuffed[playerid] > 0 && PlayerInfo[playerid][pJailed] == 0)
- {
- PlayerInfo[playerid][pJailed] = 1; PlayerInfo[playerid][pJailTime] = 800;
- }
- new Year, Month, Day;
- getdate(Year, Month, Day);
- format(string, 32, "%02d/%02d/%d", Month, Day, Year);
- strmid(PlayerInfo[playerid][pLastLogin], string, 0, strlen(string), 255);
- OnPlayerSave(playerid);
- new x = 0;
- while(x != MAX_PLAYERS)
- {
- if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING && SpectatedID[x] == playerid)
- {
- SetPlayerHealth(x, PlayerInfo[x][pHealth]);
- SetPlayerArmour(x, PlayerInfo[x][pArmor]);
- SetPlayerVirtualWorld(x, PlayerInfo[x][pVirtualWorld]);
- SetPlayerInterior(x, PlayerInfo[x][pInt]);
- SetPlayerPos(x, PlayerInfo[x][pSPos_x], PlayerInfo[x][pSPos_y], PlayerInfo[x][pSPos_z]);
- SetPlayerFacingAngle(x, PlayerInfo[x][pSPos_r]);
- SendClientMessage(x, COLOR_WHITE, "You are no longer spectating.");
- TogglePlayerSpectating(x, 0);
- SpectatedID[x] = INVALID_PLAYER_ID;
- SpectateType[x] = ADMIN_SPEC_TYPE_NONE;
- HidePM[x] = 0;
- PhoneOnline[x] = 0;
- ResetPlayerAdminWeaponsEx(x);
- }
- x++;
- }
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(TaxiAccepted[i] < 999)
- {
- if(TaxiAccepted[i] == playerid)
- {
- TaxiAccepted[i] = 999;
- GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Left the game", 5000, 1);
- TaxiCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- else if(BusAccepted[i] < 999)
- {
- if(BusAccepted[i] == playerid)
- {
- BusAccepted[i] = 999;
- GameTextForPlayer(i, "~w~Bus Caller~n~~r~Left the game", 5000, 1);
- BusCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- if(GoChase[i] < 999)
- {
- if(GoChase[i] == playerid)
- {
- SendClientMessage(i, COLOR_YELLOW, "The target has left the server.");
- GoChase[i] = 999;
- }
- }
- }
- }
- if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
- {
- if(IsPlayerConnected(TransportDriver[playerid]))
- {
- TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
- TransportTime[TransportDriver[playerid]] = 0;
- TransportCost[TransportDriver[playerid]] = 0;
- format(string, sizeof(string), "~w~Passenger left~n~~g~Earned $%d",TransportCost[playerid]);
- GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
- }
- }
- if(BombID[playerid] != 0)
- {
- DestroyDynamicObject(BombID[playerid]);
- }
- if(PlayerPaintballing[playerid] != 0)
- {
- PaintballPlayers --;
- }
- if(caller != 255)
- {
- SendClientMessage(caller, COLOR_GRAD2, " The line has been disconnected....");
- CellTime[caller] = 0;
- Mobile[caller] = 255;
- SetPlayerSpecialAction(caller,SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(caller, 5);
- }
- if(PlayersChannel[playerid] < 999)
- {
- IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
- }
- if(PlayerBoxing[playerid] > 0)
- {
- if(Boxer1 == playerid)
- {
- if(IsPlayerConnected(Boxer2))
- {
- PlayerBoxing[Boxer2] = 0;
- SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
- SetPlayerInterior(Boxer2, 5);
- GameTextForPlayer(Boxer2, "~r~Match interupted", 5000, 1);
- }
- }
- else if(Boxer2 == playerid)
- {
- if(IsPlayerConnected(Boxer1))
- {
- PlayerBoxing[Boxer1] = 0;
- SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
- SetPlayerInterior(Boxer1, 5);
- GameTextForPlayer(Boxer1, "~r~Match interupted", 5000, 1);
- }
- }
- InRing = 0;
- RoundStarted = 0;
- Boxer1 = 255;
- Boxer2 = 255;
- TBoxer = 255;
- }
- if(TransportDuty[playerid] == 1)
- {
- TaxiDrivers -= 1;
- }
- else if(TransportDuty[playerid] == 2)
- {
- BusDrivers -= 1;
- }
- if(PlayerHadDeagle[playerid] == 1) PlayerInfo[playerid][pGun2] = 24;
- if(PlayerInfo[playerid][pJob] == 2)
- {
- if(JobDuty[playerid] == 1) { Lawyers -= 1; }
- }
- if(PlayerInfo[playerid][pJob] == 11)
- {
- if(JobDuty[playerid] == 1) { Medics -= 1; }
- }
- else if(PlayerInfo[playerid][pJob] == 7)
- {
- if(JobDuty[playerid] == 1) { Mechanics -= 1; }
- }
- return 1;
- }
- public SetPlayerSpawn(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- //TUTORIAL
- if(PlayerInfo[playerid][pTut] == 0)
- {
- gOoc[playerid] = 1; gNewbie[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; RegistrationStep[playerid] = 1; CanTalk[playerid] = 1;
- SetPlayerPos(playerid, 2202.0386,-1745.6115,-2.6969);
- TogglePlayerControllable(playerid, 0);
- SetPlayerCameraPos(playerid, 2210.0461,-1742.2411,23.4574);
- SetPlayerCameraLookAt(playerid, 2228.4255,-1722.7775,20.2341);
- SendClientMessage(playerid, COLOR_LIGHTRED, "Hi there. Welcome to RG:RP. We need about your biodata. You MUST answer the question below !");
- SendClientMessage(playerid, COLOR_LIGHTRED, "Answer the question. Are you a Male or Female? (Type in what you are).");
- return 1;
- }
- //PAINTBALL
- if(PlayerPaintballing[playerid] > 0)
- {
- PlayerInfo[playerid][pHospital] = 0;
- ResetPlayerWeapons(playerid);
- new gun1 = PlayerInfo[playerid][pPaintballGun1];
- new gun2 = PlayerInfo[playerid][pPaintballGun2];
- GivePlayerAdminGun(playerid, gun1);
- GivePlayerAdminGun(playerid, gun2);
- new rand = random(sizeof(PaintballSpawns));
- SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
- SetPlayerToTeamColor(playerid);
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 2);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- //JAIL
- if(PlayerInfo[playerid][pJailed] == 1)
- {
- SetPlayerInterior(playerid, 6);
- SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
- SetCameraBehindPlayer(playerid);
- SetPlayerFacingAngle( playerid, -90);
- SetPlayerToTeamColor(playerid);
- CanTalk[playerid] = 1;
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] == 4)
- {
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid,319.1102,317.0026,999.1484);
- SetCameraBehindPlayer(playerid);
- SetPlayerFacingAngle( playerid, -90);
- SetPlayerToTeamColor(playerid);
- CanTalk[playerid] = 1;
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] == 10)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,154.4657,-1951.9379,47.8750);
- SetCameraBehindPlayer(playerid);
- CanTalk[playerid] = 1;
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] == 2 || PlayerInfo[playerid][pJailed] == 3)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerSkin(playerid, 50);
- SetPlayerColor(playerid, TCOLOR_PRISON);
- SetCameraBehindPlayer(playerid);
- CanTalk[playerid] = 1;
- TogglePlayerControllable(playerid, 1);
- new rand = random(sizeof(PrisonSpawns));
- PlayerCell = rand;
- SetPlayerPos(playerid, PrisonSpawns[rand][0], PrisonSpawns[rand][1], PrisonSpawns[rand][2]);
- SetPlayerFacingAngle(playerid, PrisonSpawns[rand][3]);
- return 1;
- }//Tree
- /* if(PlayerInfo[playerid][pJailed] == 3)
- {
- CanTalk[playerid] = 1;
- SetPlayerPos(playerid, -1070.8547,-2038.5858,49.1448);
- SetCameraBehindPlayer(playerid);
- SetPlayerWorldBounds(playerid, -1069, -1073.4076, -2036.4987, -2040.6022);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- TogglePlayerControllable(playerid, 1);
- }*/
- //HOSPITAL
- if(PlayerInfo[playerid][pHospital] == 1)
- {
- SetPlayerInHospital(playerid);
- TogglePlayerControllable(playerid, 0);
- CanTalk[playerid] = 1;
- WithGlasses[playerid] = 0;
- Parrot[playerid] = 0;
- WithMask[playerid] = 0;
- WithHat[playerid] = 0;
- WithBandana[playerid] = 0;
- WithHelmet[playerid] = 0;
- wrench[playerid] = 0;
- hammer[playerid] = 0;
- crowbar[playerid] = 0;
- chainsawdildo[playerid] = 0;
- flashlight[playerid] = 0;
- screwdriver[playerid] = 0;
- AShield[playerid] = 0;
- BShield[playerid] = 0;
- rake[playerid] = 0;
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- PlayerInfo[playerid][pInCar] = 0;
- return 1;
- }
- if(PlayerInfo[playerid][pTut] == 1)
- {
- if(PlayerInfo[playerid][pSafeSpawn] == 1)
- {//FINISHED TUTORIAL
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerPos(playerid,982.1890,-1624.2583,14.9526);
- SetPlayerFacingAngle(playerid, 90);
- SetCameraBehindPlayer(playerid);
- PlayerInfo[playerid][pSafeSpawn] = 0;
- }
- else
- {//RELOGGING
- SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- SetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
- SetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
- SetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
- SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
- SetCameraBehindPlayer(playerid);
- }
- CanTalk[playerid] = 1;
- SetPlayerToTeamColor(playerid);
- }
- }
- return 1;
- }
- public SetPlayerInHospital(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new rand = random(sizeof(HospitalSpawns));
- if(rand == 0)
- {
- SetPlayerPos(playerid, 1192.256836, -1304.637939, 7.0000);
- SetPlayerCameraPos(playerid, 1192.256836, -1304.637939, 20.699181);
- SetPlayerCameraLookAt(playerid, 1171.727905, -1328.805542, 14.894935);
- if(PlayerInfo[playerid][pWantedLevel] > 0)
- {
- SendClientMessage(playerid,COLOR_YELLOW,"The Los Santos Police Department has been informed of your current location.");
- SendCopMessage(TEAM_BLUE_COLOR, "HQ: All Units APB: Reporter: All Saints Hospital Staff");
- format(string, sizeof(string), "HQ: Crime: Unknown, Suspect: %s",sendername);
- SendCopMessage(TEAM_BLUE_COLOR, string);
- }
- }
- else
- {
- SetPlayerPos(playerid, 2012.323608, -1436.354370, 5.0000);
- SetPlayerCameraPos(playerid, 2012.323608, -1436.354370, 18.774065);
- SetPlayerCameraLookAt(playerid, 2035.060791, -1401.319824, 19.045776);
- if(PlayerInfo[playerid][pWantedLevel] > 0)
- {
- SendClientMessage(playerid,COLOR_YELLOW,"The Los Santos Police Department has been informed of your current location.");
- SendCopMessage(TEAM_BLUE_COLOR, "HQ: All Units APB: Reporter: County General Hospital Staff");
- format(string, sizeof(string), "HQ: Crime: Unknown, Suspect: %s",sendername);
- SendCopMessage(TEAM_BLUE_COLOR, string);
- }
- }
- HasBoughtMask[playerid] = 0;
- WithGlasses[playerid] = 0;
- Parrot[playerid] = 0;
- WithMask[playerid] = 0;
- WithHat[playerid] = 0;
- WithBandana[playerid] = 0;
- WithHelmet[playerid] = 0;
- wrench[playerid] = 0;
- hammer[playerid] = 0;
- crowbar[playerid] = 0;
- chainsawdildo[playerid] = 0;
- flashlight[playerid] = 0;
- screwdriver[playerid] = 0;
- rake[playerid] = 0;
- AShield[playerid] = 0;
- BShield[playerid] = 0;
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- if(PlayerBlinded[playerid] > 0)
- {
- PlayerBlinded[playerid] = 0;
- }
- if(PlayerHurt[playerid] > 0)
- {
- PlayerHurt[playerid] = 0;
- }
- if(PlayerInfo[playerid][pMask] == 1)
- {
- PlayerInfo[playerid][pMask] = 0;
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- ShowPlayerNameTagForPlayer(i, playerid, 1);
- }
- }
- }
- SendClientMessage(playerid,COLOR_DOC,"You must spend some time in Hospital to recover.");
- SendClientMessage(playerid,COLOR_DOC,"Before you are discharged, hospital staff will confiscate your weapons and bill you for the healthcare you recieved.");
- SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0;
- if(!NoHospital[playerid])
- {
- HospitalTime[playerid] = 1;
- }
- else
- {
- HospitalTime[playerid] = 49;
- }
- HospitalSpawn[playerid] = rand;
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- // printf("OnPlayerDeath: playerid: %d, killerid: %d, reason: %s", playerid, killerid, reason); //debug
- if (PlayerInfo[playerid][pHungry] == 1 || PlayerInfo[playerid][pThirsty] == 1)
- {
- PlayerInfo[playerid][pHungry] = 360;
- PlayerInfo[playerid][pThirsty] = 300;
- }
- ClearGuns(playerid);
- SetPlayerColor(playerid, TCOLOR_HOSPITAL);
- GameTextForPlayer(playerid,"~w~Wasted",4000,2);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pOnDuty] = 0;
- PlayerInfo[playerid][pBombs] = 0;
- PlayerInfo[playerid][pScope] = 0;
- PlayerInfo[playerid][pLocal] = 999;
- PlayerInfo[playerid][pVirtualWorld] = 0;
- PlayerInfo[killerid][pKills] += 1;
- WithGlasses[playerid] = 0;
- Parrot[playerid] = 0;
- WithMask[playerid] = 0;
- WithHat[playerid] = 0;
- WithBandana[playerid] = 0;
- WithHelmet[playerid] = 0;
- wrench[playerid] = 0;
- hammer[playerid] = 0;
- crowbar[playerid] = 0;
- chainsawdildo[playerid] = 0;
- flashlight[playerid] = 0;
- screwdriver[playerid] = 0;
- rake[playerid] = 0;
- AShield[playerid] = 0;
- BShield[playerid] = 0;
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- PlayerInfo[playerid][Lockpicking] = 0;
- PlayerInfo[playerid][CLockpick] = 0;
- PlayerInfo[playerid][HLockpick] = 999;
- }
- STDPlayer[playerid] = 0;
- IsAtEvent[playerid] = 0;
- new name[MAX_PLAYER_NAME];
- new killa[MAX_PLAYER_NAME];
- new string[128];
- new caller = Mobile[playerid];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(killerid, killa, sizeof(killa));
- if(LoadingCashType[playerid] != 0)
- {
- format(string,sizeof(string),"** You died, robbery failed.");
- SendClientMessage(playerid, COLOR_WHITE, string);
- LoadingCashType[playerid] = 0;
- LoadingCashTime[playerid] = 0;
- LoadedCash[playerid] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- SetPlayerFree(playerid,999,"eliminated");
- PlayerInfo[playerid][pWantedLevel] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVirtualWorld] = 0;
- SetPlayerWantedLevel(playerid, 0);
- PlayerInfo[playerid][pJailed] = 2;
- PlayerInfo[playerid][pJailTime] = 3600;
- new tmphour;
- new tmpminute;
- new tmpsecond;
- gettime(tmphour, tmpminute, tmpsecond);
- FixHour(tmphour);
- tmphour = shifthour;
- SetWorldTime(tmphour);
- DisablePlayerCheckpoint(playerid);
- RemovePlayerAttachedObject(playerid,bankbag);
- SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- return 1;
- }
- if(gPlayerUsingLoopingAnim[playerid])
- {
- gPlayerUsingLoopingAnim[playerid] = 0;
- TextDrawHideForPlayer(playerid,txtAnimHelper);
- }
- if(GetPlayerState(killerid) == 2)
- {
- new vehicleid = GetPlayerVehicleID(killerid);
- if(IsAHelicopter(vehicleid))
- {
- format(string, sizeof(string), "AdmWarning: %s has killed %s, Bladekilling.",killa,name);
- UpdateWarnings(string);
- }
- if(GetPlayerWeapon(killerid) == 29)
- {
- format(string, sizeof(string), "AdmWarning: %s has killed %s, Drivershooting.",killa,name);
- UpdateWarnings(string);
- }
- }
- if(caller != 255) //ON PHONE
- {
- SendClientMessage(caller, COLOR_GRAD2, " The line just went dead....");
- CellTime[caller] = 0;
- Mobile[caller] = 255;
- Mobile[playerid] = 255;
- CellTime[playerid] = 0;
- }
- if(PlayerPaintballing[playerid] != 0) //PAINTBALLING
- {
- PlayerPaintballKills[killerid] ++;
- if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
- {
- new killer[MAX_PLAYER_NAME];
- new victim[MAX_PLAYER_NAME];
- new weap=GetPlayerWeapon(killerid);
- new WeaponName[65];
- GetWeaponName(weap,WeaponName,64);
- PaintballWinner = killerid;
- PaintballWinnerKills = PlayerPaintballKills[killerid];
- GetPlayerName(killerid, killer, sizeof(killer));
- GetPlayerName(playerid, victim, sizeof(victim));
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- format(string, sizeof(string), "* %s is in the lead with %d Kills.",killer,PaintballWinnerKills);
- SendClientMessage(i, COLOR_WHITE, string);
- }
- }
- }
- }
- if(PlayerPaintballing[playerid] != 0)
- {
- new weap=GetPlayerWeapon(killerid);
- new WeaponName[65];
- GetWeaponName(weap,WeaponName,64);
- new victim[MAX_PLAYER_NAME];
- GetPlayerName(playerid, victim, sizeof(victim));
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- format(string, sizeof(string), "[PAINTBALL] %s has killed %s, (%s).",killa,victim,WeaponName);
- SendClientMessage(i, COLOR_RED, string);
- }
- }
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pHeadValue] > 0) //CONTRACT
- {
- if(GoChase[killerid] == playerid)
- {
- new price = PlayerInfo[playerid][pHeadValue];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price/2;
- GivePlayerMoney(playerid, -price/2);
- PlayerInfo[killerid][pCash] = PlayerInfo[killerid][pCash]+price/2;
- GivePlayerMoney(killerid, price/2);
- format(string, sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d.",killa,name,price/2);
- SendFamilyMessage(8, COLOR_YELLOW, string);
- format(string, sizeof(string),"You have been critically injured by a hitman and lost $%d.",price/2);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- PlayerPlaySound(killerid, 1052, 0.0, 0.0, 0.0);
- ClearContract(playerid);
- GoChase[killerid] = 999;
- PlayerInfo[killerid][pCHits]++;
- }
- }
- if(GoChase[playerid] == killerid)
- {
- if(PlayerInfo[killerid][pHeadValue] > 0)
- {
- new price = PlayerInfo[killerid][pHeadValue];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price/2;
- GivePlayerMoney(playerid, -price/2);
- PlayerInfo[killerid][pCash] = PlayerInfo[killerid][pCash]+price/2;
- GivePlayerMoney(killerid, price/2);
- format(string, sizeof(string),"Hitman %s has failed the contract on %s and lost $%d.",name,killa,price/2);
- SendFamilyMessage(8, COLOR_YELLOW, string);
- format(string, sizeof(string),"You have killed a hitman and gained $%d, the contract on your head has been removed.",price/2);
- SendClientMessage(killerid, COLOR_YELLOW, string);
- PlayerPlaySound(killerid, 1052, 0.0, 0.0, 0.0);
- ClearContract(killerid);
- GoChase[playerid] = 999;
- PlayerInfo[playerid][pFHits]++;
- }
- }
- if(BombID[playerid] != 0)
- {
- DestroyDynamicObject(BombID[playerid]);
- BombID[playerid] = 0;
- }
- killerid = INVALID_PLAYER_ID;
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- if(PlayerInfo[playerid][pMask] == 1) ShowPlayerNameTagForPlayer(forplayerid, playerid, false);
- if(PlayerInfo[playerid][pWantedLevel] == 6) SetPlayerMarkerForPlayer(forplayerid, playerid, TCOLOR_WANTED);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(IsPlayerNPC(playerid))
- {
- //SpawnPlayer(playerid);
- new sendername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(!strcmp(sendername, "Security_Guard", true))
- {
- gPlayerLogged[playerid] = 1;
- SetPlayerPos(playerid, 1544.1339, -1631.9484, 13.3828);
- SetPlayerSkin(playerid, 71); //cadet
- }
- else if(!strcmp(sendername, "Banker", true))
- {
- SetPlayerPos(playerid, 2311.0154, -11.0131, 26.7422);
- SetPlayerFacingAngle(playerid, 180);
- gPlayerLogged[playerid] = 1;
- new gender = random(2);
- if(gender == 0)
- {
- SetPlayerSkin(playerid, 150); //female
- }
- else
- {
- SetPlayerSkin(playerid, 187); //male
- }
- }
- else if(!strcmp(sendername, "Bus", true))
- {
- AddStaticVehicle(431,1976.3766,-1954.1646,13.2701,266.3449,0,0); //
- PutPlayerInVehicle(playerid, 220, 0);
- gPlayerLogged[playerid] = 1;
- }
- else if(!strcmp(sendername, "Bot_24", true))
- {
- SetPlayerPos(playerid, -29.3284, -57.2872, 1003.5469);
- SetPlayerFacingAngle(playerid, 0);
- SetPlayerSkin(playerid, 220); //rasta
- gPlayerLogged[playerid] = 1;
- }
- else if(!strcmp(sendername, "Bot_24_1", true))
- {
- SetPlayerPos(playerid, -27.2159, -91.6840, 1003.5469);
- SetPlayerFacingAngle(playerid, 0);
- SetPlayerSkin(playerid, 229); //asian
- gPlayerLogged[playerid] = 1;
- }
- else if(!strcmp(sendername, "Bot_24_2", true))
- {
- SetPlayerPos(playerid, -29.7490, -30.7393, 1003.5573);
- SetPlayerFacingAngle(playerid, 0);
- SetPlayerSkin(playerid, 236); //oldman
- gPlayerLogged[playerid] = 1;
- }
- else if(!strcmp(sendername, "Bot_24_3", true))
- {
- SetPlayerPos(playerid, -28.2693, -186.8315, 1003.5469);
- SetPlayerFacingAngle(playerid, 0);
- gPlayerLogged[playerid] = 1;
- new gender = random(2);
- if(gender == 0)
- {
- SetPlayerSkin(playerid, 197); //country female
- }
- else
- {
- SetPlayerSkin(playerid, 159); //country male
- }
- }
- else if(!strcmp(sendername, "bot_10gb", true))
- {
- SetPlayerPos(playerid, 499.1612, -77.4632, 998.7651);
- SetPlayerFacingAngle(playerid, 0);
- gPlayerLogged[playerid] = 1;
- new clothes = random(2);
- if(clothes == 0)
- {
- SetPlayerSkin(playerid, 248); //biker 1
- }
- else
- {
- SetPlayerSkin(playerid, 254); //biker 2
- }
- }
- else if(!strcmp(sendername, "bot_pigpen", true))
- {
- SetPlayerPos(playerid, 1215.1786, -15.2606, 1000.9219);
- SetPlayerFacingAngle(playerid, 0);
- SetPlayerSkin(playerid, 171); //tux
- gPlayerLogged[playerid] = 1;
- }
- else if(!strcmp(sendername, "bot_stripper1", true))
- {
- SetPlayerPos(playerid, 1214.0563, -4.2679, 1001.3281);
- SetPlayerFacingAngle(playerid, 44.4938);
- gPlayerLogged[playerid] = 1;
- new clothes = random(2);
- if(clothes == 0)
- {
- SetPlayerSkin(playerid, 244); //stripper 1
- }
- else
- {
- SetPlayerSkin(playerid, 246); //stripper 2
- }
- }
- else if(!strcmp(sendername, "bot_stripper2", true))
- {
- SetPlayerPos(playerid, 1221.2170, 8.4467, 1001.3356);
- SetPlayerFacingAngle(playerid, 132.6630);
- gPlayerLogged[playerid] = 1;
- new clothes = random(2);
- if(clothes == 0)
- {
- SetPlayerSkin(playerid, 237); //stripper 1
- }
- else
- {
- SetPlayerSkin(playerid, 256); //stripper 2
- }
- }
- else if(!strcmp(sendername, "Boxer", true))
- {
- SetPlayerPos(playerid, 1241.2424, -760.8990, 1084.0134);
- SetPlayerFacingAngle(playerid, 5.887);
- SetPlayerSkin(playerid, 80); //fighter 1
- gPlayerLogged[playerid] = 1;
- }
- else if(!strcmp(sendername, "bot_donut", true))
- {
- SetPlayerPos(playerid, 1512.1212, -1705.1373, 14.0469);
- SetPlayerFacingAngle(playerid, 180.0);
- SetPlayerSkin(playerid, 168);
- gPlayerLogged[playerid] = 1;
- }
- else if(!strcmp(sendername, "Barman", true))
- {
- SetPlayerPos(playerid, 501.8481, -21.0422, 1000.6797);
- SetPlayerFacingAngle(playerid, 90.0);
- gPlayerLogged[playerid] = 1;
- new gender = random(2);
- if(gender == 0)
- {
- SetPlayerSkin(playerid, 171); //male
- }
- else
- {
- SetPlayerSkin(playerid, 172); //female
- }
- }
- else if(!strcmp(sendername, "Janet", true))
- {
- SetPlayerPos(playerid, 491.6074,-4.3903,1002.0781);
- SetPlayerFacingAngle(playerid, 180.0);
- gPlayerLogged[playerid] = 1;
- SetPlayerSkin(playerid, 63); //dancer 1
- }
- else if(!strcmp(sendername, "Denise", true))
- {
- SetPlayerPos(playerid, 483.4890,-4.3903,1002.0781);
- SetPlayerFacingAngle(playerid, 180.0);
- gPlayerLogged[playerid] = 1;
- SetPlayerSkin(playerid, 85); //dancer 2
- }
- return 1;
- }
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires you to Login BEFORE spawn (Kicked) **");
- // printf("OnPlayerSpawn Kick: %d",playerid);
- KickPlayer[playerid] = 1;
- return 1;
- }
- if(PlayerInfo[playerid][pClothes] != 0)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pClothes]);
- }
- else
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
- }
- if(!gPlayerAnimLibsPreloaded[playerid])
- {
- PreloadAnimLib(playerid,"BOMBER");
- PreloadAnimLib(playerid,"RAPPING");
- PreloadAnimLib(playerid,"SHOP");
- PreloadAnimLib(playerid,"BEACH");
- PreloadAnimLib(playerid,"SMOKING");
- PreloadAnimLib(playerid,"FOOD");
- PreloadAnimLib(playerid,"ON_LOOKERS");
- PreloadAnimLib(playerid,"DEALER");
- PreloadAnimLib(playerid,"CRACK");
- PreloadAnimLib(playerid,"CARRY");
- PreloadAnimLib(playerid,"COP_AMBIENT");
- PreloadAnimLib(playerid,"PARK");
- PreloadAnimLib(playerid,"INT_HOUSE");
- PreloadAnimLib(playerid,"FOOD");
- PreloadAnimLib(playerid,"PED");
- PreloadAnimLib(playerid,"GANGS");
- gPlayerAnimLibsPreloaded[playerid] = 1;
- }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
- SetPlayerWeapons(playerid);
- SetPlayerSpawn(playerid);
- PlayerFixRadio(playerid);
- gPlayerSpawned[playerid] = 1;
- return 1;
- }
- public PayLog(string[])
- {
- new entry[256];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/pay.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public StatLog(string[])
- {
- new entry[256];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/stat.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public KickLog(string[])
- {
- new entry[256];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/kick.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public BanLog(string[])
- {
- new entry[256];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/ban.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public AdLog(string[])
- {
- new entry[256];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/ad.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public TrunkLog(string[])
- {
- new entry[256];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/trunk.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public BLLog(string[])
- {
- new entry[256];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/badlogin.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- new string[128];
- if(LoadedCash[playerid] != 0 && IsPlayerInRangeOfPoint(playerid,4.0,-1479.1213,2625.8848,58.7813))
- {
- format(string,sizeof(string),"City Alert: The Bank has been successfully robbed. %s ran away with $%d",PlayerName(playerid),LoadedCash[playerid]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- format(string,sizeof(string),"** You've reached the safe point and kept your bag filled with $%d",LoadedCash[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- GivePlayerMoney(playerid, LoadedCash[playerid]);
- PlayerInfo[playerid][pCash] += LoadedCash[playerid];
- LoadingCashType[playerid] = 0;
- LoadingCashTime[playerid] = 0;
- LoadedCash[playerid] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- DisablePlayerCheckpoint(playerid);
- RemovePlayerAttachedObject(playerid,bankbag);
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- }
- if(LoadedCash[playerid] != 0 && IsPlayerInRangeOfPoint(playerid,4.0,2927.0076,2099.7256,17.8955))
- {
- format(string,sizeof(string),"City Alert: The Bank has been successfully robbed. %s ran away with $%d",PlayerName(playerid),LoadedCash[playerid]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- format(string,sizeof(string),"** You've reached the safe point and kept your bag filled with $%d",LoadedCash[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- GivePlayerMoney(playerid, LoadedCash[playerid]);
- PlayerInfo[playerid][pCash] += LoadedCash[playerid];
- LoadingCashType[playerid] = 0;
- LoadingCashTime[playerid] = 0;
- LoadedCash[playerid] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- DisablePlayerCheckpoint(playerid);
- RemovePlayerAttachedObject(playerid,bankbag);
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- }
- if(LoadedCash[playerid] != 0 && IsPlayerInRangeOfPoint(playerid,4.0,-1632.2328,-2239.1941,31.4766))
- {
- format(string,sizeof(string),"City Alert: The Bank has been successfully robbed. %s ran away with $%d",PlayerName(playerid),LoadedCash[playerid]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- format(string,sizeof(string),"** You've reached the safe point and kept your bag filled with $%d",LoadedCash[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- GivePlayerMoney(playerid, LoadedCash[playerid]);
- PlayerInfo[playerid][pCash] += LoadedCash[playerid];
- LoadingCashType[playerid] = 0;
- LoadingCashTime[playerid] = 0;
- LoadedCash[playerid] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- DisablePlayerCheckpoint(playerid);
- RemovePlayerAttachedObject(playerid,bankbag);
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- }
- if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
- {
- TaxiAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
- TaxiCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
- {
- BusAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
- BusCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else if(CP[playerid] == 1 && IsPlayerInRangeOfPoint(playerid,10.0,2696.0520,-2225.8101,13.2554)) //isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- PlayerInfo[playerid][pJackSkill] ++;
- if(PlayerInfo[playerid][pJackSkill] == 50)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 2, you will now earn more Money and have a quicker Reload Time."); }
- else if(PlayerInfo[playerid][pJackSkill] == 100)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 3, you will now earn more Money and have a quicker Reload Time."); }
- else if(PlayerInfo[playerid][pJackSkill] == 200)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 4, you will now earn more Money and have a quicker Reload Time."); }
- else if(PlayerInfo[playerid][pJackSkill] == 400)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 5, you will now earn more Money and have a quicker Reload Time."); }
- new level = PlayerInfo[playerid][pJackSkill];
- if(level >= 0 && level <= 49)
- {
- new rand = random(sizeof(SELLCAR1));
- format(string, sizeof(string), "* You sold a car for $%d, your reload time is 20 minutes.", SELLCAR1[rand]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+SELLCAR1[rand];
- GivePlayerMoney(playerid, SELLCAR1[rand]);
- PlayerInfo[playerid][pCarTime] = 1200;
- }
- else if(level >= 50 && level <= 99)
- {
- new rand = random(sizeof(SELLCAR2));
- format(string, sizeof(string), "* You sold a car for $%d, your reload time is 18 minutes.", SELLCAR2[rand]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+SELLCAR2[rand];
- GivePlayerMoney(playerid, SELLCAR2[rand]);
- PlayerInfo[playerid][pCarTime] = 1080;
- }
- else if(level >= 100 && level <= 199)
- {
- new rand = random(sizeof(SELLCAR3));
- format(string, sizeof(string), "* You sold a car for $%d, your reload time is 16 minutes.", SELLCAR3[rand]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+SELLCAR3[rand];
- GivePlayerMoney(playerid, SELLCAR3[rand]);
- PlayerInfo[playerid][pCarTime] = 960;
- }
- else if(level >= 200 && level <= 399)
- {
- new rand = random(sizeof(SELLCAR4));
- format(string, sizeof(string), "* You sold a car for $%d, your reload time is 14 minutes.", SELLCAR4[rand]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+SELLCAR4[rand];
- GivePlayerMoney(playerid, SELLCAR4[rand]);
- PlayerInfo[playerid][pCarTime] = 840;
- }
- else if(level >= 400)
- {
- new money = 6000;
- format(string, sizeof(string), "* You sold a car for $%d, your reload time is 12 minutes.", money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+money;
- GivePlayerMoney(playerid, money);
- PlayerInfo[playerid][pCarTime] = 720;
- }
- GameTextForPlayer(playerid, "~y~Sold the car", 2500, 1);
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(GetPlayerVehicleID(playerid));
- }
- else
- {
- GameTextForPlayer(playerid, "Not in a car", 5000, 1);
- }
- }
- else if(CP[playerid] == 2 && IsPlayerInRangeOfPoint(playerid,5.0,2172.1880,-2263.9683,13.3363)) //materials factory 1 isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
- {
- if(Packages[playerid] > 0)
- {
- if(GotMats[playerid] >= 1)
- {
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "Teleport: [%d]%s is potentially Teleport Matrunning.", playerid, sendername);
- UpdateWarnings(string);
- }
- if(Packages[playerid] == 14)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 350 Materials for your 14 Materials Packages.");
- PlayerInfo[playerid][pMats] += dmatpayout;
- Packages[playerid] = 0;
- CP[playerid] = 0;
- GotMats[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 250 Materials for your 10 Materials Packages.");
- PlayerInfo[playerid][pMats] += matpayout;
- Packages[playerid] = 0;
- CP[playerid] = 0;
- GotMats[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You are not carrying any Materials Packages !");
- }
- }
- else if(CP[playerid] == 10 && IsPlayerInRangeOfPoint(playerid,5.0,-500.5291,-528.6747,25.5234)) //materials factory 3 isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
- {
- if(Packages[playerid] > 0)
- {
- if(GotMats[playerid] >= 1)
- {
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "Teleport: [%d]%s is potentially Teleport Matrunning.", playerid, sendername);
- UpdateWarnings(string);
- }
- if(Packages[playerid] == 14)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 450 Materials for your 14 Materials Packages.");
- PlayerInfo[playerid][pMats] += dmatpayout2;
- Packages[playerid] = 0;
- CP[playerid] = 0;
- GotMats[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 500 Materials for your 20 Materials Packages.");
- PlayerInfo[playerid][pMats] += matpayout2;
- Packages[playerid] = 0;
- CP[playerid] = 0;
- GotMats[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You are not carrying any Materials Packages !");
- }
- }
- else if(CP[playerid] == 3 && IsPlayerInRangeOfPoint(playerid,5.0,2288.0730,-1105.4535,37.9766)) //materials factory 2 isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
- {
- if(Packages[playerid] > 0)
- {
- if(GotMats[playerid] >= 1)
- {
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "Teleport: [%d]%s is potentially Teleport Matrunning.", playerid, sendername);
- UpdateWarnings(string);
- }
- if(Packages[playerid] == 14)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 350 Materials for your 14 Materials Packages.");
- PlayerInfo[playerid][pMats] += dmatpayout;
- Packages[playerid] = 0;
- CP[playerid] = 0;
- GotMats[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 250 Materials for your 10 Materials Packages.");
- PlayerInfo[playerid][pMats] += matpayout;
- Packages[playerid] = 0;
- CP[playerid] = 0;
- GotMats[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You are not carrying any Materials Packages !");
- }
- }
- else if(CP[playerid] == 5 && IsPlayerInRangeOfPoint(playerid,5.0,2354.2703,-1169.3293,28.0083)) //crack smuggling to crack lab isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
- {
- if(Crates[playerid] > 0)
- {
- if(chstock < chlimit)
- {
- new level = PlayerInfo[playerid][pSmugglerSkill];
- new crackpayout;
- if(level >= 0 && level <= 19)
- { crackpayout = 1250; }
- else if(level >= 20 && level <= 39)
- { crackpayout = 1500; }
- else if(level >= 40 && level <= 59)
- { crackpayout = 1750; }
- else if(level >= 60 && level <= 79)
- { crackpayout = 1800; }
- else if(level >= 80)
- { crackpayout = 2000; }
- format(string, sizeof(string), "* You recieved $%d for delivering the Drug Crates.", crackpayout);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+crackpayout;
- GivePlayerMoney(playerid, crackpayout);
- Crates[playerid] = 0;
- CP[playerid] = 0;
- chstock = chstock+10;
- DisablePlayerCheckpoint(playerid);
- PlayerInfo[playerid][pSmugglerSkill] ++;
- if(PlayerInfo[playerid][pSmugglerSkill] == 20)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 2, you will now earn more Money smuggling Drugs."); }
- else if(PlayerInfo[playerid][pSmugglerSkill] == 40)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 3, you will now earn more Money smuggling Drugs."); }
- else if(PlayerInfo[playerid][pSmugglerSkill] == 60)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 4, you will now earn more Money smuggling Drugs."); }
- else if(PlayerInfo[playerid][pSmugglerSkill] == 80)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 5, you will now earn more Money smuggling Drugs."); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," The Crack Lab is at its limit, come back later !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You are not carrying any Drug Crates !");
- }
- }
- else if(CP[playerid] == 6 && IsPlayerInRangeOfPoint(playerid,5.0,2166.3772,-1675.3829,15.0859)) //seed smuggling to drug house //isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
- {
- if(Crates[playerid] > 0)
- {
- if(dhstock < dhlimit)
- {
- new level = PlayerInfo[playerid][pSmugglerSkill];
- new potpayout;
- if(level >= 0 && level <= 19)
- { potpayout = 1250; }
- else if(level >= 20 && level <= 39)
- { potpayout = 1500; }
- else if(level >= 40 && level <= 59)
- { potpayout = 1750; }
- else if(level >= 60 && level <= 79)
- { potpayout = 1800; }
- else if(level >= 80)
- { potpayout = 2000; }
- format(string, sizeof(string), "* You recieved $%d for delivering the Drug Crates.", potpayout);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+potpayout;
- GivePlayerMoney(playerid, potpayout);
- Crates[playerid] = 0;
- CP[playerid] = 0;
- dhstock = dhstock+10;
- DisablePlayerCheckpoint(playerid);
- PlayerInfo[playerid][pSmugglerSkill] ++;
- if(PlayerInfo[playerid][pSmugglerSkill] == 20)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 2, you will now earn more Money smuggling Drugs."); }
- else if(PlayerInfo[playerid][pSmugglerSkill] == 40)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 3, you will now earn more Money smuggling Drugs."); }
- else if(PlayerInfo[playerid][pSmugglerSkill] == 60)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 4, you will now earn more Money smuggling Drugs."); }
- else if(PlayerInfo[playerid][pSmugglerSkill] == 80)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 5, you will now earn more Money smuggling Drugs."); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"The Drug House is at its limit, come back later.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not carrying any Drug Crates.");
- }
- }
- else if(CP[playerid] == 7) //drug factory
- {
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(PRESSED(KEY_FIRE))
- {
- if(UsingSate[playerid] == 1)
- {
- if(ZOOM[playerid] == 1)
- {
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475);
- SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
- ZOOM[playerid] = 2;
- return 1;
- }
- if(ZOOM[playerid] == 2)
- {
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450);
- SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
- ZOOM[playerid] = 3;
- return 1;
- }
- if(ZOOM[playerid] == 3)
- {
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-425);
- SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
- ZOOM[playerid] = 4;
- return 1;
- }
- if(ZOOM[playerid] == 4)
- {
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400);
- SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
- ZOOM[playerid] = 5;
- return 1;
- }
- if(ZOOM[playerid] == 5)
- {
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250);
- SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
- ZOOM[playerid] = 1;
- return 1;
- }
- }
- if(RampToggle[playerid] == 1)
- { // admin ramp
- if((GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER))
- {
- new Float: X, Float: Y, Float: Z, Float: A;
- GetXYInFrontOfPlayer(playerid, X, Y, Z, A);
- ramp = CreateDynamicObject(RAMP, X, Y, Z, 0.0, 0.0, A, 0, -1, -1, 100.0);
- SetTimerEx("Delete", TIME, 0, "d", ramp);
- }
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_SPRUNK)
- {
- if(UseDrinkTimer[playerid]) return 1;
- if(UserSprunk[playerid] < 4)
- {
- if(PlayerInfo[playerid][pThirsty] > 6000)
- {
- PlayerInfo[playerid][pThirsty] = 1+random(500);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You have already drink too much.");
- }
- UseDrinkTimer[playerid] = true;
- SetTimerEx("UseDrink",2*1000,0,"i",playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This can of sprunk is over.");
- return 1;
- }
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_BEER)
- {
- if(UseDrinkTimer[playerid]) return 1;
- if(UserSprunk[playerid] < 5)
- {
- if(PlayerInfo[playerid][pThirsty] > 6000)
- {
- PlayerInfo[playerid][pThirsty] = 1+random(500);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You have already drink too much.");
- }
- UseDrinkTimer[playerid] = true;
- SetTimerEx("UseDrink",2*1000,0,"i",playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This bottle is over.");
- return 1;
- }
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_WINE)
- {
- if(UseDrinkTimer[playerid]) return 1;
- if(UserSprunk[playerid] < 5)
- {
- if(PlayerInfo[playerid][pThirsty] > 6000)
- {
- PlayerInfo[playerid][pThirsty] = 1+random(250);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You have already drink too much.");
- }
- UseDrinkTimer[playerid] = true;
- SetTimerEx("UseDrink",2*1000,0,"i",playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This bottle is over.");
- return 1;
- }
- }
- if(BombID[playerid] != 0)
- {
- if(HoldingDetonator[playerid])
- {
- new Float:X,Float:Y,Float:Z;
- if(BombInCar[playerid] == 1)
- {
- GetVehiclePos(BombID[playerid], X, Y, Z);
- SetVehicleHealth(BombID[playerid], 0);
- }
- else
- {
- ClearAnimations(playerid);
- ApplyAnimation(playerid,"PED","bomber",4.0,0,0,0,0,0);
- GetObjectPos(BombID[playerid],X,Y,Z);
- DestroyDynamicObject(BombID[playerid]);
- }
- CreateExplosion(X,Y,Z, 2, 0.0);
- GameTextForPlayer(playerid, "~w~DETONATED", 3000, 3);
- BombID[playerid] = -1;
- TakeWeapon(playerid,40);
- SetPlayerWeapons(playerid);
- new killerid = GoChase[playerid];
- if(IsPlayerInRangeOfPoint(killerid,3,X,Y,Z))
- {
- if(GoChase[playerid] == killerid)
- {
- if(PlayerInfo[killerid][pHeadValue] > 0)
- {
- new string[128];
- new price = PlayerInfo[killerid][pHeadValue];
- new name[MAX_PLAYER_NAME];
- new killa[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(killerid, killa, sizeof(killa));
- PlayerInfo[killerid][pCash] = PlayerInfo[killerid][pCash]-price/2;
- GivePlayerMoney(killerid, -price/2);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price/2;
- GivePlayerMoney(playerid, price/2);
- new witness;
- GetPlayerPos(playerid, X, Y, Z);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerInRangeOfPoint(i, 10.0, X, Y, Z))
- {
- if(i != playerid && i != killerid) witness ++;
- }
- }
- format(string,128,"Hitman %s has successfully assassinated %s with a C4 and collected $%d, %d withesses.",name,killa,price/2,witness);
- SendFamilyMessage(8, COLOR_YELLOW, string);
- format(string,128,"You have been critically injured by a hitman and lost $%d.",price/2);
- SendClientMessage(killerid, COLOR_YELLOW, string);
- SetPlayerHealth(killerid, 0);
- ClearContract(killerid);
- GoChase[playerid] = 999;
- PlayerInfo[playerid][pCHits]++;
- }
- }
- }
- }
- }
- }
- if(PRESSED(KEY_CTRL))
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
- {
- GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
- if(lights==1)
- {
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,0,alarm,doors,bonnet,boot,objective);
- return 1;
- }
- else
- {
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,1,alarm,doors,bonnet,boot,objective);
- return 1;
- }
- }
- }
- if(PRESSED(KEY_SUBMISSION))
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- new vehid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
- {
- if(vehid == 481 || vehid == 509 || vehid == 510)
- return 1;
- GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(engine<=0)
- {
- GameTextForPlayer(playerid, "~g~Starting the engine...", 1200, 1);
- SetTimerEx("StartEngine", 1500, 0, "ii", playerid, vehid);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Stopping the engine...", 1200, 1);
- SetTimerEx("StopEngine", 1500, 0, "ii", playerid, vehid);
- }
- }
- }
- /*
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
- if(lights==1)
- {
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,0,alarm,doors,bonnet,boot,objective);
- }
- else
- {
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,1,alarm,doors,bonnet,boot,objective);
- }
- */
- if(newkeys & KEY_FIRE && newkeys & KEY_HANDBRAKE)
- {
- if(GetPlayerWeapon(playerid) == 34 && PlayerInfo[playerid][pScope] == 1)
- {
- if(RecentlyShot[playerid] == 0)
- {
- RecentlyShot[playerid] = 1;
- SetTimerEx("AntiSpam", 1000, false, "d", playerid);
- {
- new Float:blahx, Float:blahy, Float:blahz;
- HeadshotCheck(playerid, blahx, blahy, blahz);
- }
- }
- }
- }
- if(PRESSED(KEY_CROUCH))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new isdriver = GetPlayerVehicleSeat(playerid);
- if(isdriver == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,9,1588.3058,-1637.9652,13.4227))
- { //POLICE GATE
- if(!IsACop(playerid)) return 1;
- if(pdgategar==0)
- {
- pdgategar = 1;
- MoveDynamicObject(pdgaragegateobj, 1588.965698, -1637.882690, 7.710285, 1.50);
- }
- else if(pdgategar==1)
- {
- pdgategar = 0;
- MoveDynamicObject(pdgaragegateobj, 1588.965698, -1637.882690, 15.260185, 1.50);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,9,1544.4913,-1627.2817,13.3828))
- { //POLICE BAR
- if(!IsACop(playerid)) return 1;
- if(pdgatebar==0)
- {
- pdgatebar = 1;
- SetDynamicObjectRot( pdbarriergateobj, 0.0000, 360.0000, 90.0000);
- SetDynamicObjectPos( pdbarriergateobj, 1544.682495, -1630.953003, 13.079567 );
- }
- else if(pdgatebar==1)
- {
- pdgatebar = 0;
- SetDynamicObjectRot( pdbarriergateobj, 0.0000, 90.0000, 90.0000);
- SetDynamicObjectPos( pdbarriergateobj, 1544.682495, -1630.980000, 13.215000 );
- }
- }
- }
- }
- }
- if(!gPlayerUsingLoopingAnim[playerid]) { return 1; }
- if(IsKeyJustDown(KEY_SPRINT,newkeys,oldkeys))
- {
- PlayerHurt[playerid] = 0;
- StopLoopingAnim(playerid);
- TextDrawHideForPlayer(playerid,txtAnimHelper);
- }
- if(PRESSED(newkeys, KEY_SUBMISSION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
- {
- new Float:ppX,Float:ppY,Float:ppZ;
- GetPlayerPos(playerid,ppX,ppY,ppZ);
- new Float:vvX,Float:vvY,Float:vvZ;
- new Found=0;
- new vid=0;
- while((vid<MAX_VEHICLES)&&(!Found))
- {
- vid++;
- GetVehiclePos(vid,vvX,vvY,vvZ);
- if ((floatabs(ppX-vvX)<7.0)&&(floatabs(ppY-vvY)<7.0)&&(floatabs(ppZ-vvZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
- {
- Found=1;
- if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
- {
- DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
- }
- else
- {
- AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
- }
- }
- }
- if (!Found)
- {
- SendClientMessage(playerid,COLOR_GREY," There is no car in range !");
- }
- }
- }
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == para)
- {
- return 1;
- }
- if(pickupid == dildo)
- {
- GivePlayerWeapon(playerid, 10, 999999);
- PlayerInfo[playerid][pGun10] = 10;
- return 1;
- }
- if(pickupid == poolcue)
- {
- GivePlayerWeapon(playerid, 7, 999999);
- PlayerInfo[playerid][pGun1] = 7;
- return 1;
- }
- if(pickupid == iDrughouse)
- {
- new string[128];
- format(string, sizeof(string), "~w~Type /getseeds to purchase some ~n~~r~Seeds~n~~y~Available:~w~ %d/%d",dhstock,dhlimit);
- GameTextForPlayer(playerid, string, 5000, 3);
- return 1;
- }
- if(pickupid == iSprunk)
- {
- GameTextForPlayer(playerid, "~w~Sprunk Factory", 5000, 3);
- return 1;
- }
- if(pickupid == iCracklab)
- {
- new string[128];
- format(string, sizeof(string), "~w~Type /getcrack to purchase some ~n~~r~Crack~n~~y~Available:~w~ %d/%d",chstock,chlimit);
- GameTextForPlayer(playerid, string, 5000, 3);
- return 1;
- }
- if(pickupid == iPoint2)
- {
- new string[128];
- format(string, sizeof(string), "~w~Type /getparts to purchase some ~n~~r~Carparts~n~~y~Available:~w~ %d/100000",Carparts);
- GameTextForPlayer(playerid, string, 5000, 3);
- return 1;
- }
- if(pickupid == iMget1)
- {
- if(Packages[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~w~Type /getmats to purchase a ~n~~r~Materials Package", 5000, 3);
- }
- return 1;
- }
- if(pickupid == iMget2)
- {
- if(Packages[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~w~Type /getmats to purchase a ~n~~r~Materials Package", 5000, 3);
- }
- return 1;
- }
- if(pickupid == iMget3)
- {
- if(Packages[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~w~Type /getmats to purchase a ~n~~r~Materials Package", 5000, 3);
- }
- return 1;
- }
- if(pickupid == iCrateGet)
- {
- if(Crates[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~w~Type /getcrate to purchase a ~n~~r~Drug Crate", 5000, 3);
- }
- return 1;
- }
- if(pickupid == iProd2)
- {
- GameTextForPlayer(playerid, "~w~Type /getproducts to purchase some ~n~~r~Products", 5000, 3);
- return 1;
- }
- if(pickupid == iClothes)
- {
- if(PlayerInfo[playerid][pClothes] != 0)
- {
- GameTextForPlayer(playerid, "~w~Type /change to change back into ~n~~r~Clothes", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid, "~w~Type /change to change into a ~n~~r~Karate Uniform", 5000, 3);
- }
- return 1;
- }
- if(pickupid == iTraining)
- {
- GameTextForPlayer(playerid, "~w~Type /train to learn ~n~~r~Martial Arts", 5000, 3);
- return 1;
- }
- if(pickupid == ipaintball)
- {
- GameTextForPlayer(playerid, "~w~Type ~r~/paintball~w~ to go inside paintball", 5000, 5);
- return 1;
- }
- if(pickupid == iVault)
- {
- GameTextForPlayer(playerid, "~w~Type ~r~/crackthevault~w~ to crack this", 5000, 5);
- return 1;
- }
- if(pickupid == iFBI)
- {
- GameTextForPlayer(playerid, "~b~/fbi", 5000, 5);
- return 1;
- }
- // Vip weapons, Andy
- // Spas12
- if(pickupid == iVIPSpas12)
- {
- new string[100];
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Spas12 ~w~for ~b~$80,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 2)
- {
- format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Spas12 ~w~for ~b~$40,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 3)
- {
- format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Spas12 ~w~for ~b~$25,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- return 1;
- }
- // Knife
- if(pickupid == iVIPKNIFE)
- {
- new string[100];
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- format(string, sizeof(string), "~w~Gold VIP only");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 2)
- {
- format(string, sizeof(string), "~w~Gold VIP only");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 3)
- {
- format(string, sizeof(string), "~w~Type ~r~~w~ to buy this ~n~~y~Knife ~w~for ~b~$100,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- return 1;
- }
- // Vest
- if(pickupid == iVIPARMOR)
- {
- new string[100];
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- format(string, sizeof(string), "~w~Type ~r~/buyvest~w~ to buy this ~n~~y~Vest ~w~for ~b~$10,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 2)
- {
- format(string, sizeof(string), "~w~Type ~r~/buyvest~w~ to buy this ~n~~y~Vest ~w~for ~b~$5,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 3)
- {
- format(string, sizeof(string), "~w~Type ~r~/buyvest~w~ to buy this ~n~~y~Vest ~w~for ~b~$2,500");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- return 1;
- }
- // HP
- if(pickupid == iVIPHP)
- {
- new string[100];
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- format(string, sizeof(string), "~w~Type ~r~/gethp~w~ to fill your ~n~~y~health ~w~to 60 points");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 2)
- {
- format(string, sizeof(string), "~w~Type ~r~/gethp~w~ to fill your ~n~~y~health ~w~to 80 points");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 3)
- {
- format(string, sizeof(string), "~w~Type ~r~/gethp~w~ to fill your ~n~~y~health ~w~to 100 points");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- return 1;
- }
- // Crack
- if(pickupid == iVIPCRACK)
- {
- new string[100];
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- format(string, sizeof(string), "~w~Silver VIP only");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 2)
- {
- format(string, sizeof(string), "~w~Type ~r~/buycrack~w~ to buy 10 grams of ~n~~y~Crack ~w~for ~b~$15,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 3)
- {
- format(string, sizeof(string), "~w~Type ~r~/buycrack~w~ to buy 10 grams of ~n~~y~Crack ~w~for ~b~$10,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- return 1;
- }
- // M4
- if(pickupid == iVIPM4)
- {
- new string[100];
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~M4 ~w~for ~b~$30,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 2)
- {
- format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~M4 ~w~for ~b~$15,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 3)
- {
- format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~M4 ~w~for ~b~$10,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- return 1;
- }
- // AK47
- if(pickupid == iVIPAK47)
- {
- new string[100];
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Ak47 ~w~for ~b~$25,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 2)
- {
- format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Ak47 ~w~for ~b~$12,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 3)
- {
- format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Ak47 ~w~for ~b~$7,000");
- GameTextForPlayer(playerid, string, 3000, 5);
- return 1;
- }
- return 1;
- }
- if(pickupid == iOrder)
- {
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
- {
- GameTextForPlayer(playerid, "~w~Type /order to purchase~n~~r~equipment", 5000, 5);
- }
- return 1;
- }
- if(pickupid == iOrder2)
- {
- if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
- {
- GameTextForPlayer(playerid, "~w~Type /order to purchase~n~~r~equipment", 5000, 5);
- }
- return 1;
- }
- if(pickupid == iDetective)
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Detective~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- if(pickupid == iProd)
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Product Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- if(pickupid == iLawyer)
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- if(pickupid == iDealer)
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drug Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- if(pickupid == iMechanic)
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Mechanic~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- if(pickupid == iBodyguard)
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Bodyguard~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- if(pickupid == iArms)
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Arms Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- if(pickupid == iTaxi)
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Taxi Driver~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- if(pickupid == iSmuggler)
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drug Smuggler~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- /* if(pickupid == iTrashman) // Trashman
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Trashman~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- return 1;
- }
- if(pickupid == iTrashUniform)
- {
- if(PlayerInfo[playerid][pClothes] != 0)
- {
- GameTextForPlayer(playerid, "~w~Type /change to change back into your~n~~r~Clothes", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid, "~w~Type /change to change into a ~n~~r~Trashman Uniform", 5000, 3);
- }
- return 1;
- }*/
- if(pickupid == iArrest1 || pickupid == iArrest2)
- {
- if(IsACop(playerid))
- {
- GameTextForPlayer(playerid, "~w~Type /arrest to jail the ~n~~r~suspect", 5000, 3);
- }
- return 1;
- }
- if(pickupid == iArrest3)
- {
- if(IsACop(playerid))
- {
- GameTextForPlayer(playerid, "~w~Type /sarrest to jail the ~n~~r~suspect", 5000, 3);
- }
- return 1;
- }
- if(pickupid == iDeliver)
- {
- if(IsACop(playerid))
- {
- GameTextForPlayer(playerid, "~w~Type /deliver to send the suspect to ~n~~r~fort demorgan", 5000, 3);
- }
- return 1;
- }
- if(pickupid == iArrest4)
- {
- if(IsAAgent(playerid))
- {
- GameTextForPlayer(playerid, "~w~Type /cdeliver to send the suspect to ~n~~b~CIA Detention", 5000, 3);
- }
- return 1;
- }
- if(pickupid == iVIPLounge1)//PaNoULiS
- {
- GameTextForPlayer(playerid, "~w~Type ~r~/enter~w~ to get inside", 5000, 5);
- return 1;
- }
- if(pickupid == iHeal1 || pickupid == iHeal2)
- {
- GameTextForPlayer(playerid, "~w~Type /healme to ~n~~r~cure yourself", 5000, 5);
- return 1;
- }
- if(pickupid == iPoint1 || pickupid == iPoint3 || pickupid == iPoint4)
- {
- return 1;
- }
- return 1;
- }
- public SaveVehicleComponents(vehicleid)
- {
- new slot[14];
- slot[0] = GetVehicleComponentInSlot(vehicleid, 0);
- slot[1] = GetVehicleComponentInSlot(vehicleid, 1);
- slot[2] = GetVehicleComponentInSlot(vehicleid, 2);
- slot[3] = GetVehicleComponentInSlot(vehicleid, 3);
- slot[4] = GetVehicleComponentInSlot(vehicleid, 4);
- slot[5] = GetVehicleComponentInSlot(vehicleid, 5);
- slot[6] = GetVehicleComponentInSlot(vehicleid, 6);
- slot[7] = GetVehicleComponentInSlot(vehicleid, 7);
- slot[8] = GetVehicleComponentInSlot(vehicleid, 8);
- slot[9] = GetVehicleComponentInSlot(vehicleid, 9);
- slot[10] = GetVehicleComponentInSlot(vehicleid, 10);
- slot[11] = GetVehicleComponentInSlot(vehicleid, 11);
- slot[12] = GetVehicleComponentInSlot(vehicleid, 12);
- slot[13] = GetVehicleComponentInSlot(vehicleid, 13);
- if(slot[0] != 0)
- {
- CarInfo[vehicleid][tComponent0] = slot[0];
- }
- if(slot[1] != 0)
- {
- CarInfo[vehicleid][tComponent1] = slot[1];
- }
- if(slot[2] != 0)
- {
- CarInfo[vehicleid][tComponent2] = slot[2];
- }
- if(slot[3] != 0)
- {
- CarInfo[vehicleid][tComponent3] = slot[3];
- }
- if(slot[4] != 0)
- {
- CarInfo[vehicleid][tComponent4] = slot[4];
- }
- if(slot[5] != 0)
- {
- CarInfo[vehicleid][tComponent5] = slot[5];
- }
- if(slot[6] != 0)
- {
- CarInfo[vehicleid][tComponent6] = slot[6];
- }
- if(slot[7] != 0)
- {
- CarInfo[vehicleid][tComponent7] = slot[7];
- }
- if(slot[8] != 0)
- {
- CarInfo[vehicleid][tComponent8] = slot[8];
- }
- if(slot[9] != 0)
- {
- CarInfo[vehicleid][tComponent9] = slot[9];
- }
- if(slot[10] != 0)
- {
- CarInfo[vehicleid][tComponent10] = slot[10];
- }
- if(slot[11] != 0)
- {
- CarInfo[vehicleid][tComponent11] = slot[11];
- }
- if(slot[12] != 0)
- {
- CarInfo[vehicleid][tComponent12] = slot[12];
- }
- if(slot[13] != 0)
- {
- CarInfo[vehicleid][tComponent13] = slot[13];
- }
- }
- public ClearVehicleComponents(vehicleid)
- {
- CarInfo[vehicleid][tComponent0] = 0;
- CarInfo[vehicleid][tComponent1] = 0;
- CarInfo[vehicleid][tComponent2] = 0;
- CarInfo[vehicleid][tComponent3] = 0;
- CarInfo[vehicleid][tComponent4] = 0;
- CarInfo[vehicleid][tComponent5] = 0;
- CarInfo[vehicleid][tComponent6] = 0;
- CarInfo[vehicleid][tComponent7] = 0;
- CarInfo[vehicleid][tComponent8] = 0;
- CarInfo[vehicleid][tComponent9] = 0;
- CarInfo[vehicleid][tComponent10] = 0;
- CarInfo[vehicleid][tComponent11] = 0;
- CarInfo[vehicleid][tComponent12] = 0;
- CarInfo[vehicleid][tComponent13] = 0;
- }
- public SetVehicleModifications(vehicleid)
- {
- if(CarInfo[vehicleid][tComponent0] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent0]);
- }
- if(CarInfo[vehicleid][tComponent1] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent1]);
- }
- if(CarInfo[vehicleid][tComponent2] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent2]);
- }
- if(CarInfo[vehicleid][tComponent3] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent3]);
- }
- if(CarInfo[vehicleid][tComponent4] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent4]);
- }
- if(CarInfo[vehicleid][tComponent5] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent5]);
- }
- if(CarInfo[vehicleid][tComponent6] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent6]);
- }
- if(CarInfo[vehicleid][tComponent7] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent7]);
- }
- if(CarInfo[vehicleid][tComponent8] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent8]);
- }
- if(CarInfo[vehicleid][tComponent9] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent9]);
- }
- if(CarInfo[vehicleid][tComponent10] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent10]);
- }
- if(CarInfo[vehicleid][tComponent11] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent11]);
- }
- if(CarInfo[vehicleid][tComponent12] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent12]);
- }
- if(CarInfo[vehicleid][tComponent13] >= 0)
- {
- AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent13]);
- }
- }
- public OnVehicleSpawn(vehicleid)
- {
- if(gDestroyVehicle[vehicleid]) // if vehicle id is marked for deletion
- {
- ////foreach(Player, i) // for all players
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && IsPlayerInVehicle(i,vehicleid)) // if connected and in vehicleid
- {
- RemovePlayerFromVehicle(i); // remove from vehicle
- }
- }
- SetVehicleVirtualWorld(vehicleid,255); // set vehicle to unused vw to prevent players from using it
- SetTimerEx("KillCar",10000,0,"d",vehicleid);
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] == vehicleid)
- {
- CreatedCars[i] = INVALID_VEHICLE_ID;
- break;
- }
- }
- }
- DestroyVehicle(vehicleid);
- CarSys[vehicleid] = CreateVehicle(CarInfo[vehicleid][tModel],CarInfo[vehicleid][tLocationx],CarInfo[vehicleid][tLocationy],CarInfo[vehicleid][tLocationz],CarInfo[vehicleid][tAngle],CarInfo[vehicleid][tColorOne],CarInfo[vehicleid][tColorTwo],60000);
- new engine,lights,alarm,doors,bonnet,boot,objective;
- if(CarInfo[vehicleid][tLock] == 1)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
- }
- if(CarInfo[vehicleid][tTrunkOpened] == 1)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
- }
- if(CarInfo[vehicleid][tHoodOpened] == 1)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
- }
- CarInfo[vehicleid][tEngine] = 0;
- ChangeVehiclePaintjob(vehicleid, CarInfo[vehicleid][tPaintjob]);
- SetVehicleModifications(vehicleid);
- ChangeVehicleColor(vehicleid, CarInfo[vehicleid][tColorOne], CarInfo[vehicleid][tColorTwo]);
- new plate[10];
- strmid(plate, CarInfo[vehicleid][tLicensePlate], 0, strlen(CarInfo[vehicleid][tLicensePlate]), 255);
- SetVehicleNumberPlate(vehicleid, plate);
- //Speedo
- LuX_ReadPosition(vehicleid);
- //
- if(CarInfo[vehicleid][Neon] == 1)
- {
- ObjectSelect[vehicleid][0] = CreateDynamicObject(CarInfo[vehicleid][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
- ObjectSelect[vehicleid][1] = CreateDynamicObject(CarInfo[vehicleid][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(ObjectSelect[vehicleid][0], vehicleid, -0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(ObjectSelect[vehicleid][1], vehicleid, 0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
- }
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- new plate[10];
- strmid(plate, CarInfo[vehicleid][tLicensePlate], 0, strlen(CarInfo[vehicleid][tLicensePlate]), 255);
- SetVehicleNumberPlate(vehicleid, plate);
- new engine,lights,alarm,doors,bonnet,boot,objective;
- if(CarInfo[vehicleid][tLock] == 1)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
- }
- if(CarInfo[vehicleid][tTrunkOpened] == 1)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
- }
- if(CarInfo[vehicleid][tHoodOpened] == 1)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
- }
- if(CarInfo[vehicleid][tEngine] == 1)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
- }
- ChangeVehiclePaintjob(vehicleid, CarInfo[vehicleid][tPaintjob]);
- //SetVehicleModifications(vehicleid);
- return 1;
- }
- public OnVehicleDeath(vehicleid)
- {
- if(vehicleid == 152)
- {
- ////foreach(Player,i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(GetPlayerVirtualWorld(i) == 1337)
- {
- new Float:px,Float:py,Float:pz;
- GetPlayerPos(i,px,py,pz);
- SendClientMessage(i,COLOR_RED," The plane has exploded !");
- CreateExplosion(px,py,pz,6,10.0);
- SetPlayerHealth(i,0);
- }
- }
- }
- else if(vehicleid == 153)
- {
- ////foreach(Player,i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(GetPlayerVirtualWorld(i) == 1338)
- {
- new Float:px,Float:py,Float:pz;
- GetPlayerPos(i,px,py,pz);
- SendClientMessage(i,COLOR_RED," The plane has exploded !");
- CreateExplosion(px,py,pz,6,10.0);
- SetPlayerHealth(i,0);
- }
- }
- }
- else if(vehicleid == 154)
- {
- ////foreach(Player,i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(GetPlayerVirtualWorld(i) == 1339)
- {
- new Float:px,Float:py,Float:pz;
- GetPlayerPos(i,px,py,pz);
- SendClientMessage(i,COLOR_RED," The plane has exploded !");
- CreateExplosion(px,py,pz,6,10.0);
- SetPlayerHealth(i,0);
- }
- }
- }
- else if(CarInfo[vehicleid][tInsured] == 0)
- {
- CarInfo[vehicleid][tTrunkOpened] = 0;
- CarInfo[vehicleid][tGun1] = 0;
- CarInfo[vehicleid][tGun2] = 0;
- CarInfo[vehicleid][tArmor] = 0;
- CarInfo[vehicleid][tPot] = 0;
- CarInfo[vehicleid][tCrack] = 0;
- CarInfo[vehicleid][tHoodOpened] = 0;
- }
- else if(CarInfo[vehicleid][tInsured] == 1)
- {
- CarInfo[vehicleid][tTrunkOpened] = 0;
- CarInfo[vehicleid][tHoodOpened] = 0;
- }
- if(CarInfo[vehicleid][Neon] == 1)
- {
- DestroyObject(ObjectSelect[vehicleid][0]);
- DestroyObject(ObjectSelect[vehicleid][1]);
- }
- }
- public DisplayDialogForPlayer(playerid, dialogid)
- {
- switch(dialogid)
- {
- case 1:
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Login","Welcome to Reality Gaming Roleplay.\n\nThat name is registered. please enter your password below.","Login","Cancel");
- }
- case 2:
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Register","Welcome to Reality Gaming Roleplay.\n\nPlease register your account by typing the password below.","Register","Cancel");
- }
- case 3:
- {
- ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"24-7","Dice $500\nSpeedometer $5000\nCondom $50\nCD Player $50\nSpraycan $200\nRope $400\nCigars $70\nSprunk $10\nWalkie Talkie $200\nScrew Driver $300\nBlindfold $600\nCrowbar ($700)\nWatch ($100)\nSuitcase ($1500)\nWrench ($500)\nHammer ($700)\nRake ($1000)\nFlashlight ($1000)","Buy","Cancel");
- }
- case 4:
- {
- ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Bar","Beer $60\nVodka $100\nWhiskey $100\nWine $100\nSprunk $50\nCigar $100","Buy","Cancel");
- }
- case 5:
- {
- ShowPlayerDialog(playerid,5,DIALOG_STYLE_LIST,"Gym","Normal $0\nBoxing $50,000\nKung Fu $50,000\nKneehead $50,000\nGrabkick $50,000\nElbow $50,000","Learn","Cancel");
- }
- case 7:
- {
- ShowPlayerDialog(playerid,7,DIALOG_STYLE_LIST,"Meals","Bread $20\nApple $30\nCok O Pops $50\nMashed Potatoes $50\nCarrot $10\nGreen Beans $40\nPork Roll $50\nSausage $70\nChicken $150","Purchase","Cancel");
- }
- case 8:
- {
- ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Locker Room","Duty\nArmory\nClear Suspect\nRelease Suspect","Select","Cancel");
- }
- case 9:
- {
- ShowPlayerDialog(playerid,9,DIALOG_STYLE_LIST,"Weapons","Mace $20\nNight Stick $20\nDeagle $500\nShotgun $200\nMP5 $400\nRifle $1,000\nM4 $4,000\nSpas12 $10,000\nSniper $10,000\nGrenades $800\nKevlar $2000","Purchase","Cancel");
- }
- case 10:
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"LSPD","Duty\nUndercover\nChange Uniform\nArmory\nSWAT\nClear Suspect\nRelease Suspect","Select","Cancel");
- }
- case 11:
- {
- ShowPlayerDialog(playerid,11,DIALOG_STYLE_LIST,"Armory","Mace $20\nNight Stick $20\nDeagle $500\nShotgun $200\nMP5 $400\nRifle $1,000\nM4 $4,000","Purchase","Cancel");
- }
- case 12:
- {
- ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,"SWAT","Weapons\nAccessories","Select","Cancel");
- }
- case 13:
- {
- ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Weapons","Deagle $500\nShotgun $200\nMP5 $400\nRifle $1,000\nM4 $4,000\nSniper Rifle $10,000\nSpas12 $10,000","Purchase","Cancel");
- }
- case 14:
- {
- ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"Accessories","Tear Gas $800\nGrenades $800\nKevlar $2000","Purchase","Cancel");
- }
- case 15:
- {
- ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Color Changer", "Purple\nYellow\nRed\nLightblue\nOrange\nGreen\nIndigo\nPink\nBlack", "Select", "Cancel");
- }
- case 16:
- {
- ShowPlayerDialog(playerid, 16, DIALOG_STYLE_LIST, "Which job do you need help with?", "Detective\nLawyer\nProduct dealer\nDrug Dealer\nMechanic\nBodyguard\nArms Dealer\nBoxer\nTaxi Driver\nDrug Smuggler", "Select", "Cancel");
- }
- case 17:
- {
- ShowPlayerDialog(playerid, 17, DIALOG_STYLE_MSGBOX, "Detective", "Information:\n\nThis job can be used to locate people anywhere around San Andreas.\nThis is helpful for the Government factions, and can be used to find criminals, it is a legal job and you cannot get busted for doing it.\n It will tell you the last known Location(area) they were found in and give you a beacon.", "Next", "Cancel");
- }
- case 18:
- {
- ShowPlayerDialog(playerid, 18, DIALOG_STYLE_MSGBOX, "Detective", "Skills:\n\nLevel 1: You can find someone for 3 seconds, the reload time is 2 minutes.\nLevel 2: You can find someone for 5 seconds, the reload time is 1 minute, 20 seconds.\nLevel 3: You can find someone for 7 seconds, the reload time is 1 minute.\nLevel 4: You can find someone for 9 seconds, the reload time is 30 seconds.\nLevel 5: You can find someone for 11 seconds, the reload time is 20 seconds.", "Next", "Cancel");
- }
- case 19:
- {
- ShowPlayerDialog(playerid, 19, DIALOG_STYLE_MSGBOX, "Detective", "Commands:\n\n/find\n/find is a command that can locate a player's position.\n\nLocation Of Job:\nThis job can be obtained inside the Los Santos Police Department.", "Done", "Cancel");
- }
- case 20:
- {
- ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "Lawyer", "Information:\n\nThis job can be used to remove wanted stars, reduce jail time, and list all Criminals.\nThis is helpful for criminals and crooks, it is a legal job and you cannot get busted for doing it.\nIt will come in handy for your friends and families who got trouble with the cops.", "Next", "Cancel");
- }
- case 21:
- {
- ShowPlayerDialog(playerid, 21, DIALOG_STYLE_MSGBOX, "Lawyer", "Notes: The reload time is always 2 minutes no matter what level.\n\nSkills:\n\nLevel 1: You can reduce inmates sentences by 1 minute.\nLevel 2: You can reduce inmates sentences by 2 minutes.\nLevel 3: You can reduce inmates sentences by 3 minutes.\nLevel 4: You can reduce inmates sentences by 4 minutes.\nLevel 5: You can reduce inmates sentences by 5 minutes.", "Next", "Cancel");
- }
- case 22:
- {
- ShowPlayerDialog(playerid, 22, DIALOG_STYLE_MSGBOX, "Lawyer", "Commands:\n\n/free, /wanted, /duty.\n\nLocation of Job: This job can be located at the job icon(yellow circle) near the bank.", "Done", "Cancel");
- }
- case 23:
- {
- ShowPlayerDialog(playerid, 23, DIALOG_STYLE_MSGBOX, "Product dealer", "Information:\n\nThis job can be used to sell products to business owners.\nThis is a legal job and you can't get busted for doing it.", "Next", "Cancel");
- }
- case 24:
- {
- ShowPlayerDialog(playerid, 24, DIALOG_STYLE_MSGBOX, "Product dealer", "Notes: There is no reload time for this job,\nbut there is a maximum number of 500 products which each person can hold.\nBusiness owners can't get this job", "Next", "Cancel");
- }
- case 25:
- {
- ShowPlayerDialog(playerid, 25, DIALOG_STYLE_MSGBOX, "Product dealer", "Commands:\n\n/getproducts, /sellproducts\nUse /getproducts to buy them and /sellproducts to sell them to other players.\n\nLocation Of Job:\nThis job is located in Rodeo, at the job icon(yellow circle).", "Done", "Cancel");
- }
- case 26:
- {
- ShowPlayerDialog(playerid, 26, DIALOG_STYLE_MSGBOX, "Drug Dealer", "Information:\n\nThis job can be used to sell pot and crack to any customers you might find.\nIt often comes in handy when you're a higher level at it.\nThe higher the level, the more drugs you can hold.\nThis is an illegal job and you can get busted for doing it.", "Next", "Cancel");
- }
- case 27:
- {
- ShowPlayerDialog(playerid, 27, DIALOG_STYLE_MSGBOX, "Drug Dealer", "Notes: The reload time is always 1 minute no matter what level.\n\nSkills:\n\nLevel 1: You can hold 10 pot and 5 crack.\nLevel 2: You can hold 20 pot and 10 crack.\nLevel 3: You can hold 30 pot and 15 crack.\nLevel 4: You can hold 40 pot and 20 crack.\nLevel 5: You can hold 50 pot and 25 crack.", "Next", "Cancel");
- }
- case 28:
- {
- ShowPlayerDialog(playerid, 28, DIALOG_STYLE_MSGBOX, "Drug Dealer", "Commands\n\n/sellpot, /getseeds, /sellcrack, /getcrack.\n\nLocation of Job: This job can be located outside the Drug Den opposite the Ganton Gym at the D icon.", "Done", "Cancel");
- }
- case 29:
- {
- ShowPlayerDialog(playerid, 29, DIALOG_STYLE_MSGBOX, "Mechanic", "Information:\n\nThis job can be used to repair, add nos, and add hydraulics to vehicles.\nThis job can sometimes be rewarding but often people do not require assistance.\nThis is a legal job and you cannot be busted for doing it.", "Next", "Cancel");
- }
- case 30:
- {
- ShowPlayerDialog(playerid, 30, DIALOG_STYLE_MSGBOX, "Mechanic", "Notes: The reload time is always 1 minute.\n\nSkills:\n\nLevel 1: You can refill a vehicle with 15% fuel.\nLevel 2: You can refill a vehicle with 40% fuel.\nLevel 3: You can refill a vehicle with 60% fuel.\nLevel 4: You can refill a vehicle with 80% fuel.\nLevel 5: You can refill a vehicle with 100% fuel.", "Next", "Cancel");
- }
- case 31:
- {
- ShowPlayerDialog(playerid, 31, DIALOG_STYLE_MSGBOX, "Mechanic", "Commands:\n\n/fix, /repair, /hyd, /nos, /refill, /tow, /duty.\n\nLocation of Job: This job can be obtained near /dropcar, at the job icon(yellow circle).", "Done", "Cancel");
- }
- case 32:
- {
- ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX, "Bodyguard", "Information:\n\nThis job can be used to give people half armor.\nThis job is very profitable and the common spot for purchasing off bodyguards is the gym.\nThis is a legal job and you cannot be busted for doing it.", "Next", "Cancel");
- }
- case 33:
- {
- ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "Bodyguard", "Notes: The reload time is always 1 minute, there are no job levels for this job, in other words, you do not need to level it up to earn the max money you can.", "Next", "Cancel");
- }
- case 34:
- {
- ShowPlayerDialog(playerid, 34, DIALOG_STYLE_MSGBOX, "Bodyguard", "Commands:\n\n/sellvest [playerid/name] [price 2000-10000]\n\nLocation of Job: This job can be obtained outside the Ganton Gym, at the job icon(yellow circle).", "Done", "Cancel");
- }
- case 35:
- {
- ShowPlayerDialog(playerid, 35, DIALOG_STYLE_MSGBOX, "Arms Dealer", "Information:\n\nThis job can be used to sell people weapons.\nThis job is very profitable and can earn you big cash at later levels.\nThis is an illegal job and you can be busted for doing it.", "Next", "Cancel");
- }
- case 36:
- {
- ShowPlayerDialog(playerid, 36, DIALOG_STYLE_MSGBOX, "Arms Dealer", "Skills:\n\nLevel 1 Weapons: flowers, knuckles(knuckle busters), sdpistol and shotgun.\nLevel 2 Weapons: baseballbat, cane, MP5 and Rifles.\nLevel 3 Weapons: shovel, nightvision and deagle.\nLevel 4 Weapons: poolcue, golfclub, AK47, Mac10.\nLevel 5 Weapons: katana, dildo, M4, Tec9\nLevel 6 Weapons: Spas12, Sniper.\nLevel 7 Weapons: Chainsaw, Jetpack\nLevel 8 Weapons: RPG\nLevel 9 Weapons: Minigun", "Next", "Cancel");
- }
- case 37:
- {
- ShowPlayerDialog(playerid, 37, DIALOG_STYLE_MSGBOX, "Arms Dealer", "Commands:\n/getmats, /sellgun.\n\nLocation of Job: This job can be obtained outside the large Los Santos Ammunation, at the Gun icon.", "Done", "Cancel");
- }
- case 38:
- {
- ShowPlayerDialog(playerid, 38, DIALOG_STYLE_MSGBOX, "Boxer", "Information:\n\nThis job can be used to box people inside the Ganton Gym\nThis job is not very money-making but you can become the boxing Champion.\nThis is a legal job and you cannot be busted for doing it.", "Next", "Cancel");
- }
- case 39:
- {
- ShowPlayerDialog(playerid, 39, DIALOG_STYLE_MSGBOX, "Boxer", "Notes: There is no reload time for boxing, you do not need to level it up to box people inside the gym, there are 3 levels for this job.\n\nLevel 1: Beginner Boxer.\nLevel 2: Amateur Boxer.\nLevel 3: Professional Boxer.", "Next", "Cancel");
- }
- case 40:
- {
- ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "Boxer", "Commands:\n\n/fight [playerid/name], /boxstats\n\nLocation of Job: This job can be obtained inside the Ganton Gym, at the job icon(yellow circle).", "Done", "Cancel");
- }
- case 41:
- {
- ShowPlayerDialog(playerid, 41, DIALOG_STYLE_MSGBOX, "Taxi Driver", "Information:\nThis job can be used to take passengers around the city for any price you desire($1-$500 per 16 seconds)\nThis job is not very profitable as people do not usually call taxis, and they sometimes try steal your taxi off you.\nThis is a legal job and you cannot be busted for doing it.", "Next", "Cancel");
- }
- case 42:
- {
- ShowPlayerDialog(playerid, 42, DIALOG_STYLE_MSGBOX, "Taxi Driver", "Notes: There is no reload time for taxi fares, there are no job levels for this job, in other words, you do not need to level it up to earn the max money you can.", "Next", "Cancel");
- }
- case 43:
- {
- ShowPlayerDialog(playerid, 43, DIALOG_STYLE_MSGBOX, "Taxi Driver", "Commands:\n\n/fare [$1-$500]\n\nLocation of Job: This job can be obtained infront of Unity Station, at the job icon(yellow circle).", "Done", "Cancel");
- }
- case 44:
- {
- ShowPlayerDialog(playerid, 44, DIALOG_STYLE_MSGBOX, "Drug Smuggler", "Information:\n\nThis job can be used to smuggle pot or crack into Los Santos.\nThis job can be very profitable at later levels but still can earn money at level 1.\nThis is an illegal job and you can be busted for doing it.", "Next", "Cancel");
- }
- case 45:
- {
- ShowPlayerDialog(playerid, 45, DIALOG_STYLE_MSGBOX, "Drug Smuggler", "Notes: There is no reload time for Drug Smuggling, it always costs $1000 for a drug crate.\n\nSkills:\n\nLevel 1: You earn $1200 when you deliver a crate.\nLevel 2: You earn $1400 when you deliver a crate.\nLevel 3: You earn $1600 when you deliver a crate.\nLevel 4: You earn $1800 when you deliver a crate.\nLevel 5: You earn $2000 when you deliver a crate.", "Next", "Cancel");
- }
- case 46:
- {
- ShowPlayerDialog(playerid, 46, DIALOG_STYLE_MSGBOX, "Drug Smuggler", "Commands:\n\n/getcrate (then type which drug you want to smuggle)\n\nLocation of Job: This job can be obtained outside the Crack Lab, at the C- icon.", "Done", "Cancel");
- }
- case 47:
- {
- ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill", "Proceed", "Cancel");
- }
- case 79:
- {
- ShowPlayerDialog(playerid,79,DIALOG_STYLE_LIST,"Help","Account\nGeneral\nChat\nToggle\nBank\nJob\nFaction\nFamily\nAdmin\nOther\nBusiness\nFrequently asked questions","Done","Cancel");
- }
- case 80:
- {
- ShowPlayerDialog(playerid,80,DIALOG_STYLE_MSGBOX,"Account","Account Help:\n\n/stats, /skill, /levelup, /upgrade, /resetupgrades, /changepass, /signcheck","Print","Cancel");
- }
- case 81:
- {
- ShowPlayerDialog(playerid,81,DIALOG_STYLE_MSGBOX,"General","General Help:\n\n/pay, /give, /time, /buy, /drink, /(show)licenses, /setalarm, /buyhouse, /(join/quit)event, /animlist, /sellmats\n/stopani, /tie, /untie, /frisk, /drop, /report, /cancel, /id, /flipcoin, /breakin, /(un)blindfold\n/eject, /usepot, /usecrack, /kill, /contract, /fill, /service, /families, /sellcar, /pickweed, /checkweed, /helpme","Print","Cancel");
- }
- case 82:
- {
- ShowPlayerDialog(playerid,82,DIALOG_STYLE_MSGBOX,"Chat","Chat Help:\n\n(/w)hisper, (/o)oc, (/s)hout, (/b)localooc, (/ad)vertise, /me, /do, /low, (/int)ercom, /speakon","Print","Cancel");
- }
- case 83:
- {
- ShowPlayerDialog(playerid,83,DIALOG_STYLE_MSGBOX,"Toggle","Toggle Help:\n\n/togooc, /tognewbie, /tognews, /togfam, /togwhisper, /togphone, /togwt, /togfuel, /togalarm","Print","Cancel");
- }
- case 84:
- {
- ShowPlayerDialog(playerid,84,DIALOG_STYLE_MSGBOX,"Bank","Bank Help:\n\n/withdraw, /deposit, /atm, /wiretransfer","Print","Cancel");
- }
- case 85:
- {
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) // LSPD, FBI, SAST
- {
- ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, (/d)epartments, (/m)egaphone, (/su)spect, /lspd, /mdc, /detain, /arrest, /wanted, /cuff, /tazer, /showbadge\n/take, /ticket, (/gov)ernment, /deliver, /clothes, /(un)invite, /ouninvite, /giverank, /deployspikes, /deletespike(s)\n/crb /rrb /rrball /armshield /backshield /tow /impound","Print","Cancel");
- }
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) // LSFMD
- {
- ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, (/d)epartments, (/m)egaphone, /heal, /duty, /clothes, /(un)invite, /ouninvite, /giverank","Print","Cancel");
- }
- if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) //Prison Guards
- {
- ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, (/d)epartments, (/m)egaphone, /suspect, /ng, /mdc, /detain, /wanted, /cuff, /giverank\n/take, /ticket, (/gov)ernment, /deliver, /(un)invite, /ouninvite, /deployspikes, /deletespike(s)","Print","Cancel");
- }
- if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) //Senate
- {
- ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, /clothes, /settax, /taxwithdraw, /(un)invite, /ouninvite, /giverank /senate","Print","Cancel");
- }
- if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) //SS
- {
- ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, (/d)epartments, (/su)spect, /lspd, /mdc, /detain, /arrest, /wanted, /cuff, /tazer\n/take, /ticket, /deliver, /clothes, /(un)invite, /ouninvite, /giverank, /changeclothes, /showbadge","Print","Cancel");
- }
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman Agency
- {
- ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/f)amily, /contracts, /givehit, /order, /ranks, /profile, /disguise, /plantbomb, /pickupbomb, /clothes, /(un)invite, /ouninvite, /giverank","Print","Cancel");
- }
- if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News Agency
- {
- ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n/live, /news [text], /clothes, /(un)invite, /ouninvite, /giverank","Print","Cancel");
- }
- if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company
- {
- ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n/fare, /clothes, /(un)invite, /ouninvite, /giverank","Print","Cancel");
- }
- }
- case 86: ShowPlayerDialog(playerid,86,DIALOG_STYLE_MSGBOX,"Family","Family Help:\n\n(/f)amily, /adjust, /fwithdraw, /fdeposit, /fsafe, /fstats, /clothes","Print","Cancel");
- case 87: ShowPlayerDialog(playerid,87,DIALOG_STYLE_MSGBOX,"Admin","Admin Help:\n\n(/a)dmin, (/ah)elp, /ahousehelp","Print","Cancel");
- case 88: ShowPlayerDialog(playerid,88,DIALOG_STYLE_MSGBOX,"Other","Other Help:\n\n/cellphonehelp, /househelp, /fishhelp, /irchelp","Print","Cancel");
- case 89: ShowPlayerDialog(playerid,89,DIALOG_STYLE_MSGBOX,"Business","Business Help:\n\n/sellbiz, /sellbiztomarket, /biz, /buybiz","Print","Cancel");
- case 99:
- {
- ShowPlayerDialog(playerid,99,DIALOG_STYLE_LIST,"Silver Blackmarket","Deagle $15,000\nM4A1 $30,000\nSpas12 $90,000\n","Purchase","Cancel");
- }
- case 100:
- {
- ShowPlayerDialog(playerid,100,DIALOG_STYLE_LIST,"Gold Blackmarket","Deagle $12,000\nM4A1 $20,000\nSpas12 $70,000\nSniper $65,000\nKnife $500,000","Purchase","Cancel");
- }
- }
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- new weaponid = GetPlayerWeapon(playerid);
- if(!IsPlayerInAnyVehicle(playerid) && weaponid == 44 || weaponid == 45) //desynced nv,infared
- {
- new Keys, ud, lr;
- GetPlayerKeys(playerid, Keys, ud, lr);
- if(Keys & KEY_FIRE) return 0;
- }
- if(UsingSate[playerid] == 1)
- {
- new Keys, ud, lr;
- GetPlayerKeys(playerid, Keys, ud, lr);
- if(ud < 0) // up
- {
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- if(ZOOM[playerid] != 1) { SetPlayerPos(playerid, newsposx[playerid], newsposy[playerid]+4, newsposz[playerid]); }
- if(ZOOM[playerid] == 1) { SetPlayerPos(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]); }
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- if(ZOOM[playerid] == 2) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 3) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 4) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-420); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 5) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 1) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- }
- if(ud > 0) // down
- {
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- if(ZOOM[playerid] != 1) { SetPlayerPos(playerid, newsposx[playerid], newsposy[playerid]-4, newsposz[playerid]); }
- if(ZOOM[playerid] == 1) { SetPlayerPos(playerid, newsposx[playerid], newsposy[playerid]-8, newsposz[playerid]); }
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- if(ZOOM[playerid] == 2) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 3) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 4) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-420); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 5) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 1) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- }
- if(lr < 0) // left
- {
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- if(ZOOM[playerid] != 1) { SetPlayerPos(playerid, newsposx[playerid]-4, newsposy[playerid], newsposz[playerid]); }
- if(ZOOM[playerid] == 1) { SetPlayerPos(playerid, newsposx[playerid]-8, newsposy[playerid], newsposz[playerid]); }
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- if(ZOOM[playerid] == 2) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 3) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 4) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-420); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 5) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 1) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- }
- if(lr > 0) // right
- {
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- if(ZOOM[playerid] != 1) { SetPlayerPos(playerid, newsposx[playerid]+4, newsposy[playerid], newsposz[playerid]); }
- if(ZOOM[playerid] == 1) { SetPlayerPos(playerid, newsposx[playerid]+8, newsposy[playerid], newsposz[playerid]); }
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- if(ZOOM[playerid] == 2) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 3) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 4) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-420); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 5) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- else if(ZOOM[playerid] == 1) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
- }
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- for(new i = 0; i < sizeof(SpikeInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
- {
- if(SpikeInfo[i][sCreated] == 1)
- {
- new panels, doors, lights, tires;
- new carid = GetPlayerVehicleID(playerid);
- GetVehicleDamageStatus(carid, panels, doors, lights, tires);
- tires = encode_tires(1, 1, 1, 1);
- UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
- return 0;
- }
- }
- }
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- for(new i = 0; i < sizeof(SpikeInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
- {
- if(SpikeInfo[i][sCreated] == 1)
- {
- new panels, doors, lights, tires;
- new carid = GetPlayerVehicleID(playerid);
- GetVehicleDamageStatus(carid, panels, doors, lights, tires);
- tires = encode_tires(1, 1, 1, 1);
- UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
- GameTextForPlayer(playerid,"~r~Spiked",4000,3);
- return 0;
- }
- }
- }
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new veh = GetPlayerVehicleID(playerid);
- new Float:h;
- GetVehicleHealth(veh, h);
- if(h <= 300)
- {
- if(CarInfo[veh][tEngine] == 1)
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
- SendClientMessage(playerid, COLOR_LIGHTRED, "Your engine is broken. Call for a mechanic.");
- CarInfo[veh][tEngine] = 0;
- }
- }
- }
- new Keys, ud, lr;
- GetPlayerKeys(playerid, Keys, ud, lr);
- if(Keys & KEY_FIRE)
- {
- if(GetPlayerWeapon(playerid) == 23 && PlayerHasTazer[playerid] == 1)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerAimingAtPlayer(playerid, i))
- {
- if(i == playerid) return 1;
- if(GetDistanceBetweenPlayers(playerid, i) < 8)
- {
- if(PlayerCuffed[i]) return 1;
- if(IsACop(i)) return SendClientMessage(playerid, COLOR_GREY, " Cannot Tazer Cops / FBI / SASD !");
- if(IsPlayerInAnyVehicle(i)) return SendClientMessage(playerid, COLOR_GREY, " Get the suspect out of the vehicle !");
- if(TazerTime[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, " Please wait while your tazer recharges!");
- new string[128];
- TogglePlayerControllable(i, 0);
- format(string, sizeof(string), "* You were Tazed by %s for 8 seconds.", PlayerName(playerid));
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[i][pMask] == 1)
- {
- format(string, sizeof(string), "* You Tazed A Stranger for 8 seconds.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s shoots with his Tazer at A Stranger, and tazed him.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- format(string, sizeof(string), "* You Tazed %s for 8 seconds.",PlayerName(i));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s shoots with his Tazer at %s, and tazed him.", PlayerName(playerid),PlayerName(i));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- SetTimerEx("TazerTimer", 8000, false, "i", playerid);
- TazerTime[playerid] = 1;
- GameTextForPlayer(i, "~r~Tazed", 2500, 3);
- PlayerCuffed[i] = 1;
- PlayerCuffedTime[i] = 8;
- ApplyAnimation(i, "PED","FLOOR_hit_f", 4.0, 1, 0, 0, 0, 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are too far away from the suspect !");
- return 1;
- }
- }
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] <= 1 && PlayerInfo[playerid][pCarKey3] != 0)
- {
- new VString[128];
- new carid = PlayerInfo[playerid][pCarKey3];
- new percent = CarInfo[carid][tPrice] / 100 * 80;
- new engine,lights,alarm,doors,bonnet,boot,objective;
- CarInfo[carid][tOwned] = 0;
- CarInfo[carid][tInsured] = 0;
- CarInfo[carid][tAlarm] = 0;
- CarInfo[carid][tVehRemote] = 0;
- CarInfo[carid][tLock] = 0;
- CarInfo[carid][tEngine] = 0;
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- strmid(CarInfo[carid][tOwner], "The State", 0, strlen("The State"), 255);
- strmid(CarInfo[carid][tLicensePlate], "RG:RP", 0, strlen("RG:RP"), 255);
- DestroyDynamic3DTextLabel(VehicleLabel[carid]);
- format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", CarInfo[carid][tPrice]);
- VehicleLabel[carid] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[carid][tLocationx],CarInfo[carid][tLocationy],CarInfo[carid][tLocationz], 20, INVALID_PLAYER_ID, carid, 0, -1, -1, -1, 100.0);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+percent;
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]+percent);
- PlayerInfo[playerid][pCarKey3] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "Your third vehicle was sold. Your not Silver/Gold VIP anymore!");
- }
- if( IsPlayerInAnyVehicle(playerid) && (GetPlayerWeapon(playerid) == 24 || GetPlayerWeapon(playerid) == 27)) SetPlayerArmedWeapon(playerid, 0);
- new iCurWeap = GetPlayerWeapon(playerid); // Return the player's current weapon
- if(iCurWeap != iCurrentWeapon[playerid]) // If he changed weapons since the last update
- {
- OnPlayerChangeWeapon(playerid, iCurrentWeapon[playerid], iCurWeap);
- iCurrentWeapon[playerid] = iCurWeap; //Update the weapon variable
- }
- f_OnPlayerUpdate(playerid);
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- public SetAllCopCheckpoint(playerid)
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsACop(i))
- {
- SetPlayerMarkerForPlayer(i,playerid,TCOLOR_HELP);
- }
- }
- }
- }
- public SetAllFiremanCheckpoint(playerid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsAFireman(i))
- {
- SetPlayerMarkerForPlayer(i,playerid,TCOLOR_HELP);
- }
- }
- }
- }
- public SetAllParaCheckpoint(playerid)
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMember] == 4)
- {
- SetPlayerMarkerForPlayer(i,playerid,TCOLOR_HELP);
- }
- }
- }
- }
- public GivePlayerWeaponAll(weaponid,ammo)
- {
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GivePlayerAdminGun(i, weaponid);
- }
- }
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- new x = 0;
- while(x != MAX_PLAYERS) //new spectate code
- {
- if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING && SpectatedID[x] == playerid)
- {
- PlayerSpectatePlayer(x,playerid);
- SetPlayerVirtualWorld(x, newinteriorid);
- SetPlayerInterior(x, newinteriorid);
- }
- x++;
- }
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new string[128];
- if(newstate == PLAYER_STATE_DRIVER)
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(vehid == 481 || vehid == 509 || vehid == 510)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehid,1,lights,alarm,doors,bonnet,boot,objective);
- }
- }
- if(oldstate == PLAYER_STATE_DRIVER)
- {
- new model = GetVehicleModel(gLastCar[playerid]);
- if(IsACopCar(gLastCar[playerid]) || model == 457)
- {
- SetPlayerWeapons(playerid);
- }
- }
- if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
- {
- GivePlayerGun(playerid, 0);
- }
- if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
- {
- new newcar = GetPlayerVehicleID(playerid);
- new x = 0;
- while(x != MAX_PLAYERS)
- {
- if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING && SpectatedID[x] == playerid)
- {
- PlayerSpectateVehicle(x,newcar);
- }
- x++;
- }
- }
- if(newstate == PLAYER_STATE_ONFOOT)
- {
- new x = 0;
- while(x != MAX_PLAYERS)
- {
- if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING && SpectatedID[x] == playerid)
- {
- PlayerSpectatePlayer(x,playerid);
- }
- x++;
- }
- if(TransportDuty[playerid] > 0)
- {
- if(TransportDuty[playerid] == 1)
- {
- TaxiDrivers -= 1;
- }
- else if(TransportDuty[playerid] == 2)
- {
- BusDrivers -= 1;
- }
- TransportDuty[playerid] = 0;
- format(string, sizeof(string), "* You are now Off Duty and earned $%d.", TransportMoney[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+TransportMoney[playerid];
- GivePlayerMoney(playerid, TransportMoney[playerid]);
- TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
- SetPlayerColor(playerid, TCOLOR_WHITE);
- PlayerPlaySound(playerid,1055,0.0,0.0,0.0);
- }
- if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
- {
- if(IsPlayerConnected(TransportDriver[playerid]))
- {
- TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
- TransportTime[TransportDriver[playerid]] = 0;
- TransportCost[TransportDriver[playerid]] = 0;
- format(string, sizeof(string), "~w~The ride cost~n~~r~$%d",TransportCost[playerid]);
- GameTextForPlayer(playerid, string, 5000, 1);
- format(string, sizeof(string), "~w~Passenger left the taxi~n~~g~Earned $%d",TransportCost[playerid]);
- GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-TransportCost[playerid];
- GivePlayerMoney(playerid, -TransportCost[playerid]);
- TransportCost[playerid] = 0;
- TransportTime[playerid] = 0;
- TransportDriver[playerid] = 999;
- PlayerPlaySound(playerid,1083,0.0,0.0,0.0);
- }
- }
- }
- if(newstate == PLAYER_STATE_PASSENGER) // TAXI & BUSSES
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- new vehicleid = GetPlayerVehicleID(playerid);
- ////foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2 && TransportDuty[i] > 0)
- {
- if(PlayerInfo[playerid][pCash] < TransportValue[i])
- {
- format(string, sizeof(string), "* You need $%d to enter.", TransportValue[i]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- RemovePlayerFromVehicle(playerid);
- }
- else
- {
- if(TransportDuty[i] == 1)
- {
- format(string, sizeof(string), "* You paid $%d to the Taxi Driver.", TransportValue[i]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[i][pMask] == 1)
- {
- format(string, sizeof(string), "* Stanger has entered your taxi.");
- }
- else
- {
- format(string, sizeof(string), "* %s has entered your taxi.", name);
- }
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- TransportTime[i] = 1;
- TransportTime[playerid] = 1;
- TransportCost[playerid] = TransportValue[i];
- TransportCost[i] = TransportValue[i];
- TransportDriver[playerid] = i;
- }
- else if(TransportDuty[i] == 2)
- {
- format(string, sizeof(string), "* You paid $%d to the Bus Driver.", TransportValue[i]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[i][pMask] == 1)
- {
- format(string, sizeof(string), "* Stanger has entered your bus.");
- }
- else
- {
- format(string, sizeof(string), "* %s has entered your bus.", name);
- }
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-TransportValue[i];
- GivePlayerMoney(playerid, - TransportValue[i]);
- TransportMoney[i] += TransportValue[i];
- }
- }
- }
- }
- }
- if(newstate == PLAYER_STATE_WASTED) //PLAYER DIES
- {
- if(PlayerInfo[playerid][pJailed] == 0)
- {
- PlayerInfo[playerid][pHospital] = 1;
- }
- }
- if(newstate == PLAYER_STATE_DRIVER)
- {
- new newcar = GetPlayerVehicleID(playerid);
- new Model = GetVehicleModel(newcar);
- if(GetPlayerWeapon(playerid) == 29 || GetPlayerWeapon(playerid) == 28 || GetPlayerWeapon(playerid) == 32) { SetPlayerArmedWeapon(playerid, 0); }
- if(IsABoat(newcar))
- {
- if(PlayerInfo[playerid][pBoatLic] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't know how to Sail yet, so you left the Boat !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else
- {
- if(PlayerInfo[playerid][pCarLic] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't know how to Drive yet, so you left the Car !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- /*if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
- {
- GameTextForPlayer(playerid, "~w~press ~r~~k~~TOGGLE_SUBMISSIONS~~w~ to tow a car.", 3000, 4);
- }*/
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 519)
- {
- GameTextForPlayer(playerid, "~w~use ~r~(/int)ercom~w~ to speak with your passengers.", 3000, 4);
- }
- if(CarInfo[newcar][tFaction] == 1 || CarInfo[newcar][tFaction] == 3)
- {
- if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 3)
- {
- SendClientMessage(playerid,COLOR_GREY,"You're not a Cop / SAST.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tFaction] == 5)
- {
- if(!(PlayerInfo[playerid][pMember] == 5))
- {
- SendClientMessage(playerid,COLOR_GREY,"You're not in the National Guard.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tDisabled] == 1)
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid,COLOR_GREY,"This vehicled was disabled by an admin.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tGang] != 0)
- {
- new gang = CarInfo[newcar][tGang];
- if(!(PlayerInfo[playerid][pFMember] == gang))
- {
- SendClientMessage(playerid,COLOR_GREY,"This is a gang car, you can't drive it if you are not in that gang.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tOwnable] != 0 && CarInfo[newcar][tOwned] != 1)
- {
- new buycarstring[256];
- format(buycarstring,sizeof(buycarstring),"\n {FF0000}Do you want to buy this car for {2F991A}$%d ?",CarInfo[newcar][tPrice]);
- ShowPlayerDialog(playerid,BUYCARDIALOG,DIALOG_STYLE_MSGBOX ,"{FFFFFF}Car for sale",buycarstring, "Buy", "Cancel");
- }
- else if(CarInfo[newcar][tRentable] != 0 && CarInfo[newcar][tOwned] != 1)
- {
- new buycarstring[256];
- format(buycarstring,sizeof(buycarstring),"\n {FF0000} Do you want to rent this car for {2F991A}$%d ?",CarInfo[newcar][tPrice]);
- ShowPlayerDialog(playerid,5353,DIALOG_STYLE_MSGBOX ,"{FFFFFF}Car is rentable",buycarstring, "Rent", "Cancel");
- }
- else if(CarInfo[newcar][tImp] == 1)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_RED, "This vehicle is impounded!");
- return 1;
- }
- else if(CarInfo[newcar][tFaction] == 2)
- {
- if(!(PlayerInfo[playerid][pMember] == 2))
- {
- SendClientMessage(playerid,COLOR_GREY," You're not in the FBI !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tVIP] == 1)
- {
- if(!(PlayerInfo[playerid][pDonateRank] >= 1))
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a Bronze VIP !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tVIP] == 2)
- {
- if(!(PlayerInfo[playerid][pDonateRank] >= 2))
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a Silver VIP !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tVIP] == 3)
- {
- if(!(PlayerInfo[playerid][pDonateRank] == 3))
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a Gold VIP !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tFaction] == 10)
- {
- if(PlayerInfo[playerid][pMember] != 10 && PlayerInfo[playerid][pLeader] != 10 && PlayerInfo[playerid][pJob] != 14)
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a taxi / bus driver !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tFaction] == 9)
- {
- if(PlayerInfo[playerid][pMember] != 9 && PlayerInfo[playerid][pLeader] != 9)
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a news reporter !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tFaction] == 4)
- {
- if(PlayerInfo[playerid][pMember] != 4 && PlayerInfo[playerid][pLeader] != 4)
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a paramedic / fireman !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(CarInfo[newcar][tFaction] == 7)
- {
- if(!(PlayerInfo[playerid][pMember] == 7))
- {
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(Model == 427 && !IsACop(playerid)) // enforcer armor exploit fix
- {
- SetPlayerArmour(playerid, StoreArmour[playerid]);
- }
- gLastCar[playerid] = newcar;
- }
- if(newstate == PLAYER_STATE_SPAWNED)
- {
- if(PlayerInfo[playerid][pWantedLevel] > 0)
- {
- new points = PlayerInfo[playerid][pWantedLevel];
- new wlevel;
- if(points == 1) { wlevel = 1; }
- else if(points == 2) { wlevel = 2; }
- else if(points == 3) { wlevel = 3; }
- else if(points == 4) { wlevel = 4; }
- else if(points == 5) { wlevel = 5; }
- else if(points == 6) { wlevel = 6; SetPlayerColor(playerid, TCOLOR_WANTED); }
- SetPlayerWantedLevel(playerid, wlevel);
- }
- }
- return 1;
- }
- public CarCheck()
- {
- new string[128];
- //foreach(Player, j)
- for(new j = 0; j < MAX_PLAYERS; j++)
- {
- if(IsPlayerConnected(j))
- {
- new Float:health;
- if(STDPlayer[j]==1)
- {
- GetPlayerHealth(j, health);
- SetPlayerHealth(j, health - 5.0);
- SendClientMessage(j, COLOR_LIGHTBLUE, "* You Lost 4 health due to a STD[Sexually Transmitted Disease].");
- SendClientMessage(j, COLOR_LIGHTBLUE, "* Hint: You can go heal at hospital. Type /heal at the yellow i.");
- if(!IsPlayerInAnyVehicle(j)) { ApplyAnimation(j,"FOOD","EAT_Vomit_P",4.0,0,0,0,0,0); }
- }
- else if(STDPlayer[j]==2)
- {
- GetPlayerHealth(j, health);
- SetPlayerHealth(j, health - 12.0);
- SendClientMessage(j, COLOR_LIGHTBLUE, "* You Lost 8 health due to a STD.");
- if(!IsPlayerInAnyVehicle(j)) { ApplyAnimation(j,"FOOD","EAT_Vomit_P",4.0,0,0,0,0,0); }
- }
- else if(STDPlayer[j]==3)
- {
- GetPlayerHealth(j, health);
- SetPlayerHealth(j, health - 20.0);
- SendClientMessage(j, COLOR_LIGHTBLUE, "* You Lost 12 health due to a STD.");
- if(!IsPlayerInAnyVehicle(j)) { ApplyAnimation(j,"FOOD","EAT_Vomit_P",4.0,0,0,0,0,0); }
- }
- if(PlayerInfo[j][pCash] < 0)
- {
- if(MoneyMessage[j]==0)
- {
- format(string, sizeof(string), "You are in debt, you have till next Pay Check to get: $%d or you go to jail.", PlayerInfo[j][pCash]);
- SendClientMessage(j, COLOR_LIGHTRED, string);
- MoneyMessage[j] = 1;
- }
- }
- else
- {
- MoneyMessage[j] = 0;
- }
- }
- }
- return 1;
- }
- public LockCar(carid)
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- SetVehicleParamsForPlayer(carid,i,0,1);
- gCarLock[carid] = 1;
- }
- }
- }
- public UnLockCar(carid)
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- SetVehicleParamsForPlayer(carid,i,0,0);
- gCarLock[carid] = 0;
- }
- }
- }
- public InitLockDoors(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- for(new i = 0; i < MAX_VEHICLES; i++)
- {
- if(gCarLock[i] == 1)
- {
- SetVehicleParamsForPlayer(i,playerid,0,1);
- }
- }
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(gGas[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3);
- }
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if(IsPlayerNPC(playerid))
- {
- SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid);
- }
- SetTimerEx("Spawn", 10, false, "i", playerid);
- return 1;
- }
- public Spawn(playerid)
- {
- SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid);
- }
- public SetPlayerCriminal(playerid,declare,reason[])
- {
- if(IsPlayerConnected(playerid))
- {
- new points = PlayerInfo[playerid][pWantedLevel];
- new turned[MAX_PLAYER_NAME];
- new turner[MAX_PLAYER_NAME];
- new string[128];
- new Year, Month, Day;
- getdate(Year, Month, Day);
- GetPlayerName(playerid, turned, sizeof(turned));
- if(declare == 999) format(turner, sizeof(turner), "Unknown");
- else
- {
- if(IsPlayerConnected(declare))
- {
- GetPlayerName(declare, turner, sizeof(turner));
- }
- }
- format(string, sizeof(string), "You've commited a crime ( %s ). Reporter: %s.",reason,turner);
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- if(points >= 6) SetPlayerColor(playerid, TCOLOR_WANTED);
- SetPlayerWantedLevel(playerid, points);
- if(PlayerInfo[playerid][pCrime][0] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter0], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][0] = 1; format(PlayerInfo[playerid][pCrimeDate0],32,"%02d/%02d/%d", Month, Day, Year); }
- else if(PlayerInfo[playerid][pCrime][1] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter1], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][1] = 1; format(PlayerInfo[playerid][pCrimeDate1],32,"%02d/%02d/%d", Month, Day, Year); }
- else if(PlayerInfo[playerid][pCrime][2] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter2], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][2] = 1; format(PlayerInfo[playerid][pCrimeDate2],32,"%02d/%02d/%d", Month, Day, Year); }
- else if(PlayerInfo[playerid][pCrime][3] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter3], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][3] = 1; format(PlayerInfo[playerid][pCrimeDate3],32,"%02d/%02d/%d", Month, Day, Year); }
- else if(PlayerInfo[playerid][pCrime][4] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter4], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][4] = 1; format(PlayerInfo[playerid][pCrimeDate4],32,"%02d/%02d/%d", Month, Day, Year); }
- else if(PlayerInfo[playerid][pCrime][5] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter5], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][5] = 1; format(PlayerInfo[playerid][pCrimeDate5],32,"%02d/%02d/%d", Month, Day, Year); }
- PlayerInfo[playerid][pCrimes] += 1;
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- format(string, sizeof(string), "Current Wanted Level: %d", points);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsACop(i) || IsAAgent(i) || IsANG(i) || PlayerInfo[i][pMember] == 5)
- {
- format(string,sizeof(string),"Warrant Placed - Reporter: %s",turner);
- SendClientMessage(i,TEAM_BLUE_COLOR,string);
- format(string,sizeof(string),"Crime: %s, Suspect: %s",reason,turned);
- SendClientMessage(i,TEAM_BLUE_COLOR,string);
- }
- }
- }
- }
- }
- public SetPlayerFree(playerid,declare,reason[])
- {
- if(IsPlayerConnected(playerid))
- {
- ClearCrime(playerid);
- new turned[MAX_PLAYER_NAME];
- new turner[MAX_PLAYER_NAME];
- new crbjstore[128];
- if(declare == 255)
- {
- format(turner, sizeof(turner), "911");
- }
- else
- {
- if(IsPlayerConnected(declare))
- {
- GetPlayerName(declare, turner, sizeof(turner));
- }
- }
- GetPlayerName(playerid, turned, sizeof(turned));
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
- {
- format(crbjstore, sizeof(crbjstore), "HQ: All Units Officer %s Has Completed Assignment",turner);
- SendClientMessage(i, COLOR_DBLUE, crbjstore);
- format(crbjstore, sizeof(crbjstore), "HQ: %s Has Been Processed, %s",turned,reason);
- SendClientMessage(i, COLOR_DBLUE, crbjstore);
- }
- }
- }
- }
- }
- public OtherTimer()
- {
- new string[128];
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new currentspeed = GetPlayerSpeed(i,false);
- if(gSpeedo[i] == 2)
- {
- if(GetPlayerState(i) == 2)
- {
- format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~g~mph : ~w~%d", currentspeed);
- GameTextForPlayer(i, string, 2000, 5);
- }
- }
- if(currentspeed > 175 && PlayerInfo[i][pAdmin] < 4)
- {
- new tmpcar = GetPlayerVehicleID(i);
- if(!IsAPlane(tmpcar) && !(GetPlayerState(i) == PLAYER_STATE_PASSENGER))
- {
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(i, sendername, sizeof(sendername));
- format(string, sizeof(string), "Possible speedhack: [%d]%s %d mph.",i,sendername,currentspeed);
- ABroadCast(COLOR_YELLOW,string,1);
- }
- }
- if(CellTime[i] > 0)
- {
- if(CellTime[i] == 60)
- {
- CellTime[i] = 1;
- if(Mobile[Mobile[i]] == i)
- {
- CallCost[i] = CallCost[i]+callcost;
- }
- }
- CellTime[i] = CellTime[i] +1;
- if(Mobile[Mobile[i]] == 255 && CellTime[i] == 5)
- {
- if(IsPlayerConnected(Mobile[i]))
- {
- new called[MAX_PLAYER_NAME];
- GetPlayerNameEx(Mobile[i], called, sizeof(called));
- if(PlayerInfo[Mobile[i]][pMask] == 1)
- {
- format(string, sizeof(string), "* Stanger's phone rings.");
- }
- else
- {
- format(string, sizeof(string), "* %s's phone rings.", called);
- }
- ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- }
- if(CellTime[i] == 0 && CallCost[i] > 0)
- {
- format(string, sizeof(string), "~w~The call cost~n~~r~%d credits",CallCost[i]);
- PlayerInfo[i][pCredits] = PlayerInfo[i][pCredits]-CallCost[i];
- GameTextForPlayer(i, string, 2500, 1);
- CallCost[i] = 0;
- }
- if(TransportTime[i] > 0)
- {//Taxi driver and passenger only
- if(TransportTime[i] >= 16)
- {
- TransportTime[i] = 1;
- if(TransportDriver[i] < 999)
- {
- if(IsPlayerConnected(TransportDriver[i]))
- {
- TransportCost[i] += TransportValue[TransportDriver[i]];
- TransportCost[TransportDriver[i]] = TransportCost[i];
- }
- }
- }
- TransportTime[i] += 1;
- format(string, sizeof(string), "~r~%d ~w~: ~g~$%d",TransportTime[i],TransportCost[i]);
- GameTextForPlayer(i, string, 15000, 6);
- }
- }
- }
- return 1;
- }
- public SetPlayerUnjail()
- {
- new string[128];
- if(PaintballPlayers >= 2 && PaintballRound != 1 && StartingPaintballRound != 1)
- {
- StartingPaintballRound = 1;
- SetTimer("PreparePaintball", 15000, 0);
- }
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- }
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new level = PlayerInfo[i][pLevel];
- if(level >= 0 && level <= 2) { PlayerInfo[i][pPayCheck] += 1; }
- else if(level >= 3 && level <= 4) { PlayerInfo[i][pPayCheck] += 2; }
- else if(level >= 5 && level <= 6) { PlayerInfo[i][pPayCheck] += 3; }
- else if(level >= 7 && level <= 8) { PlayerInfo[i][pPayCheck] += 4; }
- else if(level >= 9 && level <= 10) { PlayerInfo[i][pPayCheck] += 5; }
- else if(level >= 11 && level <= 12) { PlayerInfo[i][pPayCheck] += 6; }
- else if(level >= 13 && level <= 14) { PlayerInfo[i][pPayCheck] += 7; }
- else if(level >= 15 && level <= 16) { PlayerInfo[i][pPayCheck] += 8; }
- else if(level >= 17 && level <= 18) { PlayerInfo[i][pPayCheck] += 9; }
- else if(level >= 19 && level <= 20) { PlayerInfo[i][pPayCheck] += 10; }
- else if(level >= 21) { PlayerInfo[i][pPayCheck] += 11; }
- if(PlayerInfo[i][pJailed] > 0)
- {
- if(PlayerInfo[i][pJailTime] > 0 && WantLawyer[i] == 0)
- {
- PlayerInfo[i][pJailTime]--;
- }
- if(PlayerInfo[i][pJailTime] <= 0 && WantLawyer[i] == 0)
- {
- PlayerInfo[i][pJailTime] = 0;
- if(PlayerInfo[i][pJailed] == 1)
- {
- SetPlayerInterior(i, 0);
- SetPlayerPos(i,1551.4275,-1675.0511,15.8413); //puts player in the jail
- SetPlayerFacingAngle(i,90.0000);
- SetCameraBehindPlayer(i);
- }
- if(PlayerInfo[i][pJailed] == 4)
- {
- SetPlayerInterior(i, 0);
- SetPlayerPos(i,628.5070,-572.0012,17.1874); //puts player in the jail
- SetPlayerFacingAngle(i,90.0000);
- SetCameraBehindPlayer(i);
- }
- if(PlayerInfo[i][pJailed] == 10)
- {
- SetPlayerInterior(i, 0);
- SetPlayerPos(i,1512.1212,-1705.1373,14.0469); //puts player in the jail
- SetCameraBehindPlayer(i);
- }
- else if(PlayerInfo[i][pJailed] == 2 || PlayerInfo[i][pJailed] == 3)
- {
- if(PlayerCell == 0) // COMMENTED
- {
- SetPlayerPos(i, 1773.7007,-1577.5149,1636.9736);
- SetPlayerFacingAngle( i, 0.0);
- }
- if(PlayerCell == 1)
- {
- SetPlayerPos(i, 1779.1671,-1577.4548,1636.9736);
- SetPlayerFacingAngle( i, 0.0);
- }
- if(PlayerCell == 2)
- {
- SetPlayerPos(i, 1784.6586,-1577.4518,1636.9736);
- SetPlayerFacingAngle( i, 0.0);
- }
- if(PlayerCell == 3)
- {
- SetPlayerPos(i, 1790.3481,-1577.4486,1636.9736);
- SetPlayerFacingAngle( i, 0.0);
- }
- if(PlayerCell == 4)
- {
- SetPlayerPos(i, 1795.4546,-1577.1248,1636.9736);
- SetPlayerFacingAngle( i, 0.0);
- }
- if(PlayerCell == 5)
- {
- SetPlayerPos(i, 1800.7770,-1577.1569,1636.9736);
- SetPlayerFacingAngle( i, 0.0);
- }
- if(PlayerCell == 6)
- {
- SetPlayerPos(i, 1800.7118,-1561.2797,1636.9736);
- SetPlayerFacingAngle( i, 180.0);
- }
- if(PlayerCell == 7)
- {
- SetPlayerPos(i, 1795.8535,-1561.3806,1636.9736);
- SetPlayerFacingAngle( i, 180.0);
- }
- if(PlayerCell == 8)
- {
- SetPlayerPos(i, 1790.4093,-1561.7704,1636.9736);
- SetPlayerFacingAngle( i, 180.0);
- }
- if(PlayerCell == 9)
- {
- SetPlayerPos(i, 1784.9886,-1561.7207,1636.9736);
- SetPlayerFacingAngle( i, 180.0);
- }
- if(PlayerCell == 10)
- {
- SetPlayerPos(i, 1779.1306,-1561.7352,1636.9736);
- SetPlayerFacingAngle( i, 180.0);
- }
- if(PlayerCell == 11)
- {
- SetPlayerPos(i, 1773.3928,-1561.7976,1636.9736);
- SetPlayerFacingAngle( i, 180.0);
- }
- }
- PlayerInfo[i][pJailed] = 0;
- SendClientMessage(i, COLOR_GRAD1," You have paid your debt to society.");
- format(string, sizeof(string), "~g~Freedom~n~~w~Try to be a better citizen");
- GameTextForPlayer(i, string, 5000, 1);
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, 1);
- ClearCrime(i);
- SetPlayerToTeamColor(i);
- format(PlayerInfo[i][pPrisonReason], 128, "None.");
- format(PlayerInfo[i][pPrisonedBy], 32, "No-one");
- PlayerInfo[i][pAdminJailed] = 0;
- }
- }
- //moneycheat
- if(GetPlayerMoney(i) != PlayerInfo[i][pCash])
- {
- ResetPlayerMoney(i);
- GivePlayerMoney(i,PlayerInfo[i][pCash]);
- }
- if(UsedFind[i] >= 1)
- {
- UsedFind[i] += 1;
- if(UsedFind[i] >= FReloadTime[i])
- {
- UsedFind[i] = 0;
- }
- }
- if(GotMats[i] >= 1)
- {
- GotMats[i] += 1;
- if(GotMats[i] >= 10)
- {
- GotMats[i] = 0;
- }
- }
- /* new Float:health;
- GetPlayerHealth(i, health);
- if (PlayerInfo[i][pHungry] > 91) { PlayerInfo[i][pHungry]-=1+random(2); }
- if (PlayerInfo[i][pHungry] == 300) { SendClientMessage(i, COLOR_RED, "{FF0000}You're hungry, you need to eat soon. You can buy food from a restaurant."); }
- if (PlayerInfo[i][pHungry] == 90) { SendClientMessage(i, COLOR_RED, "{FF0000}You're hungry, you need to eat soon. You can buy food from a restaurant."); }
- if (PlayerInfo[i][pHungry] > 2 && PlayerInfo[i][pHungry] < 91) { PlayerInfo[i][pHungry]-=1; SetPlayerHealth(i, health - 1.0); }
- if (PlayerInfo[i][pHungry] == 1) { SetPlayerHealth(i, 0); SendClientMessage(i, COLOR_RED, "{FF0000}You didn't eat in time so you fell inconcious and sent to a hospital."); }
- if (PlayerInfo[i][pThirsty] > 91) { PlayerInfo[i][pThirsty]-=1+random(2); }
- if (PlayerInfo[i][pThirsty] == 300) { SendClientMessage(i, COLOR_RED, "{FF0000}You're thirsty, you need to drink soon. You can buy drinks from a restaurant/bar/club/24-7."); }
- if (PlayerInfo[i][pThirsty] == 90) { SendClientMessage(i, COLOR_RED, "{FF0000}You're thirsty, you need to drink soon. You can buy drinks from a restaurant/bar/club/24-7."); }
- if (PlayerInfo[i][pThirsty] > 2 && PlayerInfo[i][pThirsty] < 91) { PlayerInfo[i][pThirsty]-=1; SetPlayerHealth(i, health - 1.0); }
- if (PlayerInfo[i][pThirsty] == 1) { SetPlayerHealth(i, 0); SendClientMessage(i, COLOR_RED, "{FF0000}You didn't drink in time so you fell inconcious and sent to a hospital."); }
- */
- if(HospitalTime[i] >= 1)
- {
- if(HospitalTime[i] >= 49)
- {
- new cut = deathcost;
- if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4) //medics
- {
- cut = deathcost/2;
- }
- PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-cut;
- GivePlayerMoney(i, PlayerInfo[i][pCash]);
- format(string, sizeof(string), "DOC: Your Medical Bill comes to $%d, have a nice day.", cut);
- SendClientMessage(i, COLOR_LIGHTRED, string);
- SetPlayerHealth(i, 45);
- SetPlayerArmour(i, PlayerInfo[i][pSHealth]);
- SetPlayerPos(i, HospitalSpawns[HospitalSpawn[i]][0], HospitalSpawns[HospitalSpawn[i]][1], HospitalSpawns[HospitalSpawn[i]][2]);
- SetPlayerFacingAngle(i, HospitalSpawns[HospitalSpawn[i]][3]);
- HospitalTime[i] = 0; HospitalSpawn[i] = 0; PlayerInfo[i][pHospital] = 0; PlayerInfo[i][pDeaths] += 1;
- TogglePlayerControllable(i, 1);
- SetCameraBehindPlayer(i);
- SetPlayerToTeamColor(i);
- }
- else
- {
- if(HospitalTime[i] < 5)
- {
- SetPlayerHealth(i, 1);
- }
- else
- {
- new Float:health;
- GetPlayerHealth(i, health);
- SetPlayerHealth(i, health += 1);
- }
- HospitalTime[i] += 1;
- }
- }
- if(TutTime[i] >= 1)
- {
- if(TutTime[i] == 1)
- {
- SendClientMessage(i, COLOR_GREEN, "Do you need a helper assistance ? (Type yes or no)");
- }
- TutTime[i] ++;
- if(TutTime[i] == 8)
- {
- SendClientMessage(i, COLOR_GREEN, "Do you need a helper assistance ? (Type yes or no)");
- }
- if(TutTime[i] == 15)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "There is no helper available to you anymore.");
- TutTime[i] = 0;
- }
- }
- if(WantLawyer[i] >= 1)
- {
- CallLawyer[i] = 111;
- if(WantLawyer[i] == 1)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Do you want a Lawyer? (Type yes or no)");
- }
- WantLawyer[i] ++;
- if(WantLawyer[i] == 8)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Do you want a Lawyer? (Type yes or no)");
- }
- if(WantLawyer[i] == 15)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Do you want a Lawyer? (Type yes or no)");
- }
- if(WantLawyer[i] == 20)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "There is no Lawyer available to you anymore, Jail Time started.");
- WantLawyer[i] = 0;
- CallLawyer[i] = 0;
- }
- }if(PlayerTazeTime[i] >= 1)
- {
- PlayerTazeTime[i] += 1;
- if(PlayerTazeTime[i] == 15)
- {
- PlayerTazeTime[i] = 0;
- }
- else
- {
- new Float:angle;
- GetPlayerFacingAngle(i, angle);
- SetPlayerFacingAngle(i, angle + 90);
- }
- }
- if(PlayerStoned[i] >= 6)
- {
- PlayerStoned[i] += 1;
- /*if(IsPlayerInAnyVehicle(i))
- {
- if(GetPlayerState(i) == 2)
- {
- if(PlayerStoned[i] == 10 || PlayerStoned[i]==20 || PlayerStoned[i]==30 || PlayerStoned[i]==40 || PlayerStoned[i]==50)
- {
- new Float:angle;
- GetPlayerFacingAngle(i, angle);
- SetVehicleZAngle(GetPlayerVehicleID(i), angle + 25);
- }
- }
- }*/
- if(PlayerStoned[i] == 60)
- {
- PlayerStoned[i] = 0;
- SendClientMessage(i,COLOR_GREY," You are no longer stoned !");
- SetPlayerDrunkLevel(i, 0);
- }
- }
- if(Called911[i] > 0)
- {
- Called911[i] += 1;
- if(Called911[i] == 120)
- {
- SetPlayerToTeamColor(i);
- Called911[i] = 0;
- }
- }
- if(PlayerInfo[i][pCarTime] > 0)
- {
- if(PlayerInfo[i][pCarTime] <= 0)
- {
- PlayerInfo[i][pCarTime] = 0;
- }
- else
- {
- PlayerInfo[i][pCarTime] -= 1;
- }
- }
- if(PlayerInfo[i][pDrugsTime] > 0)
- {
- if(PlayerInfo[i][pDrugsTime] <= 0)
- {
- PlayerInfo[i][pDrugsTime] = 0;
- }
- else
- {
- PlayerInfo[i][pDrugsTime] -= 1;
- }
- }
- if(PlayerInfo[i][pLawyerTime] > 0)
- {
- if(PlayerInfo[i][pLawyerTime] <= 0)
- {
- PlayerInfo[i][pLawyerTime] = 0;
- }
- else
- {
- PlayerInfo[i][pLawyerTime] -= 1;
- }
- }
- if(PlayerInfo[i][pLawyerFreeTime] > 0)
- {
- if(PlayerInfo[i][pLawyerFreeTime] <= 0)
- {
- PlayerInfo[i][pLawyerFreeTime] = 0;
- }
- else
- {
- PlayerInfo[i][pLawyerFreeTime] -= 1;
- }
- }
- if(PlayerInfo[i][pMechTime] > 0)
- {
- if(PlayerInfo[i][pMechTime] <= 0)
- {
- PlayerInfo[i][pMechTime] = 0;
- }
- else
- {
- PlayerInfo[i][pMechTime] -= 1;
- }
- }
- if(PlayerInfo[i][pSexTime] > 0)
- {
- if(PlayerInfo[i][pSexTime] <= 0)
- {
- PlayerInfo[i][pSexTime] = 0;
- }
- else
- {
- PlayerInfo[i][pSexTime] -= 1;
- }
- }
- if(BoxWaitTime[i] > 0)
- {
- if(BoxWaitTime[i] >= BoxDelay)
- {
- BoxDelay = 0;
- BoxWaitTime[i] = 0;
- PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
- GameTextForPlayer(i, "~g~Match Started", 5000, 1);
- TogglePlayerControllable(i, 1);
- RoundStarted = 1;
- }
- else
- {
- format(string, sizeof(string), "%d", BoxDelay - BoxWaitTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- BoxWaitTime[i] += 1;
- }
- }
- if(RoundStarted > 0)
- {
- if(PlayerBoxing[i] > 0)
- {
- new trigger = 0;
- new Lost = 0;
- new Float:angle;
- new Float:health;
- GetPlayerHealth(i, health);
- if(health < 12)
- {
- if(i == Boxer1) { Lost = 1; trigger = 1; }
- else if(i == Boxer2) { Lost = 2; trigger = 1; }
- }
- if(health < 28) { GetPlayerFacingAngle(i, angle); SetPlayerFacingAngle(i, angle + 85); }
- if(trigger)
- {
- new winner[MAX_PLAYER_NAME];
- new loser[MAX_PLAYER_NAME];
- new titel[MAX_PLAYER_NAME];
- if(Lost == 1)
- {
- if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
- {
- SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
- SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
- GetPlayerName(Boxer1, loser, sizeof(loser));
- GetPlayerName(Boxer2, winner, sizeof(winner));
- if(PlayerInfo[Boxer1][pJob] == 12) { PlayerInfo[Boxer1][pLoses] += 1; }
- if(PlayerInfo[Boxer2][pJob] == 12) { PlayerInfo[Boxer2][pWins] += 1; }
- if(TBoxer < 255)
- {
- if(IsPlayerConnected(TBoxer))
- {
- if(TBoxer != Boxer2)
- {
- if(PlayerInfo[Boxer2][pJob] == 10)
- {
- TBoxer = Boxer2;
- GetPlayerName(TBoxer, titel, sizeof(titel));
- new nstring[MAX_PLAYER_NAME];
- format(nstring, sizeof(nstring), "%s", titel);
- strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
- Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
- Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
- SaveBoxer();
- format(string, sizeof(string), "Boxing News: %s has Won the fight against Champion %s and is now the new Boxing Champion.", titel, loser);
- OOCOff(COLOR_WHITE,string);
- }
- else
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You would have been the Champion if you had the Boxer Job !");
- }
- }
- else
- {
- GetPlayerName(TBoxer, titel, sizeof(titel));
- format(string, sizeof(string), "Boxing News: Boxing Champion %s has Won the fight against %s.", titel, loser);
- OOCOff(COLOR_WHITE,string);
- Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
- Titel[TitelLoses] = PlayerInfo[Boxer2][pLoses];
- SaveBoxer();
- }
- }
- }//TBoxer
- format(string, sizeof(string), "* You have Lost the Fight against %s.", winner);
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer1, "~r~You lost", 3500, 1);
- format(string, sizeof(string), "* You have Won the Fight against %s.", loser);
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer2, "~r~You won", 3500, 1);
- if(GetPlayerHealth(Boxer1, health) < 20)
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
- SetPlayerHealth(Boxer1, 30.0);
- }
- else
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
- SetPlayerHealth(Boxer1, 50.0);
- }
- if(GetPlayerHealth(Boxer2, health) < 20)
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
- SetPlayerHealth(Boxer2, 30.0);
- }
- else
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
- SetPlayerHealth(Boxer2, 50.0);
- }
- GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Match Over", 5000, 1);
- if(PlayerInfo[Boxer2][pJob] == 10) { PlayerInfo[Boxer2][pBoxSkill] += 1; }
- PlayerBoxing[Boxer1] = 0;
- PlayerBoxing[Boxer2] = 0;
- }
- }
- else if(Lost == 2)
- {
- if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
- {
- SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
- SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
- GetPlayerName(Boxer1, winner, sizeof(winner));
- GetPlayerName(Boxer2, loser, sizeof(loser));
- if(PlayerInfo[Boxer2][pJob] == 10) { PlayerInfo[Boxer2][pLoses] += 1; }
- if(PlayerInfo[Boxer1][pJob] == 10) { PlayerInfo[Boxer1][pWins] += 1; }
- if(TBoxer < 255)
- {
- if(IsPlayerConnected(TBoxer))
- {
- if(TBoxer != Boxer1)
- {
- if(PlayerInfo[Boxer1][pJob] == 10)
- {
- TBoxer = Boxer1;
- GetPlayerName(TBoxer, titel, sizeof(titel));
- new nstring[MAX_PLAYER_NAME];
- format(nstring, sizeof(nstring), "%s", titel);
- strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
- Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
- Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
- SaveBoxer();
- format(string, sizeof(string), "Boxing News: %s has Won the fight against Champion %s and is now the new Boxing Champion.", titel, loser);
- OOCOff(COLOR_WHITE,string);
- }
- else
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You would have been the Champion if you had the Boxer Job !");
- }
- }
- else
- {
- GetPlayerName(TBoxer, titel, sizeof(titel));
- format(string, sizeof(string), "Boxing News: Boxing Champion %s has Won the fight against %s.", titel, loser);
- OOCOff(COLOR_WHITE,string);
- Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
- Titel[TitelLoses] = PlayerInfo[Boxer1][pLoses];
- SaveBoxer();
- }
- }
- }//TBoxer
- format(string, sizeof(string), "* You have Lost the Fight against %s.", winner);
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer2, "~r~You lost", 3500, 1);
- format(string, sizeof(string), "* You have Won the Fight against %s.", loser);
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer1, "~g~You won", 3500, 1);
- if(GetPlayerHealth(Boxer1, health) < 20)
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
- SetPlayerHealth(Boxer1, 30.0);
- }
- else
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
- SetPlayerHealth(Boxer1, 50.0);
- }
- if(GetPlayerHealth(Boxer2, health) < 20)
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
- SetPlayerHealth(Boxer2, 30.0);
- }
- else
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
- SetPlayerHealth(Boxer2, 50.0);
- }
- GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Match Over", 5000, 1);
- if(PlayerInfo[Boxer1][pJob] == 10) { PlayerInfo[Boxer1][pBoxSkill] += 1; }
- PlayerBoxing[Boxer1] = 0;
- PlayerBoxing[Boxer2] = 0;
- }
- }
- InRing = 0;
- RoundStarted = 0;
- Boxer1 = 255;
- Boxer2 = 255;
- TBoxer = 255;
- trigger = 0;
- }
- }
- }
- if(StartingPaintballRound == 1 && AnnouncedPaintballRound == 0)
- {
- AnnouncedPaintballRound = 1;
- if(PlayerPaintballing[i] != 0)
- {
- SendClientMessage(i, COLOR_YELLOW, "Paintball Match will be announced in 15 seconds.");
- }
- }
- if(FindTime[i] > 0)
- {
- if(FindTime[i] == FindTimePoints[i])
- {
- PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
- GameTextForPlayer(i, "~r~Redmarker gone", 2500, 1);
- FindTime[i] = 0;
- FindTimePoints[i] = 0;
- new target = FindingID[i];
- if(Called911[target] != 0)
- {
- SetAllCopCheckpoint(target);
- }
- else
- {
- SetPlayerToTeamColor(target);
- }
- FindingID[i] = 0;
- }
- else
- {
- format(string, sizeof(string), "%d", FindTimePoints[i] - FindTime[i]);
- GameTextForPlayer(i, string, 1500, 5);
- FindTime[i] += 1;
- }
- }
- if(TaxiCallTime[i] > 0)
- {
- if(TaxiAccepted[i] < 999)
- {
- if(IsPlayerConnected(TaxiAccepted[i]))
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(TaxiAccepted[i], X, Y, Z);
- SetPlayerCheckpoint(i, X, Y, Z, 5);
- }
- }
- }
- if(BusCallTime[i] > 0)
- {
- if(BusAccepted[i] < 999)
- {
- if(IsPlayerConnected(BusAccepted[i]))
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(BusAccepted[i], X, Y, Z);
- SetPlayerCheckpoint(i, X, Y, Z, 5);
- }
- }
- }
- if(MedicCallTime[i] > 0)
- {
- if(MedicCallTime[i] == 30) { MedicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
- else
- {
- format(string, sizeof(string), "%d", 30 - MedicCallTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- MedicCallTime[i] += 1;
- }
- }
- if(LawyerCallTime[i] > 0)
- {
- if(LawyerCallTime[i] == 30) { LawyerCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
- else
- {
- format(string, sizeof(string), "%d", 30 - LawyerCallTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- LawyerCallTime[i] += 1;
- }
- }
- if(MechanicCallTime[i] > 0)
- {
- if(MechanicCallTime[i] == 30) { MechanicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
- else
- {
- format(string, sizeof(string), "%d", 30 - MechanicCallTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- MechanicCallTime[i] += 1;
- }
- }
- if(PlayerCuffed[i] == 1)
- {
- if(PlayerCuffedTime[i] <= 0)
- {
- ClearAnimations(i);
- TogglePlayerControllable(i, 1);
- PlayerCuffed[i] = 0;
- PlayerCuffedTime[i] = 0;
- PlayerTazeTime[i] = 0;
- }
- else
- {
- PlayerCuffedTime[i] -= 1;
- }
- }
- if(PlayerCuffed[i] == 2)
- {
- if(PlayerCuffedTime[i] <= 0)
- {
- GameTextForPlayer(i, "~r~You broke the Cuffs, you are free!", 2500, 3);
- TogglePlayerControllable(i, 1);
- PlayerCuffed[i] = 0;
- PlayerCuffedTime[i] = 0;
- }
- else
- {
- PlayerCuffedTime[i] -= 1;
- }
- }
- if(PlayerTied[i] == 1)
- {
- if(PlayerCuffedTime[i] <= 0)
- {
- GameTextForPlayer(i, "~r~You broke free of the Ropes, you are free!", 2500, 3);
- SetCameraBehindPlayer(i);
- PlayerBlinded[i] = 0;
- TogglePlayerControllable(i, 1);
- PlayerTied[i] = 0;
- PlayerCuffedTime[i] = 0;
- }
- else
- {
- PlayerCuffedTime[i] -= 1;
- }
- }
- }
- }
- }
- public CheckGas()
- {
- for(new i = 1; i<2000; i++)
- {
- if (CarInfo[i][tEngine] == 1 && !IsNonFuelVehicle(i))
- {
- if(Gas[i] >= 1)
- {
- Gas[i]--;
- }
- else {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(i,0,lights,alarm,doors,bonnet,boot,objective);
- CarInfo[i][tEngine] = 0;
- }
- }
- }
- /*for(new i; i<MAX_PLAYERS; i++)
- {
- new string[128];
- if(IsPlayerConnected(i))
- {
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
- {
- new vehicle = GetPlayerVehicleID(i);
- if(IsNonFuelVehicle(vehicle)) { return 1; }
- if(Gas[vehicle] >= 1)
- {
- if(Gas[vehicle] <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
- if(gGas[i] == 1) {
- format(string, sizeof(string), "~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Fuel:~w~ %d%",Gas[vehicle]);
- GameTextForPlayer(i,string,15500,3); }
- }
- else
- {
- NoFuel[i] = 1;
- GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~No fuel in Vehicle~n~",1500,3);
- }
- }
- }
- }*/
- return 1;
- }
- public TazerTimer(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(TazerTime[playerid] == 1)
- {
- TazerTime[playerid] = 0;
- }
- }
- }
- public BizFreeze(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- TogglePlayerControllable(playerid, 1);
- }
- }
- public Fillup()
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new VID;
- new FillUp;
- new string[128];
- VID = GetPlayerVehicleID(i);
- FillUp = 100 - Gas[VID];
- if(Refueling[i] == 1)
- {
- if(PlayerInfo[i][pCash] >= FillUp+4)
- {
- Gas[VID] += FillUp;
- FillUp = FillUp * 8;
- format(string,sizeof(string),"* You filled your Vehicle up for: $%d.",FillUp);
- SendClientMessage(i,COLOR_LIGHTBLUE,string);
- PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-FillUp;
- GivePlayerMoney(i, - FillUp);
- Refueling[i] = 0;
- }
- else
- {
- SendClientMessage(i,COLOR_GREY," You can't afford that !");
- }
- }
- }
- }
- return 1;
- }
- public StoppedVehicle()
- {
- new Float:x,Float:y,Float:z;
- new Float:distance,value;
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsPlayerInAnyVehicle(i))
- {
- new VID;
- VID = GetPlayerVehicleID(i);
- GetPlayerPos(i, x, y, z);
- distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
- value = floatround(distance * 3600);
- if(UpdateSeconds > 1)
- {
- value = floatround(value / UpdateSeconds);
- }
- if(value == 0)
- {
- Gas[VID]++;
- }
- SavePlayerPos[i][LastX] = x;
- SavePlayerPos[i][LastY] = y;
- SavePlayerPos[i][LastZ] = z;
- }
- }
- }
- return 1;
- }
- public SetPlayerWeapons(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- ResetPlayerWeapons(playerid);
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { GivePlayerGun(playerid, 42); }
- if (PlayerInfo[playerid][pGun12] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun12], 65000);
- }
- if (PlayerInfo[playerid][pGun11] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun11], 65000);
- }
- if (PlayerInfo[playerid][pGun10] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun10], 65000);
- }
- if (PlayerInfo[playerid][pGun9] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun9], 65000);
- }
- if (PlayerInfo[playerid][pGun8] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun8], 2);
- }
- if (PlayerInfo[playerid][pGun7] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun7], 65000);
- }
- if (PlayerInfo[playerid][pGun6] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun6], 65000);
- }
- if (PlayerInfo[playerid][pGun5] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun5], 65000);
- }
- if (PlayerInfo[playerid][pGun4] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun4], 65000);
- }
- if (PlayerInfo[playerid][pGun3] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun3], 65000);
- }
- if (PlayerInfo[playerid][pGun2] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun2], 65000);
- }
- if (PlayerInfo[playerid][pGun1] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun1], 65000);
- }
- if (PlayerInfo[playerid][pGun0] > 0)
- {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun0], 65000);
- }
- }
- return 1;
- }
- public ShowProfile(playerid,targetid)
- {
- if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
- {
- new pmember = PlayerInfo[targetid][pMember];
- new pleader = PlayerInfo[targetid][pLeader];
- new fmember = PlayerInfo[targetid][pFMember];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(targetid, name, sizeof(name));
- new age = PlayerInfo[targetid][pAge];
- new hvalue = PlayerInfo[targetid][pHeadValue];
- new cont[20];
- strmid(cont, PlayerInfo[targetid][pContractBy], 0, strlen(PlayerInfo[targetid][pContractBy]), 255);
- new ftext[20];
- if(pmember == 1 || pleader == 1)
- { ftext = "LSPD"; }
- else if(pmember == 2 || pleader == 2)
- { ftext = "FBI"; }
- else if(pmember == 3 || pleader == 3)
- { ftext = "SAST"; }
- else if(pmember == 4 || pleader == 4)
- { ftext = "Firemen/Paramedic"; }
- else if(pmember == 5 || pleader == 5)
- { ftext = "National Guards"; }
- else if(pmember == 6 || pleader == 6)
- { ftext = "Senate"; }
- else if(pmember == 7 || pleader == 7)
- { ftext = "CIA"; }
- else if(pmember == 8 || pleader == 8)
- { ftext = "Hitman Agency"; }
- else if(pmember == 9 || pleader == 9)
- { ftext = "News Agency"; }
- else if(pmember == 10 || pleader == 10)
- { ftext = "Taxi Company"; }
- else
- { ftext = "None"; }
- new famtext[24];
- if(fmember < 255)
- { strmid(famtext, FamilyInfo[fmember][FamilyName], 0, strlen(FamilyInfo[fmember][FamilyName]), 255); }
- else { famtext = "None"; }
- new info[128];
- SendClientMessage(playerid, COLOR_WHITE, "Profile Information:");
- format(info, sizeof(info),"Name: %s",name);
- SendClientMessage(playerid, COLOR_GREY,info);
- format(info, sizeof(info),"Age: %d",age);
- SendClientMessage(playerid, COLOR_GREY,info);
- format(info, sizeof(info),"Organisation: %s",ftext);
- SendClientMessage(playerid, COLOR_GREY,info);
- format(info, sizeof(info),"Family: %s",famtext);
- SendClientMessage(playerid, COLOR_GREY,info);
- format(info, sizeof(info),"Contracted By: %s",cont);
- SendClientMessage(playerid, COLOR_GREY,info);
- format(info, sizeof(info),"Bounty: $%d",hvalue);
- SendClientMessage(playerid, COLOR_GREY,info);
- }
- }
- //Speedo
- public LuX_SpeedoMeterUp()
- {
- new Float:LPosX;
- new Float:LPosY;
- new Float:LPosZ;
- new Float:PlayerSpeedDistance;
- new value;
- new Float:L_VehHealth;
- new LVehicleStatus[15];
- for(new i=0; i<PLAYERS; i++)
- {
- if(CarInfo[GetPlayerVehicleID(i)][tLock] == 1)
- {
- LVehicleStatus = "~r~Locked";
- }
- else
- {
- LVehicleStatus = "~g~Unlocked";
- }
- if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
- {
- GetPlayerPos(i, LPosX, LPosY, LPosZ);
- GetPlayerVehicleID(i);
- GetVehicleHealth(GetPlayerVehicleID(i), L_VehHealth);
- PlayerSpeedDistance = floatsqroot(floatpower(floatabs(floatsub(LPosX,LuX_ReadPlayerPosition[i][ReadX])),2)+floatpower(floatabs(floatsub(LPosY,LuX_ReadPlayerPosition[i][ReadY])),2)+floatpower(floatabs(floatsub(LPosZ,LuX_ReadPlayerPosition[i][ReadZ])),2));
- value = floatround(PlayerSpeedDistance * 5000);
- new LuxZone[MAX_ZONE_NAME];
- GetPlayer2DZone(i, LuxZone, MAX_ZONE_NAME);
- if(LuX_SpeedoMeter[i] == 0){
- TextDrawShowForPlayer(i, LBox[i]);
- TextDrawShowForPlayer(i, LLine1[i]);
- TextDrawShowForPlayer(i, LLine2[i]);
- TextDrawShowForPlayer(i, LLine3[i]);
- TextDrawShowForPlayer(i, LLine4[i]);
- TextDrawShowForPlayer(i, LCredits[i]);
- TextDrawShowForPlayer(i, Lmph[i]);
- TextDrawShowForPlayer(i, LFunc[i]);
- LuX_SpeedoMeter[i] = 1; }
- new LMPH = floatround(value/1600);
- new LKPH = floatround(value/1000);
- if(CarInfo[GetPlayerVehicleID(i)][tGPS] == 0)
- {
- format(lstring,sizeof(lstring),"~b~Vehicle: ~w~%s~n~~b~Health: ~w~%.2f~n~~b~Fuel: ~w~%d%~n~~b~Gps: ~r~No GPS~n~~b~Status: %s",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],L_VehHealth,Gas[GetPlayerVehicleID(i)],LVehicleStatus);
- TextDrawSetString(LFunc[i], lstring);
- }
- else if(CarInfo[GetPlayerVehicleID(i)][tGPS] >= 1)
- {
- format(lstring,sizeof(lstring),"~b~Vehicle: ~w~%s~n~~b~Health: ~w~%.2f~n~~b~Fuel: ~w~%d%~n~~b~Gps: ~w~%s~n~~b~Status: %s",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],L_VehHealth,Gas[GetPlayerVehicleID(i)],LuxZone,LVehicleStatus);
- TextDrawSetString(LFunc[i], lstring);
- }
- format(lstr,sizeof(lstr),"%sMPH: ~w~%d %sKM/H: ~w~%d",MPH_KPH_Color,LMPH,MPH_KPH_Color,LKPH);
- TextDrawSetString(Lmph[i], lstr);
- if(L_VehHealth <= 500)
- {
- if(CarInfo[GetPlayerVehicleID(i)][tGPS] == 0)
- {
- format(lstring,sizeof(lstring),"%sVehicle: ~w~%s~n~%sHealth: ~w~~r~%.2f~n~%sFuel: ~w~%d%~n~%sGps: ~r~No GPS",CategoriesColor,LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],CategoriesColor,L_VehHealth,CategoriesColor,Gas[GetPlayerVehicleID(i)],CategoriesColor);
- TextDrawSetString(LFunc[i], lstring);
- }
- else if(CarInfo[GetPlayerVehicleID(i)][tGPS] >= 1)
- {
- format(lstring,sizeof(lstring),"%sVehicle: ~w~%s~n~%sHealth: ~w~~r~%.2f~n~%sFuel: ~w~%d%~n~%sGps: ~w~%s",CategoriesColor,LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],CategoriesColor,L_VehHealth,CategoriesColor,Gas[GetPlayerVehicleID(i)],CategoriesColor,LuxZone);
- TextDrawSetString(LFunc[i], lstring);
- }
- }
- if(LKPH >= VehicleMaxSpeed)
- {
- format(lstr,sizeof(lstr),"~g~MPH: ~w~%d ~g~KM/H: ~r~%d",LMPH,LKPH);
- TextDrawSetString(Lmph[i], lstr);
- }
- }
- LuX_ReadPlayerPosition[i][ReadX] = LPosX, LuX_ReadPlayerPosition[i][ReadY] = LPosY, LuX_ReadPlayerPosition[i][ReadZ] = LPosZ;}
- for(new i=0; i<PLAYERS; i++){
- if(!IsPlayerInAnyVehicle(i)){
- TextDrawHideForPlayer(i, LBox[i]);
- TextDrawHideForPlayer(i, LLine1[i]);
- TextDrawHideForPlayer(i, LLine2[i]);
- TextDrawHideForPlayer(i, LLine3[i]);
- TextDrawHideForPlayer(i, LLine4[i]);
- TextDrawHideForPlayer(i, LCredits[i]);
- TextDrawHideForPlayer(i, Lmph[i]);
- TextDrawHideForPlayer(i, LFunc[i]);
- LuX_SpeedoMeter[i] = 0;
- }
- }
- return 1;
- }
- //
- public ShowStats(playerid,targetid)
- {
- if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
- {
- new cash = PlayerInfo[targetid][pCash];
- new atext[20];
- if(PlayerInfo[targetid][pSex] == 1) { atext = "Male"; }
- else if(PlayerInfo[targetid][pSex] == 2) { atext = "Female"; }
- new dtext[20];
- if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
- else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
- else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
- else { dtext = "None"; }
- // get player's faction
- new ftext[32];
- format(ftext,sizeof(ftext),"%s",GetPlayerFactionName(targetid));
- new ftext2[32];
- format(ftext2,sizeof(ftext2),"%s",GetPlayerFamilyName(targetid));
- // get player's rank
- new rtext[64];
- format(rtext,sizeof(rtext),"%s",GetPlayerRank(targetid));
- new rtext2[64];
- format(rtext2,sizeof(rtext2),"%s",GetPlayerFRank(targetid));
- new jtext[20];
- new jlevel;
- if(PlayerInfo[targetid][pJob] == 1)
- {
- jtext = "Detective";
- new level = PlayerInfo[targetid][pDetSkill];
- if(level >= 0 && level <= 49) { jlevel = 1; }
- else if(level >= 50 && level <= 99) { jlevel = 2; }
- else if(level >= 100 && level <= 199) { jlevel = 3; }
- else if(level >= 200 && level <= 399) { jlevel = 4; }
- else if(level >= 400) { jlevel = 5; }
- }
- else if(PlayerInfo[targetid][pJob] == 2)
- {
- jtext = "Lawyer";
- new level = PlayerInfo[targetid][pLawSkill];
- if(level >= 0 && level <= 49) { jlevel = 1; }
- else if(level >= 50 && level <= 99) { jlevel = 2; }
- else if(level >= 100 && level <= 199) { jlevel = 3; }
- else if(level >= 200 && level <= 399) { jlevel = 4; }
- else if(level >= 400) { jlevel = 5; }
- }
- else if(PlayerInfo[targetid][pJob] == 3)
- {
- jtext = "Product Dealer" ;jlevel = 0;
- }
- else if(PlayerInfo[targetid][pJob] == 4)
- {
- jtext = "Drug Dealer";
- new level = PlayerInfo[targetid][pDrugsSkill];
- if(level >= 0 && level <= 49) { jlevel = 1; }
- else if(level >= 50 && level <= 99) { jlevel = 2; }
- else if(level >= 100 && level <= 199) { jlevel = 3; }
- else if(level >= 200 && level <= 399) { jlevel = 4; }
- else if(level >= 400) { jlevel = 5; }
- }
- else if(PlayerInfo[targetid][pJob] == 5)
- {
- jtext = "Car Jacker";
- new level = PlayerInfo[targetid][pJackSkill];
- if(level >= 0 && level <= 49) { jlevel = 1; }
- else if(level >= 50 && level <= 99) { jlevel = 2; }
- else if(level >= 100 && level <= 199) { jlevel = 3; }
- else if(level >= 200 && level <= 399) { jlevel = 4; }
- else if(level >= 400) { jlevel = 5; }
- }
- else if(PlayerInfo[targetid][pJob] == 6)
- {
- jtext = "News Reporter";
- new level = PlayerInfo[targetid][pNewsSkill];
- if(level >= 0 && level <= 49) { jlevel = 1; }
- else if(level >= 50 && level <= 99) { jlevel = 2; }
- else if(level >= 100 && level <= 199) { jlevel = 3; }
- else if(level >= 200 && level <= 399) { jlevel = 4; }
- else if(level >= 400) { jlevel = 5; }
- }
- else if(PlayerInfo[targetid][pJob] == 7)
- {
- jtext = "Mechanic";
- new level = PlayerInfo[targetid][pJackSkill];
- if(level >= 0 && level <= 49) { jlevel = 1; }
- else if(level >= 50 && level <= 99) { jlevel = 2; }
- else if(level >= 100 && level <= 199) { jlevel = 3; }
- else if(level >= 200 && level <= 399) { jlevel = 4; }
- else if(level >= 400) { jlevel = 5; }
- }
- else if(PlayerInfo[targetid][pJob] == 8)
- {
- jtext = "Bodyguard";
- new level = PlayerInfo[targetid][pNewsSkill];
- if(level >= 0 && level <= 49) { jlevel = 1; }
- else if(level >= 50 && level <= 99) { jlevel = 2; }
- else if(level >= 100 && level <= 199) { jlevel = 3; }
- else if(level >= 200 && level <= 399) { jlevel = 4; }
- else if(level >= 400) { jlevel = 5; }
- }
- else if(PlayerInfo[targetid][pJob] == 9)
- {
- jtext = "Arms Dealer";
- new level = PlayerInfo[targetid][pArmsSkill];
- if(level >= 0 && level <= 49) { jlevel = 1; }
- else if(level >= 50 && level <= 99) { jlevel = 2; }
- else if(level >= 100 && level <= 199) { jlevel = 3; }
- else if(level >= 200 && level <= 399) { jlevel = 4; }
- else if(level >= 400) { jlevel = 5; }
- }
- else if(PlayerInfo[targetid][pJob] == 10)
- {
- jtext = "None"; jlevel = 0;
- }
- /* if(PlayerInfo[targetid][pJob] == 11) // Trashman
- {
- jtext = "Trashman";
- new level = PlayerInfo[targetid][pTrashSkill];
- if(level >= 0 && level <= 49) { jlevel = 1; }
- else if(level >= 50 && level <= 99) { jlevel = 2; }
- else if(level >= 100 && level <= 199) { jlevel = 3; }
- else if(level >= 200 && level <= 399) { jlevel = 4; }
- else if(level >= 400) { jlevel = 5; }
- }*/
- else if(PlayerInfo[targetid][pJob] == 12)
- {
- jtext = "Boxer"; jlevel = 0;
- }
- else if(PlayerInfo[targetid][pJob] == 14)
- {
- jtext = "Taxi Driver"; jlevel = 0;
- }
- else if(PlayerInfo[targetid][pJob] == 17)
- {
- jtext = "Drug Smuggler";
- new level = PlayerInfo[targetid][pSmugglerSkill];
- if(level >= 0 && level <= 19) { jlevel = 1; }
- else if(level >= 20 && level <= 39) { jlevel = 2; }
- else if(level >= 40 && level <= 59) { jlevel = 3; }
- else if(level >= 60 && level <= 79) { jlevel = 4; }
- else if(level >= 80) { jlevel = 5; }
- }
- else
- {
- jtext = "None"; jlevel = 0;
- }
- new married[20];
- strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
- new age = PlayerInfo[targetid][pAge];
- new ptime = PlayerInfo[targetid][pConnectTime];
- new deaths = PlayerInfo[targetid][pDeaths];
- new bigfish = PlayerInfo[targetid][pBiggestFish];
- new crimes = PlayerInfo[targetid][pCrimes];
- new arrests = PlayerInfo[targetid][pArrested];
- new pot = PlayerInfo[targetid][pPot];
- new crack = PlayerInfo[targetid][pCrack];
- new seeds = PlayerInfo[targetid][pSeeds];
- new packages = Packages[playerid];
- new crates = Crates[playerid];
- new mats = PlayerInfo[targetid][pMats];
- new parts = PlayerInfo[targetid][pCarParts];
- new rope = PlayerInfo[targetid][pRope];
- new cigars = PlayerInfo[targetid][pCigars];
- new sprunk = PlayerInfo[targetid][pSprunk];
- new blindfolds = PlayerInfo[targetid][pBlindfolds];
- new donuts = PlayerInfo[targetid][pDonuts];
- new spray = PlayerInfo[targetid][pSpraycan];
- new wanted = PlayerInfo[targetid][pWantedLevel];
- new level = PlayerInfo[targetid][pLevel];
- new exp = PlayerInfo[targetid][pExp];
- new kills = PlayerInfo[targetid][pKills];
- new pnumber = PlayerInfo[targetid][pPnumber];
- new account = PlayerInfo[targetid][pAccount];
- new nxtlevel = PlayerInfo[targetid][pLevel]+1;
- new expamount = nxtlevel*levelexp;
- new costlevel = nxtlevel*levelcost; //10k for testing purposes
- new intir = GetPlayerInterior(playerid);
- new vw = PlayerInfo[targetid][pVirtualWorld];
- new warns = PlayerInfo[targetid][pWarns];
- new points = PlayerInfo[targetid][gPupgrade];
- new jtime = PlayerInfo[targetid][pJailTime];
- new scope = PlayerInfo[targetid][pScope];
- new wtc = PlayerInfo[targetid][pWTc];
- new sub[15];
- if(PlayerInfo[playerid][pSFMember] == 0) { sub = "Default"; }
- if(PlayerInfo[playerid][pSFMember] == 1) { sub = "SWAT"; }
- if(PlayerInfo[playerid][pSFMember] == 2) { sub = "IA"; }
- if(PlayerInfo[playerid][pSFMember] == 3) { sub = "SIU"; }
- if(PlayerInfo[playerid][pSFMember] == 4) { sub = "ACU"; }
- if(PlayerInfo[playerid][pSFMember] == 5) { sub = "GHOST"; }
- new carname[255];
- new carname2[255];
- new carname3[255];
- new carname4[255];
- new upcarid = PlayerInfo[targetid][pCarKey1];
- new upcarid2 = PlayerInfo[targetid][pCarKey2];
- new upcarid3 = PlayerInfo[targetid][pCarKey3];
- new upcarid4 = PlayerInfo[targetid][pRentKey];
- new lp[9], lp2[9], lp3[9], lp4[9];
- strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
- strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
- strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
- strmid(lp4, CarInfo[upcarid4][tLicensePlate], 0, strlen(CarInfo[upcarid4][tLicensePlate]), 9);
- if(PlayerInfo[targetid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
- else { carname = "None";}
- if(PlayerInfo[targetid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
- else { carname2 = "None";}
- if(PlayerInfo[targetid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
- else { carname3 = "None";}
- if(PlayerInfo[targetid][pRentKey] != 0) { carname4 = GetVehicleFriendlyName(upcarid4); }
- else { carname4 = "None";}
- new biz = PlayerInfo[targetid][pBizKey];
- new bizname[255];
- if(PlayerInfo[targetid][pBizKey] != 999) { strmid(bizname, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255); }
- else { bizname = "None";}
- new house = PlayerInfo[targetid][pHouseKey];
- new products = PlayerInfo[targetid][pProducts];
- new housetype[255];
- if(PlayerInfo[targetid][pHouseKey] != 999) { housetype = "Owned";}
- else if(PlayerInfo[targetid][pRenthouse] != 999) { housetype = "Rented";}
- else { housetype = "None";}
- new screw;
- if(PlayerInfo[targetid][pScrew] > 0)
- {
- screw = 1;
- }
- // new routetext[20];
- // if(PlayerInfo[playerid][pRouter] == 0) { format(routetext,sizeof(routetext), "None"); } else { format(routetext,sizeof(routetext), "%s", PlayerInfo[playerid][pRouter]); }
- new Float:health;
- new Float:armor;
- GetPlayerHealth(targetid,health);
- GetPlayerArmour(targetid,armor);
- new shealth = PlayerInfo[targetid][pSHealth];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(targetid, name, sizeof(name));
- new statsname[80];
- format(statsname, sizeof(statsname), "{00FFFF}%s's stats - Reality Gaming RolePlay", name);
- new statstotal[2000];
- new stats1[512]; new stats2[512]; new stats3[512]; new stats4[512]; new stats5[512]; new stats6[512]; new stats7[512]; new stats8[512]; new statsadm[512];
- format(stats1, sizeof(stats1), "{088A08}[Account] {5858FA}Level:{FA5858}[%d] {5858FA}Sex:{FA5858}[%s] {5858FA}Age:{FA5858}[%d] {5858FA}Cash:{FA5858}[$%d] {5858FA}Bank:{FA5858}[$%d] {5858FA}Ph:{FA5858}[%d] {5858FA}Health:{FA5858}[%.1f] {5858FA}Armor:{FA5858}[%.1f]",level,atext,age,cash,account,pnumber,health,armor);
- format(stats2, sizeof(stats2), "{088A08}[Record] {5858FA}UpgradePoints:{FA5858}[%d] {5858FA}ArmorUpgrade:{FA5858}[%d] {5858FA}Respect:{FA5858}[%d/%d] {5858FA}NextLevel:{FA5858}[$%d] {5858FA}PlayingHours:{FA5858}[%d]",points,shealth,exp,expamount,costlevel,ptime);
- format(stats3, sizeof(stats3), "{088A08}[Information] {5858FA}Job:{FA5858}[%s] {5858FA}JobLevel:{FA5858}[%d] {5858FA}CrimesCommited:{FA5858}[%d] {5858FA}TimesArrested:{FA5858}[%d] {5858FA}Kills:{FA5858}[%d] {5858FA}Deaths:{FA5858}[%d] {5858FA}Disease:{FA5858}[%s]",jtext,jlevel,crimes,arrests,kills,deaths,dtext);
- format(stats4, sizeof(stats4), "{088A08}[Information] {5858FA}MarriedTo:{FA5858}[%s] {5858FA}BiggestFish:{FA5858}[%d] {5858FA}WantedLevel:{FA5858}[%d] {5858FA}Router IP:{FA5858}[None]",married,bigfish,wanted);
- format(stats5, sizeof(stats5), "{088A08}[Inventory] {5858FA}Materials:{FA5858}[%d] {5858FA}Rope:{FA5858}[%d] {5858FA}Blindfolds:{FA5858}[%d] {5858FA}Cigars:{FA5858}[%d] {5858FA}Sprunk:{FA5858}[%d] {5858FA}Spray:{FA5858}[%d] {5858FA}Products:{FA5858}[%d] {5858FA}Pot:{FA5858}[%d]",mats,rope,blindfolds,cigars,sprunk,spray,products,pot);
- format(stats6, sizeof(stats6), "{088A08}[Inventory] {5858FA}ScrewDriver:{FA5858}[%d] {5858FA}Scope:{FA5858}[%d] {5858FA}C4:{FA5858}[%d] {5858FA}Crowbar:{FA5858}[%d] {5858FA}Crack:{FA5858}[%d] {5858FA}Seeds:{FA5858}[%d] {5858FA}Packages:{FA5858}[%d] {5858FA}Crates:{FA5858}[%d] {5858FA}Carparts:{FA5858}[%d]",screw,scope,PlayerInfo[playerid][pBombs],PlayerInfo[playerid][pCrowbar],crack,seeds,packages,crates,parts);
- format(stats7, sizeof(stats7), "{088A08}[Ownership] {5858FA}Vehicle 1:{FA5858}[%s(%s)] {5858FA}Vehicle 2:{FA5858}[%s(%s)] {5858FA}Vehicle 3{FA5858}[VIP ONLY]{5858FA}:{FA5858}[%s(%s)] {5858FA}Car Rental:{FA5858}[%s(%s)] {5858FA}House Key:{FA5858}[%s (%d)] {5858FA}Business: {FA5858}[%s (%d)]",carname,lp,carname2,lp2,carname3,lp3,carname4,lp4,housetype,house,bizname,biz);
- format(stats8, sizeof(stats8), "{088A08}[Others] {5858FA}WTc:{FA5858}[%d] {5858FA}Faction:{FA5858}[%s] {5858FA}Rank:{FA5858}[%s] {5858FA}Sub-Faction {FA5858}[%s] {5858FA}Family:{FA5858}[%s] {5858FA}Rank:{FA5858}[%s]",wtc,ftext,rtext,sub,ftext2,rtext2);
- format(statsadm, sizeof(statsadm), "{00FFFF}[Admin] Donuts:[%d] Int:[%d] VW:[%d] Warnings:[%d] JailTime:[%d] Vehicle 1:[%d] Vehicle 2:[%d]",donuts,intir,vw,warns,jtime,upcarid,upcarid2);
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(statstotal, sizeof(statstotal), "\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s", stats1, stats2, stats3, stats4, stats5, stats6,stats7, stats8, statsadm);
- ShowPlayerDialog(playerid,60,DIALOG_STYLE_MSGBOX ,statsname, statstotal, "Close", "");
- }
- else
- {
- format(statstotal, sizeof(statstotal), "\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s", stats1, stats2, stats3, stats4, stats5, stats6,stats7, stats8);
- ShowPlayerDialog(playerid,60,DIALOG_STYLE_MSGBOX ,statsname, statstotal, "Close", "");
- }
- }
- }
- public SetPlayerToTeamColor(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pWantedLevel] != 6)
- {
- if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0) { SetPlayerColor(playerid, TCOLOR_WHITE); }
- else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
- {
- if(PlayerInfo[playerid][pOnDuty] == 1) { SetPlayerColor(playerid, TCOLOR_BLUE); }
- else { SetPlayerColor(playerid, TCOLOR_WHITE); }
- }
- else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- if(PlayerInfo[playerid][pOnDuty] == 1) { SetPlayerColor(playerid, TCOLOR_NAVYBLUE); }
- else { SetPlayerColor(playerid, TCOLOR_WHITE); }
- }
- else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- if(PlayerInfo[playerid][pOnDuty] == 1) { SetPlayerColor(playerid, TCOLOR_BEIGE); }
- else { SetPlayerColor(playerid, TCOLOR_WHITE); }
- }
- else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
- {
- if(PlayerInfo[playerid][pOnDuty] == 1)
- {
- SetPlayerColor(playerid, TCOLOR_LIGHTGREEN);
- }
- else {SetPlayerColor(playerid, TCOLOR_WHITE); }
- }
- else if(PlayerInfo[playerid][pJailed] == 2)
- {
- SetPlayerColor(playerid, TCOLOR_PRISON);
- }
- else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { SetPlayerColor(playerid, TCOLOR_WHITE); }
- else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { SetPlayerColor(playerid, TCOLOR_WHITE); }
- else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) { SetPlayerColor(playerid, TCOLOR_WHITE); }
- else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SetPlayerColor(playerid, TCOLOR_WHITE); }
- else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { SetPlayerColor(playerid, TCOLOR_LIGHTBLUE); }
- else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { SetPlayerColor(playerid, TCOLOR_WHITE); }
- }
- else
- {
- SetPlayerColor(playerid, TCOLOR_WANTED);
- }
- if(PlayerInfo[playerid][pVipColor] == 1) { SetPlayerColor(playerid, 0x80008000); }
- }
- return 1;
- }
- public GameModeInitExitFunc()
- {
- gmx = 1;
- new string[128];
- format(string, sizeof(string), "Restarting! Please Wait");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- OnPlayerSave(i);
- DisablePlayerCheckpoint(i);
- GameTextForPlayer(i, string, 4000, 5);
- SetPlayerInterior(i, 0);
- SetPlayerVirtualWorld(i, 0);
- SetPlayerCameraPos(i,1460.0, -1324.0, 287.2);
- SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
- gPlayerLogged[i] = 0;
- }
- }
- SaveFamilies();
- SaveCar();
- SaveHouse();
- SaveBiz();
- //Speedo
- for(new i=0; i<PLAYERS; i++)
- {
- TextDrawHideForPlayer(i, LBox[i]);
- TextDrawHideForPlayer(i, LLine1[i]);
- TextDrawHideForPlayer(i, LLine2[i]);
- TextDrawHideForPlayer(i, LLine3[i]);
- TextDrawHideForPlayer(i, LLine4[i]);
- TextDrawHideForPlayer(i, LCredits[i]);
- TextDrawHideForPlayer(i, Lmph[i]);
- TextDrawHideForPlayer(i, LFunc[i]);
- }
- for(new n = 0; n < MAX_VEHICLES; n++)
- {
- if(CarInfo[n][Neon] == 1)
- {
- DestroyObject(ObjectSelect[n][0]);
- DestroyObject(ObjectSelect[n][1]);
- }
- }
- //
- SetTimer("GameModeExitFunc", 4000, 0);
- return 1;
- }
- public GameModeExitFunc()
- {
- KillTimer(synctimer);
- KillTimer(savechartimer);
- KillTimer(unjailtimer);
- KillTimer(othtimer);
- KillTimer(cartimer);
- KillTimer(checkgastimer);
- KillTimer(pickuptimer);
- KillTimer(productiontimer);
- KillTimer(autokicktimer);
- KillTimer(pointtimer);
- KillTimer(stoppedvehtimer);
- KillTimer(LSPD_Door[TimerID]);
- KillTimer(Prison_Buttons[GateTimerID]); // COMMENTED
- KillTimer(Prison_Buttons[CellTimerID]);
- KillTimer(claimedtimer);
- KillTimer(botanimtimer);
- GameModeExit();
- }
- public LoadLSPDPass()
- {
- new strFromFile2[256];
- new File: file = fopen("Other/passwords.ini", io_read);
- if(file)
- {
- fread(file, strFromFile2);
- fclose(file);
- Pass[LSPD] = strvalEx(strFromFile2[0]);
- }
- return 1;
- }
- public LoadBoxer()
- {
- new arrCoords[3][64];
- new strFromFile2[256];
- new File: file = fopen("Other/boxer.ini", io_read);
- if(file)
- {
- fread(file, strFromFile2);
- split(strFromFile2, arrCoords, ',');
- Titel[TitelWins] = strvalEx(arrCoords[0]);
- strmid(Titel[TitelName], arrCoords[1], 0, strlen(arrCoords[1]), 255);
- Titel[TitelLoses] = strvalEx(arrCoords[2]);
- fclose(file);
- }
- return 1;
- }
- public SaveBoxer()
- {
- new coordsstring[256];
- format(coordsstring, sizeof(coordsstring), "%d,%s,%d", Titel[TitelWins],Titel[TitelName],Titel[TitelLoses]);
- new File: file2 = fopen("Other/boxer.ini", io_write);
- fwrite(file2, coordsstring);
- fclose(file2);
- return 1;
- }
- public LoadStuff()
- {
- new arrCoords[7][64];
- new strFromFile2[256];
- new File: file = fopen("Other/stuff.ini", io_read);
- if(file)
- {
- fread(file, strFromFile2);
- split(strFromFile2, arrCoords, ',');
- Jackpot = strvalEx(arrCoords[0]);
- Tax = strvalEx(arrCoords[1]);
- TaxValue = strvalEx(arrCoords[2]);
- Security = strvalEx(arrCoords[3]);
- VPass = strvalEx(arrCoords[4]);
- BankRobberyTime = strvalEx(arrCoords[5]);
- Carparts = strvalEx(arrCoords[6]);
- fclose(file);
- if(Security == 0 || Security == 1)
- {
- }
- else
- {
- GameModeExit();
- }
- }
- else
- {
- GameModeExit();
- }
- return 1;
- }
- public SaveStuff()
- {
- new coordsstring[256];
- format(coordsstring, sizeof(coordsstring), "%d,%d,%d,%d,%d,%d,%d", Jackpot,Tax,TaxValue,Security,VPass,BankRobberyTime,Carparts);
- new File: file2 = fopen("Other/stuff.ini", io_write);
- fwrite(file2, coordsstring);
- fclose(file2);
- return 1;
- }
- public RemovePlayerWeapon(playerid, weaponid)
- {
- new plyWeapons[12] = 0;
- new plyAmmo[12] = 0;
- for(new slot = 0; slot != 12; slot++)
- {
- new wep, ammo;
- GetPlayerWeaponData(playerid, slot, wep, ammo);
- if(wep != weaponid && ammo != 0)
- {
- GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]);
- }
- }
- SafeResetPlayerWeapons(playerid);
- for(new slot = 0; slot != 12; slot++)
- {
- if(plyAmmo[slot] != 0)
- {
- SafeGivePlayerWeapon(playerid, plyWeapons[slot], 999999);
- }
- }
- return 1;
- }
- public SafeGivePlayerWeapon(plyid, weaponid, ammo)
- {
- /* new curHour, curMinute, curSecond;
- gettime(curHour, curMinute, curSecond);
- ScriptWeaponsUpdated[plyid] = curSecond;*/
- GivePlayerWeapon(plyid, weaponid, ammo);
- //UpdateWeaponSlots(plyid);
- return 1;
- }
- public SafeResetPlayerWeapons(plyid)
- {
- /* new curHour, curMinute, curSecond;
- gettime(curHour, curMinute, curSecond);
- ScriptWeaponsUpdated[plyid] = curSecond;*/
- ResetPlayerWeapons(plyid);
- //UpdateWeaponSlots(plyid);
- return 1;
- }
- stock Get2DZone(zone[], len, Float:x, Float:y, Float:z)
- {
- #pragma unused z
- for(new i = 0; i != sizeof(gSAZones); i++)
- {
- if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
- {
- return format(zone, len, gSAZones[i][SAZONE_NAME]);
- }
- }
- return format(zone, len, "Los Santos");
- }
- stock CheckPlayerDistanceToVehicle(Float:radi, playerid, vehicleid)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:PX,Float:PY,Float:PZ,Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid,PX,PY,PZ);
- GetVehiclePos(vehicleid, X,Y,Z);
- new Float:Distance = (X-PX)*(X-PX)+(Y-PY)*(Y-PY)+(Z-PZ)*(Z-PZ);
- if(Distance <= radi*radi)
- {
- return 1;
- }
- }
- return 0;
- }
- public LoadCar()
- {
- new arrCoords[55][64];
- new strFromFile2[256];
- new File: file = fopen("Ownership/Veh.ini", io_read);
- if(file)
- {
- new idx;
- while (idx < sizeof(CarInfo))
- {
- fread(file, strFromFile2);
- split(strFromFile2, arrCoords, '|');
- CarInfo[idx][tModel] = strvalEx(arrCoords[0]);
- CarInfo[idx][tLocationx] = floatstr(arrCoords[1]);
- CarInfo[idx][tLocationy] = floatstr(arrCoords[2]);
- CarInfo[idx][tLocationz] = floatstr(arrCoords[3]);
- CarInfo[idx][tAngle] = floatstr(arrCoords[4]);
- CarInfo[idx][tColorOne] = strvalEx(arrCoords[5]);
- CarInfo[idx][tColorTwo] = strvalEx(arrCoords[6]);
- strmid(CarInfo[idx][tOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255);
- CarInfo[idx][tOwned] = strvalEx(arrCoords[8]);
- CarInfo[idx][tLock] = strvalEx(arrCoords[9]);
- CarInfo[idx][tEngine] = strvalEx(arrCoords[10]);
- CarInfo[idx][tPaintjob] = strvalEx(arrCoords[11]);
- CarInfo[idx][tOwnable] = strvalEx(arrCoords[12]);
- CarInfo[idx][tFaction] = strvalEx(arrCoords[13]);
- CarInfo[idx][tVIP] = strvalEx(arrCoords[14]);
- CarInfo[idx][tAlarm] = strvalEx(arrCoords[15]);
- CarInfo[idx][tAlarmStarted] = strvalEx(arrCoords[16]);
- CarInfo[idx][tTrunkOpened] = strvalEx(arrCoords[17]);
- CarInfo[idx][tInsured] = strvalEx(arrCoords[18]);
- CarInfo[idx][tGun1] = strvalEx(arrCoords[19]);
- CarInfo[idx][tGun2] = strvalEx(arrCoords[20]);
- CarInfo[idx][tArmor] = floatstr(arrCoords[21]);
- CarInfo[idx][tCrack] = strvalEx(arrCoords[22]);
- CarInfo[idx][tPot] = strvalEx(arrCoords[23]);
- CarInfo[idx][tNOS] = strvalEx(arrCoords[24]);
- CarInfo[idx][tHoodOpened] = strvalEx(arrCoords[25]);
- CarInfo[idx][tPrice] = strvalEx(arrCoords[26]);
- strmid(CarInfo[idx][tLicensePlate], arrCoords[27], 0, strlen(arrCoords[27]), 255);
- CarInfo[idx][tDisabled] = strvalEx(arrCoords[28]);
- CarInfo[idx][tGang] = strvalEx(arrCoords[29]);
- CarInfo[idx][tVehRemote] = strvalEx(arrCoords[30]);
- CarInfo[idx][tGPS] = strvalEx(arrCoords[31]);
- CarInfo[idx][tNeon] = strvalEx(arrCoords[32]);
- CarInfo[idx][tNeonON] = strvalEx(arrCoords[33]);
- CarInfo[idx][tComponent0] = strvalEx(arrCoords[34]);
- CarInfo[idx][tComponent1] = strvalEx(arrCoords[35]);
- CarInfo[idx][tComponent2] = strvalEx(arrCoords[36]);
- CarInfo[idx][tComponent3] = strvalEx(arrCoords[37]);
- CarInfo[idx][tComponent4] = strvalEx(arrCoords[38]);
- CarInfo[idx][tComponent5] = strvalEx(arrCoords[39]);
- CarInfo[idx][tComponent6] = strvalEx(arrCoords[40]);
- CarInfo[idx][tComponent7] = strvalEx(arrCoords[41]);
- CarInfo[idx][tComponent8] = strvalEx(arrCoords[42]);
- CarInfo[idx][tComponent9] = strvalEx(arrCoords[43]);
- CarInfo[idx][tComponent10] = strvalEx(arrCoords[44]);
- CarInfo[idx][tComponent11] = strvalEx(arrCoords[45]);
- CarInfo[idx][tComponent12] = strvalEx(arrCoords[46]);
- CarInfo[idx][tComponent13] = strvalEx(arrCoords[47]);
- CarInfo[idx][tDuplicateKeys] = strvalEx(arrCoords[48]);
- CarInfo[idx][tTowServices] = strvalEx(arrCoords[49]);
- CarInfo[idx][tImp] = strvalEx(arrCoords[50]);
- CarInfo[idx][tImpPrice] = strvalEx(arrCoords[51]);
- CarInfo[idx][tRentable] = strvalEx(arrCoords[52]);
- CarInfo[idx][Neon] = strvalEx(arrCoords[53]);
- CarInfo[idx][NeonObject] = strvalEx(arrCoords[54]);
- idx++;
- }
- fclose(file);
- }
- return 1;
- }
- public SaveCar()
- {
- new File: file2;
- new idx;
- while (idx < sizeof(CarInfo))
- {
- new coordsstring[256];
- format(coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%d|%d|%d|%d|%d|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
- CarInfo[idx][tModel],
- CarInfo[idx][tLocationx],
- CarInfo[idx][tLocationy],
- CarInfo[idx][tLocationz],
- CarInfo[idx][tAngle],
- CarInfo[idx][tColorOne],
- CarInfo[idx][tColorTwo],
- CarInfo[idx][tOwner],
- CarInfo[idx][tOwned],
- CarInfo[idx][tLock],
- CarInfo[idx][tEngine],
- CarInfo[idx][tPaintjob],
- CarInfo[idx][tOwnable],
- CarInfo[idx][tFaction],
- CarInfo[idx][tVIP],
- CarInfo[idx][tAlarm],
- CarInfo[idx][tAlarmStarted],
- CarInfo[idx][tTrunkOpened],
- CarInfo[idx][tInsured],
- CarInfo[idx][tGun1],
- CarInfo[idx][tGun2],
- CarInfo[idx][tArmor],
- CarInfo[idx][tCrack],
- CarInfo[idx][tPot],
- CarInfo[idx][tNOS],
- CarInfo[idx][tHoodOpened],
- CarInfo[idx][tPrice],
- CarInfo[idx][tLicensePlate],
- CarInfo[idx][tDisabled],
- CarInfo[idx][tGang],
- CarInfo[idx][tVehRemote],
- CarInfo[idx][tGPS],
- CarInfo[idx][tNeon],
- CarInfo[idx][tNeonON],
- CarInfo[idx][tComponent0],
- CarInfo[idx][tComponent1],
- CarInfo[idx][tComponent2],
- CarInfo[idx][tComponent3],
- CarInfo[idx][tComponent4],
- CarInfo[idx][tComponent5],
- CarInfo[idx][tComponent6],
- CarInfo[idx][tComponent7],
- CarInfo[idx][tComponent8],
- CarInfo[idx][tComponent9],
- CarInfo[idx][tComponent10],
- CarInfo[idx][tComponent11],
- CarInfo[idx][tComponent12],
- CarInfo[idx][tComponent13],
- CarInfo[idx][tDuplicateKeys],
- CarInfo[idx][tTowServices],
- CarInfo[idx][tImp],
- CarInfo[idx][tImpPrice],
- CarInfo[idx][tRentable],
- CarInfo[idx][Neon],
- CarInfo[idx][NeonObject]);
- if(idx == 0)
- {
- file2 = fopen("Ownership/Veh.ini", io_write);
- }
- else
- {
- file2 = fopen("Ownership/Veh.ini", io_append);
- }
- fwrite(file2, coordsstring);
- idx++;
- fclose(file2);
- }
- return 1;
- }
- public LoadHouse()
- {
- new arrCoords[37][64];
- new strFromFile2[256];
- new File: file = fopen("Ownership/Houses.ini", io_read);
- if(file)
- {
- new idx;
- while (idx < sizeof(HouseInfo))
- {
- fread(file, strFromFile2);
- split(strFromFile2, arrCoords, '|');
- HouseInfo[idx][hLocation_x] = floatstr(arrCoords[0]);
- HouseInfo[idx][hLocation_y] = floatstr(arrCoords[1]);
- HouseInfo[idx][hLocation_z] = floatstr(arrCoords[2]);
- HouseInfo[idx][hExitAngle] = floatstr(arrCoords[3]);
- HouseInfo[idx][hIntLocationx] = floatstr(arrCoords[4]);
- HouseInfo[idx][hIntLocationy] = floatstr(arrCoords[5]);
- HouseInfo[idx][hIntLocationz] = floatstr(arrCoords[6]);
- HouseInfo[idx][hEnterAngle] = floatstr(arrCoords[7]);
- HouseInfo[idx][hVirtualWorld] = strvalEx(arrCoords[8]);
- HouseInfo[idx][hInterior] = strvalEx(arrCoords[9]);
- strmid(HouseInfo[idx][hOwner], arrCoords[10], 0, strlen(arrCoords[10]), 255);
- HouseInfo[idx][hOwned] = strvalEx(arrCoords[11]);
- HouseInfo[idx][hLocked] = strvalEx(arrCoords[12]);
- HouseInfo[idx][hAlarm] = strvalEx(arrCoords[13]);
- HouseInfo[idx][hAlarmON] = strvalEx(arrCoords[14]);
- HouseInfo[idx][hGun1] = strvalEx(arrCoords[15]);
- HouseInfo[idx][hGun2] = strvalEx(arrCoords[16]);
- HouseInfo[idx][hGun3] = strvalEx(arrCoords[17]);
- HouseInfo[idx][hGun4] = strvalEx(arrCoords[18]);
- HouseInfo[idx][hCrack] = strvalEx(arrCoords[19]);
- HouseInfo[idx][hPot] = strvalEx(arrCoords[20]);
- HouseInfo[idx][hPrice] = strvalEx(arrCoords[21]);
- HouseInfo[idx][hLevel] = strvalEx(arrCoords[22]);
- HouseInfo[idx][hSafe] = strvalEx(arrCoords[23]);
- HouseInfo[idx][hSafeCode] = strvalEx(arrCoords[24]);
- HouseInfo[idx][hCameras] = strvalEx(arrCoords[25]);
- HouseInfo[idx][hCash] = strvalEx(arrCoords[26]);
- HouseInfo[idx][hMaterials] = strvalEx(arrCoords[27]);
- HouseInfo[idx][hVulnerable] = strvalEx(arrCoords[28]);
- HouseInfo[idx][hSafex] = floatstr(arrCoords[29]);
- HouseInfo[idx][hSafey] = floatstr(arrCoords[30]);
- HouseInfo[idx][hSafez] = floatstr(arrCoords[31]);
- HouseInfo[idx][hRenters] = strvalEx(arrCoords[32]);
- strmid(HouseInfo[idx][hName], arrCoords[33], 0, strlen(arrCoords[33]), 255);
- HouseInfo[idx][hRentable] = strvalEx(arrCoords[34]);
- HouseInfo[idx][hRent] = strvalEx(arrCoords[35]);
- HouseInfo[idx][hSafeOpen] = strvalEx(arrCoords[36]);
- idx++;
- }
- fclose(file);
- }
- return 1;
- }
- public SaveHouse()
- {
- new File: file2;
- new idx;
- while (idx < sizeof(HouseInfo))
- {
- new coordsstring[256];
- format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f|%d|%s|%d|%d|%d\n",
- HouseInfo[idx][hLocation_x],
- HouseInfo[idx][hLocation_y],
- HouseInfo[idx][hLocation_z],
- HouseInfo[idx][hExitAngle],
- HouseInfo[idx][hIntLocationx],
- HouseInfo[idx][hIntLocationy],
- HouseInfo[idx][hIntLocationz],
- HouseInfo[idx][hEnterAngle],
- HouseInfo[idx][hVirtualWorld],
- HouseInfo[idx][hInterior],
- HouseInfo[idx][hOwner],
- HouseInfo[idx][hOwned],
- HouseInfo[idx][hLocked],
- HouseInfo[idx][hAlarm],
- HouseInfo[idx][hAlarmON],
- HouseInfo[idx][hGun1],
- HouseInfo[idx][hGun2],
- HouseInfo[idx][hGun3],
- HouseInfo[idx][hGun4],
- HouseInfo[idx][hCrack],
- HouseInfo[idx][hPot],
- HouseInfo[idx][hPrice],
- HouseInfo[idx][hLevel],
- HouseInfo[idx][hSafe],
- HouseInfo[idx][hSafeCode],
- HouseInfo[idx][hCameras],
- HouseInfo[idx][hCash],
- HouseInfo[idx][hMaterials],
- HouseInfo[idx][hVulnerable],
- HouseInfo[idx][hSafex],
- HouseInfo[idx][hSafey],
- HouseInfo[idx][hSafez],
- HouseInfo[idx][hRenters],
- HouseInfo[idx][hName],
- HouseInfo[idx][hRentable],
- HouseInfo[idx][hRent],
- HouseInfo[idx][hSafeOpen]);
- if(idx == 0)
- {
- file2 = fopen("Ownership/Houses.ini", io_write);
- }
- else
- {
- file2 = fopen("Ownership/Houses.ini", io_append);
- }
- fwrite(file2, coordsstring);
- idx++;
- fclose(file2);
- }
- return 1;
- }
- public LoadBiz()
- {
- new arrCoords[25][64];
- new strFromFile2[256];
- new File: file = fopen("Ownership/Biz.ini", io_read);
- if(file)
- {
- new idx;
- while (idx < sizeof(BizInfo))
- {
- fread(file, strFromFile2);
- split(strFromFile2, arrCoords, '|');
- BizInfo[idx][bLocation_x] = floatstr(arrCoords[0]);
- BizInfo[idx][bLocation_y] = floatstr(arrCoords[1]);
- BizInfo[idx][bLocation_z] = floatstr(arrCoords[2]);
- BizInfo[idx][bExitAngle] = floatstr(arrCoords[3]);
- BizInfo[idx][bIntLocationx] = floatstr(arrCoords[4]);
- BizInfo[idx][bIntLocationy] = floatstr(arrCoords[5]);
- BizInfo[idx][bIntLocationz] = floatstr(arrCoords[6]);
- BizInfo[idx][bEnterAngle] = floatstr(arrCoords[7]);
- BizInfo[idx][bVirtualWorld] = strvalEx(arrCoords[8]);
- BizInfo[idx][bInterior] = strvalEx(arrCoords[9]);
- strmid(BizInfo[idx][bOwner], arrCoords[10], 0, strlen(arrCoords[10]), 255);
- BizInfo[idx][bOwned] = strvalEx(arrCoords[11]);
- BizInfo[idx][bLocked] = strvalEx(arrCoords[12]);
- BizInfo[idx][bPrice] = strvalEx(arrCoords[13]);
- BizInfo[idx][bType] = strvalEx(arrCoords[14]);
- BizInfo[idx][bCameras] = strvalEx(arrCoords[15]);
- BizInfo[idx][bTill] = strvalEx(arrCoords[16]);
- strmid(BizInfo[idx][bName], arrCoords[17], 0, strlen(arrCoords[17]), 255);
- BizInfo[idx][bFee] = strvalEx(arrCoords[18]);
- BizInfo[idx][bPInt] = strvalEx(arrCoords[19]);
- BizInfo[idx][bPVW] = strvalEx(arrCoords[20]);
- BizInfo[idx][bProducts] = strvalEx(arrCoords[21]);
- BizInfo[idx][bLottoTime] = strvalEx(arrCoords[22]);
- BizInfo[idx][bLottoJackpot] = strvalEx(arrCoords[23]);
- BizInfo[idx][bNewLottoJackpot] = strvalEx(arrCoords[24]);
- idx++;
- }
- fclose(file);
- }
- return 1;
- }
- public SaveBiz()
- {
- new File: file2;
- new idx;
- while (idx < sizeof(BizInfo))
- {
- new coordsstring[256];
- format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%s|%d|%d|%d|%d|%d|%d|%s|%d|%d|%d|%d|%d|%d|%d\n",
- BizInfo[idx][bLocation_x],
- BizInfo[idx][bLocation_y],
- BizInfo[idx][bLocation_z],
- BizInfo[idx][bExitAngle],
- BizInfo[idx][bIntLocationx],
- BizInfo[idx][bIntLocationy],
- BizInfo[idx][bIntLocationz],
- BizInfo[idx][bEnterAngle],
- BizInfo[idx][bVirtualWorld],
- BizInfo[idx][bInterior],
- BizInfo[idx][bOwner],
- BizInfo[idx][bOwned],
- BizInfo[idx][bLocked],
- BizInfo[idx][bPrice],
- BizInfo[idx][bType],
- BizInfo[idx][bCameras],
- BizInfo[idx][bTill],
- BizInfo[idx][bName],
- BizInfo[idx][bFee],
- BizInfo[idx][bPInt],
- BizInfo[idx][bPVW],
- BizInfo[idx][bProducts],
- BizInfo[idx][bLottoTime],
- BizInfo[idx][bLottoJackpot],
- BizInfo[idx][bNewLottoJackpot]);
- if(idx == 0)
- {
- file2 = fopen("Ownership/Biz.ini", io_write);
- }
- else
- {
- file2 = fopen("Ownership/Biz.ini", io_append);
- }
- fwrite(file2, coordsstring);
- idx++;
- fclose(file2);
- }
- return 1;
- }
- public LoadIRC()
- {
- new arrCoords[5][64];
- new strFromFile2[256];
- new File: file = fopen("IRC/channels.cfg", io_read);
- if(file)
- {
- new idx;
- while (idx < sizeof(IRCInfo))
- {
- fread(file, strFromFile2);
- split(strFromFile2, arrCoords, '|');
- strmid(IRCInfo[idx][iAdmin], arrCoords[0], 0, strlen(arrCoords[0]), 255);
- strmid(IRCInfo[idx][iMOTD], arrCoords[1], 0, strlen(arrCoords[1]), 255);
- strmid(IRCInfo[idx][iPassword], arrCoords[2], 0, strlen(arrCoords[2]), 255);
- IRCInfo[idx][iNeedPass] = strvalEx(arrCoords[3]);
- IRCInfo[idx][iLock] = strvalEx(arrCoords[4]);
- // printf("IRC:%d Admin:%s MOTD:%s Password:%s NeedPass:%d Lock:%d",idx,IRCInfo[idx][iAdmin],IRCInfo[idx][iMOTD],IRCInfo[idx][iPassword],IRCInfo[idx][iNeedPass],IRCInfo[idx][iLock]);
- idx++;
- }
- fclose(file);
- }
- return 1;
- }
- public SaveIRC()
- {
- new idx;
- new File: file2;
- while (idx < sizeof(IRCInfo))
- {
- new coordsstring[256];
- format(coordsstring, sizeof(coordsstring), "%s|%s|%s|%d|%d\n",
- IRCInfo[idx][iAdmin],
- IRCInfo[idx][iMOTD],
- IRCInfo[idx][iPassword],
- IRCInfo[idx][iNeedPass],
- IRCInfo[idx][iLock]);
- if(idx == 0)
- {
- file2 = fopen("IRC/channels.cfg", io_write);
- }
- else
- {
- file2 = fopen("IRC/channels.cfg", io_append);
- }
- fwrite(file2, coordsstring);
- idx++;
- fclose(file2);
- }
- return 1;
- }
- public LoadFamilies()
- {
- new arrCoords[38][64];
- new strFromFile2[512];
- new File: file = fopen("Families/families.cfg", io_read);
- if(file)
- {
- new idx;
- while (idx < sizeof(FamilyInfo))
- {
- fread(file, strFromFile2);
- split(strFromFile2, arrCoords, '|');
- FamilyInfo[idx][FamilyTaken] = strvalEx(arrCoords[0]);
- strmid(FamilyInfo[idx][FamilyName], arrCoords[1], 0, strlen(arrCoords[1]), 255);
- strmid(FamilyInfo[idx][FamilyMOTD], arrCoords[2], 0, strlen(arrCoords[2]), 255);
- strmid(FamilyInfo[idx][FamilyLeader], arrCoords[3], 0, strlen(arrCoords[3]), 255);
- FamilyInfo[idx][FamilyBank] = strvalEx(arrCoords[4]);
- FamilyInfo[idx][FamilyCash] = strvalEx(arrCoords[5]);
- FamilyInfo[idx][FamilySafe] = strvalEx(arrCoords[6]);
- FamilyInfo[idx][FamilySafePos][0] = floatstr(arrCoords[7]);
- FamilyInfo[idx][FamilySafePos][1] = floatstr(arrCoords[8]);
- FamilyInfo[idx][FamilySafePos][2] = floatstr(arrCoords[9]);
- FamilyInfo[idx][FamilyPot] = strvalEx(arrCoords[10]);
- FamilyInfo[idx][FamilyCrack] = strvalEx(arrCoords[11]);
- FamilyInfo[idx][FamilyMats] = strvalEx(arrCoords[12]);
- strmid(FamilyRank[idx][0], arrCoords[13], 0, strlen(arrCoords[13]), 255);
- strmid(FamilyRank[idx][1], arrCoords[14], 0, strlen(arrCoords[14]), 255);
- strmid(FamilyRank[idx][2], arrCoords[15], 0, strlen(arrCoords[15]), 255);
- strmid(FamilyRank[idx][3], arrCoords[16], 0, strlen(arrCoords[16]), 255);
- strmid(FamilyRank[idx][4], arrCoords[17], 0, strlen(arrCoords[17]), 255);
- strmid(FamilyRank[idx][5], arrCoords[18], 0, strlen(arrCoords[18]), 255);
- FamilyInfo[idx][FamilyMembers] = strvalEx(arrCoords[19]);
- FamilyInfo[idx][FamilySkins] = strvalEx(arrCoords[20]);
- FamilyInfo[idx][FamilySkin1] = strvalEx(arrCoords[21]);
- FamilyInfo[idx][FamilySkin2] = strvalEx(arrCoords[22]);
- FamilyInfo[idx][FamilySkin3] = strvalEx(arrCoords[23]);
- FamilyInfo[idx][FamilySkin4] = strvalEx(arrCoords[24]);
- FamilyInfo[idx][FamilySkin5] = strvalEx(arrCoords[25]);
- FamilyInfo[idx][FamilySkin6] = strvalEx(arrCoords[26]);
- FamilyInfo[idx][FamilySkin7] = strvalEx(arrCoords[27]);
- FamilyInfo[idx][FamilySkin8] = strvalEx(arrCoords[28]);
- FamilyInfo[idx][FStrikes] = strvalEx(arrCoords[29]);
- FamilyInfo[idx][Colt45] = strvalEx(arrCoords[30]);
- FamilyInfo[idx][Shotgun] = strvalEx(arrCoords[31]);
- FamilyInfo[idx][MP5] = strvalEx(arrCoords[32]);
- FamilyInfo[idx][AK47] = strvalEx(arrCoords[33]);
- FamilyInfo[idx][M4] = strvalEx(arrCoords[34]);
- FamilyInfo[idx][SPAS12] = strvalEx(arrCoords[35]);
- FamilyInfo[idx][Rifle] = strvalEx(arrCoords[36]);
- FamilyInfo[idx][Sniper] = strvalEx(arrCoords[37]);
- idx++;
- }
- fclose(file);
- }
- return 1;
- }
- //==============================================================================
- public SaveFamilies()
- {
- new idx;
- new File: file2;
- while (idx < sizeof(FamilyInfo))
- {
- new coordsstring[512];
- format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%d|%d|%d|%f|%f|%f|%d|%d|%d|%s|%s|%s|%s|%s|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
- FamilyInfo[idx][FamilyTaken],
- FamilyInfo[idx][FamilyName],
- FamilyInfo[idx][FamilyMOTD],
- FamilyInfo[idx][FamilyLeader],
- FamilyInfo[idx][FamilyBank],
- FamilyInfo[idx][FamilyCash],
- FamilyInfo[idx][FamilySafe],
- FamilyInfo[idx][FamilySafePos][0],
- FamilyInfo[idx][FamilySafePos][1],
- FamilyInfo[idx][FamilySafePos][2],
- FamilyInfo[idx][FamilyPot],
- FamilyInfo[idx][FamilyCrack],
- FamilyInfo[idx][FamilyMats],
- FamilyRank[idx][0],
- FamilyRank[idx][1],
- FamilyRank[idx][2],
- FamilyRank[idx][3],
- FamilyRank[idx][4],
- FamilyRank[idx][5],
- FamilyInfo[idx][FamilyMembers],
- FamilyInfo[idx][FamilySkins],
- FamilyInfo[idx][FamilySkin1],
- FamilyInfo[idx][FamilySkin2],
- FamilyInfo[idx][FamilySkin3],
- FamilyInfo[idx][FamilySkin4],
- FamilyInfo[idx][FamilySkin5],
- FamilyInfo[idx][FamilySkin6],
- FamilyInfo[idx][FamilySkin7],
- FamilyInfo[idx][FamilySkin8],
- FamilyInfo[idx][FStrikes],
- FamilyInfo[idx][Colt45],
- FamilyInfo[idx][Shotgun],
- FamilyInfo[idx][MP5],
- FamilyInfo[idx][AK47],
- FamilyInfo[idx][M4],
- FamilyInfo[idx][SPAS12],
- FamilyInfo[idx][Rifle],
- FamilyInfo[idx][Sniper]);
- if(idx == 0)
- {
- file2 = fopen("Families/families.cfg", io_write);
- }
- else
- {
- file2 = fopen("Families/families.cfg", io_append);
- }
- fwrite(file2, coordsstring);
- idx++;
- fclose(file2);
- }
- return 1;
- }
- public OnGameModeExit()
- {
- SaveBiz();
- SaveHouse();
- SaveCar();
- djson_GameModeExit();
- return 1;
- }
- public OnGameModeInit()
- {
- ManualVehicleEngineAndLights();
- DisableInteriorEnterExits();
- /* ConnectNPC("Security_Guard","npcidle");
- ConnectNPC("Banker","npcidle");
- ConnectNPC("Bot_24","npcidle");
- ConnectNPC("Bot_24_1","npcidle");
- ConnectNPC("Bot_24_2","npcidle");
- ConnectNPC("Bot_24_3","npcidle");
- ConnectNPC("bot_10gb","npcdle");
- ConnectNPC("bot_pigpen","npcidle");
- ConnectNPC("bot_stripper1","npcidle");
- ConnectNPC("bot_stripper2","npcidle");
- ConnectNPC("Boxer","npcidle");
- ConnectNPC("bot_donut","train_ls");
- ConnectNPC("Bus","Bus");
- ConnectNPC("Barman","npcidle");
- ConnectNPC("Janet","npcidle");
- ConnectNPC("Denise","npcidle");*/
- print("Stage 1");
- SetNameTagDrawDistance(30.0);
- SendRconCommand("loadfs gates");
- EnableStuntBonusForAll(0);
- for(new i = 0; i < MAX_VEHICLES; i++)
- {
- Gas[i] = 100;
- }
- print("Stage 2");
- LoadBoxer();
- LoadLSPDPass();
- print("Stage 3");
- LoadStuff();
- print("Stage 4");
- LoadIRC();
- print("Stage 5");
- LoadFamilies();
- print("Stage 6");
- djson_GameModeInit();
- print("Stage 7");
- IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
- IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
- IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
- IRCInfo[9][iPlayers] = 0;
- SetGameModeText("RG:RP v2.4");
- format(motd, sizeof(motd), "{7DAEFF}SERVER: If you think someone knows your password use (/changepass) to change it.{7DAEFF}");
- gettime(ghour, gminute, gsecond);
- FixHour(ghour);
- ghour = shifthour;
- if(!realtime)
- {
- SetWorldTime(wtime);
- }
- AllowInteriorWeapons(1);
- UsePlayerPedAnims();
- // Player Class's
- for(new i = 0; i <= sizeof(PedSkins)-1; i++)
- {
- AddPlayerClass(PedSkins[i][0],982.1890,-1624.2583,14.952,90,-1,-1,-1,-1,-1,-1);
- }
- //BUTTONS
- CreateButton(244.92, 72.29, 1004.27, 0.0); // LSPD DOOR ENTER
- CreateButton(244.91, 73.81, 1004.27, 90.0); // LSPD DOOR EXIT
- CreateButton(1765.9000, -1574.0979, 1641.7, 270.0); // PRISON CELL OPEN
- CreateButton(222.41, 71.29, 1005.66, 90.0); // CHIEF DOOR OUTSIDE
- CreateButton(221.87, 68.34, 1005.66, 270.0); // CHIEF DOOR INSIDE
- //VIP Gates
- vipgateob1 = CreateDynamicObject(971,364.95495605,-1469.17004395,31.39999962,0.00000000,0.00000000,36.00000000); //object(subwaygate) (1)
- vipgateob2 = CreateDynamicObject(971,310.11669922,-1556.11083984,31.39999962,0.00000000,0.00000000,143.99996948); //object(subwaygate) (2)
- //Object and 3dtext for /train at le new gym
- CreateDynamicObject(1239,31,1226.8239,-773.0059,1084.0048,0.00000000,0.00000000,31.00000000);
- //CITY PARK LSPD!
- //- Mapped by: Logan Stone
- //- Mapped for: RG:RP ( Reality Gaming Roleplay )
- //(C) 2012 All rights reserved to the author ( Logan ).
- CreateObject(852,1851.50000000,-1966.59997559,12.50000000,0.00000000,0.00000000,0.00000000); //object(cj_urb_rub_4) (1)
- CreateObject(970,1516.19995117,-1690.90002441,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (1)
- CreateObject(970,1516.19995117,-1695.00000000,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (2)
- CreateObject(970,1516.19995117,-1699.09997559,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (3)
- CreateObject(970,1516.19995117,-1703.19995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (4)
- CreateObject(970,1516.19995117,-1707.29992676,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (5)
- CreateObject(970,1516.19995117,-1711.39990234,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (6)
- CreateObject(970,1516.19921875,-1715.49902344,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (7)
- CreateObject(970,1516.19995117,-1716.80004883,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (8)
- CreateObject(970,1514.09997559,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (9)
- CreateObject(970,1510.00000000,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (10)
- CreateObject(970,1505.90002441,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (11)
- CreateObject(970,1501.80004883,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (12)
- CreateObject(970,1497.70007324,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (13)
- CreateObject(970,1493.60009766,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (14)
- CreateObject(970,1489.50012207,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (15)
- CreateObject(970,1485.40014648,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (16)
- CreateObject(970,1469.00024414,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (20)
- CreateObject(970,1464.90026855,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (21)
- CreateObject(970,1460.80029297,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (22)
- CreateObject(970,1456.70031738,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (23)
- CreateObject(970,1452.60034180,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (24)
- CreateObject(970,1448.50000000,-1718.89941406,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (25)
- CreateObject(970,1445.00000000,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (26)
- CreateObject(970,1442.90002441,-1716.80004883,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (27)
- CreateObject(970,1442.90002441,-1712.69995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (28)
- CreateObject(970,1442.90002441,-1708.59985352,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (29)
- CreateObject(970,1442.90002441,-1704.49975586,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (30)
- CreateObject(970,1442.90002441,-1700.39965820,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (31)
- CreateObject(970,1442.90002441,-1696.29956055,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (32)
- CreateObject(970,1442.90002441,-1692.19946289,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (33)
- CreateObject(970,1442.90002441,-1688.09936523,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (34)
- CreateObject(970,1442.90002441,-1684.19995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (35)
- CreateObject(970,1442.90002441,-1633.69995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (37)
- CreateObject(970,1442.90002441,-1629.59997559,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (38)
- CreateObject(970,1442.90002441,-1625.50000000,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (39)
- CreateObject(970,1442.90002441,-1621.40002441,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (40)
- CreateObject(970,1442.90002441,-1617.30004883,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (41)
- CreateObject(970,1442.90002441,-1613.20007324,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (42)
- CreateObject(970,1442.90002441,-1609.10009766,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (43)
- CreateObject(970,1442.90002441,-1607.69995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (44)
- CreateObject(970,1445.00000000,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (46)
- CreateObject(970,1449.09997559,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (47)
- CreateObject(970,1453.19995117,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (48)
- CreateObject(970,1457.29992676,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (49)
- CreateObject(970,1461.39990234,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (50)
- CreateObject(970,1465.49987793,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (51)
- CreateObject(970,1469.59985352,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (52)
- CreateObject(970,1490.09973145,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (57)
- CreateObject(970,1494.19970703,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (58)
- CreateObject(970,1498.29968262,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (59)
- CreateObject(970,1502.39965820,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (60)
- CreateObject(970,1506.49963379,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (61)
- CreateObject(970,1510.59960938,-1605.69921875,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (62)
- CreateObject(970,1514.09997559,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (64)
- CreateObject(970,1516.09997559,-1607.80004883,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (65)
- CreateObject(970,1516.09997559,-1611.90002441,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (67)
- CreateObject(970,1516.09997559,-1616.00000000,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (68)
- CreateObject(970,1516.09997559,-1620.09997559,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (69)
- CreateObject(970,1516.09997559,-1624.19995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (70)
- CreateObject(970,1516.09997559,-1628.29992676,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (71)
- CreateObject(970,1516.09997559,-1632.39990234,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (72)
- CreateObject(970,1516.09997559,-1636.49987793,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (73)
- CreateObject(970,1516.09997559,-1640.09997559,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (74)
- CreateObject(621,1515.59997559,-1641.69995117,12.80000019,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (1)
- CreateObject(621,1515.90002441,-1622.50000000,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (2)
- CreateObject(621,1515.50000000,-1606.09997559,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (3)
- CreateObject(621,1498.30004883,-1606.19995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (4)
- CreateObject(3749,1480.80004883,-1606.00000000,18.20000076,0.00000000,0.00000000,0.00000000); //object(clubgate01_lax) (1)
- CreateObject(621,1488.40002441,-1602.50000000,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (9)
- CreateObject(621,1472.19995117,-1602.59997559,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (10)
- CreateObject(621,1459.19995117,-1606.40002441,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (11)
- CreateObject(621,1442.80004883,-1606.59997559,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (12)
- CreateObject(621,1442.90002441,-1621.59997559,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (13)
- CreateObject(621,1442.90002441,-1635.69995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (14)
- CreateObject(621,1443.09997559,-1683.00000000,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (15)
- CreateObject(621,1442.69995117,-1698.19995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (16)
- CreateObject(621,1442.90002441,-1710.19995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (17)
- CreateObject(621,1443.09997559,-1719.19995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (18)
- CreateObject(621,1453.40002441,-1718.90002441,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (19)
- CreateObject(621,1462.69995117,-1718.80004883,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (20)
- CreateObject(3749,1477.19995117,-1718.69995117,18.39999962,0.00000000,0.00000000,0.00000000); //object(clubgate01_lax) (2)
- CreateObject(621,1491.30004883,-1718.69995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (21)
- CreateObject(621,1501.90002441,-1718.69995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (22)
- CreateObject(621,1503.50000000,-1718.80004883,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (23)
- CreateObject(621,1515.90002441,-1719.00000000,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (25)
- CreateObject(621,1515.50000000,-1703.40002441,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (26)
- CreateObject(621,1515.59997559,-1689.40002441,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (27)
- CreateObject(16151,1479.50000000,-1672.79980469,13.50000000,0.00000000,0.00000000,89.76928711); //object(ufo_bar) (2)
- CreateObject(712,1476.19995117,-1671.00000000,23.20000076,0.00000000,0.00000000,0.00000000); //object(vgs_palm03) (1)
- CreateObject(712,1477.69995117,-1671.00000000,23.20000076,0.00000000,0.00000000,0.00000000); //object(vgs_palm03) (2)
- CreateObject(712,1479.00000000,-1671.00000000,23.20000076,0.00000000,0.00000000,0.00000000); //object(vgs_palm03) (3)
- CreateObject(712,1480.19995117,-1670.69995117,23.00000000,0.00000000,0.00000000,0.00000000); //object(vgs_palm03) (4)
- CreateObject(1432,1482.00000000,-1678.00000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (1)
- CreateObject(1432,1484.19921875,-1681.69921875,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (2)
- CreateObject(1432,1480.89941406,-1684.19921875,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (3)
- CreateObject(1432,1475.09960938,-1679.09960938,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (4)
- CreateObject(1432,1476.39941406,-1683.39941406,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (5)
- CreateObject(1432,1472.59960938,-1683.00000000,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (6)
- CreateObject(1432,1484.39941406,-1686.09960938,13.00000000,0.00000000,0.00000000,355.91308594); //object(dyn_table_2) (7)
- CreateObject(1432,1478.30004883,-1687.19995117,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (8)
- CreateObject(1775,1469.30004883,-1678.00000000,14.10000038,0.00000000,0.00000000,80.25173950); //object(cj_sprunk1) (1)
- CreateObject(1776,1470.59997559,-1676.09997559,14.10000038,0.00000000,0.00000000,31.28457642); //object(cj_candyvendor) (1)
- CreateObject(1302,1472.90002441,-1675.69995117,13.00000000,0.00000000,0.00000000,345.03778076); //object(vendmachfd) (1)
- CreateObject(3117,1489.00000000,-1676.50000000,13.19999981,0.00000000,0.00000000,300.15039062); //object(a51_ventcoverb) (1)
- CreateObject(3117,1489.00000000,-1676.50000000,13.39999962,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (2)
- CreateObject(3117,1489.00000000,-1676.50000000,13.60000038,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (3)
- CreateObject(3117,1489.00000000,-1676.50000000,13.80000019,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (4)
- CreateObject(3117,1489.00000000,-1676.50000000,14.00000000,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (5)
- CreateObject(3117,1489.00000000,-1676.50000000,14.19999981,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (6)
- CreateObject(3117,1489.00000000,-1676.50000000,14.39999962,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (7)
- CreateObject(3117,1489.00000000,-1676.50000000,14.60000038,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (8)
- CreateObject(3117,1489.00000000,-1676.50000000,14.80000019,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (9)
- CreateObject(2637,1488.30004883,-1676.80004883,15.10000038,0.00000000,0.00000000,300.15039062); //object(cj_pizza_table2) (2)
- CreateObject(14820,1488.30004883,-1676.80004883,15.60000038,0.00000000,0.00000000,300.15063477); //object(dj_stuff) (1)
- CreateObject(1714,1489.09997559,-1675.50000000,14.89999962,0.00000000,0.00000000,350.47857666); //object(kb_swivelchair1) (1)
- CreateObject(3472,1485.30004883,-1674.50000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(circuslampost03) (1)
- CreateObject(3472,1491.09997559,-1685.30004883,13.00000000,0.00000000,0.00000000,0.00000000); //object(circuslampost03) (2)
- CreateObject(3472,1486.09997559,-1696.19995117,13.00000000,0.00000000,0.00000000,0.00000000); //object(circuslampost03) (3)
- CreateObject(3472,1473.69995117,-1693.19995117,13.00000000,0.00000000,0.00000000,346.39794922); //object(circuslampost03) (4)
- CreateObject(3472,1466.09997559,-1682.80004883,13.00000000,0.00000000,0.00000000,330.07092285); //object(circuslampost03) (5)
- CreateObject(3472,1467.80004883,-1673.80004883,13.00000000,0.00000000,0.00000000,338.22888184); //object(circuslampost03) (6)
- CreateObject(2670,1477.19995117,-1680.80004883,13.30000019,0.00000000,0.00000000,23.12338257); //object(proc_rubbish_1) (1)
- CreateObject(2670,1478.90002441,-1680.09997559,13.30000019,0.00000000,0.00000000,349.11560059); //object(proc_rubbish_1) (2)
- CreateObject(2670,1481.90002441,-1683.50000000,13.30000019,0.00000000,0.00000000,350.47283936); //object(proc_rubbish_1) (3)
- CreateObject(2670,1478.40002441,-1685.80004883,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_1) (4)
- CreateObject(2670,1474.09997559,-1686.80004883,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_1) (5)
- CreateObject(2670,1471.50000000,-1681.00000000,13.30000019,0.00000000,0.00000000,14.95306396); //object(proc_rubbish_1) (6)
- CreateObject(2670,1478.59997559,-1677.00000000,13.30000019,0.00000000,0.00000000,359.99020386); //object(proc_rubbish_1) (7)
- CreateObject(2671,1468.09997559,-1688.19995117,13.00000000,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_3) (1)
- CreateObject(2671,1478.59997559,-1680.00000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_3) (2)
- CreateObject(2671,1481.19995117,-1687.40002441,13.19999981,0.00000000,0.00000000,357.27960205); //object(proc_rubbish_3) (3)
- CreateObject(2671,1485.50000000,-1689.59997559,13.19999981,0.00000000,0.00000000,19.03866577); //object(proc_rubbish_3) (4)
- CreateObject(2671,1484.30004883,-1683.80004883,13.19999981,0.00000000,0.00000000,21.75421143); //object(proc_rubbish_3) (5)
- CreateObject(2671,1481.09997559,-1681.30004883,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (6)
- CreateObject(2671,1479.80004883,-1679.09997559,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (7)
- CreateObject(2671,1475.30004883,-1682.59997559,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (8)
- CreateObject(2671,1473.90002441,-1689.40002441,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (9)
- CreateObject(2671,1471.09997559,-1687.80004883,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (10)
- CreateObject(2671,1470.80004883,-1684.09997559,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (11)
- CreateObject(2671,1470.69995117,-1679.19995117,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (12)
- CreateObject(2671,1473.30004883,-1676.69995117,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (13)
- CreateObject(2671,1473.40002441,-1681.50000000,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (14)
- CreateObject(2672,1478.69995117,-1683.69995117,13.30000019,0.00000000,0.00000000,4.08059692); //object(proc_rubbish_4) (1)
- CreateObject(2672,1476.00000000,-1685.30004883,13.30000019,0.00000000,0.00000000,350.47387695); //object(proc_rubbish_4) (2)
- CreateObject(2672,1472.40002441,-1685.19995117,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_4) (3)
- CreateObject(2672,1476.30004883,-1687.50000000,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_4) (4)
- CreateObject(2672,1481.09997559,-1688.80004883,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_4) (5)
- CreateObject(2672,1487.59997559,-1680.09997559,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_4) (6)
- CreateObject(2672,1486.50000000,-1678.69995117,13.30000019,0.00000000,0.00000000,359.99084473); //object(proc_rubbish_4) (7)
- CreateObject(2673,1476.50000000,-1689.50000000,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (1)
- CreateObject(2673,1478.80004883,-1690.00000000,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (2)
- CreateObject(2673,1480.09997559,-1686.59997559,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (3)
- CreateObject(2673,1478.30004883,-1684.59997559,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (4)
- CreateObject(2673,1474.69995117,-1682.50000000,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (5)
- CreateObject(2673,1472.19995117,-1680.59997559,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (6)
- CreateObject(2673,1473.69995117,-1677.30004883,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (7)
- CreateObject(2673,1472.80004883,-1674.80004883,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (8)
- CreateObject(2673,1474.30004883,-1674.69995117,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (9)
- CreateObject(2673,1477.19995117,-1676.40002441,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (10)
- CreateObject(2673,1479.90002441,-1675.50000000,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (11)
- CreateObject(2673,1482.59997559,-1676.30004883,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (12)
- CreateObject(2673,1482.59960938,-1676.29980469,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (13)
- CreateObject(2676,1484.19995117,-1675.80004883,13.19999981,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_8) (1)
- CreateObject(2676,1487.50000000,-1681.19995117,13.19999981,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_8) (2)
- CreateObject(2676,1478.30004883,-1681.40002441,13.19999981,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_8) (3)
- CreateObject(2232,1489.40002441,-1679.19995117,13.60000038,0.00000000,0.00000000,300.15039062); //object(med_speaker_4) (1)
- CreateObject(2232,1489.40002441,-1679.19995117,14.69999981,0.00000000,0.00000000,300.14648438); //object(med_speaker_4) (3)
- CreateObject(2232,1489.40002441,-1679.19995117,15.80000019,0.00000000,0.00000000,300.14648438); //object(med_speaker_4) (4)
- CreateObject(2232,1489.80004883,-1679.69995117,13.60000038,0.00000000,0.00000000,301.50671387); //object(med_speaker_4) (5)
- CreateObject(2232,1489.80004883,-1679.69995117,14.69999981,0.00000000,0.00000000,301.50329590); //object(med_speaker_4) (6)
- CreateObject(2232,1489.80004883,-1679.69995117,15.80000019,0.00000000,0.00000000,301.50329590); //object(med_speaker_4) (7)
- CreateObject(2232,1488.09997559,-1678.80004883,13.50000000,0.00000000,0.00000000,309.66796875); //object(med_speaker_4) (8)
- CreateObject(2232,1487.40002441,-1677.59997559,13.50000000,0.00000000,0.00000000,300.14648438); //object(med_speaker_4) (9)
- CreateObject(2232,1486.59997559,-1676.40002441,13.50000000,0.00000000,0.00000000,287.90441895); //object(med_speaker_4) (10)
- CreateObject(2232,1487.09997559,-1674.69995117,13.50000000,0.00000000,0.00000000,305.58740234); //object(med_speaker_4) (11)
- CreateObject(2232,1487.09997559,-1674.69995117,14.60000038,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (12)
- CreateObject(2232,1487.09997559,-1674.69995117,15.69999981,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (13)
- CreateObject(2232,1486.69995117,-1674.19995117,13.50000000,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (14)
- CreateObject(2232,1486.69995117,-1674.19995117,14.60000038,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (15)
- CreateObject(2232,1486.69995117,-1674.19995117,15.69999981,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (16)
- CreateObject(1544,1476.09997559,-1672.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (1)
- CreateObject(1544,1476.30004883,-1673.50000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (2)
- CreateObject(1544,1476.69995117,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (3)
- CreateObject(1544,1477.00000000,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (4)
- CreateObject(1544,1476.90002441,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (5)
- CreateObject(1544,1478.30004883,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (6)
- CreateObject(1544,1478.59997559,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (7)
- CreateObject(1544,1478.90002441,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (8)
- CreateObject(1544,1479.69995117,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (9)
- CreateObject(1544,1480.09997559,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (10)
- CreateObject(1544,1479.80004883,-1674.00000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (11)
- CreateObject(1544,1479.90002441,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (12)
- CreateObject(1544,1481.00000000,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (13)
- CreateObject(1544,1481.00000000,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (14)
- CreateObject(1544,1480.80004883,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (15)
- CreateObject(1544,1481.40002441,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (16)
- CreateObject(1544,1482.69995117,-1673.50000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (17)
- CreateObject(1544,1482.30004883,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (18)
- CreateObject(1544,1482.30004883,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (19)
- CreateObject(1544,1482.09997559,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (20)
- CreateObject(1544,1482.00000000,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (21)
- CreateObject(1543,1476.30004883,-1672.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (1)
- CreateObject(1543,1476.19995117,-1673.19995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (2)
- CreateObject(1543,1476.00000000,-1673.19995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (3)
- CreateObject(1543,1476.40002441,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (4)
- CreateObject(1543,1476.50000000,-1673.50000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (5)
- CreateObject(1543,1477.09997559,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (6)
- CreateObject(1543,1477.40002441,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (7)
- CreateObject(1543,1477.19995117,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (8)
- CreateObject(1543,1477.69995117,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (9)
- CreateObject(1543,1478.00000000,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (10)
- CreateObject(1543,1478.09997559,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (11)
- CreateObject(1543,1478.69995117,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (12)
- CreateObject(1543,1479.09997559,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (13)
- CreateObject(1543,1479.19995117,-1674.09997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (14)
- CreateObject(1543,1479.30004883,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (15)
- CreateObject(1543,1479.90002441,-1674.00000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (16)
- CreateObject(1543,1480.50000000,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (17)
- CreateObject(1543,1480.30004883,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (18)
- CreateObject(1543,1480.40002441,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (19)
- CreateObject(1543,1481.30004883,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (20)
- CreateObject(1543,1481.90002441,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (21)
- CreateObject(1543,1482.59997559,-1673.09997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (22)
- CreateObject(1543,1482.80004883,-1673.09997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (23)
- CreateObject(1517,1476.30004883,-1672.19995117,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (1)
- CreateObject(1517,1477.59997559,-1674.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (2)
- CreateObject(1517,1477.50000000,-1673.59997559,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (3)
- CreateObject(1517,1478.30004883,-1673.69995117,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (4)
- CreateObject(1517,1478.59997559,-1674.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (6)
- CreateObject(1517,1479.40002441,-1674.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (7)
- CreateObject(1517,1480.59997559,-1673.69995117,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (8)
- CreateObject(1517,1481.69995117,-1673.90002441,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (9)
- CreateObject(1337,1477.19628906,-1672.38281250,14.40130043,0.00000000,0.00000000,0.00000000); //object(binnt07_la) (1)
- CreateObject(1520,162.80000305,140.30000305,534.79998779,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (1)
- CreateObject(1543,1474.90002441,-1678.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (24)
- CreateObject(1543,1475.19995117,-1678.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (25)
- CreateObject(1544,1475.00000000,-1679.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (22)
- CreateObject(1544,1475.30004883,-1679.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (23)
- CreateObject(1544,1475.09997559,-1679.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (24)
- CreateObject(1544,1474.69995117,-1679.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (25)
- CreateObject(1520,1475.09997559,-1678.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (2)
- CreateObject(1520,1475.09997559,-1679.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (3)
- CreateObject(1520,1474.80004883,-1679.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (4)
- CreateObject(1520,1473.09997559,-1681.09997559,13.00000000,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (5)
- CreateObject(1512,1475.50000000,-1679.09997559,13.80000019,0.00000000,0.00000000,8.16119385); //object(dyn_wine_03) (1)
- CreateObject(1512,1481.90002441,-1678.09997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_03) (2)
- CreateObject(1486,1481.80004883,-1677.59997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (1)
- CreateObject(1486,1481.90002441,-1677.69995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (2)
- CreateObject(1486,1481.69995117,-1677.80004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (3)
- CreateObject(1486,1482.19995117,-1678.50000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (4)
- CreateObject(1486,1482.00000000,-1678.59997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (5)
- CreateObject(1486,1482.09997559,-1678.40002441,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (6)
- CreateObject(1486,1481.59997559,-1678.09997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (7)
- CreateObject(1486,1481.69995117,-1678.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (8)
- CreateObject(1486,1481.59997559,-1678.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (9)
- CreateObject(1486,1481.19995117,-1677.09997559,13.19999981,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (10)
- CreateObject(1544,1481.90002441,-1677.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (26)
- CreateObject(1544,1482.09997559,-1677.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (27)
- CreateObject(1544,1482.30004883,-1678.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (28)
- CreateObject(1544,1482.09997559,-1678.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (29)
- CreateObject(1544,1482.09997559,-1678.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (30)
- CreateObject(1544,1482.00000000,-1678.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (31)
- CreateObject(1544,1481.50000000,-1677.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (32)
- CreateObject(1544,1481.80004883,-1678.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (33)
- CreateObject(1544,1484.40002441,-1681.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (34)
- CreateObject(1544,1484.50000000,-1681.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (35)
- CreateObject(1544,1484.30004883,-1681.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (36)
- CreateObject(1544,1484.40002441,-1681.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (37)
- CreateObject(1543,1484.09997559,-1681.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (26)
- CreateObject(1543,1484.19995117,-1681.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (27)
- CreateObject(1543,1484.00000000,-1681.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (28)
- CreateObject(1543,1484.19995117,-1681.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (29)
- CreateObject(1543,1484.59997559,-1681.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (30)
- CreateObject(1543,1484.40002441,-1682.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (31)
- CreateObject(1543,1484.19995117,-1682.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (32)
- CreateObject(1543,1482.30004883,-1682.40002441,13.00000000,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (33)
- CreateObject(1544,1483.90002441,-1681.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (38)
- CreateObject(1544,1483.69995117,-1681.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (39)
- CreateObject(1544,1483.80004883,-1681.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (40)
- CreateObject(1544,1484.00000000,-1681.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (41)
- CreateObject(1544,1483.80004883,-1681.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (42)
- CreateObject(1544,1484.00000000,-1682.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (43)
- CreateObject(1544,1484.40002441,-1681.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (44)
- CreateObject(1543,1472.50000000,-1682.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (34)
- CreateObject(1543,1472.69995117,-1682.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (35)
- CreateObject(1543,1472.59997559,-1683.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (36)
- CreateObject(1544,1472.40002441,-1683.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (45)
- CreateObject(1544,1472.30004883,-1683.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (46)
- CreateObject(1544,1472.50000000,-1683.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (47)
- CreateObject(1544,1472.90002441,-1683.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (48)
- CreateObject(1544,1473.09997559,-1682.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (49)
- CreateObject(1510,162.00000000,138.10000610,533.40002441,0.00000000,0.00000000,0.00000000); //object(dyn_ashtry) (1)
- CreateObject(1486,1476.09997559,-1683.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (11)
- CreateObject(1486,1476.19995117,-1683.09997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (12)
- CreateObject(1486,1476.69995117,-1683.19995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (13)
- CreateObject(1486,1476.69921875,-1683.19921875,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (14)
- CreateObject(1517,1476.00000000,-1683.59997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (5)
- CreateObject(1517,1476.30004883,-1683.50000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (10)
- CreateObject(1517,1476.40002441,-1683.19995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (11)
- CreateObject(1517,1476.80004883,-1683.50000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (12)
- CreateObject(1517,1476.59997559,-1683.80004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (13)
- CreateObject(1517,1476.19995117,-1683.69995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (14)
- CreateObject(1512,1476.50000000,-1683.50000000,13.80000019,0.00000000,0.00000000,21.76318359); //object(dyn_wine_03) (3)
- CreateObject(1520,1480.90002441,-1684.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (6)
- CreateObject(1544,1480.50000000,-1684.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (50)
- CreateObject(1544,1480.69995117,-1684.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (51)
- CreateObject(1544,1480.69995117,-1684.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (52)
- CreateObject(1544,1481.40002441,-1684.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (53)
- CreateObject(1544,1481.30004883,-1683.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (54)
- CreateObject(1544,1481.19995117,-1684.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (55)
- CreateObject(1544,1480.90002441,-1683.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (56)
- CreateObject(1544,1481.00000000,-1684.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (57)
- CreateObject(1544,1477.09997559,-1686.00000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (58)
- CreateObject(1543,1480.40002441,-1684.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (37)
- CreateObject(1543,1480.59997559,-1683.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (38)
- CreateObject(1543,1480.69995117,-1684.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (39)
- CreateObject(1543,1481.40002441,-1684.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (40)
- CreateObject(1543,1481.19995117,-1684.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (41)
- CreateObject(1543,1481.19995117,-1684.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (42)
- CreateObject(1543,1481.40002441,-1684.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (43)
- CreateObject(1543,1481.00000000,-1683.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (44)
- CreateObject(1543,1481.09997559,-1684.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (45)
- CreateObject(1543,1480.80004883,-1683.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (46)
- CreateObject(1543,1481.00000000,-1684.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (47)
- CreateObject(1543,1480.80004883,-1684.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (48)
- CreateObject(1543,1484.40002441,-1685.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (49)
- CreateObject(1543,1484.80004883,-1685.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (50)
- CreateObject(1543,1484.59997559,-1685.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (51)
- CreateObject(1543,1484.40002441,-1685.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (52)
- CreateObject(1544,1484.00000000,-1685.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (59)
- CreateObject(1544,1484.40002441,-1686.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (60)
- CreateObject(1544,1484.09997559,-1686.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (61)
- CreateObject(1544,1484.19995117,-1686.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (62)
- CreateObject(1544,1484.80004883,-1686.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (63)
- CreateObject(1544,1484.80004883,-1686.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (64)
- CreateObject(1544,1484.40002441,-1686.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (65)
- CreateObject(1544,1484.59997559,-1686.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (66)
- CreateObject(1544,1484.59997559,-1686.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (67)
- CreateObject(1544,1484.19995117,-1686.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (68)
- CreateObject(1544,1483.90002441,-1686.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (69)
- CreateObject(1544,1484.30004883,-1686.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (70)
- CreateObject(1544,1484.59997559,-1685.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (71)
- CreateObject(1544,1484.09997559,-1685.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (72)
- CreateObject(1544,1483.90002441,-1686.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (73)
- CreateObject(1664,1478.40002441,-1687.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (1)
- CreateObject(1664,1478.00000000,-1687.40002441,13.80000019,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (2)
- CreateObject(1664,1478.30004883,-1686.90002441,13.80000019,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (3)
- CreateObject(1664,1478.69995117,-1687.00000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (4)
- CreateObject(1664,1476.90002441,-1690.80004883,13.19999981,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (5)
- CreateObject(1517,1478.59997559,-1687.50000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (15)
- CreateObject(1517,1478.30004883,-1687.59997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (16)
- CreateObject(1517,1478.09997559,-1687.19995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (17)
- CreateObject(1517,1478.50000000,-1687.09997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (18)
- CreateObject(1517,1478.50000000,-1686.80004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (19)
- CreateObject(1517,1478.00000000,-1686.90002441,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (20)
- CreateObject(1517,1478.69995117,-1687.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (21)
- CreateObject(1512,1478.40002441,-1687.30004883,14.19999981,0.00000000,0.00000000,0.00000000); //object(dyn_wine_03) (4)
- CreateObject(1544,1478.50000000,-1687.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (75)
- CreateObject(1544,1478.30004883,-1687.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (76)
- CreateObject(1544,1478.09997559,-1687.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (77)
- CreateObject(1544,1477.90002441,-1687.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (78)
- CreateObject(1544,1477.80004883,-1687.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (79)
- CreateObject(1544,1477.90002441,-1687.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (80)
- CreateObject(1544,1478.30004883,-1686.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (81)
- CreateObject(1544,1478.09997559,-1686.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (82)
- CreateObject(1544,1478.80004883,-1687.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (83)
- CreateObject(1544,1478.80004883,-1687.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (84)
- CreateObject(1544,1478.50000000,-1687.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (85)
- CreateObject(1544,1478.59997559,-1687.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (86)
- CreateObject(1544,1478.69995117,-1686.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (87)
- CreateObject(638,1536.09997559,-1663.40002441,13.19999981,0.00000000,0.00000000,270.22546387); //object(kb_planter_bush) (1)
- CreateObject(638,1538.00000000,-1665.59997559,13.19999981,0.00000000,0.00000000,179.09118652); //object(kb_planter_bush) (2)
- CreateObject(1361,1538.09997559,-1663.59997559,13.30000019,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop2) (5)
- CreateObject(1361,1538.19995117,-1667.90002441,13.30000019,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop2) (6)
- CreateObject(638,1538.00000000,-1670.00000000,13.19999981,0.00000000,0.00000000,180.44836426); //object(kb_planter_bush) (3)
- CreateObject(1361,1538.19995117,-1672.30004883,13.30000019,0.00000000,0.00000000,0.89538574); //object(cj_bush_prop2) (7)
- CreateObject(638,1538.00000000,-1674.59997559,13.19999981,0.00000000,0.00000000,179.98010254); //object(kb_planter_bush) (4)
- CreateObject(1361,1538.19995117,-1676.90002441,13.19999981,0.00000000,0.00000000,1.79077148); //object(cj_bush_prop2) (8)
- CreateObject(638,1538.00000000,-1679.00000000,13.19999981,0.00000000,0.00000000,179.97802734); //object(kb_planter_bush) (5)
- CreateObject(1361,1538.09997559,-1681.40002441,13.19999981,0.00000000,0.00000000,1.79077148); //object(cj_bush_prop2) (9)
- CreateObject(638,1536.00000000,-1682.00000000,13.19999981,0.00000000,0.00000000,88.84454346); //object(kb_planter_bush) (6)
- CreateObject(1232,1489.00000000,-1678.09997559,12.39999962,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (1)
- CreateObject(1232,1490.50000000,-1677.30004883,12.39999962,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (2)
- CreateObject(1232,1489.00000000,-1674.69995117,12.39999962,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (3)
- CreateObject(1232,1487.69995117,-1675.50000000,12.39999962,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (4)
- //Logan Mapping - End
- // ===========================================
- for(new v=0; v<MAX_VEHICLES; v++){
- LuX_ReadPosition(v);}
- for(new i=0; i<PLAYERS; i++){
- //---------------------------------------------------------->
- #if TextBox
- LBox[i] = TextDrawCreate(612.000000,338.000000,"C");
- TextDrawUseBox(LBox[i],1);
- TextDrawBoxColor(LBox[i],0x00000033);
- TextDrawTextSize(LBox[i],454.000000,9.000000);
- TextDrawAlignment(LBox[i],0);
- TextDrawBackgroundColor(LBox[i],0x000000ff);
- TextDrawFont(LBox[i],3);
- TextDrawLetterSize(LBox[i],-0.000000,8.700001);
- TextDrawColor(LBox[i],BoxColor);
- TextDrawSetOutline(LBox[i],1);
- TextDrawSetProportional(LBox[i],1);
- TextDrawSetShadow(LBox[i],1);
- #endif
- //---------------------------------------------------------->
- #if TextTopLines
- LLine1[i] = TextDrawCreate(609.000000,341.000000,"L");
- TextDrawUseBox(LLine1[i],1);
- TextDrawBoxColor(LLine1[i],0xffffff33);
- TextDrawTextSize(LLine1[i],457.000000,-1.000000);
- TextDrawAlignment(LLine1[i],0);
- TextDrawBackgroundColor(LLine1[i],0x000000ff);
- TextDrawFont(LLine1[i],3);
- TextDrawLetterSize(LLine1[i],-0.000000,-0.400000);
- TextDrawColor(LLine1[i],TopLinesColor);
- TextDrawSetOutline(LLine1[i],1);
- TextDrawSetProportional(LLine1[i],1);
- TextDrawSetShadow(LLine1[i],1);
- //---------------------------------------------------------->
- LLine2[i] = TextDrawCreate(609.000000,416.000000,"L");
- TextDrawUseBox(LLine2[i],1);
- TextDrawBoxColor(LLine2[i],0xffffff33);
- TextDrawTextSize(LLine2[i],457.000000,-9.000000);
- TextDrawBackgroundColor(LLine2[i],0x000000ff);
- TextDrawFont(LLine2[i],3);
- TextDrawLetterSize(LLine2[i],-0.000000,-0.400000);
- TextDrawColor(LLine2[i],TopLinesColor);
- TextDrawSetOutline(LLine2[i],1);
- TextDrawSetProportional(LLine2[i],1);
- TextDrawSetShadow(LLine2[i],1);
- #endif
- //---------------------------------------------------------->
- #if LogoName
- LCredits[i] = TextDrawCreate(487.000000,320.000000,SpeedoLogoText);
- TextDrawAlignment(LCredits[i],0);
- TextDrawBackgroundColor(LCredits[i],0x000000ff);
- TextDrawFont(LCredits[i],0);
- TextDrawLetterSize(LCredits[i],0.399999,1.400000);
- TextDrawColor(LCredits[i],LogoColor);
- TextDrawSetOutline(LCredits[i],1);
- TextDrawSetProportional(LCredits[i],1);
- TextDrawSetShadow(LCredits[i],1);
- #endif
- //---------------------------------------------------------->
- #if TextSideLines
- LLine3[i] = TextDrawCreate(466.000000,343.000000,"T");
- TextDrawUseBox(LLine3[i],1);
- TextDrawBoxColor(LLine3[i],0xffffff33);
- TextDrawTextSize(LLine3[i],457.000000,0.000000);
- TextDrawAlignment(LLine3[i],0);
- TextDrawBackgroundColor(LLine3[i],0x000000ff);
- TextDrawFont(LLine3[i],3);
- TextDrawLetterSize(LLine3[i],-0.000000,7.499998);
- TextDrawColor(LLine3[i],SideLinesColor);
- TextDrawSetOutline(LLine3[i],1);
- TextDrawSetProportional(LLine3[i],1);
- TextDrawSetShadow(LLine3[i],1);
- //---------------------------------------------------------->
- LLine4[i] = TextDrawCreate(607.000000,343.000000,"T");
- TextDrawUseBox(LLine4[i],1);
- TextDrawBoxColor(LLine4[i],0xffffff33);
- TextDrawTextSize(LLine4[i],603.000000,-6.000000);
- TextDrawAlignment(LLine4[i],0);
- TextDrawBackgroundColor(LLine4[i],0x000000ff);
- TextDrawFont(LLine4[i],3);
- TextDrawLetterSize(LLine4[i],-0.000000,7.499999);
- TextDrawColor(LLine4[i],SideLinesColor);
- TextDrawSetOutline(LLine4[i],1);
- TextDrawSetProportional(LLine4[i],1);
- TextDrawSetShadow(LLine4[i],1);
- #endif
- //---------------------------------------------------------->
- format(lstring, sizeof(lstring), "Inicializing...");
- LFunc[i] = TextDrawCreate(466.000000,343.000000,lstring);
- TextDrawAlignment(LFunc[i],0);
- TextDrawBackgroundColor(LFunc[i],0x000000ff);
- TextDrawFont(LFunc[i],1);
- TextDrawLetterSize(LFunc[i],0.299999,1.200000);
- TextDrawColor(LFunc[i],0xffffffff);
- TextDrawSetOutline(LFunc[i],1);
- TextDrawSetProportional(LFunc[i],1);
- TextDrawSetShadow(LFunc[i],1);
- //---------------------------------------------------------->
- format(lstr, sizeof(lstr), "Inicializing...");
- Lmph[i] = TextDrawCreate(466.000000,400.000000,lstr);
- TextDrawAlignment(Lmph[i],0);
- TextDrawBackgroundColor(Lmph[i],0x000000ff);
- TextDrawFont(Lmph[i],1);
- TextDrawLetterSize(Lmph[i],0.299999,1.000000);
- TextDrawColor(Lmph[i],0xffffffff);
- TextDrawSetOutline(Lmph[i],1);
- TextDrawSetProportional(Lmph[i],1);
- TextDrawSetShadow(Lmph[i],1);
- }
- //
- CreateDynamicObject(11387, 2291.3000488281, -2350.1999511719, 15.699999809265, 0, 0, 45.75);
- CreateDynamicObject(11389, 2273.1999511719, -2345.6000976563, 15.5, 0, 0, 44.75);
- CreateDynamicObject(11388, 2273.1000976563, -2345.6000976563, 19.10000038147, 0, 0, 44.75);
- CreateDynamicObject(8324, 2262.6999511719, -2334.6999511719, 13.800000190735, 0, 0, 45);
- CreateDynamicObject(8324, 2262, -2335.3999023438, 13.800000190735, 0, 0, 44.994506835938);
- CreateDynamicObject(10575, 2277.3000488281, -2336.6000976563, 14.5, 0, 0, 226.75);
- CreateDynamicObject(10575, 2281.3000488281, -2360.1999511719, 14.89999961853, 0, 0, 135.24682617188);
- CreateDynamicObject(10575, 2281.3000488281, -2360.1999511719, 10.89999961853, 0, 0, 135.24169921875);
- CreateDynamicObject(3594, 2276, -2357.8000488281, 13.199999809265, 0, 0, 46.5);
- CreateDynamicObject(1327, 2281, -2341.8000488281, 13.300000190735, 0, 0, 223.99996948242);
- CreateDynamicObject(1348, 2271.6000976563, -2355.3999023438, 13.199999809265, 0, 0, 134.25006103516);
- CreateDynamicObject(1348, 2270.3994140625, -2354.099609375, 13.199999809265, 0, 0, 134.24743652344);
- CreateDynamicObject(2567, 2281.1999511719, -2341.8000488281, 14.5, 0, 0, 313.99996948242);
- CreateDynamicObject(14878, 2273.6999511719, -2344.6000976563, 13, 0, 0, 46);
- CreateDynamicObject(14879, 2269.6999511719, -2349.8999023438, 12.800000190735, 0, 0, 224.24993896484);
- CreateDynamicObject(2309, 2284.8999023438, -2353.3000488281, 12.5, 0, 0, 226.5);
- CreateDynamicObject(2605, 2285.8000488281, -2354.1999511719, 12.89999961853, 0, 0, 227);
- CreateDynamicObject(10281, 2263.3000488281, -2346.8999023438, 16.10000038147, 0, 346, 136.25006103516);
- CreateDynamicObject(14532, 2285.3000488281, -2346.6000976563, 13.5, 0, 0, 110.75003051758);
- CreateDynamicObject(1768, 2280.1999511719, -2347.8000488281, 12.5, 0, 0, 46.5);
- CreateDynamicObject(1980, 2281, -2346, 14.199999809265, 0, 0, 315);
- CreateDynamicObject(1980, 2282.3999023438, -2353.1999511719, 14.199999809265, 0, 0, 45.244506835938);
- CreateDynamicObject(1492, 2278.8000488281, -2349.5, 12.5, 0, 0, 313.25);
- CreateDynamicObject(10282, 2263.3000488281, -2342.1999511719, 13.60000038147, 0, 0, 44.5);
- CreateDynamicObject(3813, 2288.1999511719, -2352, 14.39999961853, 0, 0, 132);
- CreateDynamicObject(2161, 2287.8000488281, -2352, 12.5, 0, 0, 44.500030517578);
- CreateDynamicObject(1575, 2263.1000976563, -2346.8999023438, 12.699999809265, 0, 95.250091552734, 44);
- CreateDynamicObject(1575, 2262.8999023438, -2347.1999511719, 12.800000190735, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2262.8999023438, -2347.1999511719, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2263.1000976563, -2346.8999023438, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2263.1000976563, -2346.8999023438, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2263.3000488281, -2347.1000976563, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2263.3999023438, -2347.1999511719, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2263.6000976563, -2347.3999023438, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2263.8000488281, -2347.6000976563, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2264, -2347.8000488281, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2264.1999511719, -2348, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2264.3000488281, -2348.1000976563, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2264.1999511719, -2348.3000488281, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2264.1000976563, -2348.3999023438, 13.199999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2264.3000488281, -2348.1000976563, 12.699999809265, 0, 95.245971679688, 43.994750976563);
- CreateDynamicObject(1575, 2261.1000976563, -2344.6999511719, 12.699999809265, 0, 90, 2.2499694824219);
- CreateDynamicObject(1575, 2261.1000976563, -2344.8000488281, 12.699999809265, 0, 90, 2.2467041015625);
- CreateDynamicObject(1575, 2261.1000976563, -2344.6999511719, 12.699999809265, 0, 90, 88.246215820313);
- CreateDynamicObject(1575, 2261.1000976563, -2344.6999511719, 13.10000038147, 0, 90, 88.2421875);
- CreateDynamicObject(1575, 2261.1000976563, -2344.6999511719, 13.5, 0, 90, 88.2421875);
- CreateDynamicObject(1575, 2261.1999511719, -2344.6000976563, 13.39999961853, 0, 90, 76.241943359375);
- CreateDynamicObject(1575, 2261, -2344.6000976563, 13.300000190735, 0, 268, 346);
- CreateDynamicObject(1327, 2275.3000488281, -2346.3000488281, 12.5, 0, 88, 0);
- CreateDynamicObject(1579, 2275.8999023438, -2346.1000976563, 12.699999809265, 0, 101.99996948242, 26);
- CreateDynamicObject(1579, 2275.8999023438, -2346.3999023438, 12.89999961853, 0, 101.9970703125, 339.99914550781);
- CreateDynamicObject(1579, 2275.8000488281, -2346.6999511719, 12.89999961853, 0, 101.99710083008, 331.99389648438);
- CreateDynamicObject(1579, 2275.5, -2346.8999023438, 12.89999961853, 0, 101.9970703125, 293.9912109375);
- CreateDynamicObject(1579, 2275.1999511719, -2346.8999023438, 12.800000190735, 0, 101.9970703125, 259.98870849609);
- CreateDynamicObject(1579, 2274.8999023438, -2346.6999511719, 12.800000190735, 0, 101.9970703125, 231.98596191406);
- CreateDynamicObject(1579, 2274.6999511719, -2346.3999023438, 12.800000190735, 0, 101.9970703125, 201.98175048828);
- CreateDynamicObject(1579, 2274.6000976563, -2346.1999511719, 12.800000190735, 0, 101.9970703125, 163.97814941406);
- CreateDynamicObject(1579, 2274.6999511719, -2346, 12.800000190735, 0, 101.9970703125, 155.97644042969);
- CreateDynamicObject(1579, 2274.8000488281, -2345.8000488281, 12.800000190735, 0, 101.9970703125, 155.97290039063);
- CreateDynamicObject(1579, 2274.8999023438, -2345.8000488281, 12.800000190735, 0, 101.9970703125, 115.9729309082);
- CreateDynamicObject(1579, 2275.1000976563, -2345.6999511719, 12.800000190735, 0, 101.9970703125, 111.9716796875);
- CreateDynamicObject(1579, 2275.3000488281, -2345.6000976563, 12.800000190735, 0, 101.9970703125, 111.96716308594);
- CreateDynamicObject(1579, 2275.3999023438, -2345.6999511719, 12.89999961853, 0, 101.9970703125, 73.967193603516);
- CreateDynamicObject(1579, 2275.6999511719, -2345.8000488281, 12.89999961853, 0, 101.9970703125, 73.965454101563);
- CreateDynamicObject(1579, 2275.8000488281, -2345.8999023438, 12.89999961853, 0, 101.9970703125, 35.965423583984);
- CreateDynamicObject(1579, 2275.8999023438, -2346.1000976563, 12.89999961853, 0, 101.9970703125, 17.963745117188);
- CreateDynamicObject(1579, 2275.8999023438, -2346.3000488281, 12.89999961853, 0, 101.9970703125, 17.962646484375);
- CreateDynamicObject(1579, 2275.3999023438, -2345.8999023438, 12.89999961853, 0, 0, 0);
- CreateDynamicObject(1579, 2275.1999511719, -2346.3000488281, 12.89999961853, 0, 0, 0);
- CreateDynamicObject(1579, 2275.6999511719, -2346.6000976563, 12.89999961853, 0, 0, 0);
- CreateDynamicObject(1579, 2275.1000976563, -2346.6999511719, 12.89999961853, 0, 0, 0);
- CreateDynamicObject(1579, 2275, -2346, 12.89999961853, 0, 0, 0);
- CreateDynamicObject(1579, 2268.6000976563, -2342.6000976563, 13.199999809265, 0, 0, 225.99996948242);
- CreateDynamicObject(1579, 2268.6999511719, -2342.6999511719, 13.199999809265, 0, 0, 225.99975585938);
- CreateDynamicObject(1579, 2268, -2342.1999511719, 13.199999809265, 0, 0, 203.99975585938);
- CreateDynamicObject(1579, 2267.8999023438, -2342.1000976563, 13.199999809265, 0, 0, 203.99963378906);
- CreateDynamicObject(1579, 2267.6999511719, -2342.1999511719, 13.199999809265, 359.44509887695, 262.01913452148, 207.96098327637);
- CreateDynamicObject(1579, 2268, -2342.1000976563, 13.199999809265, 359.43969726563, 262.01843261719, 207.96020507813);
- CreateDynamicObject(1579, 2268.6999511719, -2342.5, 13.199999809265, 359.43969726563, 262.01843261719, 227.21018981934);
- CreateDynamicObject(1579, 2268.5, -2342.8000488281, 13.199999809265, 359.43969726563, 262.01293945313, 227.20825195313);
- CreateDynamicObject(1577, 2258.8999023438, -2339.8000488281, 13.199999809265, 0, 0, 44);
- CreateDynamicObject(1577, 2259.1999511719, -2339.3999023438, 13.199999809265, 0, 0, 43.994750976563);
- CreateDynamicObject(1577, 2259.6999511719, -2339.1000976563, 13.199999809265, 0, 0, 43.994750976563);
- CreateDynamicObject(1577, 2260, -2338.8000488281, 13.199999809265, 0, 0, 43.994750976563);
- CreateDynamicObject(1577, 2259.8000488281, -2338.6000976563, 13.199999809265, 0, 0, 43.994750976563);
- CreateDynamicObject(1577, 2258.6999511719, -2339.8000488281, 13.199999809265, 0, 0, 43.994750976563);
- CreateDynamicObject(1577, 2261.3999023438, -2337.3999023438, 13.89999961853, 0, 0, 131.99475097656);
- CreateDynamicObject(1577, 2261.3000488281, -2337.5, 13.89999961853, 0, 0, 131.98974609375);
- CreateDynamicObject(1577, 2261.3000488281, -2337.5, 13.10000038147, 0, 0, 131.98974609375);
- CreateDynamicObject(1577, 2261.3999023438, -2337.3999023438, 13.10000038147, 0, 0, 131.98977661133);
- CreateDynamicObject(1577, 2259.6999511719, -2339, 13.199999809265, 0, 0, 225.98547363281);
- CreateDynamicObject(1577, 2260, -2338.6999511719, 13.199999809265, 0, 0, 225.98327636719);
- CreateDynamicObject(1577, 2259.1000976563, -2339.5, 13.199999809265, 0, 0, 225.98327636719);
- CreateDynamicObject(1577, 2258.8000488281, -2339.8999023438, 13.199999809265, 0, 0, 225.98327636719);
- CreateDynamicObject(1327, 2263, -2337.3000488281, 13.199999809265, 0, 274, 0);
- CreateDynamicObject(1327, 2263, -2337.3000488281, 13.60000038147, 0, 273.9990234375, 0);
- CreateDynamicObject(1429, 2267.8999023438, -2352.1000976563, 12.89999961853, 0, 0, 133.99996948242);
- CreateDynamicObject(14461, 2264, -2336.6000976563, 15, 0, 0, 134.24993896484);
- CreateDynamicObject(1828, 2284.1999511719, -2349.6000976563, 12.60000038147, 0, 0, 316);
- CreateDynamicObject(1808, 2282.6000976563, -2345.6999511719, 12.5, 0, 0, 0);
- CreateDynamicObject(2833, 2283.3999023438, -2349.5, 12.60000038147, 0, 0, 316.25);
- CreateDynamicObject(1686, 2296.3000488281, -2338.1999511719, 12.5, 0, 0, 44.75);
- CreateDynamicObject(1686, 2294.8999023438, -2336.8000488281, 12.5, 0, 0, 44.747314453125);
- CreateDynamicObject(17951, 2281.3999023438, -2349.8999023438, 15.800000190735, 0, 90.250213623047, 43.750030517578);
- CreateDynamicObject(17951, 2284.3999023438, -2347, 15.800000190735, 0, 90.997009277344, 43.74755859375);
- CreateDynamicObject(17951, 2287.3999023438, -2349.8000488281, 15.800000190735, 0, 89.749755859375, 43.742065429688);
- CreateDynamicObject(17951, 2284.3999023438, -2352.6000976563, 15.800000190735, 0, 89.747314453125, 43.736572265625);
- // Hal
- // Pershing Square
- //LSPD District 2
- CreateDynamicObject(987, 581.50, -1244.40, 16.60, 0.00, 0.00, 203.75);
- CreateDynamicObject(987, 573.60, -1247.80, 16.60, 0.00, 0.00, 205.50);
- CreateDynamicObject(987, 562.90, -1252.80, 16.40, 0.00, 0.00, 282.50);
- CreateDynamicObject(987, 565.50, -1264.50, 16.40, 0.00, 0.00, 282.25);
- CreateDynamicObject(987, 568.00, -1276.00, 16.40, 0.00, 0.00, 282.24);
- CreateDynamicObject(987, 570.50, -1287.50, 16.40, 0.00, 0.00, 282.49);
- CreateDynamicObject(987, 573.10, -1298.80, 16.40, 0.00, 0.00, 282.24);
- CreateDynamicObject(987, 574.00, -1302.90, 16.40, 0.00, 0.00, 282.24);
- CreateDynamicObject(987, 576.50, -1314.50, 12.40, 0.00, 0.00, 7.50);
- CreateDynamicObject(987, 588.40, -1313.00, 12.40, 0.00, 0.00, 7.50);
- CreateDynamicObject(987, 599.90, -1311.50, 12.40, 0.00, 0.00, 7.00);
- CreateDynamicObject(987, 605.90, -1310.70, 12.40, 0.00, 0.00, 6.49);
- CreateDynamicObject(987, 618.20, -1291.50, 14.60, 0.00, 356.25, 91.24);
- CreateDynamicObject(987, 617.90, -1279.70, 15.40, 0.00, 357.50, 95.24);
- CreateDynamicObject(987, 616.80, -1267.80, 15.90, 0.00, 357.50, 95.23);
- CreateDynamicObject(987, 615.70, -1255.90, 16.40, 0.00, 358.00, 96.23);
- CreateDynamicObject(987, 614.40, -1244.10, 16.80, 0.00, 358.74, 97.23);
- CreateDynamicObject(987, 612.80, -1231.80, 16.80, 0.00, 358.74, 201.23);
- CreateDynamicObject(987, 601.90, -1236.00, 17.00, 0.00, 358.74, 289.73);
- CreateDynamicObject(987, 605.90, -1247.20, 17.20, 0.00, 358.74, 289.73);
- CreateDynamicObject(987, 584.40, -1256.10, 16.60, 0.00, 0.00, 104.25);
- CreateDynamicObject(987, 587.10, -1267.70, 16.60, 0.00, 0.00, 103.24);
- CreateDynamicObject(966, 617.70, -1298.70, 14.20, 0.00, 3.50, 268.00);
- CreateDynamicObject(3550, 618.00, -1302.10, 14.00, 2.25, 0.00, 0.25);
- CreateDynamicObject(3550, 618.00, -1306.40, 13.80, 2.24, 0.00, 358.75);
- CreateDynamicObject(1364, 601.98, -1238.95, 17.90, 0.00, 0.00, 289.42);
- CreateDynamicObject(1361, 599.50, -1244.70, 17.90, 0.00, 0.00, 0.00);
- CreateDynamicObject(1361, 594.90, -1246.50, 17.80, 0.00, 0.00, 0.00);
- CreateDynamicObject(1361, 590.30, -1248.40, 17.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(1364, 583.10, -1247.10, 17.60, 359.75, 2.50, 104.51);
- CreateDynamicObject(3802, 599.50, -1244.60, 21.00, 0.00, 0.00, 110.00);
- CreateDynamicObject(3802, 595.00, -1246.40, 21.00, 0.00, 0.00, 110.00);
- CreateDynamicObject(3802, 590.20, -1248.30, 21.00, 0.00, 0.00, 110.00);
- CreateDynamicObject(3802, 585.60, -1250.10, 21.00, 0.00, 0.00, 110.00);
- CreateDynamicObject(1361, 585.60, -1250.20, 17.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(1536, 592.90, -1283.50, 15.10, 0.00, 0.00, 10.00);
- CreateDynamicObject(1536, 595.86, -1282.94, 15.10, 0.00, 0.00, 190.00);
- CreateDynamicObject(16003, 584.00, -1269.20, 64.90, 0.00, 0.00, 13.00);
- PDGate = CreateDynamicObject(968, 617.70, -1298.70, 15.00, 0.00, 273.25, 267.99);
- // All Saints bar
- CreateDynamicObject(1502, 1222.9895019531, -1415.9877929688, 12.376014709473, 0, 0, 179.99450683594);
- CreateDynamicObject(16151, 1226.28515625, -1427.814453125, 12.371032714844, 0, 0, 270);
- CreateDynamicObject(1724, 1215.2014160156, -1420.0157470703, 12.304824829102, 0, 0, 0);
- CreateDynamicObject(1723, 1207.7315673828, -1427.5418701172, 12.3828125, 0, 0, 90);
- CreateDynamicObject(1825, 1229.0804443359, -1423.2166748047, 12.297901153564, 0, 0, 0);
- CreateDynamicObject(1827, 1215.63671875, -1421.7490234375, 12.325653076172, 0, 0, 0);
- CreateDynamicObject(3440, 1232.2191162109, -1418.9096679688, 14.764610290527, 0, 0, 0);
- CreateDynamicObject(14629, 1227.3908691406, -1424.4250488281, 18.629999160767, 0, 0, 0);
- CreateDynamicObject(3858, 1214.2005615234, -1416.0495605469, 15.294497489929, 0, 0, 45);
- CreateDynamicObject(14397, 1227.5140380859, -1415.6895751953, 12.01563835144, 0, 90, 0);
- CreateDynamicObject(3859, 1225.5766601563, -1415.9926757813, 15.28719997406, 0, 0, 287);
- CreateDynamicObject(3859, 1230.7833251953, -1415.9899902344, 15.284838676453, 0, 0, 287);
- CreateDynamicObject(14397, 1214.8330078125, -1415.5261230469, 12.01563835144, 0, 90, 0);
- CreateDynamicObject(14397, 1220.5830078125, -1415.6068115234, 12.01563835144, 0, 90, 0);
- CreateDynamicObject(14397, 1222.3330078125, -1415.6312255859, 12.01563835144, 0, 90, 0);
- CreateDynamicObject(14397, 1208.3330078125, -1415.4326171875, 12.01563835144, 0, 90, 0);
- CreateDynamicObject(3859, 1225.576171875, -1415.9921875, 21.10000038147, 0, 0, 286.99584960938);
- CreateDynamicObject(3858, 1220.0795898438, -1417.46875, 21.442935943604, 0, 0, 44.989013671875);
- CreateDynamicObject(3859, 1230.783203125, -1415.9892578125, 21.10000038147, 0, 0, 286.99584960938);
- CreateDynamicObject(14397, 1221.5, -1415.6090087891, 16.430000305176, 0, 90, 0);
- CreateDynamicObject(14397, 1221.9340820313, -1415.5999755859, 16.430000305176, 0, 90, 0);
- CreateDynamicObject(14397, 1221.0400390625, -1415.6090087891, 16.430000305176, 0, 90, 0);
- CreateDynamicObject(14397, 1221.5207519531, -1415.5100097656, 17.799999237061, 0, 0, 0);
- CreateDynamicObject(14397, 1232.3151855469, -1415.5113525391, 17.799999237061, 0, 0, 0);
- CreateDynamicObject(14397, 1233.2972412109, -1429.5881347656, 5, 0, 90, 90);
- CreateDynamicObject(14397, 1233.3499755859, -1419.2384033203, 14, 0, 90, 90);
- CreateDynamicObject(14397, 1233.4545898438, -1417.283203125, 17.799999237061, 0, 0, 90);
- CreateDynamicObject(3858, 1233.5364990234, -1423.7855224609, 15.374813079834, 0, 0, 315);
- CreateDynamicObject(3858, 1206.2994384766, -1424.4903564453, 15.374813079834, 0, 0, 315);
- CreateDynamicObject(14397, 1205.9848632813, -1419.1925048828, 14, 0, 90, 90);
- CreateDynamicObject(14397, 1205.9599609375, -1429.599609375, 14, 0, 90, 90);
- CreateDynamicObject(14397, 1205.7685546875, -1417.2109375, 17.799999237061, 0, 0, 90);
- CreateDynamicObject(1825, 1226.6275634766, -1420.2932128906, 12.297901153564, 0, 0, 0);
- CreateDynamicObject(1825, 1223.86328125, -1423.8519287109, 12.297901153564, 0, 0, 0);
- CreateDynamicObject(1825, 1221.7266845703, -1420.6815185547, 12.297901153564, 0, 0, 0);
- CreateDynamicObject(1825, 1230.0384521484, -1418.3459472656, 12.297901153564, 0, 0, 0);
- CreateDynamicObject(1825, 1231.4371337891, -1421.3729248047, 12.297901153564, 0, 0, 0);
- CreateDynamicObject(1825, 1231.7150878906, -1426.2174072266, 12.297901153564, 0, 0, 0);
- CreateDynamicObject(1723, 1207.6622314453, -1422.2393798828, 12.3828125, 0, 0, 90);
- CreateDynamicObject(1723, 1211.689453125, -1425.6921386719, 12.3828125, 0, 0, 270);
- CreateDynamicObject(1723, 1211.4703369141, -1420.3658447266, 12.3828125, 0, 0, 269.99499511719);
- CreateDynamicObject(11665, 1215.6895751953, -1427.2291259766, 13.081476211548, 0, 0, 272);
- CreateDynamicObject(1670, 1209.4990234375, -1426.5637207031, 12.89999961853, 0, 0, 0);
- CreateDynamicObject(1827, 1209.501953125, -1426.4213867188, 12.3828125, 0, 0, 0);
- CreateDynamicObject(1827, 1209.4986572266, -1421.1644287109, 12.3828125, 0, 0, 0);
- CreateDynamicObject(1670, 1209.4846191406, -1421.30859375, 12.89999961853, 0, 0, 284);
- CreateDynamicObject(1724, 1217.4230957031, -1421.3585205078, 12.295643806458, 0, 0, 270);
- CreateDynamicObject(1724, 1216.2097167969, -1423.515625, 12.265958786011, 0, 0, 180);
- CreateDynamicObject(1724, 1213.9855957031, -1422.2211914063, 12.355082511902, 0, 0, 88);
- CreateDynamicObject(1792, 1215.7409667969, -1428.859375, 14.621500968933, 0, 0, 178);
- CreateDynamicObject(1840, 1223.3580322266, -1427.1104736328, 12.989999771118, 0, 0, 310);
- CreateDynamicObject(2232, 1231.4168701172, -1417.8653564453, 15.48836517334, 0, 0, 316);
- CreateDynamicObject(2232, 1208.2590332031, -1417.8641357422, 15.48836517334, 0, 0, 43.999755859375);
- CreateDynamicObject(1665, 1225.6331787109, -1426.8186035156, 12.986904144287, 0, 0, 0);
- CreateDynamicObject(1667, 1227.1158447266, -1427.0565185547, 13.065030097961, 0, 0, 0);
- CreateDynamicObject(2267, 1224.4403076172, -1428.6094970703, 14.199407577515, 0, 0, 180);
- CreateDynamicObject(17578, 1220.1237792969, -1413.8411865234, 27, 0, 0, 180);
- CreateDynamicObject(2714, 1222.2683105469, -1415.7314453125, 16, 0, 0, 180);
- CreateDynamicObject(7313, 1217.0250244141, -1428.859375, 18.442754745483, 0, 0, 179.99450683594);
- CreateDynamicObject(2721, 1223.5999755859, -1428.8000488281, 16.730194091797, 0, 0, 180);
- CreateDynamicObject(2270, 1218.2451171875, -1427.6162109375, 16, 0, 0, 179.99450683594);
- CreateDynamicObject(14397, 1221.6552734375, -1421.228515625, 19.375, 0, 0, 0);
- CreateDynamicObject(14397, 1221.6687011719, -1429.7048339844, 14, 0, 90, 90);
- CreateDynamicObject(14397, 1229.66796875, -1429.7431640625, 14, 0, 90, 90);
- CreateDynamicObject(14397, 1228.91796875, -1429.7395019531, 14, 0, 90, 90);
- CreateDynamicObject(14397, 1222.41796875, -1429.7075195313, 14, 0, 90, 90);
- CreateDynamicObject(2281, 1226.7801513672, -1428.3000488281, 15.800835609436, 0, 0, 180);
- CreateDynamicObject(2278, 1225.0533447266, -1428.3000488281, 17.133899688721, 0, 0, 180);
- CreateDynamicObject(2271, 1227.7872314453, -1428.3000488281, 17.168983459473, 0, 0, 180);
- CreateDynamicObject(3810, 1206.8074951172, -1428.0762939453, 15.453796386719, 0, 0, 80);
- CreateDynamicObject(3439, 1232.5440673828, -1414.9340820313, 16.456523895264, 0, 0, 0);
- CreateDynamicObject(3439, 1207.3737792969, -1415.1103515625, 16.456523895264, 0, 0, 0);
- CreateDynamicObject(2811, 1222.4786376953, -1426.9113769531, 12.381060600281, 0, 0, 0);
- CreateDynamicObject(2811, 1217.6743164063, -1428.4721679688, 12.3828125, 0, 0, 0);
- CreateDynamicObject(2811, 1211.388671875, -1419.5634765625, 12.349069595337, 0, 0, 0);
- CreateDynamicObject(2811, 1229.431640625, -1416.4028320313, 12.358480453491, 0, 0, 0);
- CreateDynamicObject(2250, 1215.578125, -1421.6806640625, 13, 0, 0, 0);
- CreateDynamicObject(2010, 1209.6468505859, -1428.3439941406, 12.39999961853, 0, 0, 0);
- CreateDynamicObject(2010, 1224.2524414063, -1416.6827392578, 12.300000190735, 0, 0, 0);
- CreateDynamicObject(2010, 1206.7353515625, -1423.04296875, 12.39999961853, 0, 0, 0);
- CreateDynamicObject(640, 1218.4859619141, -1415.8505859375, 13.075596809387, 0, 0, 90);
- CreateDynamicObject(640, 1212.2172851563, -1415.9603271484, 13.075596809387, 0, 0, 90);
- CreateDynamicObject(640, 1225.5750732422, -1416.0456542969, 13.075596809387, 0, 0, 90);
- CreateDynamicObject(640, 1233.4842529297, -1421.1258544922, 13.075596809387, 0, 0, 0);
- CreateDynamicObject(640, 1233.4978027344, -1426.3798828125, 13.075596809387, 0, 0, 0);
- CreateDynamicObject(640, 1206.2918701172, -1421.2608642578, 13.075596809387, 0, 0, 0);
- CreateDynamicObject(640, 1206.3000488281, -1426.5535888672, 13.075596809387, 0, 0, 0);
- CreateDynamicObject(673, 1236.5145263672, -1411.4604492188, 12.209051132202, 0, 0, 32);
- CreateDynamicObject(673, 1227.5085449219, -1411.39453125, 12.209051132202, 0, 0, 31.997680664063);
- CreateDynamicObject(673, 1219.2579345703, -1411.3740234375, 12.209051132202, 0, 0, 31.997680664063);
- CreateDynamicObject(673, 1211.2578125, -1411.4365234375, 12.209051132202, 0, 0, 31.997680664063);
- CreateDynamicObject(673, 1203.021484375, -1413.2509765625, 12.209051132202, 0, 0, 31.997680664063);
- CreateDynamicObject(673, 1244.3070068359, -1411.1755371094, 12.209051132202, 0, 0, 31.997680664063);
- // Verona Beach bar
- CreateDynamicObject(16012,541.14746094,-1904.86914062,1.78193498,0.00000000,0.00000000,355.99548340); //
- CreateDynamicObject(14409,556.39691162,-1906.96704102,-0.65431607,0.00000000,0.00000000,356.00000000); //
- CreateDynamicObject(14409,523.75421143,-1903.65051270,-0.63839805,0.00000000,0.00000000,356.00000000); //
- CreateDynamicObject(974,525.91955566,-1904.45361328,2.67437792,0.00000000,0.00000000,268.74755859); //
- CreateDynamicObject(974,526.13720703,-1898.09838867,2.42701626,0.00000000,0.00000000,270.24719238); //
- CreateDynamicObject(974,551.26684570,-1906.25305176,2.50532484,0.00000000,0.00000000,262.25000000); //
- CreateDynamicObject(974,551.58996582,-1904.98498535,2.92326736,0.00000000,0.00000000,266.00000000); //
- CreateDynamicObject(974,548.49468994,-1901.67773438,-0.06988177,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(974,550.52984619,-1901.01733398,2.83211708,0.00000000,0.00000000,265.75000000); //
- CreateDynamicObject(3461,558.38122559,-1922.79516602,4.10694647,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,519.58465576,-1914.64160156,4.10694647,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,554.05627441,-1906.78112793,1.96467185,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,558.52990723,-1907.05163574,1.96047878,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,521.65313721,-1902.19995117,1.59610581,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,525.68994141,-1902.36474609,1.80679893,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,526.72961426,-1917.03918457,4.10694647,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,548.15570068,-1922.15917969,4.10694647,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3524,537.16137695,-1919.56738281,6.41727543,0.00000000,0.00000000,342.00000000); //
- CreateDynamicObject(3877,555.59832764,-1921.87731934,0.00000000,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3877,546.83947754,-1919.40832520,0.00000000,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3877,538.92614746,-1917.45983887,0.05050659,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3877,530.29064941,-1915.61474609,0.01174124,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3877,520.44073486,-1913.47680664,0.16246095,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(16151,541.24176025,-1909.94799805,2.81604815,0.00000000,0.00000000,86.50000000); //
- CreateDynamicObject(2290,553.83569336,-1919.10363770,2.53193498,0.00000000,0.00000000,352.25000000); //
- CreateDynamicObject(2290,552.21270752,-1922.31469727,2.53193498,0.00000000,0.00000000,83.50000000); //
- CreateDynamicObject(2117,554.43994141,-1922.05041504,2.53193498,0.00000000,0.00000000,81.75000000); //
- CreateDynamicObject(2290,556.52587891,-1920.99279785,2.43313479,0.00000000,0.00000000,264.00000000); //
- CreateDynamicObject(2290,546.42041016,-1918.34716797,2.53193498,0.00000000,0.00000000,260.25000000); //
- CreateDynamicObject(2290,543.51757812,-1916.35058594,2.53193498,0.00000000,0.00000000,350.24963379); //
- CreateDynamicObject(2290,541.51989746,-1919.41320801,2.53193498,0.00000000,0.00000000,80.25000000); //
- CreateDynamicObject(2290,537.91931152,-1916.38366699,2.53193498,0.00000000,0.00000000,262.50000000); //
- CreateDynamicObject(2290,535.06140137,-1914.60119629,2.53193498,0.00000000,0.00000000,351.75000000); //
- CreateDynamicObject(2290,533.50732422,-1917.68200684,2.53193498,0.00000000,0.00000000,84.00000000); //
- CreateDynamicObject(2290,529.28088379,-1914.54882812,2.53193474,0.00000000,0.00000000,262.75000000); //
- CreateDynamicObject(2290,526.38171387,-1912.96215820,2.53193498,0.00000000,0.00000000,353.25000000); //
- CreateDynamicObject(2290,524.77587891,-1915.95751953,2.53193498,0.00000000,0.00000000,83.00000000); //
- CreateDynamicObject(2117,543.70922852,-1919.57299805,2.53193498,0.00000000,0.00000000,78.25000000); //
- CreateDynamicObject(2117,535.64190674,-1917.51086426,2.53193498,0.00000000,0.00000000,78.75000000); //
- CreateDynamicObject(2117,526.90344238,-1915.88830566,2.53193498,0.00000000,0.00000000,80.50000000); //
- CreateDynamicObject(640,519.89935303,-1910.26049805,3.24148607,0.00000000,0.00000000,356.00000000); //
- CreateDynamicObject(640,559.56744385,-1914.04162598,3.33976793,0.00000000,0.00000000,6.50000000); //
- CreateDynamicObject(800,518.62292480,-1905.03442383,1.82742047,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(800,561.53393555,-1909.41735840,2.84384918,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,558.62738037,-1902.93859863,2.70018101,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,554.29541016,-1902.86193848,2.64982796,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,558.72015381,-1900.08093262,3.19314671,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,554.36816406,-1899.92517090,3.12103415,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,558.62597656,-1898.03613281,2.67528605,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(800,561.52185059,-1904.27502441,3.59463573,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(800,562.07446289,-1901.39367676,2.56151533,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(800,518.41473389,-1901.45812988,2.02917910,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(800,518.77661133,-1897.85351562,2.21616149,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,554.49353027,-1897.83227539,2.45993423,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,525.11907959,-1899.49304199,2.20632887,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,522.14959717,-1899.23254395,1.98024154,0.00000000,0.00000000,352.75000000); //
- CreateDynamicObject(3461,525.27154541,-1896.73510742,2.64326978,0.00000000,0.00000000,0.00000000); //
- CreateDynamicObject(3461,522.20727539,-1896.82641602,2.46149707,0.00000000,0.00000000,0.00000000); //
- //Brothel fix
- CreateDynamicObject(3064,965.68798828,-52.73619461,1002.33642578,0.00000000,0.00000000,0.00000000); //object(break_wall_1a) (1)
- CreateDynamicObject(3064,965.68634033,-54.43961334,1002.33642578,0.00000000,0.00000000,0.00000000); //object(break_wall_1a) (2)
- CreateDynamicObject(1569,964.98071289,-53.94122314,1000.12457275,0.00000000,0.00000000,90.00000000); //object(adam_v_door) (1)
- //GYM doors
- CreateDynamicObject(1506,1240.58203125,-774.41259766,1083.01965332,0.00000000,0.00000000,0.00000000); //object(gen_doorext08) (2)
- CreateDynamicObject(1506,1240.59033203,-774.12329102,1083.01916504,0.00000000,0.00000000,0.00000000); //object(gen_doorext08) (1)
- // HAMC gate
- bariera = CreateDynamicObject(968,705.09997559,-475.25500488,16.14999962,0.00000000,270.00000000,0.00000000); //object(barrierturn) (1)
- // Andrew
- CreateDynamicObject(14669,337.29998779,-1897.19995117,1930.59997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(13754,331.70001221,-1873.09997559,2.20000005,0.00000000,0.00000000,0.00000000);
- // Banca
- CreateDynamicObject(14669,1456.29980469,-990.59960938,1401.69995117,0.00000000,0.00000000,0.00000000); //object(711_d) (2)
- CreateDynamicObject(7191,1465.97998047,-985.79998779,1401.09997559,90.00000000,180.00000000,0.00000000); //object(vegasnnewfence2b) (3)
- CreateDynamicObject(7191,1465.97998047,-980.40002441,1403.69995117,90.00000000,179.99450684,0.00000000); //object(vegasnnewfence2b) (4)
- CreateDynamicObject(7191,1465.97998047,-987.79998779,1403.69995117,90.00000000,179.99450684,0.00000000); //object(vegasnnewfence2b) (5)
- CreateDynamicObject(7191,1465.97998047,-990.23999023,1398.00000000,270.00000000,0.00000000,180.00000000); //object(vegasnnewfence2b) (6)
- CreateDynamicObject(1502,1465.97998047,-992.20001221,1401.69995117,0.00000000,0.00000000,270.00000000); //object(gen_doorint04) (1)
- CreateDynamicObject(7191,1465.97949219,-990.23925781,1406.18994141,179.99450684,0.00000000,179.99450684); //object(vegasnnewfence2b) (8)
- CreateDynamicObject(7191,1443.80004883,-986.79998779,1401.09997559,0.00000000,0.00000000,270.00000000); //object(vegasnnewfence2b) (9)
- CreateDynamicObject(1502,1465.97998047,-982.29998779,1401.69995117,0.00000000,0.00000000,270.00000000); //object(gen_doorint04) (2)
- CreateDynamicObject(7191,1463.89941406,-986.79980469,1403.69995117,90.00000000,179.99450684,90.00000000); //object(vegasnnewfence2b) (10)
- CreateDynamicObject(7191,1453.90002441,-979.40002441,1403.69995117,90.00000000,180.00000000,180.00000000); //object(vegasnnewfence2b) (11)
- CreateDynamicObject(7191,1453.89941406,-984.85937500,1403.69995117,90.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (12)
- CreateDynamicObject(7191,1453.89941406,-964.69921875,1406.19995117,0.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (13)
- CreateDynamicObject(7191,1452.40002441,-986.79998779,1403.69995117,270.00000000,180.00000000,90.00000000); //object(vegasnnewfence2b) (14)
- CreateDynamicObject(7191,1448.50000000,-986.79998779,1403.69995117,270.00000000,179.99450684,90.00000000); //object(vegasnnewfence2b) (15)
- CreateDynamicObject(1502,1453.89941406,-982.89941406,1401.69995117,0.00000000,0.00000000,90.00000000); //object(gen_doorint04) (3)
- CreateDynamicObject(7191,1453.89941406,-984.89941406,1403.69995117,270.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (16)
- CreateDynamicObject(7191,1471.19995117,-964.40002441,1403.69995117,0.00000000,180.00000000,0.00000000); //object(vegasnnewfence2b) (17)
- CreateDynamicObject(7191,1495.98999023,-986.84997559,1403.69995117,0.00000000,180.00000000,270.00000000); //object(vegasnnewfence2b) (18)
- CreateDynamicObject(1502,1471.59997559,-986.90002441,1401.69995117,0.00000000,0.00000000,0.00000000); //object(gen_doorint04) (4)
- CreateDynamicObject(7191,1493.69995117,-986.83001709,1406.19995117,0.00000000,179.99450684,270.00000000); //object(vegasnnewfence2b) (19)
- CreateDynamicObject(2775,1452.00000000,-981.09997559,1404.59997559,0.00000000,0.00000000,0.00000000); //object(cj_airprt_mon) (1)
- CreateDynamicObject(2796,1472.50000000,-986.90002441,1404.69995117,0.00000000,0.00000000,0.00000000); //object(cj_air_d_6) (2)
- CreateDynamicObject(2161,1464.90002441,-981.20001221,1403.40002441,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (1)
- CreateDynamicObject(2161,1463.59997559,-981.20001221,1403.40002441,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (2)
- CreateDynamicObject(2162,1464.59997559,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_1) (1)
- CreateDynamicObject(2162,1462.80004883,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_1) (2)
- CreateDynamicObject(2161,1461.00000000,-981.13000488,1403.51000977,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (3)
- CreateDynamicObject(2164,1461.00000000,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_5) (1)
- CreateDynamicObject(2167,1460.09997559,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_7) (1)
- CreateDynamicObject(2167,1459.19995117,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_7) (2)
- CreateDynamicObject(2167,1458.30004883,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_7) (3)
- CreateDynamicObject(2161,1457.00000000,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (4)
- CreateDynamicObject(2161,1457.00000000,-981.20001221,1403.00000000,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (5)
- CreateDynamicObject(2167,1456.09997559,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_7) (4)
- CreateDynamicObject(2197,1455.19995117,-982.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(filling_cabinet) (1)
- CreateDynamicObject(2199,1463.19995117,-986.65002441,1401.69995117,0.00000000,0.00000000,180.00000000); //object(med_office6_mc_1) (1)
- CreateDynamicObject(2200,1465.88000488,-984.96002197,1401.69995117,0.00000000,0.00000000,270.00000000); //object(med_office5_unit_1) (1)
- CreateDynamicObject(1808,1463.90002441,-986.50000000,1401.69995117,0.00000000,0.00000000,180.00000000); //object(cj_watercooler2) (2)
- CreateDynamicObject(2606,1459.09997559,-981.09997559,1404.80004883,0.00000000,0.00000000,0.00000000); //object(cj_police_counter2) (1)
- CreateDynamicObject(2606,1452.59997559,-986.59997559,1404.59997559,0.00000000,0.00000000,180.00000000); //object(cj_police_counter2) (2)
- CreateDynamicObject(2606,1452.59997559,-986.59997559,1404.09997559,0.00000000,0.00000000,179.99450684); //object(cj_police_counter2) (3)
- CreateDynamicObject(1892,1455.79980469,-1000.39941406,1401.69995117,0.00000000,0.00000000,0.00000000); //object(security_gatsh) (1)
- CreateDynamicObject(2604,1460.09997559,-986.20001221,1402.40002441,0.00000000,0.00000000,180.00000000); //object(cj_police_counter) (1)
- CreateDynamicObject(2604,1456.30004883,-986.20001221,1402.40002441,0.00000000,0.00000000,179.99450684); //object(cj_police_counter) (2)
- CreateDynamicObject(1806,1460.69995117,-985.29998779,1401.69995117,0.00000000,0.00000000,180.00000000); //object(med_office_chair) (1)
- CreateDynamicObject(1806,1456.90002441,-985.29998779,1401.69995117,0.00000000,0.00000000,179.99450684); //object(med_office_chair) (2)
- CreateDynamicObject(1649,1456.09997559,-986.90002441,1405.59997559,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (1)
- CreateDynamicObject(1649,1460.40002441,-986.90002441,1405.59997559,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (2)
- CreateDynamicObject(1649,1460.50000000,-986.90002441,1405.59997559,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (4)
- CreateDynamicObject(1649,1456.19995117,-986.90002441,1405.59997559,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (5)
- CreateDynamicObject(2773,1455.90002441,-988.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,1457.40002441,-988.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (2)
- CreateDynamicObject(2773,1461.19995117,-988.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (3)
- CreateDynamicObject(2773,1459.69995117,-988.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (4)
- CreateDynamicObject(1703,1449.09997559,-987.59997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(kb_couch02) (1)
- CreateDynamicObject(11631,1452.30004883,-986.00000000,1402.93200684,0.00000000,0.00000000,180.00000000); //object(ranch_desk) (1)
- CreateDynamicObject(2207,1462.50000000,-996.90002441,1401.69995117,0.00000000,0.00000000,270.00000000); //object(med_office7_desk_1) (1)
- CreateDynamicObject(2311,1449.30004883,-990.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_tv_table2) (1)
- CreateDynamicObject(1671,1464.00000000,-997.79998779,1402.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (1)
- CreateDynamicObject(1663,1461.50000000,-997.79998779,1402.19995117,0.00000000,0.00000000,90.00000000); //object(swivelchair_b) (2)
- CreateDynamicObject(1663,1462.09997559,-999.20001221,1402.19995117,0.00000000,0.00000000,150.00000000); //object(swivelchair_b) (3)
- CreateDynamicObject(1663,1462.00000000,-996.50000000,1402.19995117,0.00000000,0.00000000,30.00000000); //object(swivelchair_b) (4)
- CreateDynamicObject(1808,1453.50000000,-987.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_watercooler2) (3)
- CreateDynamicObject(1808,1453.00000000,-987.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_watercooler2) (4)
- CreateDynamicObject(2186,1465.00000000,-999.59997559,1401.69995117,0.00000000,0.00000000,180.00000000); //object(photocopier_1) (2)
- CreateDynamicObject(2190,1463.00000000,-996.79998779,1402.50000000,0.00000000,0.00000000,30.00000000); //object(pc_1) (3)
- CreateDynamicObject(2738,1478.94995117,-981.50000000,1402.30004883,0.00000000,0.00000000,0.00000000); //object(cj_toilet_bs) (1)
- CreateDynamicObject(2742,1473.50000000,-986.29998779,1403.19995117,0.00000000,0.00000000,180.00000000); //object(cj_handdrier) (1)
- CreateDynamicObject(2620,1447.69995117,-987.50000000,1402.50000000,0.00000000,0.00000000,0.00000000); //object(cj_trainer_eris) (1)
- CreateDynamicObject(2621,1452.19995117,-987.50000000,1402.50000000,0.00000000,0.00000000,0.00000000); //object(cj_trainer_heat) (1)
- CreateDynamicObject(2894,1462.80004883,-998.29998779,1402.50000000,0.00000000,0.00000000,300.00000000); //object(kmb_rhymesbook) (1)
- CreateDynamicObject(2239,1465.59997559,-999.70001221,1401.69995117,0.00000000,0.00000000,210.00000000); //object(cj_mlight16) (1)
- CreateDynamicObject(1703,1447.30004883,-991.20001221,1401.69995117,0.00000000,0.00000000,90.00000000); //object(kb_couch02) (2)
- CreateDynamicObject(1703,1451.09997559,-992.59997559,1401.69995117,0.00000000,0.00000000,180.00000000); //object(kb_couch02) (3)
- CreateDynamicObject(2942,1465.50000000,-987.29998779,1402.30004883,0.00000000,0.00000000,270.00000000); //object(kmb_atm1) (1)
- CreateDynamicObject(2942,1465.50000000,-988.20001221,1402.30004883,0.00000000,0.00000000,270.00000000); //object(kmb_atm1) (2)
- CreateDynamicObject(2942,1465.50000000,-989.09997559,1402.30004883,0.00000000,0.00000000,270.00000000); //object(kmb_atm1) (3)
- CreateDynamicObject(2614,1465.80004883,-997.90002441,1403.69995117,0.00000000,0.00000000,270.00000000); //object(cj_us_flag) (2)
- CreateDynamicObject(1703,1449.09997559,-993.59997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(kb_couch02) (4)
- CreateDynamicObject(2311,1449.30004883,-996.00000000,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_tv_table2) (2)
- CreateDynamicObject(1703,1447.30004883,-997.09997559,1401.69995117,0.00000000,0.00000000,90.00000000); //object(kb_couch02) (5)
- CreateDynamicObject(1703,1451.09997559,-998.50000000,1401.69995117,0.00000000,0.00000000,179.99450684); //object(kb_couch02) (6)
- CreateDynamicObject(2614,1446.80004883,-993.09997559,1403.90002441,0.00000000,0.00000000,90.00000000); //object(cj_us_flag) (3)
- CreateDynamicObject(2620,1447.69995117,-999.50000000,1402.50000000,0.00000000,0.00000000,0.00000000); //object(cj_trainer_eris) (2)
- CreateDynamicObject(2621,1452.00000000,-999.40002441,1402.50000000,0.00000000,0.00000000,0.00000000); //object(cj_trainer_heat) (2)
- CreateDynamicObject(2816,1450.19995117,-996.00000000,1402.19995117,0.00000000,0.00000000,0.00000000); //object(gb_bedmags01) (1)
- CreateDynamicObject(2826,1450.19995117,-990.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(gb_novels04) (1)
- CreateDynamicObject(2828,1462.30004883,-997.59997559,1402.44995117,0.00000000,0.00000000,240.00000000); //object(gb_ornament02) (1)
- CreateDynamicObject(2942,1465.50000000,-990.00000000,1402.30004883,0.00000000,0.00000000,270.00000000); //object(kmb_atm1) (4)
- CreateDynamicObject(7191,1478.00000000,-981.40002441,1403.69995117,270.00000000,0.00000000,179.99450684); //object(vegasnnewfence2b) (20)
- CreateDynamicObject(7191,1476.31994629,-981.40002441,1403.69995117,270.00000000,0.00000000,179.99450684); //object(vegasnnewfence2b) (21)
- CreateDynamicObject(2738,1477.19995117,-981.59997559,1402.30004883,0.00000000,0.00000000,0.00000000); //object(cj_toilet_bs) (2)
- CreateDynamicObject(1502,1478.09997559,-983.40002441,1401.90002441,0.00000000,0.00000000,0.00000000); //object(gen_doorint04) (5)
- CreateDynamicObject(1502,1476.40002441,-983.40002441,1401.90002441,0.00000000,0.00000000,0.00000000); //object(gen_doorint04) (6)
- CreateDynamicObject(2518,1471.90002441,-981.70001221,1402.00000000,0.00000000,0.00000000,0.00000000); //object(cj_b_sink2) (1)
- CreateDynamicObject(2518,1473.09997559,-981.70001221,1402.00000000,0.00000000,0.00000000,0.00000000); //object(cj_b_sink2) (2)
- CreateDynamicObject(2518,1474.40002441,-981.70001221,1402.00000000,0.00000000,0.00000000,0.00000000); //object(cj_b_sink2) (3)
- CreateDynamicObject(2741,1475.50000000,-981.09997559,1403.30004883,0.00000000,0.00000000,0.00000000); //object(cj_soap_disp) (2)
- CreateDynamicObject(2741,1474.19995117,-981.09997559,1403.30004883,0.00000000,0.00000000,0.00000000); //object(cj_soap_disp) (3)
- CreateDynamicObject(2741,1472.90002441,-981.09997559,1403.30004883,0.00000000,0.00000000,0.00000000); //object(cj_soap_disp) (4)
- CreateDynamicObject(1893,1474.00000000,-984.90002441,1405.50000000,0.00000000,0.00000000,0.00000000); //object(shoplight1) (1)
- CreateDynamicObject(1703,1478.59997559,-986.20001221,1401.69995117,0.00000000,0.00000000,180.00000000); //object(kb_couch02) (7)
- CreateDynamicObject(1649,1473.80004883,-981.20001221,1405.19995117,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (6)
- CreateDynamicObject(2001,1471.59997559,-981.50000000,1401.69995117,0.00000000,0.00000000,0.00000000); //object(nu_plant_ofc) (1)
- CreateDynamicObject(2001,1452.40002441,-1000.59997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(nu_plant_ofc) (2)
- CreateDynamicObject(2010,1460.30004883,-1000.59997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(nu_plant3_ofc) (1)
- CreateDynamicObject(2245,1447.19995117,-993.09997559,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_11) (1)
- CreateDynamicObject(2245,1447.19995117,-993.59997559,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_11) (2)
- CreateDynamicObject(2245,1447.19995117,-992.59997559,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_11) (3)
- CreateDynamicObject(2251,1449.30004883,-996.00000000,1403.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_20) (1)
- CreateDynamicObject(2251,1449.19995117,-990.09997559,1403.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_20) (2)
- CreateDynamicObject(2253,1479.40002441,-986.40002441,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_22) (1)
- CreateDynamicObject(2254,1446.80004883,-996.09997559,1403.90002441,0.00000000,0.00000000,90.00000000); //object(frame_clip_1) (1)
- CreateDynamicObject(2283,1446.80004883,-990.20001221,1404.00000000,0.00000000,0.00000000,90.00000000); //object(frame_thick_3) (1)
- CreateDynamicObject(2281,1450.09997559,-987.40002441,1403.69995117,0.00000000,0.00000000,0.00000000); //object(frame_thick_5) (1)
- CreateDynamicObject(2280,1465.30004883,-995.40002441,1403.40002441,0.00000000,0.00000000,270.00000000); //object(frame_thick_1) (1)
- CreateDynamicObject(1723,1475.80004883,-987.50000000,1401.69995117,0.00000000,0.00000000,0.00000000); //object(mrk_seating1) (1)
- CreateDynamicObject(1723,1477.80004883,-993.20001221,1401.69995117,0.00000000,0.00000000,180.00000000); //object(mrk_seating1) (2)
- CreateDynamicObject(1724,1479.09997559,-989.90002441,1401.69995117,0.00000000,0.00000000,270.00000000); //object(mrk_seating1b) (2)
- CreateDynamicObject(2311,1475.90002441,-990.40002441,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_tv_table2) (3)
- CreateDynamicObject(2272,1479.09997559,-988.70001221,1403.90002441,0.00000000,0.00000000,270.00000000); //object(frame_fab_5) (1)
- CreateDynamicObject(2269,1479.09997559,-991.90002441,1404.09997559,0.00000000,0.00000000,270.00000000); //object(frame_wood_4) (1)
- CreateDynamicObject(1775,1470.40002441,-981.59997559,1402.80004883,0.00000000,0.00000000,0.00000000); //object(cj_sprunk1) (1)
- CreateDynamicObject(2616,1468.09997559,-981.20001221,1403.40002441,0.00000000,0.00000000,0.00000000); //object(police_nb04) (1)
- CreateDynamicObject(3462,1459.00000000,-1000.40002441,1403.19995117,0.00000000,0.00000000,270.00000000); //object(csrangel_lvs) (1)
- CreateDynamicObject(3462,1453.59997559,-1000.40002441,1403.19995117,0.00000000,0.00000000,270.00000000); //object(csrangel_lvs) (2)
- CreateDynamicObject(2745,1470.90002441,-993.29998779,1402.90002441,0.00000000,0.00000000,180.00000000); //object(cj_stat_3) (1)
- CreateDynamicObject(2685,1471.30004883,-987.29998779,1403.69995117,0.00000000,0.00000000,0.00000000); //object(cj_food_post1) (1)
- CreateDynamicObject(7313,1458.09997559,-988.00000000,1405.00000000,0.00000000,0.00000000,0.00000000); //object(vgsn_scrollsgn01) (2)
- CreateDynamicObject(2271,1473.30004883,-993.20001221,1403.59997559,0.00000000,0.00000000,180.00000000); //object(frame_wood_1) (1)
- CreateDynamicObject(2269,1468.30004883,-993.20001221,1403.69995117,0.00000000,0.00000000,180.00000000); //object(frame_wood_4) (2)
- CreateDynamicObject(2266,1466.59997559,-990.20001221,1403.69995117,0.00000000,0.00000000,90.00000000); //object(frame_wood_5) (1)
- CreateDynamicObject(2265,1466.59997559,-987.29998779,1403.69995117,0.00000000,0.00000000,90.00000000); //object(frame_slim_6) (1)
- CreateDynamicObject(1723,1470.59997559,-984.00000000,1401.69995117,0.00000000,0.00000000,270.00000000); //object(mrk_seating1) (3)
- CreateDynamicObject(2263,1470.59997559,-985.00000000,1403.50000000,0.00000000,0.00000000,270.00000000); //object(frame_slim_4) (1)
- CreateDynamicObject(2571,1467.40002441,-990.09997559,1401.69995117,0.00000000,0.00000000,90.00000000); //object(hotel_single_1) (1)
- CreateDynamicObject(949,1471.69995117,-993.59997559,1402.30004883,0.00000000,0.00000000,0.00000000); //object(plant_pot_4) (1)
- CreateDynamicObject(949,1470.09997559,-993.59997559,1402.30004883,0.00000000,0.00000000,0.00000000); //object(plant_pot_4) (2)
- CreateDynamicObject(2195,1479.09997559,-988.59997559,1402.30004883,0.00000000,0.00000000,0.00000000); //object(plant_pot_3) (1)
- CreateDynamicObject(2001,1479.19995117,-992.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(nu_plant_ofc) (3)
- CreateDynamicObject(2245,1475.80004883,-986.29998779,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_11) (4)
- CreateDynamicObject(2254,1477.50000000,-986.70001221,1404.00000000,0.00000000,0.00000000,180.00000000); //object(frame_clip_1) (2)
- CreateDynamicObject(7191,1450.00000000,-984.70001221,1403.69995117,270.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (16)
- CreateDynamicObject(7191,1449.73999023,-958.50000000,1403.69995117,0.00000000,0.00000000,0.00000000); //object(vegasnnewfence2b) (16)
- CreateDynamicObject(7191,1450.00000000,-960.59997559,1406.00000000,0.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (13)
- CreateDynamicObject(2332,1449.50000000,-986.29998779,1402.19995117,0.00000000,0.00000000,270.00000000); //object(kev_safe) (1)
- CreateDynamicObject(1550,1448.19995117,-985.29998779,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (1)
- CreateDynamicObject(1550,1448.30004883,-985.79998779,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (2)
- CreateDynamicObject(1550,1448.50000000,-986.40002441,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (3)
- CreateDynamicObject(1550,1447.69995117,-985.20001221,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (4)
- CreateDynamicObject(1550,1447.80004883,-985.79998779,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (6)
- CreateDynamicObject(1550,1447.90002441,-986.40002441,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (7)
- CreateDynamicObject(2332,1449.50000000,-985.50000000,1402.19995117,0.00000000,0.00000000,270.00000000); //object(kev_safe) (2)
- CreateDynamicObject(2332,1449.50000000,-984.70001221,1402.19995117,0.00000000,0.00000000,270.00000000); //object(kev_safe) (3)
- CreateDynamicObject(2332,1449.50000000,-983.90002441,1402.19995117,0.00000000,0.00000000,270.00000000); //object(kev_safe) (4)
- CreateDynamicObject(2003,1447.19995117,-986.20001221,1402.19995117,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (1)
- CreateDynamicObject(2003,1447.19995117,-985.40002441,1402.19995117,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (2)
- CreateDynamicObject(2003,1447.19995117,-984.59997559,1402.19995117,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (3)
- CreateDynamicObject(2003,1447.19995117,-983.79998779,1402.19995117,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (4)
- CreateDynamicObject(2003,1447.19995117,-983.79998779,1403.09997559,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (5)
- CreateDynamicObject(2003,1447.19995117,-986.20001221,1403.09997559,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (6)
- CreateDynamicObject(2003,1447.19995117,-985.40002441,1403.09997559,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (7)
- CreateDynamicObject(2003,1447.19995117,-984.59997559,1403.09997559,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (8)
- CreateDynamicObject(2003,1447.19995117,-986.20001221,1404.00000000,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (9)
- CreateDynamicObject(2003,1447.19995117,-985.40002441,1404.00000000,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (10)
- CreateDynamicObject(2003,1447.19995117,-984.59997559,1404.00000000,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (11)
- CreateDynamicObject(2003,1447.19995117,-983.79998779,1404.00000000,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (12)
- CreateDynamicObject(1829,1447.50000000,-982.90002441,1402.19995117,0.00000000,0.00000000,90.00000000); //object(man_safenew) (1)
- CreateDynamicObject(1806,1451.90002441,-985.70001221,1401.69995117,0.00000000,0.00000000,180.00000000); //object(med_office_chair) (3)
- CreateDynamicObject(1569,1454.80004883,-1001.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(adam_v_door) (1)
- CreateDynamicObject(1569,1457.79980469,-1001.19921875,1401.69995117,0.00000000,0.00000000,179.99450684); //object(adam_v_door) (2)
- bankvaultdoor = CreateDynamicObject(2634,1450.19995117,-982.09997559,1403.00000000,0.00000000,0.00000000,270.00000000); //object(ab_vaultdoor) (1)
- CreateDynamicObject(7191,1463.59997559,-1000.20001221,1404.30004883,90.00000000,180.00000000,270.00000000); //object(vegasnnewfence2b) (10)
- CreateDynamicObject(7191,1449.50000000,-1000.29998779,1404.30004883,90.00000000,179.99450684,270.00000000); //object(vegasnnewfence2b) (10)
- //FIRE DEPARTMENT
- CreateDynamicObject(11008, 1487.8198242188, -2169.7194824219, 19.585941314697, 0, 0, 0);
- CreateDynamicObject(8553, 1493.646362, -2166.094727, 12.59, 0.0000, 0.0000, 179.9136); //Concrete
- CreateDynamicObject(8553, 1553.631714, -2166.116943, 12.59, 0.0000, 0.0000, 359.9136); //Concrete
- CreateDynamicObject(16564, 1577.7641601563, -2166.9350585938, 12.695111274719, 0, 0, 89.324768066406);
- CreateDynamicObject(17064, 1536.9736328125, -2161.5224609375, 12.695111274719, 0, 0, 0);
- CreateDynamicObject(12839, 1563.223511, -2183.149902, 16.214420, 0.0000, 0.0000, 0.0000); // Stairs To Helicopter
- CreateDynamicObject(1508, 369.2036, 162.4440, 1019.9944, 0.0000, 0.0000, 180.0000); //City Hall Room Block
- CreateDynamicObject(1569, 369.1764, 161.6, 1019.0, 0.0000, 0.0000, 90.0000); //City Hall Room Door
- //GymBlock
- CreateDynamicObject(994, 2222.465088, -1715.447388, 12.628170, 0.0000, 0.0000, 263.1245);
- CreateDynamicObject(994, 2223.253418, -1709.089966, 12.725977, 0.0000, 0.0000, 263.9840);
- CreateDynamicObject(994, 2232.644287, -1727.048462, 12.647192, 0.0000, 0.0000, 180.0773);
- CreateDynamicObject(994, 2239.051270, -1727.090210, 12.647192, 0.0000, 0.0000, 180.0773);
- CreateDynamicObject(994, 2238.903076, -1719.262451, 12.652877, 0.0000, 0.0000, 270.0773);
- CreateDynamicObject(994, 2221.543945, -1722.587158, 12.662817, 0.0000, 0.0000, 315.0773);
- CreateDynamicObject(994, 2224.709717, -1709.026855, 12.541059, 0.0000, 0.0000, 358.3585);
- //Secret house
- objecttt[0] = CreateDynamicObject(16375,-2758.69506836,-1532.74951172,138.18721008,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(by_helimarkings) (1)
- objecttt[1] = CreateDynamicObject(2707,-2820.86718750,-1525.66406250,141.90330505,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_light_fit) (1)
- objecttt[2] = CreateDynamicObject(1712,-2817.00244141,-1515.82360840,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(kb_couch05) (1)
- objecttt[3] = CreateDynamicObject(945,-2815.10888672,-1524.75927734,150.31149292,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ws_cf_lamps) (1)
- objecttt[4] = CreateDynamicObject(945,-2815.27465820,-1521.89855957,150.31149292,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ws_cf_lamps) (2)
- objecttt[5] = CreateDynamicObject(1494,-2811.37744141,-1523.26904297,139.84375000,0.00000000,0.00000000,269.99996948, -1, -1, -1, 500.0); //object(gen_doorint03) (1)
- objecttt[6] = CreateDynamicObject(1494,-2821.03320312,-1517.87927246,139.84375000,0.00000000,0.00000000,268.00000000, -1, -1, -1, 500.0); //object(gen_doorint03) (2)
- objecttt[7] = CreateDynamicObject(3032,-2813.53442383,-1531.22644043,141.95594788,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (1)
- objecttt[8] = CreateDynamicObject(3032,-2818.12377930,-1531.10815430,141.95594788,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (2)
- objecttt[9] = CreateDynamicObject(3032,-2821.12255859,-1528.83300781,141.95594788,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (3)
- objecttt[10] = CreateDynamicObject(3032,-2811.17700195,-1518.73168945,142.01300049,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (4)
- objecttt[11] = CreateDynamicObject(3032,-2810.94189453,-1528.81689453,142.09234619,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (5)
- objecttt[12] = CreateDynamicObject(3032,-2813.79907227,-1515.16247559,141.97888184,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (6)
- objecttt[13] = CreateDynamicObject(3032,-2818.38842773,-1514.92260742,141.87797546,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (7)
- objecttt[14] = CreateDynamicObject(2165,-2812.94140625,-1527.82592773,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office_desk_1) (1)
- objecttt[15] = CreateDynamicObject(1671,-2812.66015625,-1529.13708496,140.30397034,0.00000000,0.00000000,178.00000000, -1, -1, -1, 500.0); //object(swivelchair_a) (1)
- objecttt[16] = CreateDynamicObject(2141,-2820.52856445,-1521.52014160,139.84375000,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(cj_kitch2_l) (1)
- objecttt[17] = CreateDynamicObject(2154,-2820.70849609,-1522.94531250,139.84375000,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(cj_k5_low_unit1) (1)
- objecttt[18] = CreateDynamicObject(2161,-2812.40527344,-1515.17187500,139.88313293,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office_unit_4) (1)
- objecttt[19] = CreateDynamicObject(1803,-2820.34301758,-1518.75268555,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_bed_7) (1)
- objecttt[20] = CreateDynamicObject(2339,-2820.46752930,-1523.93566895,139.84375000,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(cj_kitch2_cooker) (1)
- objecttt[21] = CreateDynamicObject(2851,-2820.50952148,-1522.43090820,140.89700317,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gb_kitchdirt05) (1)
- objecttt[22] = CreateDynamicObject(1808,-2820.64599609,-1524.64135742,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_watercooler2) (1)
- objecttt[23] = CreateDynamicObject(2179,-2818.27441406,-1515.63757324,141.55383301,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(casino_light1) (1)
- objecttt[24] = CreateDynamicObject(1828,-2816.25048828,-1517.61083984,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(man_sdr_rug) (1)
- objecttt[25] = CreateDynamicObject(2311,-2817.16748047,-1517.42663574,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_tv_table2) (1)
- objecttt[26] = CreateDynamicObject(1670,-2817.12182617,-1517.56591797,140.34924316,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(propcollecttable) (1)
- objecttt[27] = CreateDynamicObject(630,-2820.55761719,-1530.71789551,140.86891174,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(veg_palmkb8) (1)
- objecttt[28] = CreateDynamicObject(2091,-2815.35546875,-1530.90576172,139.84375000,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(tv_ward_med_1) (2)
- objecttt[29] = CreateDynamicObject(2603,-2812.01928711,-1520.30029297,140.29699707,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(police_cell_bed) (1)
- objecttt[30] = CreateDynamicObject(2816,-2812.41625977,-1520.19848633,140.64492798,0.00000000,0.00000000,269.99996948, -1, -1, -1, 500.0); //object(gb_bedmags01) (1)
- objecttt[31] = CreateDynamicObject(2835,-2813.03125000,-1524.45629883,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gb_livingrug04) (1)
- objecttt[32] = CreateDynamicObject(1216,-2809.89819336,-1520.72912598,140.53575134,0.00000000,0.00000000,93.99993896, -1, -1, -1, 500.0); //object(phonebooth1) (1)
- objecttt[33] = CreateDynamicObject(3963,-2820.61767578,-1526.59008789,141.42929077,0.00000000,0.00000000,268.00000000, -1, -1, -1, 500.0); //object(lee_plane08) (1)
- objecttt[34] = CreateDynamicObject(2654,-2811.82397461,-1522.39135742,140.06164551,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_shoe_box) (1)
- objecttt[35] = CreateDynamicObject(3044,-2817.28808594,-1517.51953125,140.72477722,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cigar) (1)
- objecttt[36] = CreateDynamicObject(2100,-2818.37060547,-1530.77978516,139.84375000,0.00000000,0.00000000,182.00000000, -1, -1, -1, 500.0); //object(med_hi_fi_2) (1)
- objecttt[37] = CreateDynamicObject(1582,-2815.73754883,-1517.89294434,140.61572266,0.00000000,0.00000000,330.00000000, -1, -1, -1, 500.0); //object(pizzabox) (1)
- objecttt[38] = CreateDynamicObject(1705,-2814.09497070,-1517.25244141,139.84375000,0.00000000,0.00000000,282.00000000, -1, -1, -1, 500.0); //object(kb_chair04) (1)
- objecttt[39] = CreateDynamicObject(1671,-2812.02343750,-1526.71826172,140.30397034,0.00000000,0.00000000,296.00000000, -1, -1, -1, 500.0); //object(swivelchair_a) (2)
- //Dealerships
- dealership[0] = CreateDynamicObject(7319,2510.18066406,-1525.94494629,23.45103836,0.00000000,0.00000000,179.99993896, -1, -1, -1, 500.0); //object(vgnlowbuild12a) (2)
- dealership[1] = CreateDynamicObject(7319,2531.42968750,-1525.99011230,23.45103836,0.00000000,0.00000000,179.99450684, -1, -1, -1, 500.0); //object(vgnlowbuild12a) (3)
- dealership[2] = CreateDynamicObject(8879,2503.23217773,-1539.87158203,28.64429855,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(vgsecnstrct08) (1)
- dealership[3] = CreateDynamicObject(8879,2523.53100586,-1538.66601562,28.64429855,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(vgsecnstrct08) (2)
- dealership[4] = CreateDynamicObject(8879,2541.14575195,-1537.91552734,28.64429855,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(vgsecnstrct08) (3)
- dealership[5] = CreateDynamicObject(8879,2544.59838867,-1518.02709961,28.89429855,0.00000000,0.00000000,92.00000000, -1, -1, -1, 500.0); //object(vgsecnstrct08) (4)
- dealership[6] = CreateDynamicObject(8879,2498.79760742,-1519.57373047,28.89429855,0.00000000,0.00000000,269.99951172, -1, -1, -1, 500.0); //object(vgsecnstrct08) (5)
- dealership[7] = CreateDynamicObject(9131,2520.28906250,-1512.50878906,24.12891579,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(shbbyhswall13_lvs) (1)
- dealership[8] = CreateDynamicObject(9131,2520.28906250,-1512.50878906,26.37891579,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(shbbyhswall13_lvs) (2)
- dealership[9] = CreateDynamicObject(9131,2520.28906250,-1512.50878906,28.62891579,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(shbbyhswall13_lvs) (3)
- dealership[10] = CreateDynamicObject(9131,2520.28906250,-1512.50878906,30.87891579,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(shbbyhswall13_lvs) (4)
- dealership[11] = CreateDynamicObject(8168,2504.83325195,-1532.43627930,24.88549232,0.00000000,0.00000000,16.00000000, -1, -1, -1, 500.0); //object(vgs_guardhouse01) (1)
- dealership[12] = CreateDynamicObject(1687,2503.42578125,-1533.92687988,27.35313797,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gen_roofbit1) (1)
- dealership[13] = CreateDynamicObject(2614,2505.07885742,-1529.69824219,26.69847488,0.00000000,0.00000000,178.00000000, -1, -1, -1, 500.0); //object(cj_us_flag) (1)
- dealership[14] = CreateDynamicObject(3406,2917.58081055,-1947.20520020,-1.82115793,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (4)
- dealership[15] = CreateDynamicObject(3406,2926.31469727,-1947.20849609,-1.78603697,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (5)
- dealership[16] = CreateDynamicObject(3406,2935.10351562,-1947.16455078,-1.83254910,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (6)
- dealership[17] = CreateDynamicObject(3406,2943.69897461,-1947.16589355,-1.79972744,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (7)
- dealership[18] = CreateDynamicObject(3406,2952.16040039,-1947.17626953,-1.75000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (8)
- dealership[19] = CreateDynamicObject(3406,2960.97924805,-1947.13012695,-1.75000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (10)
- dealership[20] = CreateDynamicObject(11495,2963.92773438,-1959.00524902,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (2)
- dealership[21] = CreateDynamicObject(11495,2953.31762695,-1959.07458496,0.25000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (4)
- dealership[22] = CreateDynamicObject(11495,2941.20996094,-1959.01965332,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (5)
- dealership[23] = CreateDynamicObject(11495,2963.94311523,-1935.22155762,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (6)
- dealership[24] = CreateDynamicObject(11495,2953.19238281,-1935.51989746,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (7)
- dealership[25] = CreateDynamicObject(11495,2941.20410156,-1936.00585938,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (8)
- dealership[26] = CreateDynamicObject(3406,2969.73876953,-1947.08276367,-1.75000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (11)
- dealership[27] = CreateDynamicObject(3406,2978.43969727,-1947.05725098,-1.75000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (12)
- dealership[28] = CreateDynamicObject(11495,2975.12500000,-1958.75341797,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (9)
- dealership[29] = CreateDynamicObject(11495,2975.03784180,-1936.03491211,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (10)
- dealership[30] = CreateDynamicObject(3406,2987.11645508,-1947.08850098,-2.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (13)
- dealership[31] = CreateDynamicObject(11495,2990.22753906,-1959.15466309,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (11)
- dealership[32] = CreateDynamicObject(11495,2990.01660156,-1935.15429688,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (12)
- dealership[33] = CreateDynamicObject(1461,2974.94604492,-1926.55834961,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (1)
- dealership[34] = CreateDynamicObject(1461,2989.91967773,-1925.64135742,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (2)
- dealership[35] = CreateDynamicObject(1461,2963.95703125,-1925.50708008,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (3)
- dealership[36] = CreateDynamicObject(1461,2953.11840820,-1926.09118652,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (4)
- dealership[37] = CreateDynamicObject(1461,2941.19897461,-1926.20080566,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (5)
- dealership[38] = CreateDynamicObject(1461,2941.18310547,-1968.73168945,1.00433826,0.00000000,0.00000000,182.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (6)
- dealership[39] = CreateDynamicObject(1461,2953.44067383,-1968.72241211,1.25433826,0.00000000,0.00000000,181.99951172, -1, -1, -1, 500.0); //object(dyn_life_p) (7)
- dealership[40] = CreateDynamicObject(1461,2963.95410156,-1968.50903320,1.25433826,0.00000000,0.00000000,181.99951172, -1, -1, -1, 500.0); //object(dyn_life_p) (8)
- dealership[41] = CreateDynamicObject(1461,2975.21093750,-1968.56652832,1.25433826,0.00000000,0.00000000,181.99951172, -1, -1, -1, 500.0); //object(dyn_life_p) (9)
- dealership[42] = CreateDynamicObject(1461,2990.21093750,-1968.81469727,1.25433826,0.00000000,0.00000000,181.99951172, -1, -1, -1, 500.0); //object(dyn_life_p) (10)
- dealership[43] = CreateDynamicObject(9245,2868.44311523,-1942.71972656,21.92908096,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(cstguard_sfn01) (2)
- dealership[44] = CreateDynamicObject(997,1769.48596191,-1907.31713867,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (1)
- dealership[45] = CreateDynamicObject(997,1772.73535156,-1907.33544922,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (2)
- dealership[46] = CreateDynamicObject(997,1775.73535156,-1907.38476562,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (4)
- dealership[47] = CreateDynamicObject(997,1775.73535156,-1907.38476562,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (5)
- dealership[48] = CreateDynamicObject(997,1778.98596191,-1907.39099121,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (6)
- dealership[49] = CreateDynamicObject(997,1781.98510742,-1907.36035156,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (7)
- dealership[50] = CreateDynamicObject(997,1769.48596191,-1935.50122070,12.59599209,0.00000000,0.00000000,322.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (8)
- dealership[51] = CreateDynamicObject(997,1772.15209961,-1937.50231934,12.59599209,0.00000000,0.00000000,333.99829102, -1, -1, -1, 500.0); //object(lhouse_barrier3) (9)
- dealership[52] = CreateDynamicObject(997,1775.33691406,-1938.95288086,12.59599209,0.00000000,0.00000000,333.99536133, -1, -1, -1, 500.0); //object(lhouse_barrier3) (10)
- dealership[53] = CreateDynamicObject(997,1778.49987793,-1940.45007324,12.59599209,0.00000000,0.00000000,333.99536133, -1, -1, -1, 500.0); //object(lhouse_barrier3) (11)
- dealership[54] = CreateDynamicObject(18090,1771.44287109,-1924.26232910,15.11817646,0.00000000,0.00000000,179.99993896, -1, -1, -1, 500.0); //object(bar_bar1) (1)
- dealership[55] = CreateDynamicObject(1712,1770.11914062,-1918.26110840,12.55736828,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(kb_couch05) (1)
- dealership[56] = CreateDynamicObject(1712,1770.11718750,-1915.76074219,12.55736828,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(kb_couch05) (2)
- dealership[57] = CreateDynamicObject(1486,1771.09423828,-1917.42883301,12.70043850,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_beer_1) (1)
- dealership[58] = CreateDynamicObject(1510,1772.83483887,-1926.44287109,13.60218143,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_ashtry) (1)
- dealership[59] = CreateDynamicObject(1512,1771.22326660,-1915.89794922,12.75269032,85.52862549,243.47685242,110.59298706, -1, -1, -1, 500.0); //object(dyn_wine_03) (1)
- dealership[60] = CreateDynamicObject(1541,1771.14489746,-1927.90380859,13.92122078,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_beer_taps_1) (1)
- dealership[61] = CreateDynamicObject(1511,1772.44824219,-1925.62561035,13.97951126,0.00000000,0.00000000,258.00000000, -1, -1, -1, 500.0); //object(dyn_spirit_02) (1)
- dealership[62] = CreateDynamicObject(1544,1772.65466309,-1923.26989746,13.60218143,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_beer_b_1) (1)
- dealership[63] = CreateDynamicObject(2100,1769.60485840,-1920.11938477,12.55839920,0.00000000,0.00000000,92.00000000, -1, -1, -1, 500.0); //object(med_hi_fi_2) (1)
- dealership[64] = CreateDynamicObject(1188,1789.34997559,-1940.00280762,12.72960091,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(fbmp_lr_sv2) (1)
- dealership[65] = CreateDynamicObject(1179,1788.00500488,-1941.04943848,13.85151482,1.58538818,341.99291992,10.18225098, -1, -1, -1, 500.0); //object(fbmp_lr_rem1) (1)
- dealership[66] = CreateDynamicObject(1162,1788.38159180,-1940.61022949,12.55735397,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(spl_a_j_b) (1)
- dealership[67] = CreateDynamicObject(1271,1786.73132324,-1940.99951172,12.90939617,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gunbox) (1)
- dealership[68] = CreateDynamicObject(1431,1788.28186035,-1941.00842285,13.10628033,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_box_pile) (1)
- dealership[69] = CreateDynamicObject(2478,1790.03662109,-1941.16540527,12.83562374,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(model_box6) (1)
- dealership[70] = CreateDynamicObject(2567,1793.26623535,-1940.41394043,14.48194695,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ab_warehouseshelf) (1)
- dealership[71] = CreateDynamicObject(1078,1792.28149414,-1939.25036621,13.04247284,0.00000000,352.00000000,92.00000000, -1, -1, -1, 500.0); //object(wheel_lr3) (3)
- dealership[72] = CreateDynamicObject(1078,1790.28369141,-1940.50390625,13.04247284,0.00000000,355.99645996,91.99951172, -1, -1, -1, 500.0); //object(wheel_lr3) (4)
- dealership[73] = CreateDynamicObject(3041,1788.81018066,-1938.29858398,13.05605030,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ct_table) (1)
- dealership[74] = CreateDynamicObject(2980,1769.87646484,-1912.97326660,13.34576702,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(kb_bandit10) (1)
- dealership[75] = CreateDynamicObject(2916,1772.60546875,-1908.42883301,12.66907501,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(kmb_dumbbell) (1)
- dealership[76] = CreateDynamicObject(2916,1772.11511230,-1908.16003418,12.66907501,0.00000000,0.00000000,322.00000000, -1, -1, -1, 500.0); //object(kmb_dumbbell) (2)
- dealership[77] = CreateDynamicObject(2619,1810.86315918,-1929.95849609,14.62131310,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(mp_ammoambient) (1)
- dealership[78] = CreateDynamicObject(4227,1810.93298340,-1925.39123535,14.05963898,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(graffiti_lan01) (1)
- dealership[79] = CreateDynamicObject(17969,1766.18457031,-1907.04211426,13.84247971,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(hub_graffitti) (1)
- dealership[80] = CreateDynamicObject(2964,1777.13403320,-1926.02795410,12.38721657,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(k_pooltablesm) (1)
- dealership[81] = CreateDynamicObject(1369,1797.20080566,-1940.54370117,12.92470837,0.00000000,272.00000000,356.00000000, -1, -1, -1, 500.0); //object(cj_wheelchair1) (1)
- dealership[82] = CreateDynamicObject(2676,1792.90966797,-1937.00219727,12.65019894,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(proc_rubbish_8) (1)
- dealership[83] = CreateDynamicObject(3578,444.30291748,-1804.44531250,5.32490826,0.00000000,0.00000000,88.00000000, -1, -1, -1, 500.0); //object(dockbarr1_la) (1)
- dealership[84] = CreateDynamicObject(994,452.32391357,-1811.84118652,4.54687500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier2) (1)
- dealership[85] = CreateDynamicObject(994,457.92593384,-1794.11938477,4.54687500,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier2) (3)
- dealership[86] = CreateDynamicObject(994,464.18005371,-1794.05236816,4.54687500,0.00000000,0.00000000,179.99450684, -1, -1, -1, 500.0); //object(lhouse_barrier2) (4)
- dealership[87] = CreateDynamicObject(994,464.11248779,-1794.10034180,4.54687500,0.00000000,0.00000000,89.99450684, -1, -1, -1, 500.0); //object(lhouse_barrier2) (5)
- dealership[88] = CreateDynamicObject(994,437.80282593,-1794.29504395,4.54687500,0.00000000,0.00000000,89.99450684, -1, -1, -1, 500.0); //object(lhouse_barrier2) (6)
- dealership[89] = CreateDynamicObject(2651,445.49804688,-1794.14892578,5.42259789,0.00000000,0.00000000,182.00000000, -1, -1, -1, 500.0); //object(cj_skate_wall1) (1)
- dealership[90] = CreateDynamicObject(2651,446.74795532,-1794.16235352,5.42259789,0.00000000,0.00000000,179.99951172, -1, -1, -1, 500.0); //object(cj_skate_wall1) (2)
- //Island
- //LSPD inside
- lspd[0] = CreateDynamicObject(5837,102.49067688,1915.96398926,19.05924225,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ci_guardhouse1) (1)
- lspd[1] = CreateDynamicObject(8841,309.78027344,2051.92968750,19.96686554,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(rsdncarprk01_lvs) (1)
- lspd[2] = CreateDynamicObject(8613,289.52062988,1891.07434082,21.01204681,0.00000000,0.00000000,88.00000000, -1, -1, -1, 500.0); //object(vgssstairs03_lvs) (1)
- lspd[3] = CreateDynamicObject(8147,102.02886963,2021.34680176,20.49106216,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(vgsselecfence01) (1)
- lspd[4] = CreateDynamicObject(2310,221.06639099,74.53579712,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (1)
- lspd[5] = CreateDynamicObject(2310,220.15277100,74.53606415,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (2)
- lspd[6] = CreateDynamicObject(2310,219.17495728,74.59202576,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (3)
- lspd[7] = CreateDynamicObject(2310,218.15756226,74.59434509,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (4)
- lspd[8] = CreateDynamicObject(2310,217.17996216,74.59458160,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (5)
- lspd[9] = CreateDynamicObject(2310,216.16445923,74.58518982,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (6)
- lspd[10] = CreateDynamicObject(2310,215.18009949,74.60859680,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (7)
- lspd[11] = CreateDynamicObject(2310,221.14033508,76.11238861,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (8)
- lspd[12] = CreateDynamicObject(2310,220.14805603,76.02645111,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (9)
- lspd[13] = CreateDynamicObject(2310,219.15872192,76.01477814,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (10)
- lspd[14] = CreateDynamicObject(2310,217.12110901,76.10726929,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (11)
- lspd[15] = CreateDynamicObject(2310,216.16493225,76.08392334,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (12)
- lspd[16] = CreateDynamicObject(2310,215.14738464,76.11803436,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (13)
- lspd[17] = CreateDynamicObject(2310,221.11334229,77.55490112,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (14)
- lspd[18] = CreateDynamicObject(2310,220.14097595,77.59893036,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (15)
- lspd[19] = CreateDynamicObject(2310,219.16316223,77.59105682,1004.53826904,0.00000000,0.00000000,266.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (16)
- lspd[20] = CreateDynamicObject(2310,217.16511536,77.56122589,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (17)
- lspd[21] = CreateDynamicObject(2310,216.16601562,77.59082031,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (18)
- lspd[22] = CreateDynamicObject(2310,215.13964844,77.55859375,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (19)
- lspd[23] = CreateDynamicObject(1731,214.86758423,82.90625000,1006.02618408,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_mlight3) (1)
- lspd[24] = CreateDynamicObject(2066,221.59133911,82.51814270,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_m_fileing2) (1)
- lspd[25] = CreateDynamicObject(2067,220.99932861,82.53824615,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_m_fileing3) (1)
- lspd[26] = CreateDynamicObject(3077,216.99404907,82.38053131,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(nf_blackboard) (1)
- lspd[27] = CreateDynamicObject(1751,251.11828613,91.83593750,1004.19152832,0.00000000,0.00000000,30.00000000, -1, -1, -1, 500.0); //object(med_tv_4) (1)
- lspd[28] = CreateDynamicObject(1704,222.50399780,72.23165894,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(kb_chair03) (1)
- lspd[29] = CreateDynamicObject(1704,223.65850830,72.24191284,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(kb_chair03) (2)
- lspd[30] = CreateDynamicObject(2747,225.08142090,69.42612457,1004.45159912,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_donut_table) (1)
- lspd[31] = CreateDynamicObject(1704,224.18368530,69.43973541,1004.03906250,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(kb_chair03) (3)
- lspd[32] = CreateDynamicObject(2395,188.18780518,80.68438721,976.64495850,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(cj_sports_wall) (4)
- lspd[33] = CreateDynamicObject(2395,316.84078979,46.48315048,962.49377441,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(cj_sports_wall) (5)
- lspd[34] = CreateDynamicObject(2198,215.77714539,80.37008667,1004.03906250,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_3) (2)
- lspd[35] = CreateDynamicObject(2202,257.37802124,67.99050140,1002.64062500,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(photocopier_2) (1)
- lspd[36] = CreateDynamicObject(1722,244.39097595,62.41166687,1002.64062500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (1)
- lspd[37] = CreateDynamicObject(1722,243.64526367,62.37010574,1002.64062500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (2)
- lspd[38] = CreateDynamicObject(1722,242.88375854,62.36438370,1002.64062500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (3)
- lspd[39] = CreateDynamicObject(1722,242.52201843,69.54393005,1002.64062500,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (4)
- lspd[40] = CreateDynamicObject(1722,242.52693176,70.23125458,1002.64062500,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (5)
- lspd[41] = CreateDynamicObject(1722,242.53012085,70.88690948,1002.64062500,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (6)
- lspd[42] = CreateDynamicObject(2425,250.88677979,69.74848175,1003.84375000,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(cj_ff_juice) (1)
- lspd[43] = CreateDynamicObject(2647,250.54627991,69.50411987,1004.00030518,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_bs_cup) (1)
- lspd[44] = CreateDynamicObject(1822,242.39849854,67.83626556,1002.67474365,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(coffee_swank_6) (1)
- lspd[45] = CreateDynamicObject(3928,1548.17590332,-1707.77197266,27.39480972,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(helipad) (1)
- lspd[46] = CreateDynamicObject(3928,1548.19409180,-1644.09082031,27.40211487,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(helipad) (2)
- lspd[47] = CreateDynamicObject(17969,1539.39099121,-1614.46447754,13.83594322,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(hub_graffitti) (1)
- lspd[48] = CreateDynamicObject(10444,1550.53417969,-1626.81640625,12.23130894,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(poolwater_sfs) (1)
- lspd[49] = CreateDynamicObject(2193,257.39413452,83.34569550,1001.44531250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_2) (2)
- lspd[50] = CreateDynamicObject(2193,255.53695679,83.34815216,1001.44531250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_2) (3)
- lspd[51] = CreateDynamicObject(2198,253.60383606,84.33051300,1001.44531250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_3) (1)
- lspd[52] = CreateDynamicObject(1715,254.52194214,83.14797974,1001.44531250,0.00000000,0.00000000,224.00000000, -1, -1, -1, 500.0); //object(kb_swivelchair2) (1)
- lspd[53] = CreateDynamicObject(1715,256.47885132,83.04333496,1001.44531250,0.00000000,0.00000000,179.99450684, -1, -1, -1, 500.0); //object(kb_swivelchair2) (2)
- lspd[54] = CreateDynamicObject(1715,258.49404907,83.05972290,1001.44531250,0.00000000,0.00000000,179.99450684, -1, -1, -1, 500.0); //object(kb_swivelchair2) (3)
- lspd[55] = CreateDynamicObject(2172,257.09881592,85.28472137,1001.44531250,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_1) (1)
- lspd[56] = CreateDynamicObject(2172,255.19909668,86.29611969,1001.44531250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_1) (2)
- lspd[57] = CreateDynamicObject(1671,258.12081909,85.42935944,1001.90551758,0.00000000,0.00000000,224.00000000, -1, -1, -1, 500.0); //object(swivelchair_a) (1)
- lspd[58] = CreateDynamicObject(1671,256.06536865,85.38607025,1001.90551758,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(swivelchair_a) (2)
- lspd[59] = CreateDynamicObject(1828,218.60507202,80.15821075,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(man_sdr_rug) (1)
- lspd[60] = CreateDynamicObject(2002,220.38973999,82.46650696,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(water_coolnu) (1)
- lspd[61] = CreateDynamicObject(14604,219.53727722,82.30939484,1005.01971436,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(tv_stand_bike) (1)
- lspd[62] = CreateDynamicObject(2815,246.18954468,62.10572052,1002.64062500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gb_livingrug01) (1)
- lspd[63] = CreateDynamicObject(2394,258.14593506,80.83593750,1003.68988037,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_clothes_step_1) (1)
- lspd[64] = CreateDynamicObject(1361,249.90000916,71.63043213,1003.38397217,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_bush_prop2) (2)
- //SAST fix
- CreateDynamicObject(14843,320.89608765,319.73565674,999.45233154,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(int_policea01) (1)
- //LSPD OBJECTS
- pdbarriergateobj = CreateDynamicObject(968, 1544.682495, -1630.980000, 13.215000, 0.0000, 90.0000, 90.0000); //pd barrier gate
- pdgaragegateobj = CreateDynamicObject(971, 1588.965698, -1637.882690, 15.260185, 0.0000, 0.0000, 180.0000); //pd garage gate
- LSPD_Door[ObjectID1] = CreateDynamicObject(14819, 246.4050, 72.3000, 1003.6700, 0.0000, 0.0000, 180.0000); //door 01
- LSPD_Door[ObjectID2] = CreateDynamicObject(14819, 246.4050, 72.5750, 1003.6650, 0.0000, 0.0000, 0.0000); //door 02
- LSPD_Door[ObjectID3] = CreateDynamicObject(13360, 246.9850, 72.4500, 1003.7000, 0.0000, 0.0000, 180.0000); //door block 01
- LSPD_Door[ObjectID4] = CreateDynamicObject(13360, 245.8330, 72.4500, 1003.7000, 0.0000, 0.0000, 180.0000); //door block 01
- CreateDynamicObject(983, 1544.719238, -1620.600000, 13.213117, 0.0000, 0.0000, 0.0000); //front gate fence 01
- CreateDynamicObject(983, 1544.704590, -1635.950000, 13.213117, 0.0000, 0.0000, 0.0000); //front gate fence 02
- CreateDynamicObject(1334, 1544.863037, -1616.862305, 13.395647, 0.0000, 0.0000, 0.0000); //blue bin
- CreateDynamicObject(1343, 1546.723389, -1617.042847, 13.139275, 0.0000, 0.0000, 180.0000); //small blue bin
- CreateDynamicObject(1496, 1564.150513, -1667.3, 27.389730, 0.0000, 0.0000, 0.0000); //roof door
- CreateDynamicObject(1496, 1582.600464, -1637.951782, 12.554016, 0.0000, 0.0000, 0.0000); //garage door
- CreateDynamicObject(1507, 2263.2583, -1209.7000, 1048.0234, 0.0000, 0.0000, -90.0000); //vagosblock
- CreateDynamicObject(1537, -2169.5890, 639.9550, 1051.4000, 0.0000, 0.0000, 0.0000); //yakuzablock
- CreateDynamicObject(2567, 2225.1010, 1596.8000, 1000.9500, 0.0000, 0.0000, 0.0000); //drugfacblock 01
- CreateDynamicObject(2567, 2194.9000, 1618.6484, 1000.9500, 0.0000, 0.0000, 90.0000); //drugfacblock 02
- CreateDynamicObject(1685, 2205.9358, 1580.4000, 999.6800, 0.0000, 0.0000, 0.0000); //drugfaccbox
- print("Stage 9");
- //LSPD DOOR
- CreateDynamicObject(13360,222.201110,68.510246,1005.039062,0.000000,0.000000,269.637847); //sideblock 1
- CreateDynamicObject(13360,222.197418,68.508964,1006.065673,0.000000,0.000000,268.384521); //sideblock 2
- CreateDynamicObject(13360,222.148254,71.100784,1005.039062,0.000000,0.000000,270.767974); //sideblock 3
- CreateDynamicObject(13360,222.163452,71.105056,1005.673706,0.000000,0.000000,268.260955); //sideblock 4
- door = CreateDynamicObject(1504, 222.09, 70.57, 1004.00, 0.00, 0.00, -90.00);
- CreateDynamicObject(2167, 216.87, 66.90, 1004.00, 0.00, 0.00, 87.64);
- CreateDynamicObject(2167, 216.91, 67.81, 1004.00, 0.00, 0.00, 87.64);
- CreateDynamicObject(2167, 216.95, 68.73, 1004.00, 0.00, 0.00, 87.64);
- CreateDynamicObject(1808, 217.13, 69.46, 1004.00, 0.00, 0.00, -268.51);
- CreateDynamicObject(2164, 217.91, 65.81, 1004.00, 0.00, 0.00, 179.96);
- CreateDynamicObject(2164, 221.44, 65.82, 1004.00, 0.00, 0.00, -180.75);
- CreateDynamicObject(2164, 219.68, 65.82, 1004.00, 0.00, 0.00, -180.65);
- CreateDynamicObject(2008, 219.13, 68.01, 1004.00, 0.00, 0.00, 0.00);
- CreateDynamicObject(1714, 219.46, 66.77, 1004.00, 0.00, 0.00, 164.00);
- CreateDynamicObject(1703, 217.90, 72.23, 1004.00, 0.00, 0.00, 0.00);
- CreateDynamicObject(1776, 217.30, 70.39, 1004.99, 0.00, 0.00, -270.94);
- CreateDynamicObject(2001, 217.31, 71.43, 1004.00, 0.00, 0.00, 0.00);
- CreateDynamicObject(1714, 219.75, 69.42, 1004.00, 0.00, 0.00, -9.08);
- CreateDynamicObject(1704, 220.74, 72.19, 1004.00, 0.00, 0.00, 0.00);
- //MATPICKUP OBJECTS
- CreateDynamicObject(944, 2386.495605, -2008.356934, 13.438490, 0.0000, 0.0000, 0.0000);
- CreateDynamicObject(1271, 2387.261719, -2007.988037, 14.349586, 0.0000, 0.0000, 0.0000);
- CreateDynamicObject(2358, 2386.569336, -2007.799561, 14.116121, 0.0000, 0.0000, 0.0000);
- CreateDynamicObject(2359, 2384.486084, -2007.849976, 12.763988, 0.0000, 0.0000, 0.0000);
- CreateDynamicObject(2358, 2387.232178, -2008.728516, 14.116121, 0.0000, 0.0000, 337.5000);
- CreateDynamicObject(1635, 2395.528320, -2008.089722, 16.236403, 0.0000, 0.0000, 90.0000);
- CreateDynamicObject(1522, 2389.684326, -2007.461548, 12.540270, 0.0000, 0.0000, 0.0000);
- //MATDELIVER OBJECTS
- CreateDynamicObject(3265, 2268.533447, -1136.080566, 27.139744, 0.0000, 0.0000, 351.4056);
- CreateDynamicObject(984, 2294.078125, -1114.260376, 37.538239, 0.0000, 0.0000, 0.0000);
- CreateDynamicObject(984, 2294.097168, -1101.486816, 37.537029, 0.0000, 0.0000, 0.0000);
- CreateDynamicObject(944, 2284.854492, -1103.568726, 37.861351, 0.0000, 0.0000, 67.5000);
- CreateDynamicObject(944, 2291.843994, -1103.760742, 37.861351, 0.0000, 0.0000, 168.7500);
- CreateDynamicObject(964, 2283.867676, -1105.427246, 36.976563, 0.0000, 0.0000, 67.5000);
- CreateDynamicObject(2358, 2284.159668, -1103.942505, 38.538982, 0.0000, 0.0000, 67.5000);
- //TRIADS OBJECTS
- CreateDynamicObject(3525, 1193.078979, -1651.859863, 14.268278, 0.0000, 0.0000, 0.0000); //flame 01
- CreateDynamicObject(3525, 1189.237183, -1651.868774, 14.293088, 0.0000, 0.0000, 0.0000); //flame 02
- CreateDynamicObject(2025, 774.7000, -49.5000, 999.6000, 0.0000, 0.0000, 180.0000); //triadsblock 01
- CreateDynamicObject(2025, 774.7000, -50.3600, 999.6000, 0.0000, 0.0000, 180.0000); //triadsblock 02
- CreateDynamicObject(2025, 774.7000, -49.5000, 1002.1000, 0.0000, 0.0000, 180.0000); //triadsblock 03
- CreateDynamicObject(2025, 774.7000, -50.3600, 1002.1000, 0.0000, 0.0000, 180.0000); //triadsblock 04
- //HOUSE OBJECTS
- CreateDynamicObject(1966, 224.722000, 1023.607421, 1085.373657, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1966, 224.664855, 1020.942382, 1088.083496, 90.240844, 0.000000, 0.000000);
- CreateDynamicObject(1506, 251.262512, 1034.215698, 1083.546020, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(1980, 234.153518, 1068.797607, 1084.867309, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(1754, 231.707962, 1069.478881, 1083.190185, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(1754, 236.683090, 1069.543945, 1083.182373, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(1742,235.386962,1068.583618,1083.177368,0.000000,0.000000,179.168533);
- CreateDynamicObject(1742,233.408523,1068.524658,1083.172973,0.000000,0.000000,178.855194);
- CreateDynamicObject(630,234.080718,1069.329833,1084.194213,0.000000,0.000000,181.154983);
- //AZTECA OBJECTS
- CreateDynamicObject(1966, -2636.6692, 1403.0565, 908.2300, 0.0000, 0.0000, 0.0000); //entrance block
- //AIRPORT OBJECTS
- CreateDynamicObject(1683, 1872.291626, -2283.772705, 18.449501, 0.0000, 0.0000, 0.0000);
- CreateDynamicObject(1681, 1995.646240, -2382.106934, 14.674913, 0.0000, 0.0000, 90.0000);
- CreateDynamicObject(1681, 1996.920410, -2315.446533, 14.724913, 0.0000, 0.0000, 90.0000);
- CreateDynamicObject(1683, 1728.122070, -2420.928711, 18.457298, 0.0000, 0.0000, 270.0000);
- CreateDynamicObject(1683, 1647.249756, -2420.928711, 18.457314, 0.0000, 0.0000, 270.0000);
- //CITYHALL OBJECTS
- CreateDynamicObject(4848, 392.889465, 171.200653, 1010.368469, 0.0000, 0.0000, 270.0000); //entrance block
- CreateDynamicObject(630, 385.967163, 170.149429, 1008.407959, 0.0000, 0.0000, 0.0000); //plant
- CreateDynamicObject(630, 385.941071, 177.544662, 1008.407959, 0.0000, 0.0000, 146.2500); //plant
- //Prison Inside // COMMENTED
- CreateDynamicObject(14412, 1789.184448, -1569.734131, 1645.317383, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18553, 1757.807495, -1577.933228, 1641.404663, 0.000000, 0.000000, -180.859341949);
- CreateDynamicObject(1800, 1771.276611, -1584.358398, 1635.990845, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1966, 1770.740234, -1583.169922, 1637.284180, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(1966, 1776.392700, -1583.226563, 1637.359253, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(1966, 1798.508789, -1583.209229, 1637.310425, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(2514, 1775.742798, -1582.768799, 1635.972778, 0.000000, 0.000000, -180.000019848);
- CreateDynamicObject(1508, 1806.459961, -1576.635376, 1637.506836, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(14459, 1784.398560, -1569.747925, 1643.005615, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(14414, 1768.359863, -1563.225098, 1636.910400, 0.000000, 0.000000, 179.999962552);
- CreateDynamicObject(1499, 1766.208862, -1580.001831, 1640.113403, 0.000000, 0.000000, 269.999943828);
- CreateDynamicObject(1499, 1766.235107, -1583.019409, 1640.106812, 0.000000, 0.000000, 90.0000385718);
- CreateDynamicObject(8060, 1791.806763, -1535.868530, 1634.645874, -181.340741088, 0.000000, 0.000114591559026);
- CreateDynamicObject(1966, 1776.405151, -1556.301025, 1637.259155, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(1966, 1781.872559, -1556.312622, 1637.260132, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(1966, 1787.494995, -1556.312012, 1637.309204, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(1966, 1793.112305, -1556.317383, 1637.309204, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(1966, 1798.479492, -1556.314819, 1637.334961, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(2514, 1801.900879, -1556.299805, 1635.972778, 0.000000, 0.000000, -360.000039696);
- CreateDynamicObject(2514, 1797.694580, -1556.320923, 1635.972778, 0.000000, 0.000000, -360.000039696);
- CreateDynamicObject(2514, 1792.343384, -1556.328247, 1635.972778, 0.000000, 0.000000, -360.000039696);
- CreateDynamicObject(2514, 1786.635132, -1556.303223, 1635.972778, 0.000000, 0.000000, -360.000039696);
- CreateDynamicObject(2514, 1775.718750, -1556.331665, 1635.972778, 0.000000, 0.000000, -360.000039696);
- CreateDynamicObject(2514, 1781.187256, -1556.340454, 1635.972778, 0.000000, 0.000000, -360.000039696);
- CreateDynamicObject(1800, 1771.360718, -1559.318848, 1635.851929, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1800, 1777.049072, -1559.313843, 1635.801880, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1800, 1782.598267, -1559.296021, 1635.826904, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1800, 1788.114868, -1559.312378, 1635.801880, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1800, 1793.790649, -1559.328369, 1635.901978, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1800, 1799.285767, -1559.336670, 1635.901978, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(16378, 1760.124512, -1569.561523, 1640.866821, 0.000000, 0.000000, 180.000019848);
- CreateDynamicObject(16154, 1761.361694, -1562.671509, 1640.236450, 0.000000, 0.000000, -180.000019848);
- CreateDynamicObject(2737, 1757.953247, -1566.131714, 1642.168091, 0.000000, 0.000000, 89.999981276);
- Prison_Buttons[PrisonCells1] = CreateDynamicObject(14459, 1784.705322, -1589.811279, 1637.197510, 0.000000, 0.000000, 0.000000);
- Prison_Buttons[PrisonCells2] = CreateDynamicObject(14459, 1784.613647, -1549.697021, 1637.217896, 0.000000, 0.000000, -359.9999824);
- CreateDynamicObject(1966, 1781.853516, -1583.229004, 1637.334229, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(1966, 1787.537476, -1583.232300, 1637.343872, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(1966, 1793.307007, -1583.234009, 1637.309937, 0.000000, 0.000000, 89.999981276);
- CreateDynamicObject(2514, 1781.272949, -1582.731934, 1635.972778, 0.000000, 0.000000, -180.000019848);
- CreateDynamicObject(2514, 1786.829224, -1582.760132, 1635.972778, 0.000000, 0.000000, -180.000019848);
- CreateDynamicObject(2514, 1792.491821, -1582.755005, 1635.972778, 0.000000, 0.000000, -180.000019848);
- CreateDynamicObject(2514, 1797.929688, -1582.738647, 1635.972778, 0.000000, 0.000000, -180.000019848);
- CreateDynamicObject(2514, 1802.001953, -1582.729614, 1635.972778, 0.000000, 0.000000, -180.000019848);
- CreateDynamicObject(1800, 1777.064087, -1584.312622, 1635.977051, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1800, 1782.810181, -1579.774170, 1635.977051, 0.000000, 0.000000, -179.999962552);
- CreateDynamicObject(1800, 1788.411133, -1579.764282, 1635.977051, 0.000000, 0.000000, -179.999962552);
- CreateDynamicObject(1800, 1794.223511, -1579.755005, 1635.977051, 0.000000, 0.000000, -179.999962552);
- CreateDynamicObject(1800, 1799.393555, -1579.773682, 1635.977051, 0.000000, 0.000000, -179.999962552);
- //Prison Outside
- CreateDynamicObject(2961, 1765.9000, -1574.0979, 1641.7, 0.000000, 0.000000, 270.0); // Cell Button
- CreateDynamicObject(2961, 209.039398, 1813.174683, 22.5, 0.000000, 0.000000, 44.999990638); // Gate Button
- CreateDynamicObject(18553, 226.373581, 1872.370239, 14.026321, 0.000000, 0.000000, -0.859436692696);
- CreateDynamicObject(1508, 201.098923, 1869.536499, 13.755270, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1886, 201.656082, 1874.104370, 16.244650, 18.9076072393, 0.000000, 44.999990638); // Camera
- CreateDynamicObject(1886, 159.715179, 1931.205322, 32.528725, 16.3292971612, 0.000000, 292.500053739); // Camera
- CreateDynamicObject(1886, 264.598419, 1893.736816, 32.537567, 16.3292971612, 0.000000, 270.000001124); // Camera
- CreateDynamicObject(1886, 167.735580, 1848.043457, 32.510399, 16.3292971612, 0.000000, 90.0000385718); // Camera
- CreateDynamicObject(1886, 460.5567,-92.2545,1002.25, 10.0, 0.0, 235.0); // Camera
- CreateDynamicObject(1886, 1766.85, -1570.11, 1646.0, 15.0, 0.0, 90.0); // Camera
- CreateDynamicObject(3998, 284.808838, 1892.831299, 3.370023, 0.000000, 0.000000, 89.999981276); //
- CreateDynamicObject(1886, 265.112061, 1862.907837, 12.618983, 18.9076072393, 0.000000, 44.999990638); // Camera
- CreateDynamicObject(1555, 267.993896, 1864.183838, 7.767914, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(16095, 267.381104, 1867.212524, 7.609875, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(16095, 286.108734, 1868.651123, 7.752488, 0.000000, 0.000000, -89.999981276); //
- Prison_Buttons[PrisonGate] = CreateDynamicObject(8674, 96.808670, 1920.512817, 16.234968, 0.000000, 90.2408527331, -89.999981276);
- CreateDynamicObject(1216, 185.3808, 1923.9442, 17.4, 0.000000, 0.0, 0.0);
- CreateDynamicObject(1505, -221.9176, 1404.6, 26.6, 0.000000, 0.000000, -90.00000); // Lil Probe Inn Door For Locker Room
- CreateDynamicObject(5822, 1150.8000488281, -1382.5999755859, 20.290000915527, 0, 0, 93.654907226563); // All Saints Stairs
- //atms
- CreateDynamicObject(2622, 1747.91, -1862.89, 13.41, 0.00, 0.00, 0.00);
- CreateDynamicObject(2942,1928.673461,-1783.487304,13.114453,0.000000,0.000000,90.431625); //atm object
- CreateDynamicObject(2942,2228.281982,-1710.821166,13.177772,0.000000,0.000000,269.949920); // atm object gym
- CreateDynamicObject(2618,2228.382324,-1710.860961,12.549647,0.000000,0.000000,269.315551); // atm protection gym
- // CIA Headquarters
- CreateDynamicObject(1526,-1617.47692871,716.51867676,19.20186996,0.00000000,0.00000000,269.99996948); //object(tag_rifa) (1)
- CreateDynamicObject(1257,-1623.14575195,717.65960693,14.81492615,0.00000000,0.00000000,269.99996948); //object(bustopm) (1)
- CreateDynamicObject(1526,-2634.37548828,631.59533691,17.45034409,0.00000000,0.00000000,90.00000000); //object(tag_rifa) (2)
- CreateDynamicObject(1526,-2661.07348633,984.68389893,65.13790131,0.00000000,2.00000000,272.00000000); //object(tag_rifa) (3)
- CreateDynamicObject(1526,-2651.61499023,985.46691895,65.58100891,0.00000000,0.00000000,269.99996948); //object(tag_rifa) (4)
- CreateDynamicObject(1526,-2668.27612305,998.12036133,63.26943207,0.34835815,85.01214600,356.01516724); //object(tag_rifa) (5)
- CreateDynamicObject(1526,-2590.52832031,991.52233887,79.95872498,0.00000000,0.00000000,269.99996948); //object(tag_rifa) (6)
- CreateDynamicObject(987,1009.87573242,1183.89599609,9.82031250,0.00000000,0.00000000,358.00000000); //object(elecfence_bar) (1)
- CreateDynamicObject(987,998.19226074,1182.05139160,9.82031250,0.00000000,0.00000000,9.99499512); //object(elecfence_bar) (2)
- CreateDynamicObject(987,986.47332764,1180.12109375,9.82031250,0.00000000,0.00000000,9.99206543); //object(elecfence_bar) (3)
- CreateDynamicObject(987,974.63098145,1179.60986328,9.82031250,0.00000000,0.00000000,3.99206543); //object(elecfence_bar) (4)
- CreateDynamicObject(987,962.67022705,1179.01489258,9.82031250,0.00000000,0.00000000,3.98803711); //object(elecfence_bar) (5)
- CreateDynamicObject(987,962.31921387,1167.11499023,9.82031250,0.00000000,0.00000000,88.48803711); //object(elecfence_bar) (6)
- CreateDynamicObject(987,961.76495361,1155.12548828,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (7)
- CreateDynamicObject(987,961.30187988,1143.21569824,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (8)
- CreateDynamicObject(987,961.03649902,1131.45910645,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (9)
- CreateDynamicObject(987,960.59680176,1119.57629395,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (10)
- CreateDynamicObject(987,960.08410645,1107.66589355,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (11)
- CreateDynamicObject(987,959.61975098,1095.80651855,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (12)
- CreateDynamicObject(987,959.22808838,1083.83142090,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (13)
- CreateDynamicObject(987,958.55352783,1071.82104492,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (14)
- CreateDynamicObject(987,969.37207031,1066.98559570,9.82031250,0.00000000,0.00000000,156.48388672); //object(elecfence_bar) (15)
- CreateDynamicObject(987,980.07977295,1061.97180176,9.82031250,0.00000000,0.00000000,156.48376465); //object(elecfence_bar) (16)
- CreateDynamicObject(987,1148.75756836,995.94769287,9.82031250,0.00000000,0.00000000,224.48390198); //object(elecfence_bar) (17)
- CreateDynamicObject(987,1156.45617676,1005.07177734,9.82031250,0.00000000,0.00000000,230.48364258); //object(elecfence_bar) (18)
- CreateDynamicObject(987,1162.07678223,1015.40466309,9.82031250,0.00000000,0.00000000,242.48214722); //object(elecfence_bar) (19)
- CreateDynamicObject(987,1167.04577637,1026.12353516,9.82031250,0.00000000,0.00000000,245.72926331); //object(elecfence_bar) (20)
- CreateDynamicObject(987,1170.99609375,1037.35009766,9.82031250,0.00000000,0.00000000,251.72570801); //object(elecfence_bar) (21)
- CreateDynamicObject(987,1173.12219238,1049.05053711,9.82031250,0.00000000,0.00000000,259.72424316); //object(elecfence_bar) (22)
- CreateDynamicObject(987,1173.84326172,1061.05541992,9.82031250,0.00000000,0.00000000,267.22229004); //object(elecfence_bar) (23)
- CreateDynamicObject(987,1174.63818359,1073.06420898,9.82031250,0.00000000,0.00000000,267.22045898); //object(elecfence_bar) (24)
- CreateDynamicObject(987,1173.02539062,1084.92895508,9.82031250,0.00000000,0.00000000,277.22045898); //object(elecfence_bar) (25)
- CreateDynamicObject(987,1170.63586426,1096.60864258,9.82031250,0.00000000,0.00000000,281.96801758); //object(elecfence_bar) (26)
- CreateDynamicObject(987,1166.53430176,1107.88818359,9.82031250,0.00000000,0.00000000,291.21411133); //object(elecfence_bar) (27)
- CreateDynamicObject(987,1161.19140625,1118.79028320,9.82031250,0.00000000,0.00000000,297.20910645); //object(elecfence_bar) (28)
- CreateDynamicObject(987,1154.10510254,1128.92004395,9.82031250,0.00000000,0.00000000,305.20761108); //object(elecfence_bar) (29)
- CreateDynamicObject(987,1147.26391602,1138.66674805,9.82031250,0.00000000,0.00000000,305.20568848); //object(elecfence_bar) (30)
- CreateDynamicObject(987,1139.86157227,1148.15722656,9.82031250,0.00000000,0.00000000,308.95568848); //object(elecfence_bar) (31)
- CreateDynamicObject(987,1131.32604980,1156.67053223,9.82031250,0.00000000,0.00000000,315.95202637); //object(elecfence_bar) (32)
- CreateDynamicObject(987,1121.66491699,1163.87158203,9.82031250,0.00000000,0.00000000,324.45031738); //object(elecfence_bar) (33)
- CreateDynamicObject(987,1110.84423828,1168.88916016,9.82031250,0.00000000,359.00000000,335.44830322); //object(elecfence_bar) (34)
- CreateDynamicObject(987,1099.96289062,1174.34887695,9.82031250,0.00000000,358.99475098,335.44555664); //object(elecfence_bar) (35)
- CreateDynamicObject(987,1088.29650879,1177.26867676,9.82031250,0.00000000,358.99475098,345.94555664); //object(elecfence_bar) (36)
- CreateDynamicObject(987,1076.59924316,1180.58801270,9.82031250,0.00000000,358.99475098,345.94299316); //object(elecfence_bar) (37)
- CreateDynamicObject(987,1064.86840820,1181.68896484,9.82031250,0.00000000,358.99475098,355.44299316); //object(elecfence_bar) (38)
- CreateDynamicObject(987,1052.85339355,1182.07128906,9.82031250,0.00000000,358.99475098,358.19067383); //object(elecfence_bar) (39)
- CreateDynamicObject(987,1033.19323730,1183.15014648,9.82031250,0.00000000,358.99475098,0.93725586); //object(elecfence_bar) (40)
- CreateDynamicObject(987,1041.94274902,1183.11389160,9.82031250,0.00000000,358.99475098,356.93383789); //object(elecfence_bar) (41)
- CIAGate = CreateDynamicObject(980,1027.46203613,1183.29357910,12.45144653,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
- //CreateDynamicObject(2930,209.07063293,178.95849609,1004.66809082,0.00000000,0.00000000,0.00000000); //object(chinatgate) (2)
- //CreateDynamicObject(2930,209.07063293,178.95849609,1004.66809082,0.00000000,0.00000000,0.00000000); //object(chinatgate) (3)
- CreateDynamicObject(2957,236.66204834,139.70629883,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (1)
- CreateDynamicObject(2957,240.99508667,139.72036743,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (2)
- CreateDynamicObject(2957,236.66113281,139.70605469,1004.51910400,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (4)
- CreateDynamicObject(2957,241.00291443,139.70594788,1004.51910400,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (5)
- CreateDynamicObject(2946,239.38481140,139.79792786,1002.02343750,0.00000000,0.00000000,92.50000000); //object(cr_door_03) (1)
- CreateDynamicObject(2957,246.77481079,169.49732971,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (6)
- CreateDynamicObject(2957,242.35049438,169.42684937,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (7)
- CreateDynamicObject(2957,237.95040894,169.35693359,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (8)
- CreateDynamicObject(2957,236.70050049,169.33660889,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (9)
- CreateDynamicObject(2957,246.77441406,169.49707031,1006.79632568,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (11)
- CreateDynamicObject(2957,246.77441406,169.49707031,1009.87432861,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (12)
- CreateDynamicObject(2957,242.34960938,169.42675781,1006.76910400,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (13)
- CreateDynamicObject(2957,242.34960938,169.42675781,1009.84368896,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (14)
- CreateDynamicObject(2957,236.70019531,169.33593750,1006.74627686,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (15)
- CreateDynamicObject(2957,236.70019531,169.33593750,1009.27227783,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (16)
- CreateDynamicObject(2957,237.95019531,169.35644531,1006.74334717,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (18)
- CreateDynamicObject(2957,237.95019531,169.35644531,1009.74261475,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (19)
- CreateDynamicObject(2946,224.23780823,189.35128784,1002.03125000,0.00000000,0.00000000,90.75000000); //object(cr_door_03) (2)
- CreateDynamicObject(1557, 238.6,1084.64,1083.2, 0.0, 0.0, 0.0); // LBCC Door
- CreateDynamicObject(1508, 2571.2, -1302.0, 1044.8, 0.0, 0.0, 0.0); // LBCC Lower Door
- CreateDynamicObject(1508, 2522.66, -1302.4, 1048.6, 0.0, 0.0, 0.0); // LBCC Higher Door
- CreateDynamicObject(1557, 1240.30, -810.765, 1083.02, 0.0, 0.0, 270.0);
- CreateDynamicObject(1557, 1240.30, -813.80, 1083.02, 0.0, 0.0, 90.0);
- CreateDynamicObject(1557, 1225.025, -814.2, 1083.02, 0.0, 0.0, 0.0);
- CreateDynamicObject(1557, 1228.045, -814.2, 1083.02, 0.0, 0.0, 180.0);
- //The Walton Cartel
- CreateDynamicObject(5779, 1133.0580, -11.67, 1001.2, 0.0, 0.0, 270.0); // The Walton Cartel Casino Door Block
- print("Stage 10");
- for(new h = 0; h < sizeof(FamilyInfo); h++)
- {
- FamilyInfo[h][PickupID] = CreateDynamicPickup(1210, 23, FamilyInfo[h][FamilySafePos][0],FamilyInfo[h][FamilySafePos][1], FamilyInfo[h][FamilySafePos][2], 0, -1, -1, 100.0 );
- }
- LoadHouse();
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(HouseInfo[h][hLocation_x]!=0.000000)
- {
- if(HouseInfo[h][hOwned] == 0)
- {
- new VString[255];
- new price = HouseInfo[h][hPrice];
- format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", price,HouseInfo[h][hLevel]);
- HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- //HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z], 31, 0);
- }
- else if(HouseInfo[h][hOwned] == 1)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
- strmid(name, HouseInfo[h][hName], 0, strlen(HouseInfo[h][hName]), 255);
- if(HouseInfo[h][hRentable] == 0)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[h][hLevel],owner);
- HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[h][hRentable] == 1)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[h][hLevel],owner,HouseInfo[h][hRent]);
- HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- //HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z], 32, 0);
- }
- if(HouseInfo[h][hSafe] == 1)
- {
- HouseSafe[h] = CreateDynamicPickup(1210, 23, HouseInfo[h][hSafex],HouseInfo[h][hSafey], HouseInfo[h][hSafez], HouseInfo[h][hVirtualWorld], -1, -1, 100.0 );
- }
- HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]);
- }
- }
- LoadBiz();
- for(new h = 0; h < sizeof(BizInfo); h++)
- {
- if(BizInfo[h][bLocation_x]!=0.000000)
- {
- if(BizInfo[h][bOwned] == 0 && BizInfo[h][bType] != 0)
- {
- new VString[255];
- new price = BizInfo[h][bPrice];
- format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
- BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
- BizPickup[h] = CreateDynamicPickup(1272, 1, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
- if(BizInfo[h][bType] == 1)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 17, 0);
- else if(BizInfo[h][bType] == 2)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 49, 0);
- else if(BizInfo[h][bType] == 3)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 18, 0);
- else if(BizInfo[h][bType] == 4)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 50, 0);
- else if(BizInfo[h][bType] == 5)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 45, 0);
- else if(BizInfo[h][bType] == 6)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 25, 0);
- else if(BizInfo[h][bType] == 7)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 62, 0);
- else if(BizInfo[h][bType] == 8)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 36, 0);
- }
- if(BizInfo[h][bOwned] == 1 && BizInfo[h][bType] != 0)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, BizInfo[h][bOwner], 0, strlen(BizInfo[h][bOwner]), 255);
- strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
- format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[h][bFee]);
- BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
- BizPickup[h] = CreateDynamicPickup(1272, 1, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
- if(BizInfo[h][bType] == 1)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 17, 0);
- else if(BizInfo[h][bType] == 2)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 49, 0);
- else if(BizInfo[h][bType] == 3)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 18, 0);
- else if(BizInfo[h][bType] == 4)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 50, 0);
- else if(BizInfo[h][bType] == 5)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 45, 0);
- else if(BizInfo[h][bType] == 6)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 25, 0);
- else if(BizInfo[h][bType] == 7)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 62, 0);
- else if(BizInfo[h][bType] == 8)
- BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 36, 0);
- }
- if(BizInfo[h][bOwned] == 0 && BizInfo[h][bType] == 0)
- {
- new VString[255];
- new name[25];
- strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
- format(VString,sizeof(VString),"%s", name);
- BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
- BizPickup[h] = CreateDynamicPickup(1239, 1, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
- }
- }
- }
- //DYNAMIC PICKUPS
- CreateDynamicPickup(1239, 23, 1450.7286,-982.0809,1402.7000); // Robbank
- CreateDynamic3DTextLabel("/robbank", COLOR_RED, 1450.7286,-982.0809,1402.7000, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- iVIPLounge1 = CreateDynamicPickup(1239, 23, 327.6485,-1512.1423,36.0325);//VIP Lounge Pickup (Enter) - PaNoULiS
- iVIPCRACK = CreateDynamicPickup(1279, 23, -2673.5171,1398.4757,918.3516);//VIP crack
- iVIPKNIFE = CreateDynamicPickup(335, 23, -2667.1187,1399.3182,918.3516);//VIP knife
- iVIPSpas12 = CreateDynamicPickup(351, 23, -2654.3123,1424.4027,912.4063);//VIP spas
- iVIPM4 = CreateDynamicPickup(356, 23, -2660.8079,1424.4830,912.4063);//VIP m4
- iVIPAK47 = CreateDynamicPickup(355, 23, -2667.1355,1424.5560,912.4063);//VIP ak
- iVIPARMOR = CreateDynamicPickup(1242, 23, -2670.8728,1429.4496,906.4609);//VIP armor
- iVIPHP = CreateDynamicPickup(1240, 23, -2665.2717,1425.9445,906.4609);//VIP hp
- iHeal1 = CreateDynamicPickup(1239, 23, 1205.7174,-1368.5072,1029.4792); //Hospital 1
- iHeal2 = CreateDynamicPickup(1239, 23, 2029.5945,-1404.6426,17.2512); //Hospital 2
- iDrughouse = CreateDynamicPickup(1575, 23, 323.0342,1118.5804,1083.8828); //Pot Get
- iCracklab = CreateDynamicPickup(1575, 23, 2346.2937,-1185.2551,1027.9766); //Crack Get
- iMget1 = CreateDynamicPickup(1239, 23, 1423.6151,-1320.5437,13.5547); //Materials Get 1
- iMget2 = CreateDynamicPickup(1239, 23, 2390.4053,-2008.2618,13.5537); //Materials Get 2
- iMget3 = CreateDynamicPickup(1239, 23, 765.1253,-1088.8364,24.0859); //Materials Get 3
- CreateDynamicPickup(1239, 23, -500.5291,-528.6747,25.5234); //Materials factory 3
- iCrateGet = CreateDynamicPickup(1239, 23, 2205.9199,1582.2222,999.9766); //Crate Get
- iClothes = CreateDynamicPickup(1239, 23, 754.5243,-39.7095,1000.5859); //Triads Change Uniform
- iArrest1 = CreateDynamicPickup(1247, 23, 1528.3268,-1677.8229,5.8906); //LSPD Arrest Garage
- iArrest2 = CreateDynamicPickup(1247, 23, 1565.1511,-1658.2452,28.3956); //LSPD Arrest Roof
- iArrest3 = CreateDynamicPickup(1247, 23, 615.2274,-584.8245,17.2266); //LSPD Arrest Dillimore
- iArrest4 = CreateDynamicPickup(1247, 23, 1028.0942,1046.1918,11.0000); //CIA Arrest point
- iDeliver = CreateDynamicPickup(1247, 23, 1993.1749,-2313.1492,13.5469); //LSPD Airport Deliver
- iSprunk = CreateDynamicPickup(1239, 23, 1324.2122,286.5997,20.0452); //Sprunk Factory
- CreateDynamicPickup(1239, 23, 375.5890,180.6613,1014.1875);
- iFBI = CreateDynamicPickup(1239, 23, 266.1936,108.6017,1004.6172); //FBI
- ipaintball = CreateDynamicPickup (1254,23,1310.2244,-1368.6892,13.5526); //paintball
- iVault = CreateDynamicPickup (1254,23,2311.6445,-0.5010,26.7422); //vault
- //JOBS
- iDetective = CreateDynamicPickup(1239, 23, 256.6144,69.6090,1003.6406); //Detective
- iLawyer = CreateDynamicPickup(1239, 23, 1381.0413,-1088.8511,27.3906); //Lawyer
- iDealer = CreateDynamicPickup(1239, 23, 2166.3772,-1675.3829,15.0859); //Drug Dealer
- iMechanic = CreateDynamicPickup(1239, 23, 2329.4089,-2316.0996,13.5469); //Mechanic
- iBodyguard = CreateDynamicPickup(1239, 23, 2226.1716,-1718.1792,13.5165); //Bodyguard
- iArms = CreateDynamicPickup(1239, 23, 1366.4325,-1275.2096,13.5469); //Arms Dealer
- iProd = CreateDynamicPickup(1239, 23, 545.6451,-1293.9248,17.2422); //Prod Dealer
- iProd2 = CreateDynamicPickup(1239, 23, 553.7549,-1314.1748,17.2422); //Prod Get
- // iTrashman = CreateDynamicPickup(1239, 23, 2194.2087,-1972.5421,13.5593); // Trashman
- // iTrashUniform = CreateDynamicPickup(1275, 23, 2200.5842,-1970.2686,13.7841); // Trashman Uniform
- iTaxi = CreateDynamicPickup(1239, 23, 1741.7062,-1863.6664,13.5748); //Taxi
- iSmuggler = CreateDynamicPickup(1239, 23, 2354.2703,-1169.3293,28.0083); //Drug Smuggler
- iTraining = CreateDynamicPickup(1239, 23, 1230.1525,-772.6310,1084.0127); //Training
- //WEAPONS
- CreateDynamicPickup(1279, 2, 2346.1479,-1185.3992,1027.9766); // Crack lab pickup
- para = CreateDynamicPickup(371, 2, 1544.2,-1353.4,329.4); //Parachute
- dildo = CreateDynamicPickup(321, 2, 261.6014,71.2014,1003.2422); //PD Dildo
- poolcue = CreateDynamicPickup(338, 2, 508.2798,-85.0735,998.9609); //10GB Poolcue
- //dion
- iOrder = CreateDynamicPickup(1210, 23, 971.5425,-43.2693,1001.1172,826097210,-1,-1,100.0);
- iOrder2 = CreateDynamicPickup(1210, 23,210.5087,188.0434,1003.0313);
- //STATIC PICKUPS
- iPoint1 = CreateDynamicPickup(1239, 23, 2629.4319,-2107.8040,16.9531); //Fossil Fuel
- iPoint2 = CreateDynamicPickup(1239, 23, 2729.9077,-2451.4514,17.5937); //Auto Export
- iPoint3 = CreateDynamicPickup(1239, 23, 2172.1880,-2263.9683,13.3363); //Materials Deliver 1
- iPoint4 = CreateDynamicPickup(1239, 23, 2288.0730,-1105.4535,37.9766); //Materials Deliver 2
- new tmphour;
- new tmpminute;
- new tmpsecond;
- gettime(tmphour, tmpminute, tmpsecond);
- FixHour(tmphour);
- tmphour = shifthour;
- SetWorldTime(tmphour);
- txtAnimHelper = TextDrawCreate(610.0, 400.0,
- "~r~~k~~PED_SPRINT~ ~w~to stop the animation");
- TextDrawUseBox(txtAnimHelper, 0);
- TextDrawFont(txtAnimHelper, 2);
- TextDrawSetShadow(txtAnimHelper,0);
- TextDrawSetOutline(txtAnimHelper,1);
- TextDrawBackgroundColor(txtAnimHelper,0x000000FF);
- TextDrawColor(txtAnimHelper,0xFFFFFFFF);
- TextDrawAlignment(txtAnimHelper,3);
- synctimer = SetTimer("SyncUp", 60000, 1);
- savechartimer = SetTimer("SaveChars", 120000, 1); //20 mins
- unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);
- othtimer = SetTimer("OtherTimer", 1000, 1);
- cartimer = SetTimer("CarCheck", 30000, 1);
- pickuptimer = SetTimer("CustomPickups", 5000, 1); // 5 seconds
- autokicktimer = SetTimer("AutoKick", 40000, 1); // 5 seconds
- productiontimer = SetTimer("Production", 300000, 1); //5 mins
- checkgastimer = SetTimer("CheckGas", 45000, 1);
- stoppedvehtimer = SetTimer("StoppedVehicle", 15000, 1);
- SetTimer("WeedTimer", 1000, 1);
- botanimtimer = SetTimer("ApplyNPCAnims", 10000, 1); //10 seconds
- print("Stage 11");
- LoadCar();
- for(new h = 1; h < sizeof(CarInfo); h++)
- {
- if (CarInfo[h][tModel] != 0)
- {
- CarSys[h] = AddStaticVehicleEx(CarInfo[h][tModel],CarInfo[h][tLocationx],CarInfo[h][tLocationy],CarInfo[h][tLocationz],CarInfo[h][tAngle],CarInfo[h][tColorOne],CarInfo[h][tColorTwo],60000);
- if(CarInfo[h][tPaintjob] != 999)
- {
- ChangeVehiclePaintjob(h, CarInfo[h][tPaintjob]);
- }
- if(CarInfo[h][tOwned] == 0 && CarInfo[h][tOwnable] == 1)
- {
- new VString[255];
- new price = CarInfo[h][tPrice];
- format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
- VehicleLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[h][tLocationx],CarInfo[h][tLocationy],CarInfo[h][tLocationz], 20, INVALID_PLAYER_ID, h, 0, -1, -1, -1, 100.0);
- }
- if(CarInfo[h][tOwned] == 0 && CarInfo[h][tRentable] == 1)
- {
- new VString[255];
- new price = CarInfo[h][tPrice];
- format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
- VehicleLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[h][tLocationx],CarInfo[h][tLocationy],CarInfo[h][tLocationz], 20, INVALID_PLAYER_ID, h, 0, -1, -1, -1, 100.0);
- }
- if(CarInfo[h][Neon] == 1)
- {
- ObjectSelect[h][0] = CreateDynamicObject(CarInfo[h][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
- ObjectSelect[h][1] = CreateDynamicObject(CarInfo[h][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
- AttachObjectToVehicle(ObjectSelect[h][0], h, -0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(ObjectSelect[h][1], h, 0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
- }
- new plate[10];
- strmid(plate, CarInfo[h][tLicensePlate], 0, strlen(CarInfo[h][tLicensePlate]), 255);
- SetVehicleNumberPlate(h, plate);
- }
- }
- f_init();
- SendRconCommand("reloadfs CustomMapping");
- print("Stage End");
- return 1;
- }
- public SyncUp()
- {
- SyncTime();
- DollahScoreUpdate();
- }
- public SaveChars()
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(GetPlayerState(i) != PLAYER_STATE_SPECTATING)
- {
- OnPlayerSave(i);
- }
- }
- }
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(HouseInfo[h][hRenters] < 0)
- {
- HouseInfo[h][hRenters] = 0;
- }
- }
- SaveCar();
- SaveHouse();
- SaveBiz();
- SaveFamilies();
- }
- public SyncTime()
- {
- new string[64];
- new tmphour;
- new tmpminute;
- new tmpsecond;
- gettime(tmphour, tmpminute, tmpsecond);
- FixHour(tmphour);
- tmphour = shifthour;
- if((tmphour > ghour) || (tmphour == 0 && ghour == 23))
- {
- format(string, sizeof(string), "SERVER: The time is now %d:00 hours",tmphour);
- SendClientMessageToAll(COLOR_WHITE,string);
- ghour = tmphour;
- PayDay();
- if(realtime)
- {
- SetWorldTime(tmphour);
- }
- }
- }
- public Production()
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pFishes] >= 5)
- {
- if(FishCount[i] >= 3)
- {
- PlayerInfo[i][pFishes] = 0;
- }
- else
- {
- FishCount[i] += 1;
- }
- }
- if(PlayerInfo[i][pPayDay] < 6)
- {
- PlayerInfo[i][pPayDay] += 1;
- }
- }
- }
- }
- public PrisonCellCheck() // COMMENTED
- {
- if(Prison_Buttons[CellOpened] == 1)
- {
- MoveDynamicObject(Prison_Buttons[PrisonCells1], 1784.705322, -1589.811279, 1637.197510, 1.50);
- MoveDynamicObject(Prison_Buttons[PrisonCells2], 1784.613647, -1549.697021, 1637.217896, 1.50);
- Prison_Buttons[CellOpened] = 0;
- }
- }
- public PrisonGateCheck()
- {
- if(Prison_Buttons[GateOpened] == 1)
- {
- MoveDynamicObject(Prison_Buttons[PrisonGate], 96.808670, 1920.512817, 16.234968, 1.50);
- Prison_Buttons[GateOpened] = 0;
- }
- }
- public CountDownCheck()
- {
- SendClientMessageToAll(COLOR_LIGHTBLUE, " 3");
- SetTimer("CountDownCheck2", 1000, 0);
- }
- public CountDownCheck2()
- {
- SendClientMessageToAll(COLOR_LIGHTBLUE, " 2");
- SetTimer("CountDownCheck3", 1000, 0);
- }
- public CountDownCheck3()
- {
- SendClientMessageToAll(COLOR_LIGHTBLUE, " 1");
- SetTimer("CountDownCheckGo", 1000, 0);
- }
- public CountDownCheckGo()
- {
- SendClientMessageToAll(COLOR_LIGHTBLUE, " Go !");
- }
- public PDDoorCheck()
- {
- if(LSPD_Door[Opened] == 1)
- {
- MoveDynamicObject(LSPD_Door[ObjectID1], 246.4050, 72.3000, 1003.6700, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID2], 246.4050, 72.5750, 1003.6650, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID3], 246.9850, 72.4500, 1003.7000, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID4], 245.8330, 72.4500, 1003.7000, 1.50);
- LSPD_Door[Opened] = 0; KillTimer(LSPD_Door[TimerID]);
- }
- return 1;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- public RobBank(playerid)
- {
- new string[256];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(LoadingCashTime[playerid] > 0)
- {
- OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- format(string, sizeof(string), "~r~%d minutes left", LoadingCashTime[playerid]);
- GameTextForPlayer(playerid, string, 2000, 5);
- LoadingCashTime[playerid]--;
- SetTimerEx("RobBank", 60000, false, "d", playerid);
- } else if(LoadingCashTime[playerid] == 0)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- if(LoadingCashType[i] != 0)
- {
- new randcash;
- if (LoadingCashType[i] == 1) { randcash = 50000 + random(450000); }
- if (LoadingCashType[i] == 2) { randcash = 50000 + random(950000); }
- if (LoadingCashType[i] == 3) { randcash = 100000 + random(140000); }
- format(string,sizeof(string),"** You've loaded your bag with $%d. Go to the safe place marked on your map within the next 30 minutes and you will keep them.",randcash);
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- LoadedCash[i] = randcash;
- new randlocation = random(3);
- if (randlocation == 0) { SetPlayerCheckpoint(i, -1479.1213,2625.8848,58.7813, 4); }
- if (randlocation == 1) { SetPlayerCheckpoint(i, 2927.0076,2099.7256,17.8955, 4); }
- if (randlocation == 2) { SetPlayerCheckpoint(i, -1632.2328,-2239.1941,31.4766, 4); }
- SetPlayerAttachedObject(i, bankbag, 1550, 1, 0.089511, -0.292143, 0.034006, 0.000000, 100.504928, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimer("CheckRobberSafe", 1800000, 0);
- }
- }
- }
- public RobBankMove(playerid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- if(LoadingCashType[i] != 0 && LoadedCash[i] == 0)
- {
- if(IsPlayerInRangeOfPoint(i,2.0,1448.0712,-984.1879,1402.7000))
- {
- SetTimer("RobBankMove", 3000, 0);
- return 1;
- }
- else
- {
- new string[128];
- format(string,sizeof(string),"** Move back to the loading position, you have 10 seconds.");
- SendClientMessage(i, COLOR_WHITE, string);
- SetTimer("RobBankMove2", 10000, 0);
- return 1;
- }
- }
- return 1;
- }
- public RobBankMove2(playerid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- if(LoadingCashType[i] != 0 && LoadedCash[i] == 0)
- {
- if(IsPlayerInRangeOfPoint(i,2.0,1448.0712,-984.1879,1402.7000))
- {
- new string[128];
- format(string,sizeof(string),"** You're back to the loading position, continue loading the money.");
- SendClientMessage(i, COLOR_WHITE, string);
- SetTimer("RobBankMove", 1, 0);
- return 1;
- }
- else
- {
- new string[128];
- format(string,sizeof(string),"** You moved from the loading position, robbery failed.");
- SendClientMessage(i, COLOR_WHITE, string);
- LoadingCashType[i] = 0;
- LoadingCashTime[i] = 0;
- LoadedCash[i] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- DisablePlayerCheckpoint(i);
- RemovePlayerAttachedObject(playerid,bankbag);
- SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- return 1;
- }
- }
- return 1;
- }
- public CashLoadCheck()
- {
- new checked = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(LoadingCashType[i] != 0)
- {
- checked = 1;
- }
- }
- if (checked == 1)
- {
- SetTimer("AnnounceRobbery", 10000, 0);
- }
- else
- {
- BankRobbery = 0;
- LoadingCash = 0;
- SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: A Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- LoadingCashType[i] = 0;
- LoadingCashTime[i] = 0;
- LoadedCash[i] = 0;
- }
- return 1;
- }
- return 1;
- }
- public AnnounceRobbery()
- {
- new string[256];
- SendCopMessage(TEAM_BLUE_COLOR, "HQ: All Units APB: Reporter: Bank Staff");
- SendCopMessage(TEAM_BLUE_COLOR, "HQ: Crime: Bank Robbery, Suspect: Unknown");
- format(string, 256, "City Alert: The Los Santos Bank is being robbed!");
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- return 1;
- }
- public CheckRobberSafe(playerid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- if(LoadingCashType[i] != 0)
- {
- new string[128];
- format(string,sizeof(string),"** You moved from the loading position, robbery failed.");
- SendClientMessage(i, COLOR_WHITE, string);
- LoadingCashType[i] = 0;
- LoadingCashTime[i] = 0;
- LoadedCash[i] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- DisablePlayerCheckpoint(i);
- RemovePlayerAttachedObject(playerid,bankbag);
- SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- }
- return 1;
- }
- public CloseTheVault()
- {
- MoveDynamicObject(bankvaultdoor, 1450.19995117,-982.09997559,1403.00000000, 0.20, 0.00000000,0.00000000,270.00000000);
- return 1;
- }
- public StartEngine(playerid, vehicleid)
- {
- new string[128];
- new engine,lights,alarm,doors,bonnet,boot,objective;
- new rand = random(10);
- new Float:H;
- GetVehicleHealth(vehicleid, H);
- if(H <= 300)
- return SendClientMessage(playerid, COLOR_GREY, "The engine is broken. You can't start the engine.");
- if(Gas[vehicleid] <= 0)
- return SendClientMessage(playerid, COLOR_GREY, "Your vehicle ran out of fuel.");
- if(rand <= 8)
- {
- format(string, sizeof(string), "* %s has started the vehicle engine", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective);
- CarInfo[vehicleid][tEngine] = 1;
- return 1;
- }
- else
- {
- format(string, sizeof(string), "* %s attempts to start his engine but fails", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- public StopEngine(playerid, vehicleid)
- {
- new string[128];
- new engine,lights,alarm,doors,bonnet,boot,objective;
- format(string, sizeof(string), "* %s has turned off the vehicle engine", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective);
- CarInfo[vehicleid][tEngine] = 0;
- return 1;
- }
- public lock1(playerid, vehicleid)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
- new Float:vX, Float:vY, Float:vZ;
- GetVehiclePos(vehicleid, vX, vY, vZ);
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInRangeOfPoint(i, 8, vX, vY, vZ))
- {
- PlayerPlaySound(i, 1139, 0.0, 0.0, 0.0);
- }
- }
- SetTimerEx("lock2", 150, 0, "i", vehicleid);
- return 1;
- }
- public lock2(vehicleid)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- new Float:vX, Float:vY, Float:vZ;
- GetVehiclePos(vehicleid, vX, vY, vZ);
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInRangeOfPoint(i, 8, vX, vY, vZ))
- {
- PlayerPlaySound(i, 1139, 0.0, 0.0, 0.0);
- }
- }
- SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
- return 1;
- }
- public Disg(playerid)
- {
- new dis[MAX_PLAYERS];
- dis[playerid] = Random(1, 299);
- if(!InvSkin(dis[playerid]))
- {
- PlayerInfo[playerid][pModel] = dis[playerid];
- SetPlayerSkin(playerid, dis[playerid]);
- return 1;
- }
- SetTimerEx("Disg", 1000, false, "i", playerid);
- return 1;
- }
- public CheckHacks2(playerid)
- {
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid,PlayerInfo[playerid][pSPos_x],PlayerInfo[playerid][pSPos_y],PlayerInfo[playerid][pSPos_z]);
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVirtualWorld] = GetPlayerVirtualWorld(playerid);
- GetPlayerHealth(playerid,OldHealth[playerid]);
- GetPlayerArmour(playerid,OldArmour[playerid]);
- SetPlayerPos(playerid, 275.4794,-135.5955,1004.0625);
- SetPlayerInterior(playerid,7);
- SetPlayerVirtualWorld(playerid,playerid+10);
- SetPlayerArmour(playerid,0);
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- CreateExplosion(280.4137,-134.6537,1004.0625, 6, 10.0);
- CreateExplosion(280.4137,-134.6537,1004.0625, 6, 10.0);
- return 1;
- }
- //==============================================================================
- public DoneCheckHacks2(playerid,hacker)
- {
- if(PlayerCuffed[hacker] != 0 || PlayerTied[hacker] != 0 || PlayerFrozen[hacker] != 0) TogglePlayerControllable(hacker,0);
- new Float:newhealth,Float:newarmor;
- GetPlayerHealth(hacker,newhealth);
- GetPlayerArmour(hacker,newarmor);
- SetPlayerPos(hacker, PlayerInfo[hacker][pSPos_x],PlayerInfo[hacker][pSPos_y],PlayerInfo[hacker][pSPos_z]);
- SetPlayerInterior(hacker,PlayerInfo[hacker][pInt]);
- SetPlayerVirtualWorld(hacker,PlayerInfo[hacker][pVirtualWorld]);
- SetPlayerHealth(hacker,OldHealth[hacker]);
- SetPlayerArmour(hacker,OldArmour[hacker]);
- new string[128];
- new ping = GetPlayerPing(hacker);
- if(newhealth <= 35 && newarmor == 0) format(string, sizeof(string), "AdmWarning: %s checked %s for health hacks, results: NOT A HACKER, Ping: %d.",PlayerName(playerid),PlayerName(hacker),ping);
- else format(string, sizeof(string), "AdmWarning: %s checked %s for health hacks, results: HACKER, Ping: %d.",PlayerName(playerid),PlayerName(hacker),ping);
- ABroadCast(COLOR_YELLOW,string,1);
- return 1;
- }
- public RobHouse1(playerid)
- {
- if(PlayerInfo[playerid][RobHouseTime] == 5)
- {
- new string[60];
- SetTimerEx("RobHouse1", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~5 minutes remaining");
- GameTextForPlayer(playerid, string, 3000, 1);
- PlayerInfo[playerid][RobHouseTime] = 4;
- }
- else if(PlayerInfo[playerid][RobHouseTime] == 4)
- {
- new string[60];
- SetTimerEx("RobHouse1", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~5 minutes remaining");
- GameTextForPlayer(playerid, string, 3000, 1);
- PlayerInfo[playerid][RobHouseTime] = 3;
- }
- else if(PlayerInfo[playerid][RobHouseTime] == 3)
- {
- new string[60];
- SetTimerEx("RobHouse1", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~3 minutes remaining");
- GameTextForPlayer(playerid, string, 3000, 1);
- PlayerInfo[playerid][RobHouseTime] = 2;
- }
- else if(PlayerInfo[playerid][RobHouseTime] == 2)
- {
- new string[60];
- SetTimerEx("RobHouse1", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~2 minutes remaining");
- GameTextForPlayer(playerid, string, 1000, 1);
- PlayerInfo[playerid][RobHouseTime] = 1;
- }
- else if(PlayerInfo[playerid][RobHouseTime] == 1)
- {
- new string[60];
- SetTimerEx("RobHouse1", 1, false, "d", playerid);
- format(string, sizeof(string), "~r~1 minute remaining");
- GameTextForPlayer(playerid, string, 3000, 1);
- }
- }
- public RobInHouse(playerid)
- {
- if(PlayerInfo[playerid][RobHouseTime] > 0)
- {
- if(PlayerInfo[playerid][pInHouse] == PlayerInfo[playerid][RobHouseID])
- {
- SetTimerEx("RobInHouse", 1000, false, "d", playerid);
- return 1;
- }
- else
- {
- SetTimerEx("RobInHouse2", 1, false, "d", playerid);
- return 1;
- }
- }
- return 1;
- }
- public RobInHouse2(playerid)
- {
- if(PlayerInfo[playerid][RobHouseTime] > 0)
- {
- new house = PlayerInfo[playerid][RobHouseID];
- if(PlayerInfo[playerid][pInHouse] == PlayerInfo[playerid][RobHouseID])
- {
- SetTimerEx("RobInHouse", 1, false, "d", playerid);
- return 1;
- }
- else
- {
- new string[128];
- format(string,sizeof(string),"** You left the house, robbery failed.");
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[playerid][RobHouseTime] = 0;
- PlayerInfo[playerid][RobHouseID] = 999;
- PlayerInfo[playerid][RobHouse] = 1;
- HouseInfo[house][hVulnerable] = 5;
- return 1;
- }
- }
- return 1;
- }
- public RobbedHouse(playerid)
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][RobHouseTime] > 0)
- {
- new house = PlayerInfo[playerid][RobHouseID];
- PlayerInfo[playerid][RobHouseTime] = 0;
- PlayerInfo[playerid][RobHouseID] = 999;
- PlayerInfo[playerid][RobHouse] = 1;
- HouseInfo[house][hVulnerable] = 5;
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has successfully packed the stolen objects.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- return 1;
- }
- public Breakin(playerid)
- {
- if(PlayerInfo[playerid][Lockpicking] == 20)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~20");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 19;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 19)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~19");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 18;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 18)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~18");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 17;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 17)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~17");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 16;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 16)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~16");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 15;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 15)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~15");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 14;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 14)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~14");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 13;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 13)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~13");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 12;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 12)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~12");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 11;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 11)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~11");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 10;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 10)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~10");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 9;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 9)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~9");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 8;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 8)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~8");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 7;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 7)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~7");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 6;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 6)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~6");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 5;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 5)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~5");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 4;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 4)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~4");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 3;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 3)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~3");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 2;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 2)
- {
- new string[60];
- SetTimerEx("Breakin", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~2");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 1;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 1)
- {
- new string[60];
- SetTimerEx("Breakin2", 1, false, "d", playerid);
- format(string, sizeof(string), "~r~1");
- GameTextForPlayer(playerid, string, 1000, 5);
- }
- }
- public Breakinmove(playerid)
- {
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- new house = PlayerInfo[playerid][HLockpick];
- if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z]))
- {
- SetTimerEx("Breakinmove", 1000, false, "d", playerid);
- return 1;
- }
- else
- {
- SetTimerEx("Breakinmove2", 1, false, "d", playerid);
- return 1;
- }
- }
- return 1;
- }
- public Breakinmove2(playerid)
- {
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- new house = PlayerInfo[playerid][HLockpick];
- if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z]))
- {
- SetTimerEx("Breakinmove", 1, false, "d", playerid);
- return 1;
- }
- else
- {
- new string[128];
- format(string,sizeof(string),"** You moved from your position, lockpick failed.");
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[playerid][Lockpicking] = 0;
- PlayerInfo[playerid][HLockpick] = 999;
- return 1;
- }
- }
- return 1;
- }
- public Breakin2(playerid)
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- new house = PlayerInfo[playerid][HLockpick];
- SendClientMessage(playerid, COLOR_WHITE, "Door {2F991A}unlocked!");
- PlayerInfo[playerid][Lockpicking] = 0;
- PlayerInfo[playerid][HLockpick] = 999;
- HouseInfo[house][hLocked] = 0;
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has successfully unlocked the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- return 1;
- }
- public Lockpick(playerid)
- {
- if(PlayerInfo[playerid][Lockpicking] == 60)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~60");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 59;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 59)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~59");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 58;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 58)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~58");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 57;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 57)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~57");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 56;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 56)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~56");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 55;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 55)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~55");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 54;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 54)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~54");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 53;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 53)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~53");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 52;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 52)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~52");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 51;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 51)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~51");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 50;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 50)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~50");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 49;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 49)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~49");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 48;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 48)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~48");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 47;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 47)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~47");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 46;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 46)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~46");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 45;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 45)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~45");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 44;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 44)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~44");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 43;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 43)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~43");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 42;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 42)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~42");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 41;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 41)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- SetTimerEx("Startalarm", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~41");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 40;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 40)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~40");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 39;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 39)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~39");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 38;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 38)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~38");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 37;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 37)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~37");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 36;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 36)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~36");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 35;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 35)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~35");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 34;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 34)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~34");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 33;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 33)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~33");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 32;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 32)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~32");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 31;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 31)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~31");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 30;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 30)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~30");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 29;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 29)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~29");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 28;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 28)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~28");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 27;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 27)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~27");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 26;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 26)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~26");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 25;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 25)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~25");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 24;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 24)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~24");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 23;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 23)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~23");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 22;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 22)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~22");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 21;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 21)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- SetTimerEx("Startalarm", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~21");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 20;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 20)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~20");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 19;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 19)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~19");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 18;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 18)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~18");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 17;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 17)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~17");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 16;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 16)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~16");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 15;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 15)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~15");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 14;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 14)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~14");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 13;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 13)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~13");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 12;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 12)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~12");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 11;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 11)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~g~11");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 10;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 10)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~10");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 9;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 9)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~9");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 8;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 8)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~8");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 7;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 7)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~7");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 6;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 6)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~6");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 5;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 5)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~5");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 4;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 4)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~4");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 3;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 3)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~3");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 2;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 2)
- {
- new string[60];
- SetTimerEx("Lockpick", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~2");
- GameTextForPlayer(playerid, string, 1000, 5);
- PlayerInfo[playerid][Lockpicking] = 1;
- }
- else if(PlayerInfo[playerid][Lockpicking] == 1)
- {
- new string[60];
- SetTimerEx("Lockpicked", 1, false, "d", playerid);
- SetTimerEx("Startalarm", 1000, false, "d", playerid);
- format(string, sizeof(string), "~r~1");
- GameTextForPlayer(playerid, string, 1000, 5);
- }
- }
- public Startalarm(playerid)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- if(CarInfo[PlayerInfo[playerid][CLockpick]][tAlarmStarted] == 1)
- {
- GetVehicleParamsEx(PlayerInfo[playerid][CLockpick],engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(PlayerInfo[playerid][CLockpick],engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
- }
- }
- return 1;
- }
- public TowVehicle(vehicle)
- {
- SetVehicleToRespawn(vehicle);
- new owner[32];
- strmid(owner, CarInfo[vehicle][tOwner], 0, strlen(CarInfo[vehicle][tOwner]), 32);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pCarKey1] == vehicle)
- {
- SendClientMessage(i, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
- SendClientMessage(i, COLOR_WHITE, ""CB"Message:"CW" Your vehicle was successfully towed where it was last parked");
- }
- if(PlayerInfo[i][pCarKey2] == vehicle)
- {
- SendClientMessage(i, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
- SendClientMessage(i, COLOR_WHITE, ""CB"Message:"CW" Your vehicle was successfully towed where it was last parked");
- }
- }
- }
- return 1;
- }
- public Lockpickmove(playerid)
- {
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- new Float:cX, Float:cY, Float:cZ;
- new car = PlayerInfo[playerid][CLockpick];
- GetVehiclePos(car, cX, cY, cZ);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, cX, cY, cZ))
- {
- SetTimerEx("Lockpickmove", 1000, false, "d", playerid);
- return 1;
- }
- else
- {
- SetTimerEx("Lockpickmove2", 1, false, "d", playerid);
- return 1;
- }
- }
- return 1;
- }
- public Lockpickmove2(playerid)
- {
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- new Float:cX, Float:cY, Float:cZ;
- new car = PlayerInfo[playerid][CLockpick];
- GetVehiclePos(car, cX, cY, cZ);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, cX, cY, cZ))
- {
- SetTimerEx("Lockpickmove", 1, false, "d", playerid);
- return 1;
- }
- else
- {
- new string[128];
- format(string,sizeof(string),"** You moved from your position, lockpick failed.");
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[playerid][Lockpicking] = 0;
- PlayerInfo[playerid][CLockpick] = 0;
- CarInfo[car][tAlarmStarted] = 0;
- return 1;
- }
- }
- return 1;
- }
- public Lockpicked(playerid)
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- new car = PlayerInfo[playerid][CLockpick];
- GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(car,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
- PlayerInfo[playerid][Lockpicking] = 0;
- PlayerInfo[playerid][CLockpick] = 0;
- CarInfo[car][tAlarmStarted] = 0;
- CarInfo[car][tLock] = 0;
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has successfully unlocked the vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- public PayDay()
- {
- new string[128];
- //new account,interest;
- //foreach(Player, i)
- if(BankRobberyTime >= 1)
- {
- BankRobberyTime -= 1;
- }
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(HouseInfo[h][hVulnerable] > 0)
- {
- new hours = HouseInfo[h][hVulnerable] - 1;
- HouseInfo[h][hVulnerable] = hours;
- }
- }
- for(new h = 0; h < sizeof(BizInfo); h++)
- {
- if(BizInfo[h][bLottoTime] > 0)
- {
- new hours = BizInfo[h][bLottoTime] - 1;
- BizInfo[h][bLottoTime] = hours;
- }
- }
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- PlayerInfo[i][pHSafeattempt] = 0;
- PlayerInfo[i][pConnectTime] += 1;
- PlayerInfo[i][pDonuts] += 1;
- if (PlayerInfo[i][pDonateRank]>0) { PlayerInfo[i][pDonuts] += 1; }
- if(PlayerInfo[i][pLevel] > 0)
- {
- CheckNumber[i] = Random(1000,9999);
- format(string, 128, "{7DAEFF}* Paycheck:{FFFFFF} Type /signcheck %d to recieve your paycheck.", CheckNumber[i]);
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- if(MoneyMessage[i] == 1 && PlayerInfo[i][pJailed] == 0)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time.");
- SetPlayerInterior(i, 0);
- SetPlayerPos(i, 264.6288, 77.5742, 1001.0391);
- ResetPlayerWeapons(i);
- ClearGuns(i);
- TogglePlayerControllable(i, 1);
- PlayerInfo[i][pWantedLevel] = 0;
- PlayerInfo[i][pJailed] = 1;
- PlayerInfo[i][pJailTime] = 240;
- format(string, sizeof(string), "* You are jailed for %d seconds, Bail: Unavailable.", PlayerInfo[i][pJailTime]);
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- }
- if(PlayerInfo[i][pRenthouse] < 999)
- {
- new house = PlayerInfo[i][pRenthouse];
- PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-HouseInfo[house][hRent]; //give money
- GivePlayerMoney(i, -HouseInfo[house][hRent]); //give money
- HouseInfo[house][hCash] += HouseInfo[house][hRent];
- }
- if(PlayerInfo[i][pHouseKey] < 999)
- {
- new randomv = random(1000);
- new house = PlayerInfo[i][pHouseKey];
- new ebill = (randomv*HouseInfo[house][hLevel]);
- PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-ebill; //give money
- GivePlayerMoney(i, -ebill); //give money
- }
- /*new sendername[MAX_PLAYER_NAME];
- new tmpintrate = 1; //interest rate
- if(PlayerInfo[i][pHouseAccepted] == 1){ tmpintrate = 2; }
- if(PlayerInfo[i][pDonateRank] == 1){ tmpintrate = 3; }
- GetPlayerName(i, sendername, sizeof(sendername));
- account = PlayerInfo[i][pAccount]; //bank account amount
- if(PlayerInfo[i][pPayDay] >= 5)
- {
- new checks = PlayerInfo[i][pPayCheck]; //paycheck amount
- new incometax = PlayerInfo[i][pPayCheck] / 100 * Tax; //income tax amount
- PlayerInfo[i][pCash] = PlayerInfo[i][pCash]+checks-incometax; //give money
- GivePlayerMoney(i, checks-incometax); //give money
- //TAX MONEY
- TaxValue = TaxValue+incometax;
- //ELECTRICITY
- new randomv = random(1000);
- new ebill = (randomv*PlayerInfo[i][pHouseLevel])/2;
- if(PlayerInfo[i][pHouseLevel] && PlayerInfo[i][pHouseAccepted])
- {
- PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-ebill; //give money
- GivePlayerMoney(i, -ebill); //give money
- }
- //INTEREST
- interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate); //bank interest
- PlayerInfo[i][pAccount] = account+interest; //add interest money to bank
- //EXP
- PlayerInfo[i][pExp]++; //experience points
- SendClientMessage(i, COLOR_WHITE, "|___ BANK STATEMENT ___|");
- format(string, sizeof(string), " Paycheck: $%d", checks);
- SendClientMessage(i, COLOR_GRAD1, string);
- format(string, sizeof(string), " Income Tax: -$%d", incometax);
- SendClientMessage(i, COLOR_GRAD1, string);
- if(PlayerInfo[i][pHouseLevel] && PlayerInfo[i][pHouseAccepted])
- {
- format(string, sizeof(string), " Electricity Bill: -$%d", ebill);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- format(string, sizeof(string), " Balance: $%d", account);
- SendClientMessage(i, COLOR_GRAD1, string);
- format(string, sizeof(string), " Interest Rate: 0.%d percent",tmpintrate);
- SendClientMessage(i, COLOR_GRAD2, string);
- format(string, sizeof(string), " Interest Gained $%d", interest);
- SendClientMessage(i, COLOR_GRAD3, string);
- SendClientMessage(i, COLOR_GRAD4, "|------------------------------------------|");
- format(string, sizeof(string), " New Balance: $%d", PlayerInfo[i][pAccount]);
- SendClientMessage(i, COLOR_GRAD5, string);
- format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
- GameTextForPlayer(i, string, 5000, 1);
- PlayerInfo[i][pPayDay] = 0;
- PlayerInfo[i][pPayCheck] = 0;
- PlayerInfo[i][pConnectTime] += 1;
- }
- else
- {
- SendClientMessage(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a Paycheck.");
- }*/
- }
- if(PlayerInfo[i][pWantedLevel] > 0)
- {
- if(PlayerInfo[i][pWantedLevel] == 6)
- {
- PlayerInfo[i][pCrime][5] = 0;
- strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pWantedLevel] = 5;
- SetPlayerWantedLevel(i, 5);
- }
- else if(PlayerInfo[i][pWantedLevel] == 5)
- {
- PlayerInfo[i][pCrime][5] = 0;
- strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][4] = 0;
- strmid(PlayerInfo[i][pCrimeReporter4], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pWantedLevel] = 4;
- SetPlayerWantedLevel(i, 4);
- }
- else if(PlayerInfo[i][pWantedLevel] == 4)
- {
- PlayerInfo[i][pCrime][5] = 0;
- strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][4] = 0;
- strmid(PlayerInfo[i][pCrimeReporter4], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][3] = 0;
- strmid(PlayerInfo[i][pCrimeReporter3], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate3], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pWantedLevel] = 3;
- SetPlayerWantedLevel(i, 3);
- }
- else if(PlayerInfo[i][pWantedLevel] == 3)
- {
- PlayerInfo[i][pCrime][5] = 0;
- strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][4] = 0;
- strmid(PlayerInfo[i][pCrimeReporter4], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][3] = 0;
- strmid(PlayerInfo[i][pCrimeReporter3], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate3], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][2] = 0;
- strmid(PlayerInfo[i][pCrimeReporter2], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate2], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pWantedLevel] = 2;
- SetPlayerWantedLevel(i, 2);
- }
- else if(PlayerInfo[i][pWantedLevel] == 2)
- {
- PlayerInfo[i][pCrime][5] = 0;
- strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][4] = 0;
- strmid(PlayerInfo[i][pCrimeReporter4], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][3] = 0;
- strmid(PlayerInfo[i][pCrimeReporter3], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate3], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][2] = 0;
- strmid(PlayerInfo[i][pCrimeReporter2], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate2], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pCrime][1] = 0;
- strmid(PlayerInfo[i][pCrimeReporter1], "None", 0, strlen("None"), 255);
- strmid(PlayerInfo[i][pCrimeDate1], "0/0/0", 0, strlen("0/0/0"), 255);
- PlayerInfo[i][pWantedLevel] = 1;
- SetPlayerWantedLevel(i, 1);
- }
- else if(PlayerInfo[i][pWantedLevel] == 1)
- {
- ClearCrime(i);
- PlayerInfo[i][pWantedLevel] = 0;
- SetPlayerWantedLevel(i, 0);
- }
- }
- }
- }
- return 1;
- }
- public split(const strsrc[], strdest[][], delimiter)
- {
- new i, li;
- new aNum;
- new len;
- while(i <= strlen(strsrc)){
- if(strsrc[i]==delimiter || i==strlen(strsrc)){
- len = strmid(strdest[aNum], strsrc, li, i, 128);
- strdest[aNum][len] = 0;
- li = i+1;
- aNum++;
- }
- i++;
- }
- return 1;
- }
- public OnPlayerRegister(playerid, password[])
- {
- if(IsPlayerConnected(playerid))
- {
- new string3[32];
- new playername3[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername3, sizeof(playername3));
- format(string3, sizeof(string3), "%s.ini", playername3);
- new File: hFile = fopen(string3, io_write);
- if(hFile)
- {
- new var[32];
- strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
- format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
- format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
- format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
- format(var, 32, "Band=%d\n",PlayerInfo[playerid][pBand]);fwrite(hFile, var);
- format(var, 32, "PermBand=%d\n",PlayerInfo[playerid][pPermBand]);fwrite(hFile, var);
- format(var, 128, "PrisonReason=%s\n",PlayerInfo[playerid][pPrisonReason]);fwrite(hFile, var);
- format(var, 32, "PrisonedBy=%s\n",PlayerInfo[playerid][pPrisonedBy]);fwrite(hFile, var);
- format(var, 32, "AdminJailed=%d\n",PlayerInfo[playerid][pAdminJailed]);fwrite(hFile, var);
- format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
- format(var, 32, "AWarnings=%d\n",PlayerInfo[playerid][pAWarns]);fwrite(hFile, var);
- format(var, 32, "Disabled=%d\n",PlayerInfo[playerid][pDisabled]);fwrite(hFile, var);
- format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
- format(var, 32, "VIPJoinDate=%s\n",PlayerInfo[playerid][pVIPJoinDate]);fwrite(hFile, var);
- format(var, 32, "VIPExpDate=%s\n",PlayerInfo[playerid][pVIPExpDate]);fwrite(hFile, var);
- format(var, 32, "LastLogin=%s\n",PlayerInfo[playerid][pLastLogin]);fwrite(hFile, var);
- format(var, 32, "FactionMod=%d\n",PlayerInfo[playerid][pFactionMod]);fwrite(hFile, var);
- format(var, 32, "BanAppealer=%d\n",PlayerInfo[playerid][pBanAppealer]);fwrite(hFile, var);
- format(var, 32, "GangMod=%d\n",PlayerInfo[playerid][pGangMod]);fwrite(hFile, var);
- format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
- format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
- format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
- format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
- format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
- format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
- format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
- format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
- format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
- format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
- format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
- format(var, 32, "Crime1=%d\n",PlayerInfo[playerid][pCrime][0]);fwrite(hFile, var);
- format(var, 32, "Crime2=%d\n",PlayerInfo[playerid][pCrime][1]);fwrite(hFile, var);
- format(var, 32, "Crime3=%d\n",PlayerInfo[playerid][pCrime][2]);fwrite(hFile, var);
- format(var, 32, "Crime4=%d\n",PlayerInfo[playerid][pCrime][3]);fwrite(hFile, var);
- format(var, 32, "Crime5=%d\n",PlayerInfo[playerid][pCrime][4]);fwrite(hFile, var);
- format(var, 32, "Crime6=%d\n",PlayerInfo[playerid][pCrime][5]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter1=%s\n",PlayerInfo[playerid][pCrimeReporter0]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter2=%s\n",PlayerInfo[playerid][pCrimeReporter1]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter3=%s\n",PlayerInfo[playerid][pCrimeReporter2]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter4=%s\n",PlayerInfo[playerid][pCrimeReporter3]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter5=%s\n",PlayerInfo[playerid][pCrimeReporter4]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter6=%s\n",PlayerInfo[playerid][pCrimeReporter5]);fwrite(hFile, var);
- format(var, 32, "CrimeDate1=%s\n",PlayerInfo[playerid][pCrimeDate0]);fwrite(hFile, var);
- format(var, 32, "CrimeDate2=%s\n",PlayerInfo[playerid][pCrimeDate1]);fwrite(hFile, var);
- format(var, 32, "CrimeDate3=%s\n",PlayerInfo[playerid][pCrimeDate2]);fwrite(hFile, var);
- format(var, 32, "CrimeDate4=%s\n",PlayerInfo[playerid][pCrimeDate3]);fwrite(hFile, var);
- format(var, 32, "CrimeDate5=%s\n",PlayerInfo[playerid][pCrimeDate4]);fwrite(hFile, var);
- format(var, 32, "CrimeDate6=%s\n",PlayerInfo[playerid][pCrimeDate5]);fwrite(hFile, var);
- format(var, 32, "Accent=%s\n",Accent[playerid]);fwrite(hFile, var);
- format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
- format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
- format(var, 32, "CHits=%d\n",PlayerInfo[playerid][pCHits]);fwrite(hFile, var);
- format(var, 32, "FHits=%d\n",PlayerInfo[playerid][pFHits]);fwrite(hFile, var);
- format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
- format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
- format(var, 32, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var);
- format(var, 32, "Suitcase=%d\n",PlayerInfo[playerid][pSuitcase]);fwrite(hFile, var);
- format(var, 32, "Suitcasecash=%d\n",PlayerInfo[playerid][pSuitcasecash]);fwrite(hFile, var);
- format(var, 32, "Suitcasecrack=%d\n",PlayerInfo[playerid][pSuitcasecrack]);fwrite(hFile, var);
- format(var, 32, "Suitcasepot=%d\n",PlayerInfo[playerid][pSuitcasepot]);fwrite(hFile, var);
- format(var, 32, "Suitcasemats=%d\n",PlayerInfo[playerid][pSuitcasemats]);fwrite(hFile, var);
- format(var, 32, "Toolbox=%d\n",PlayerInfo[playerid][pToolbox]);fwrite(hFile, var);
- format(var, 32, "Lotto=%d\n",PlayerInfo[playerid][pLotto]);fwrite(hFile, var);
- format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
- format(var, 32, "LottoNr2=%d\n",PlayerInfo[playerid][pLottoNr2]);fwrite(hFile, var);
- format(var, 32, "LottoNr3=%d\n",PlayerInfo[playerid][pLottoNr3]);fwrite(hFile, var);
- format(var, 32, "LottoN4=%d\n",PlayerInfo[playerid][pLottoNr4]);fwrite(hFile, var);
- format(var, 32, "LottoNr5=%d\n",PlayerInfo[playerid][pLottoNr5]);fwrite(hFile, var);
- format(var, 32, "LottoNr6=%d\n",PlayerInfo[playerid][pLottoNr6]);fwrite(hFile, var);
- format(var, 32, "PlayLotto=%d\n",PlayerInfo[playerid][pPlayLotto]);fwrite(hFile, var);
- format(var, 32, "WinLotto=%d\n",PlayerInfo[playerid][pWinLotto]);fwrite(hFile, var);
- format(var, 32, "WinLotto2=%d\n",PlayerInfo[playerid][pWinLotto2]);fwrite(hFile, var);
- format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
- format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
- format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
- format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
- format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
- format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
- format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
- format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
- format(var, 32, "CarParts=%d\n",PlayerInfo[playerid][pCarParts]);fwrite(hFile, var);
- format(var, 32, "Pot=%d\n",PlayerInfo[playerid][pPot]);fwrite(hFile, var);
- format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
- format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
- format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
- format(var, 32, "SFMember=%d\n",PlayerInfo[playerid][pSFMember]);fwrite(hFile, var);
- format(var, 32, "SFLeader=%d\n",PlayerInfo[playerid][pSFLeader]);fwrite(hFile, var);
- format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
- format(var, 32, "Gang=%d\n",PlayerInfo[playerid][pGang]);fwrite(hFile, var);
- format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
- format(var, 32, "FRank=%d\n",PlayerInfo[playerid][pFRank]);fwrite(hFile, var);
- format(var, 32, "ChangeRank=%d\n",PlayerInfo[playerid][pChangeRank]);fwrite(hFile, var);
- format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
- format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
- format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
- format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
- format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
- format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
- format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
- format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
- format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
- format(var, 32, "ArmsSkill=%d\n",PlayerInfo[playerid][pArmsSkill]);fwrite(hFile, var);
- // format(var, 32, "TrashSkill=%d\n",PlayerInfo[playerid][pTrashSkill]);fwrite(hFile, var); // Trashman
- format(var, 32, "SmugglerSkill=%d\n",PlayerInfo[playerid][pSmugglerSkill]);fwrite(hFile, var);
- format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
- format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][pFightingStyle]);fwrite(hFile, var);
- format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
- format(var, 32, "pArmor=%.1f\n",PlayerInfo[playerid][pArmor]);fwrite(hFile, var);
- format(var, 32, "Hungry=%d\n",PlayerInfo[playerid][pHungry]);fwrite(hFile, var);
- format(var, 32, "Thirsty=%d\n",PlayerInfo[playerid][pThirsty]);fwrite(hFile, var);
- format(var, 32, "pSHealth=%d\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
- format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
- format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
- format(var, 32, "VirtualWorld=%d\n",PlayerInfo[playerid][pVirtualWorld]);fwrite(hFile, var);
- format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
- format(var, 32, "Glasses=%d\n",PlayerInfo[playerid][pGlasses]);fwrite(hFile, var);
- format(var, 32, "Bandana=%d\n",PlayerInfo[playerid][pBandana]);fwrite(hFile, var);
- format(var, 32, "Helmet=%d\n",PlayerInfo[playerid][pHelmet]);fwrite(hFile, var);
- format(var, 32, "CMask=%d\n",PlayerInfo[playerid][pCMask]);fwrite(hFile, var);
- format(var, 32, "Hat=%d\n",PlayerInfo[playerid][pHat]);fwrite(hFile, var);
- format(var, 32, "Clothes=%d\n",PlayerInfo[playerid][pClothes]);fwrite(hFile, var);
- format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
- format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
- format(var, 32, "Apartment=%d\n",PlayerInfo[playerid][pPaptkey]);fwrite(hFile, var);
- format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
- format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
- format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
- format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
- format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
- format(var, 32, "Gun0=%d\n",PlayerInfo[playerid][pGun0]);fwrite(hFile, var);
- format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
- format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
- format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
- format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
- format(var, 32, "Gun5=%d\n",PlayerInfo[playerid][pGun5]);fwrite(hFile, var);
- format(var, 32, "Gun6=%d\n",PlayerInfo[playerid][pGun6]);fwrite(hFile, var);
- format(var, 32, "Gun7=%d\n",PlayerInfo[playerid][pGun7]);fwrite(hFile, var);
- format(var, 32, "Gun8=%d\n",PlayerInfo[playerid][pGun8]);fwrite(hFile, var);
- format(var, 32, "Gun9=%d\n",PlayerInfo[playerid][pGun9]);fwrite(hFile, var);
- format(var, 32, "Gun10=%d\n",PlayerInfo[playerid][pGun10]);fwrite(hFile, var);
- format(var, 32, "Gun11=%d\n",PlayerInfo[playerid][pGun11]);fwrite(hFile, var);
- format(var, 32, "Gun12=%d\n",PlayerInfo[playerid][pGun12]);fwrite(hFile, var);
- format(var, 32, "hPot=%d\n",PlayerInfo[playerid][hPot]);fwrite(hFile, var);
- format(var, 32, "hCrack=%d\n",PlayerInfo[playerid][hCrack]);fwrite(hFile, var);
- format(var, 32, "hValue=%d\n",PlayerInfo[playerid][hValue]);fwrite(hFile, var);
- format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
- format(var, 32, "DrugsTime=%d\n",PlayerInfo[playerid][pDrugsTime]);fwrite(hFile, var);
- format(var, 32, "LawyerTime=%d\n",PlayerInfo[playerid][pLawyerTime]);fwrite(hFile, var);
- format(var, 32, "LawyerFreeTime=%d\n",PlayerInfo[playerid][pLawyerFreeTime]);fwrite(hFile, var);
- format(var, 32, "MechTime=%d\n",PlayerInfo[playerid][pMechTime]);fwrite(hFile, var);
- format(var, 32, "SexTime=%d\n",PlayerInfo[playerid][pSexTime]);fwrite(hFile, var);
- format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
- format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
- format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
- format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
- format(var, 32, "Spraycan=%d\n",PlayerInfo[playerid][pSpraycan]);fwrite(hFile, var);
- format(var, 32, "Screw=%d\n",PlayerInfo[playerid][pScrew]);fwrite(hFile, var);
- format(var, 32, "Crowbar=%d\n",PlayerInfo[playerid][pCrowbar]);fwrite(hFile, var);
- format(var, 32, "Hammer=%d\n",PlayerInfo[playerid][pHammer]);fwrite(hFile, var);
- format(var, 32, "Flash=%d\n",PlayerInfo[playerid][pFlash]);fwrite(hFile, var);
- format(var, 32, "Rake=%d\n",PlayerInfo[playerid][pRake]);fwrite(hFile, var);
- format(var, 32, "Wrench=%d\n",PlayerInfo[playerid][pWrench]);fwrite(hFile, var);
- format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
- format(var, 32, "Cigars=%d\n",PlayerInfo[playerid][pCigars]);fwrite(hFile, var);
- format(var, 32, "Sprunk=%d\n",PlayerInfo[playerid][pSprunk]);fwrite(hFile, var);
- format(var, 32, "Credits=%d\n",PlayerInfo[playerid][pCredits]);fwrite(hFile, var);
- format(var, 32, "Donuts=%d\n",PlayerInfo[playerid][pDonuts]);fwrite(hFile, var);
- format(var, 32, "Cookies=%d\n",PlayerInfo[playerid][pCookies]);fwrite(hFile, var);
- format(var, 32, "WT=%d\n",PlayerInfo[playerid][pWT]);fwrite(hFile, var);
- format(var, 32, "WTc=%d\n",PlayerInfo[playerid][pWTc]);fwrite(hFile, var);
- format(var, 32, "Bombs=%d\n",PlayerInfo[playerid][pBombs]);fwrite(hFile, var);
- format(var, 32, "Scope=%d\n",PlayerInfo[playerid][pScope]);fwrite(hFile, var);
- format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
- format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
- format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
- format(var, 32, "OnDuty=%d\n",PlayerInfo[playerid][pOnDuty]);fwrite(hFile, var);
- format(var, 32, "Hospital=%d\n",PlayerInfo[playerid][pHospital]);fwrite(hFile, var);
- format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
- format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
- format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
- format(var, 32, "ContractBy=%s\n",PlayerInfo[playerid][pContractBy]);fwrite(hFile, var);
- format(var, 32, "IP=%s\n",PlayerInfo[playerid][pIP]);fwrite(hFile, var);
- format(var, 32, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
- format(var, 32, "NewbieMuted=%d\n",PlayerInfo[playerid][pNewbieMuted]);fwrite(hFile, var);
- format(var, 32, "ReportMuted=%d\n",PlayerInfo[playerid][pReportMuted]);fwrite(hFile, var);
- format(var, 32, "AdMuted=%d\n",PlayerInfo[playerid][pAdMuted]);fwrite(hFile, var);
- format(var, 32, "SafeSpawn=%d\n",PlayerInfo[playerid][pSafeSpawn]);fwrite(hFile, var);
- format(var, 32, "SPos_x=%.1f\n",PlayerInfo[playerid][pSPos_x]);fwrite(hFile, var);
- format(var, 32, "SPos_y=%.1f\n",PlayerInfo[playerid][pSPos_y]);fwrite(hFile, var);
- format(var, 32, "SPos_z=%.1f\n",PlayerInfo[playerid][pSPos_z]);fwrite(hFile, var);
- format(var, 32, "SPos_r=%.1f\n",PlayerInfo[playerid][pSPos_r]);fwrite(hFile, var);
- format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
- format(var, 32, "Mask=%d\n",HasBoughtMask[playerid]);fwrite(hFile, var);
- format(var, 32, "Blindfolds=%d\n",PlayerInfo[playerid][pBlindfolds]);fwrite(hFile, var);
- format(var, 32, "Speedo=%d\n",gSpeedo[playerid]);fwrite(hFile, var);
- format(var, 32, "Seeds=%d\n",PlayerInfo[playerid][pSeeds]);fwrite(hFile, var);
- format(var, 32, "Stealth=%d\n",PlayerInfo[playerid][pStealth]);fwrite(hFile, var);
- format(var, 32, "FakeIP=%d\n",PlayerInfo[playerid][pFakeIP]);fwrite(hFile, var);
- format(var, 32, "PaintballGun1=%d\n",PlayerInfo[playerid][pPaintballGun1]);fwrite(hFile, var);
- format(var, 32, "PaintballGun2=%d\n",PlayerInfo[playerid][pPaintballGun2]);fwrite(hFile, var);
- format(var, 32, "CarKey1=%d\n",PlayerInfo[playerid][pCarKey1]);fwrite(hFile, var);
- format(var, 32, "CarKey2=%d\n",PlayerInfo[playerid][pCarKey2]);fwrite(hFile, var);
- format(var, 32, "CarKey3=%d\n",PlayerInfo[playerid][pCarKey3]);fwrite(hFile, var);
- format(var, 32, "RentKey=%d\n",PlayerInfo[playerid][pRentKey]);fwrite(hFile, var);
- format(var, 32, "HouseKey=%d\n",PlayerInfo[playerid][pHouseKey]);fwrite(hFile, var);
- format(var, 32, "BizKey=%d\n",PlayerInfo[playerid][pBizKey]);fwrite(hFile, var);
- format(var, 32, "InHouse=%d\n",PlayerInfo[playerid][pInHouse]);fwrite(hFile, var);
- format(var, 32, "InBiz=%d\n",PlayerInfo[playerid][pInBiz]);fwrite(hFile, var);
- format(var, 32, "Renthouse=%d\n",PlayerInfo[playerid][pRenthouse]);fwrite(hFile, var);
- format(var, 32, "Products=%d\n",PlayerInfo[playerid][pProducts]);fwrite(hFile, var);
- format(var, 32, "HSafeattempt=%d\n",PlayerInfo[playerid][pHSafeattempt]);fwrite(hFile, var);
- fclose(hFile);
- }
- }
- return 1;
- }
- public OnPlayerSave(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerNPC(playerid)) return 1;
- if(gPlayerLogged[playerid] != 0 && gPlayerSpawned[playerid] == 1)
- {
- new string3[32];
- new playername3[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername3, sizeof(playername3));
- format(string3, sizeof(string3), "%s.ini", playername3);
- new File: hFile = fopen(string3, io_write);
- if(hFile)
- {
- new var[64];
- if(gmx == 0)
- {
- GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
- }
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVirtualWorld] = GetPlayerVirtualWorld(playerid);
- GetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
- format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
- format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
- format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
- format(var, 32, "Band=%d\n",PlayerInfo[playerid][pBand]);fwrite(hFile, var);
- format(var, 32, "PermBand=%d\n",PlayerInfo[playerid][pPermBand]);fwrite(hFile, var);
- format(var, 128, "PrisonReason=%s\n",PlayerInfo[playerid][pPrisonReason]);fwrite(hFile, var);
- format(var, 32, "PrisonedBy=%s\n",PlayerInfo[playerid][pPrisonedBy]);fwrite(hFile, var);
- format(var, 32, "AdminJailed=%d\n",PlayerInfo[playerid][pAdminJailed]);fwrite(hFile, var);
- format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
- format(var, 32, "AWarnings=%d\n",PlayerInfo[playerid][pAWarns]);fwrite(hFile, var);
- format(var, 32, "Disabled=%d\n",PlayerInfo[playerid][pDisabled]);fwrite(hFile, var);
- format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
- format(var, 32, "VIPJoinDate=%s\n",PlayerInfo[playerid][pVIPJoinDate]);fwrite(hFile, var);
- format(var, 32, "VIPExpDate=%s\n",PlayerInfo[playerid][pVIPExpDate]);fwrite(hFile, var);
- format(var, 32, "LastLogin=%s\n",PlayerInfo[playerid][pLastLogin]);fwrite(hFile, var);
- format(var, 32, "FactionMod=%d\n",PlayerInfo[playerid][pFactionMod]);fwrite(hFile, var);
- format(var, 32, "BanAppealer=%d\n",PlayerInfo[playerid][pBanAppealer]);fwrite(hFile, var);
- format(var, 32, "GangMod=%d\n",PlayerInfo[playerid][pGangMod]);fwrite(hFile, var);
- format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
- format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
- format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
- format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
- format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
- format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
- format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
- format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
- format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
- format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
- format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
- format(var, 32, "Crime1=%d\n",PlayerInfo[playerid][pCrime][0]);fwrite(hFile, var);
- format(var, 32, "Crime2=%d\n",PlayerInfo[playerid][pCrime][1]);fwrite(hFile, var);
- format(var, 32, "Crime3=%d\n",PlayerInfo[playerid][pCrime][2]);fwrite(hFile, var);
- format(var, 32, "Crime4=%d\n",PlayerInfo[playerid][pCrime][3]);fwrite(hFile, var);
- format(var, 32, "Crime5=%d\n",PlayerInfo[playerid][pCrime][4]);fwrite(hFile, var);
- format(var, 32, "Crime6=%d\n",PlayerInfo[playerid][pCrime][5]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter1=%s\n",PlayerInfo[playerid][pCrimeReporter0]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter2=%s\n",PlayerInfo[playerid][pCrimeReporter1]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter3=%s\n",PlayerInfo[playerid][pCrimeReporter2]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter4=%s\n",PlayerInfo[playerid][pCrimeReporter3]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter5=%s\n",PlayerInfo[playerid][pCrimeReporter4]);fwrite(hFile, var);
- format(var, 64, "CrimeReporter6=%s\n",PlayerInfo[playerid][pCrimeReporter5]);fwrite(hFile, var);
- format(var, 32, "CrimeDate1=%s\n",PlayerInfo[playerid][pCrimeDate0]);fwrite(hFile, var);
- format(var, 32, "CrimeDate2=%s\n",PlayerInfo[playerid][pCrimeDate1]);fwrite(hFile, var);
- format(var, 32, "CrimeDate3=%s\n",PlayerInfo[playerid][pCrimeDate2]);fwrite(hFile, var);
- format(var, 32, "CrimeDate4=%s\n",PlayerInfo[playerid][pCrimeDate3]);fwrite(hFile, var);
- format(var, 32, "CrimeDate5=%s\n",PlayerInfo[playerid][pCrimeDate4]);fwrite(hFile, var);
- format(var, 32, "CrimeDate6=%s\n",PlayerInfo[playerid][pCrimeDate5]);fwrite(hFile, var);
- format(var, 32, "Accent=%s\n",Accent[playerid]);fwrite(hFile, var);
- format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
- format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
- format(var, 32, "CHits=%d\n",PlayerInfo[playerid][pCHits]);fwrite(hFile, var);
- format(var, 32, "FHits=%d\n",PlayerInfo[playerid][pFHits]);fwrite(hFile, var);
- format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
- format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
- format(var, 32, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var);
- format(var, 32, "Suitcase=%d\n",PlayerInfo[playerid][pSuitcase]);fwrite(hFile, var);
- format(var, 32, "Suitcasecash=%d\n",PlayerInfo[playerid][pSuitcasecash]);fwrite(hFile, var);
- format(var, 32, "Suitcasecrack=%d\n",PlayerInfo[playerid][pSuitcasecrack]);fwrite(hFile, var);
- format(var, 32, "Suitcasepot=%d\n",PlayerInfo[playerid][pSuitcasepot]);fwrite(hFile, var);
- format(var, 32, "Suitcasemats=%d\n",PlayerInfo[playerid][pSuitcasemats]);fwrite(hFile, var);
- format(var, 32, "Toolbox=%d\n",PlayerInfo[playerid][pToolbox]);fwrite(hFile, var);
- format(var, 32, "Lotto=%d\n",PlayerInfo[playerid][pLotto]);fwrite(hFile, var);
- format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
- format(var, 32, "LottoNr2=%d\n",PlayerInfo[playerid][pLottoNr2]);fwrite(hFile, var);
- format(var, 32, "LottoNr3=%d\n",PlayerInfo[playerid][pLottoNr3]);fwrite(hFile, var);
- format(var, 32, "LottoN4=%d\n",PlayerInfo[playerid][pLottoNr4]);fwrite(hFile, var);
- format(var, 32, "LottoNr5=%d\n",PlayerInfo[playerid][pLottoNr5]);fwrite(hFile, var);
- format(var, 32, "LottoNr6=%d\n",PlayerInfo[playerid][pLottoNr6]);fwrite(hFile, var);
- format(var, 32, "PlayLotto=%d\n",PlayerInfo[playerid][pPlayLotto]);fwrite(hFile, var);
- format(var, 32, "WinLotto=%d\n",PlayerInfo[playerid][pWinLotto]);fwrite(hFile, var);
- format(var, 32, "WinLotto2=%d\n",PlayerInfo[playerid][pWinLotto2]);fwrite(hFile, var);
- format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
- format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
- format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
- format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
- format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
- format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
- format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
- format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
- format(var, 32, "CarParts=%d\n",PlayerInfo[playerid][pCarParts]);fwrite(hFile, var);
- format(var, 32, "Pot=%d\n",PlayerInfo[playerid][pPot]);fwrite(hFile, var);
- format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
- format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
- format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
- format(var, 32, "SFMember=%d\n",PlayerInfo[playerid][pSFMember]);fwrite(hFile, var);
- format(var, 32, "SFLeader=%d\n",PlayerInfo[playerid][pSFLeader]);fwrite(hFile, var);
- format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
- format(var, 32, "Gang=%d\n",PlayerInfo[playerid][pGang]);fwrite(hFile, var);
- format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
- format(var, 32, "FRank=%d\n",PlayerInfo[playerid][pFRank]);fwrite(hFile, var);
- format(var, 32, "ChangeRank=%d\n",PlayerInfo[playerid][pChangeRank]);fwrite(hFile, var);
- format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
- format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
- format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
- format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
- format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
- format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
- format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
- format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
- format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
- format(var, 32, "ArmsSkill=%d\n",PlayerInfo[playerid][pArmsSkill]);fwrite(hFile, var);
- // format(var, 32, "TrashSkill=%d\n",PlayerInfo[playerid][pTrashSkill]);fwrite(hFile, var); // Trashman
- format(var, 32, "SmugglerSkill=%d\n",PlayerInfo[playerid][pSmugglerSkill]);fwrite(hFile, var);
- format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
- format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][pFightingStyle]);fwrite(hFile, var);
- format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
- format(var, 32, "pArmor=%.1f\n",PlayerInfo[playerid][pArmor]);fwrite(hFile, var);
- format(var, 32, "Hungry=%d\n",PlayerInfo[playerid][pHungry]);fwrite(hFile, var);
- format(var, 32, "Thirsty=%d\n",PlayerInfo[playerid][pThirsty]);fwrite(hFile, var);
- format(var, 32, "pSHealth=%d\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
- format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
- format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
- format(var, 32, "VirtualWorld=%d\n",PlayerInfo[playerid][pVirtualWorld]);fwrite(hFile, var);
- format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
- format(var, 32, "Glasses=%d\n",PlayerInfo[playerid][pGlasses]);fwrite(hFile, var);
- format(var, 32, "Bandana=%d\n",PlayerInfo[playerid][pBandana]);fwrite(hFile, var);
- format(var, 32, "Helmet=%d\n",PlayerInfo[playerid][pHelmet]);fwrite(hFile, var);
- format(var, 32, "CMask=%d\n",PlayerInfo[playerid][pCMask]);fwrite(hFile, var);
- format(var, 32, "Hat=%d\n",PlayerInfo[playerid][pHat]);fwrite(hFile, var);
- format(var, 32, "Clothes=%d\n",PlayerInfo[playerid][pClothes]);fwrite(hFile, var);
- format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
- format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
- format(var, 32, "Apartment=%d\n",PlayerInfo[playerid][pPaptkey]);fwrite(hFile, var);
- format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
- format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
- format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
- format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
- format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
- format(var, 32, "Gun0=%d\n",PlayerInfo[playerid][pGun0]);fwrite(hFile, var);
- format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
- format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
- format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
- format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
- format(var, 32, "Gun5=%d\n",PlayerInfo[playerid][pGun5]);fwrite(hFile, var);
- format(var, 32, "Gun6=%d\n",PlayerInfo[playerid][pGun6]);fwrite(hFile, var);
- format(var, 32, "Gun7=%d\n",PlayerInfo[playerid][pGun7]);fwrite(hFile, var);
- format(var, 32, "Gun8=%d\n",PlayerInfo[playerid][pGun8]);fwrite(hFile, var);
- format(var, 32, "Gun9=%d\n",PlayerInfo[playerid][pGun9]);fwrite(hFile, var);
- format(var, 32, "Gun10=%d\n",PlayerInfo[playerid][pGun10]);fwrite(hFile, var);
- format(var, 32, "Gun11=%d\n",PlayerInfo[playerid][pGun11]);fwrite(hFile, var);
- format(var, 32, "Gun12=%d\n",PlayerInfo[playerid][pGun12]);fwrite(hFile, var);
- format(var, 32, "hPot=%d\n",PlayerInfo[playerid][hPot]);fwrite(hFile, var);
- format(var, 32, "hCrack=%d\n",PlayerInfo[playerid][hCrack]);fwrite(hFile, var);
- format(var, 32, "hValue=%d\n",PlayerInfo[playerid][hValue]);fwrite(hFile, var);
- format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
- format(var, 32, "DrugsTime=%d\n",PlayerInfo[playerid][pDrugsTime]);fwrite(hFile, var);
- format(var, 32, "LawyerTime=%d\n",PlayerInfo[playerid][pLawyerTime]);fwrite(hFile, var);
- format(var, 32, "LawyerFreeTime=%d\n",PlayerInfo[playerid][pLawyerFreeTime]);fwrite(hFile, var);
- format(var, 32, "MechTime=%d\n",PlayerInfo[playerid][pMechTime]);fwrite(hFile, var);
- format(var, 32, "SexTime=%d\n",PlayerInfo[playerid][pSexTime]);fwrite(hFile, var);
- format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
- format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
- format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
- format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
- format(var, 32, "Spraycan=%d\n",PlayerInfo[playerid][pSpraycan]);fwrite(hFile, var);
- format(var, 32, "Screw=%d\n",PlayerInfo[playerid][pScrew]);fwrite(hFile, var);
- format(var, 32, "Crowbar=%d\n",PlayerInfo[playerid][pCrowbar]);fwrite(hFile, var);
- format(var, 32, "Hammer=%d\n",PlayerInfo[playerid][pHammer]);fwrite(hFile, var);
- format(var, 32, "Flash=%d\n",PlayerInfo[playerid][pFlash]);fwrite(hFile, var);
- format(var, 32, "Rake=%d\n",PlayerInfo[playerid][pRake]);fwrite(hFile, var);
- format(var, 32, "Wrench=%d\n",PlayerInfo[playerid][pWrench]);fwrite(hFile, var);
- format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
- format(var, 32, "Cigars=%d\n",PlayerInfo[playerid][pCigars]);fwrite(hFile, var);
- format(var, 32, "Sprunk=%d\n",PlayerInfo[playerid][pSprunk]);fwrite(hFile, var);
- format(var, 32, "Credits=%d\n",PlayerInfo[playerid][pCredits]);fwrite(hFile, var);
- format(var, 32, "Donuts=%d\n",PlayerInfo[playerid][pDonuts]);fwrite(hFile, var);
- format(var, 32, "Cookies=%d\n",PlayerInfo[playerid][pCookies]);fwrite(hFile, var);
- format(var, 32, "WT=%d\n",PlayerInfo[playerid][pWT]);fwrite(hFile, var);
- format(var, 32, "WTc=%d\n",PlayerInfo[playerid][pWTc]);fwrite(hFile, var);
- format(var, 32, "Bombs=%d\n",PlayerInfo[playerid][pBombs]);fwrite(hFile, var);
- format(var, 32, "Scope=%d\n",PlayerInfo[playerid][pScope]);fwrite(hFile, var);
- format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
- format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
- format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
- format(var, 32, "OnDuty=%d\n",PlayerInfo[playerid][pOnDuty]);fwrite(hFile, var);
- format(var, 32, "Hospital=%d\n",PlayerInfo[playerid][pHospital]);fwrite(hFile, var);
- format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
- format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
- format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
- format(var, 32, "ContractBy=%s\n",PlayerInfo[playerid][pContractBy]);fwrite(hFile, var);
- format(var, 32, "IP=%s\n",PlayerInfo[playerid][pIP]);fwrite(hFile, var);
- format(var, 32, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
- format(var, 32, "NewbieMuted=%d\n",PlayerInfo[playerid][pNewbieMuted]);fwrite(hFile, var);
- format(var, 32, "ReportMuted=%d\n",PlayerInfo[playerid][pReportMuted]);fwrite(hFile, var);
- format(var, 32, "AdMuted=%d\n",PlayerInfo[playerid][pAdMuted]);fwrite(hFile, var);
- format(var, 32, "SafeSpawn=%d\n",PlayerInfo[playerid][pSafeSpawn]);fwrite(hFile, var);
- format(var, 32, "SPos_x=%.1f\n",PlayerInfo[playerid][pSPos_x]);fwrite(hFile, var);
- format(var, 32, "SPos_y=%.1f\n",PlayerInfo[playerid][pSPos_y]);fwrite(hFile, var);
- format(var, 32, "SPos_z=%.1f\n",PlayerInfo[playerid][pSPos_z]);fwrite(hFile, var);
- format(var, 32, "SPos_r=%.1f\n",PlayerInfo[playerid][pSPos_r]);fwrite(hFile, var);
- format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
- format(var, 32, "Mask=%d\n",HasBoughtMask[playerid]);fwrite(hFile, var);
- format(var, 32, "Blindfolds=%d\n",PlayerInfo[playerid][pBlindfolds]);fwrite(hFile, var);
- format(var, 32, "Speedo=%d\n",gSpeedo[playerid]);fwrite(hFile, var);
- format(var, 32, "Seeds=%d\n",PlayerInfo[playerid][pSeeds]);fwrite(hFile, var);
- format(var, 32, "Stealth=%d\n",PlayerInfo[playerid][pStealth]);fwrite(hFile, var);
- format(var, 32, "FakeIP=%d\n",PlayerInfo[playerid][pFakeIP]);fwrite(hFile, var);
- format(var, 32, "PaintballGun1=%d\n",PlayerInfo[playerid][pPaintballGun1]);fwrite(hFile, var);
- format(var, 32, "PaintballGun2=%d\n",PlayerInfo[playerid][pPaintballGun2]);fwrite(hFile, var);
- format(var, 32, "CarKey1=%d\n",PlayerInfo[playerid][pCarKey1]);fwrite(hFile, var);
- format(var, 32, "CarKey2=%d\n",PlayerInfo[playerid][pCarKey2]);fwrite(hFile, var);
- format(var, 32, "CarKey3=%d\n",PlayerInfo[playerid][pCarKey3]);fwrite(hFile, var);
- format(var, 32, "RentKey=%d\n",PlayerInfo[playerid][pRentKey]);fwrite(hFile, var);
- format(var, 32, "HouseKey=%d\n",PlayerInfo[playerid][pHouseKey]);fwrite(hFile, var);
- format(var, 32, "BizKey=%d\n",PlayerInfo[playerid][pBizKey]);fwrite(hFile, var);
- format(var, 32, "InHouse=%d\n",PlayerInfo[playerid][pInHouse]);fwrite(hFile, var);
- format(var, 32, "InBiz=%d\n",PlayerInfo[playerid][pInBiz]);fwrite(hFile, var);
- format(var, 32, "Renthouse=%d\n",PlayerInfo[playerid][pRenthouse]);fwrite(hFile, var);
- format(var, 32, "Products=%d\n",PlayerInfo[playerid][pProducts]);fwrite(hFile, var);
- format(var, 32, "HSafeattempt=%d\n",PlayerInfo[playerid][pHSafeattempt]);fwrite(hFile, var);
- fclose(hFile);
- }
- }
- }
- return 1;
- }
- public OnPlayerLogin(playerid,password[],password2[])
- {
- new tmp2[256];
- new string2[128];
- format(string2, sizeof(string2), "%s.ini", PlayerName(playerid));
- new File: UserFile = fopen(string2, io_read);
- if ( UserFile )
- {
- new PassData[128];
- new keytmp[256], valtmp[256];
- fread( UserFile , PassData , sizeof( PassData ) );
- keytmp = ini_GetKey( PassData );
- if( strcmp( keytmp , "Key" , true ) == 0)
- {
- valtmp = ini_GetValue( PassData );
- strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
- }
- if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0)
- {
- new link[500];
- format(link,sizeof(link), "5-rp.com/ls.php?user=%s&pass=%s", PlayerName(playerid),password2);
- HTTP(playerid, HTTP_GET, link, "", "");
- new key[ 256 ] , val[ 256 ];
- new Data[ 256 ];
- while ( fread( UserFile , Data , sizeof( Data ) ) )
- {
- key = ini_GetKey( Data );
- if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strvalEx( val ); }
- if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strvalEx( val ); }
- if( strcmp( key , "Band" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBand] = strvalEx( val ); }
- if( strcmp( key , "PermaBand" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPermBand] = strvalEx( val ); }
- if( strcmp( key , "PrisonReason" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPrisonReason], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "PrisonedBy" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPrisonedBy], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "AdminJailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminJailed] = strvalEx( val ); }
- if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strvalEx( val ); }
- if( strcmp( key , "AWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAWarns] = strvalEx( val ); }
- if( strcmp( key , "Disabled" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDisabled] = strvalEx( val ); }
- if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strvalEx( val ); }
- if( strcmp( key , "VIPJoinDate" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pVIPJoinDate], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "VIPExpDate" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pVIPExpDate], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "LastLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastLogin], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "FactionMod" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFactionMod] = strvalEx( val ); }
- if( strcmp( key , "BanAppealer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBanAppealer] = strvalEx( val ); }
- if( strcmp( key , "GangMod" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGangMod] = strvalEx( val ); }
- if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strvalEx( val ); }
- if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strvalEx( val ); }
- if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strvalEx( val ); }
- if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strvalEx( val ); }
- if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strvalEx( val ); }
- if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strvalEx( val ); }
- if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strvalEx( val ); }
- if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strvalEx( val ); }
- if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strvalEx( val ); }
- if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strvalEx( val ); }
- if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strvalEx( val ); }
- if( strcmp( key , "Crime1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][0] = strvalEx( val ); }
- if( strcmp( key , "Crime2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][1] = strvalEx( val ); }
- if( strcmp( key , "Crime3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][2] = strvalEx( val ); }
- if( strcmp( key , "Crime4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][3] = strvalEx( val ); }
- if( strcmp( key , "Crime5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][4] = strvalEx( val ); }
- if( strcmp( key , "Crime6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][5] = strvalEx( val ); }
- if( strcmp( key , "CrimeReporter1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter0], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeReporter2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter1], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeReporter3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter2], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeReporter4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter3], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeReporter5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter4], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeReporter6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter5], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeDate1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate0], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeDate2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate1], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeDate3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate2], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeDate4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate3], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeDate5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate4], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "CrimeDate6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate5], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Accent" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(Accent[playerid], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strvalEx( val ); }
- if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strvalEx( val ); }
- if( strcmp( key , "CHits" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCHits] = strvalEx( val ); }
- if( strcmp( key , "FHits" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFHits] = strvalEx( val ); }
- if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strvalEx( val ); }
- if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strvalEx( val ); }
- if( strcmp( key , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strvalEx( val ); }
- if( strcmp( key , "Suitcase" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcase] = strvalEx( val ); }
- if( strcmp( key , "Suitcasecash" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcasecash] = strvalEx( val ); }
- if( strcmp( key , "Suitcasecrack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcasecrack] = strvalEx( val ); }
- if( strcmp( key , "Suitcasepot" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcasepot] = strvalEx( val ); }
- if( strcmp( key , "Suitcasemats" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcasemats] = strvalEx( val ); }
- if( strcmp( key , "Toolbox" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pToolbox] = strvalEx( val ); }
- if( strcmp( key , "Lotto" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLotto] = strvalEx( val ); }
- if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strvalEx( val ); }
- if( strcmp( key , "LottoNr2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr2] = strvalEx( val ); }
- if( strcmp( key , "LottoNr3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr3] = strvalEx( val ); }
- if( strcmp( key , "LottoNr4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr4] = strvalEx( val ); }
- if( strcmp( key , "LottoNr5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr5] = strvalEx( val ); }
- if( strcmp( key , "LottoNr6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr6] = strvalEx( val ); }
- if( strcmp( key , "PlayLotto" , true ) == 999 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayLotto] = strvalEx( val ); }
- if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strvalEx( val ); }
- if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strvalEx( val ); }
- if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strvalEx( val ); }
- if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strvalEx( val ); }
- if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strvalEx( val ); }
- if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strvalEx( val ); }
- if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strvalEx( val ); }
- if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strvalEx( val ); }
- if( strcmp( key , "CarParts" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarParts] = strvalEx( val ); }
- if( strcmp( key , "Pot" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPot] = strvalEx( val ); }
- if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strvalEx( val ); }
- if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strvalEx( val ); }
- if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strvalEx( val ); }
- if( strcmp( key , "SFMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSFMember] = strvalEx( val ); }
- if( strcmp( key , "SFLeader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSFLeader] = strvalEx( val ); }
- if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strvalEx( val ); }
- if( strcmp( key , "Gang" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGang] = strvalEx( val ); }
- if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strvalEx( val ); }
- if( strcmp( key , "FRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFRank] = strvalEx( val ); }
- if( strcmp( key , "ChangeRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChangeRank] = strvalEx( val ); }
- if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strvalEx( val ); }
- if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strvalEx( val ); }
- if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strvalEx( val ); }
- if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strvalEx( val ); }
- if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strvalEx( val ); }
- if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strvalEx( val ); }
- if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strvalEx( val ); }
- if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strvalEx( val ); }
- if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strvalEx( val ); }
- if( strcmp( key , "ArmsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmsSkill] = strvalEx( val ); }
- // if( strcmp( key , "TrashSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTrashSkill] = strvalEx( val ); } // Trashman
- if( strcmp( key , "SmugglerSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSmugglerSkill] = strvalEx( val ); }
- if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strvalEx( val ); }
- if( strcmp( key , "FightingStyle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFightingStyle] = strvalEx( val ); }
- if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
- if( strcmp( key , "pArmor" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmor] = floatstr( val ); }
- if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = strvalEx( val ); }
- if( strcmp( key , "Hungry" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHungry] = strvalEx( val ); }
- if( strcmp( key , "Thirsty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pThirsty] = strvalEx( val ); }
- if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strvalEx( val ); }
- if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strvalEx( val ); }
- if( strcmp( key , "VirtualWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirtualWorld] = strvalEx( val ); }
- if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strvalEx( val ); }
- if( strcmp( key , "Glasses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGlasses] = strvalEx( val ); }
- if( strcmp( key , "Bandana" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBandana] = strvalEx( val ); }
- if( strcmp( key , "Helmet" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelmet] = strvalEx( val ); }
- if( strcmp( key , "CMask" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCMask] = strvalEx( val ); }
- if( strcmp( key , "Hat" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHat] = strvalEx( val ); }
- if( strcmp( key , "Clothes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pClothes] = strvalEx( val ); }
- if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strvalEx( val ); }
- if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strvalEx( val ); }
- if( strcmp( key , "Apartment" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPaptkey] = strvalEx( val ); }
- if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strvalEx( val ); }
- if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strvalEx( val ); }
- if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strvalEx( val ); }
- if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strvalEx( val ); }
- if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strvalEx( val ); }
- if( strcmp( key , "Gun0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun0] = strvalEx( val ); }
- if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strvalEx( val ); }
- if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strvalEx( val ); }
- if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strvalEx( val ); }
- if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strvalEx( val ); }
- if( strcmp( key , "Gun5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun5] = strvalEx( val ); }
- if( strcmp( key , "Gun6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun6] = strvalEx( val ); }
- if( strcmp( key , "Gun7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun7] = strvalEx( val ); }
- if( strcmp( key , "Gun8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun8] = strvalEx( val ); }
- if( strcmp( key , "Gun9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun9] = strvalEx( val ); }
- if( strcmp( key , "Gun10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun10] = strvalEx( val ); }
- if( strcmp( key , "Gun11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun11] = strvalEx( val ); }
- if( strcmp( key , "Gun12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun12] = strvalEx( val ); }
- if( strcmp( key , "hPot" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hPot] = strvalEx( val ); }
- if( strcmp( key , "hCrack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hCrack] = strvalEx( val ); }
- if( strcmp( key , "hValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hValue] = strvalEx( val ); }
- if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strvalEx( val ); }
- if( strcmp( key , "DrugsTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsTime] = strvalEx( val ); }
- if( strcmp( key , "LawyerTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawyerTime] = strvalEx( val ); }
- if( strcmp( key , "LawyerFreeTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawyerFreeTime] = strvalEx( val ); }
- if( strcmp( key , "MechTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechTime] = strvalEx( val ); }
- if( strcmp( key , "SexTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexTime] = strvalEx( val ); }
- if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strvalEx( val ); }
- if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strvalEx( val ); }
- if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strvalEx( val ); }
- if( strcmp( key , "Dice" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDice] = strvalEx( val ); }
- if( strcmp( key , "Spraycan" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpraycan] = strvalEx( val ); }
- if( strcmp( key , "Screw" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pScrew] = strvalEx( val ); }
- if( strcmp( key , "Crowbar" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrowbar] = strvalEx( val ); }
- if( strcmp( key , "Hammer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHammer] = strvalEx( val ); }
- if( strcmp( key , "Flash" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlash] = strvalEx( val ); }
- if( strcmp( key , "Rake" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRake] = strvalEx( val ); }
- if( strcmp( key , "Wrench" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWrench] = strvalEx( val ); }
- if( strcmp( key , "Rope" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRope] = strvalEx( val ); }
- if( strcmp( key , "Cigars" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigars] = strvalEx( val ); }
- if( strcmp( key , "Sprunk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSprunk] = strvalEx( val ); }
- if( strcmp( key , "Credits" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCredits] = strvalEx( val ); }
- if( strcmp( key , "Donuts" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonuts] = strvalEx( val ); }
- if( strcmp( key , "Cookies" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookies] = strvalEx( val ); }
- if( strcmp( key , "WT" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWT] = strvalEx( val ); }
- if( strcmp( key , "WTc" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWTc] = strvalEx( val ); }
- if( strcmp( key , "Bombs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBombs] = strvalEx( val ); }
- if( strcmp( key , "Scope" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pScope] = strvalEx( val ); }
- if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strvalEx( val ); }
- if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strvalEx( val ); }
- if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strvalEx( val ); }
- if( strcmp( key , "OnDuty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOnDuty] = strvalEx( val ); }
- if( strcmp( key , "Hospital" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHospital] = strvalEx( val ); }
- if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strvalEx( val ); }
- if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strvalEx( val ); }
- if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "ContractBy" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pContractBy], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "IP" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pIP], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedLevel] = strvalEx( val ); }
- if( strcmp( key , "NewbieMuted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewbieMuted] = strvalEx( val ); }
- if( strcmp( key , "ReportMuted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReportMuted] = strvalEx( val ); }
- if( strcmp( key , "AdMuted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdMuted] = strvalEx( val ); }
- if( strcmp( key , "SafeSpawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeSpawn] = strvalEx( val ); }
- if( strcmp( key , "SPos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_x] = floatstr( val ); }
- if( strcmp( key , "SPos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_y] = floatstr( val ); }
- if( strcmp( key , "SPos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_z] = floatstr( val ); }
- if( strcmp( key , "SPos_r" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_r] = floatstr( val ); }
- if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
- if( strcmp( key , "Mask" , true ) == 0 ) { val = ini_GetValue( Data ); HasBoughtMask[playerid] = strvalEx( val ); }
- if( strcmp( key , "Blindfolds" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlindfolds] = strvalEx( val ); }
- if( strcmp( key , "Speedo" , true ) == 0 ) { val = ini_GetValue( Data ); gSpeedo[playerid] = strvalEx( val ); }
- if( strcmp( key , "Seeds" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSeeds] = strvalEx( val ); }
- if( strcmp( key , "Stealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pStealth] = strvalEx( val ); }
- if( strcmp( key , "FakeIP" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFakeIP] = strvalEx( val ); }
- if( strcmp( key , "PaintballGun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPaintballGun1] = strvalEx( val ); }
- if( strcmp( key , "PaintballGun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPaintballGun2] = strvalEx( val ); }
- if( strcmp( key , "CarKey1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarKey1] = strvalEx( val ); }
- if( strcmp( key , "CarKey2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarKey2] = strvalEx( val ); }
- if( strcmp( key , "CarKey3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarKey3] = strvalEx( val ); }
- if( strcmp( key , "RentKey" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentKey] = strvalEx( val ); }
- if( strcmp( key , "HouseKey" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseKey] = strvalEx( val ); }
- if( strcmp( key , "BizKey" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBizKey] = strvalEx( val ); }
- if( strcmp( key , "InHouse" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInHouse] = strvalEx( val ); }
- if( strcmp( key , "InBiz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInBiz] = strvalEx( val ); }
- if( strcmp( key , "Renthouse" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRenthouse] = strvalEx( val ); }
- if( strcmp( key , "Products" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pProducts] = strvalEx( val ); }
- if( strcmp( key , "HSafeattempt" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHSafeattempt] = strvalEx( val ); }
- }
- fclose(UserFile);
- }
- else
- {
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- SendClientMessage(playerid, COLOR_RED, "SERVER: Password does not match your name. you have been kicked as a result.");
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Pass: %s.", ip, day, month, year,PlayerName(playerid),password2);
- BLLog(logstring);
- Kick(playerid);
- return 1;
- }
- if(PlayerInfo[playerid][pPermBand] == 1)
- {
- new banstring[256];
- format(banstring,sizeof(banstring),"Info: %s has been banned by ChuckNorrisBot, reason: Attempting to log into a perma-banned account.",PlayerName(playerid));
- SendClientMessageToAll(COLOR_LIGHTRED,banstring);
- new ip[16];
- new string[256];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"banip %s Atteming to evade ban",ip);
- SendRconCommand(string);
- SendRconCommand("reloadbans");
- Kick(playerid);
- }
- if(PlayerInfo[playerid][pBand] == 3)
- {
- new banstring[256];
- format(banstring,sizeof(banstring),"Info: %s has been bannedby ChuckNorrisBot, reason: Attempting to log into a banned account.",PlayerName(playerid));
- SendClientMessageToAll(COLOR_LIGHTRED,banstring);
- new ip[16];
- new string[256];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"banip %s Attempting to evade ban",ip);
- SendRconCommand(string);
- SendRconCommand("reloadbans");
- Kick(playerid);
- }
- if(PlayerInfo[playerid][pDisabled] == 1) //account disabled
- {
- SendClientMessage(playerid, COLOR_RED, "SERVER: Your account has been disabled.");
- Kick(playerid);
- }
- if (PlayerInfo[playerid][pHungry] == 0) { PlayerInfo[playerid][pHungry] = 12000; }
- if (PlayerInfo[playerid][pThirsty] == 0) { PlayerInfo[playerid][pThirsty] = 6000; }
- if(PlayerInfo[playerid][pReg] == 0)
- {
- PlayerInfo[playerid][pLevel] = 10;
- PlayerInfo[playerid][pAccount] = 2000000;
- PlayerInfo[playerid][pReg] = 1;
- PlayerInfo[playerid][pCarKey1] = 0;
- PlayerInfo[playerid][pCarKey2] = 0;
- PlayerInfo[playerid][pCarKey3] = 0;
- PlayerInfo[playerid][pRentKey] = 0;
- PlayerInfo[playerid][pHouseKey] = 999;
- PlayerInfo[playerid][pBizKey] = 999;
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- PlayerInfo[playerid][pRenthouse] = 999;
- }
- if(PlayerInfo[playerid][pDonateRank] >= 1)
- {
- new year, month, day;
- getdate(year, month, day);
- new spyear[32], spmonth[32], spday[32];
- strmid(spyear, PlayerInfo[playerid][pVIPExpDate], 6, 10, 32);
- strmid(spmonth, PlayerInfo[playerid][pVIPExpDate], 0, 2, 32);
- strmid(spday, PlayerInfo[playerid][pVIPExpDate], 3, 5, 32);
- new pyear = strval(spyear);
- new pmonth = strval(spmonth);
- new pday = strval(spday);
- if(pyear == 2010 && pmonth == 1)
- {
- format(PlayerInfo[playerid][pVIPExpDate], 32, "Thank your for purchasing VIP, It expires on the %02d/%02d/%d.", pmonth, pday, pyear+1);
- }
- if(year > pyear && month == pmonth && day > pday) { ClearVIP(playerid); }
- if(month == pmonth && day > pday) { ClearVIP(playerid); }
- }
- if(PlayerInfo[playerid][pAdminJailed] == 1)
- {
- format(tmp2, sizeof(tmp2), "You have been prisoned by %s for %s", PlayerInfo[playerid][pPrisonedBy], PlayerInfo[playerid][pPrisonReason]);
- SendClientMessage(playerid, COLOR_RED,tmp2);
- }
- strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 128);
- format(tmp2, sizeof(tmp2), "SERVER: Welcome %s.", PlayerName(playerid));
- SendClientMessage(playerid, COLOR_WHITE, tmp2);
- format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~y~ %s", PlayerName(playerid));
- GameTextForPlayer(playerid, tmp2, 5000, 1);
- SendClientMessage(playerid, COLOR_YELLOW, motd);
- format(tmp2, sizeof(tmp2), "Your last visit was on: %s, If you think someone has been on your account, contact an administrator.", PlayerInfo[playerid][pLastLogin]);
- SendClientMessage(playerid, COLOR_YELLOW, tmp2);
- if(PlayerInfo[playerid][pAdmin] > 0)
- {
- format(tmp2, sizeof(tmp2), "SERVER:You are logged in as a Level %d Admin.",PlayerInfo[playerid][pAdmin]);
- SendClientMessage(playerid, COLOR_WHITE,tmp2);
- format(tmp2, sizeof(tmp2), "SERVER: You currently have %d/3 Admin Warnings. If you'll get 3 you'll be auto-removed from the admin team.",PlayerInfo[playerid][pAWarns]);
- SendClientMessage(playerid, COLOR_WHITE,tmp2);
- }
- if(PlayerInfo[playerid][pFMember] < 255)
- {
- format(tmp2, sizeof(tmp2), "Family MOTD: %s", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
- SendClientMessage(playerid, COLOR_YELLOW, tmp2);
- }
- if(PlayerInfo[playerid][pFMember] < 255 && PlayerInfo[playerid][pChangeRank] == 0)
- {
- PlayerInfo[playerid][pFRank] = PlayerInfo[playerid][pRank];
- PlayerInfo[playerid][pRank] = 0;
- }
- PlayerInfo[playerid][pChangeRank] = 1;
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
- SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirtualWorld]);
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
- TogglePlayerSpectating(playerid, 0);
- new plrIP[16];
- GetPlayerIp(playerid, plrIP, sizeof(plrIP));
- strmid(PlayerInfo[playerid][pIP], plrIP, 0, strlen(plrIP), 255);
- PlayerInfo[playerid][pAdjustable] = 0;
- InitLockDoors(playerid);
- gPlayerLogged[playerid] = 1;
- if(PlayerInfo[playerid][pHouseKey] < 999)
- {
- new sendername[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strcmp(sendername, HouseInfo[PlayerInfo[playerid][pHouseKey]][hOwner], true) != 0)
- {
- PlayerInfo[playerid][pHouseKey] = 999;
- }
- }
- if(PlayerInfo[playerid][pBizKey] < 999)
- {
- new sendername[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strcmp(sendername, BizInfo[PlayerInfo[playerid][pBizKey]][bOwner], true) != 0)
- {
- PlayerInfo[playerid][pBizKey] = 999;
- }
- }
- if(PlayerInfo[playerid][pCarKey1] > 0)
- {
- new sendername[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strcmp(sendername, CarInfo[PlayerInfo[playerid][pCarKey1]][tOwner], true) != 0)
- {
- PlayerInfo[playerid][pCarKey1] = 0;
- }
- }
- if(PlayerInfo[playerid][pCarKey2] > 0)
- {
- new sendername[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strcmp(sendername, CarInfo[PlayerInfo[playerid][pCarKey2]][tOwner], true) != 0)
- {
- PlayerInfo[playerid][pCarKey2] = 0;
- }
- }
- if(PlayerInfo[playerid][pCarKey3] > 0)
- {
- new sendername[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strcmp(sendername, CarInfo[PlayerInfo[playerid][pCarKey3]][tOwner], true) != 0)
- {
- PlayerInfo[playerid][pCarKey3] = 0;
- }
- }
- if(PlayerInfo[playerid][pRentKey] > 0)
- {
- new sendername[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strcmp(sendername, CarInfo[PlayerInfo[playerid][pRentKey]][tOwner], true) != 0)
- {
- PlayerInfo[playerid][pRentKey] = 0;
- }
- }
- if(PlayerInfo[playerid][pSuitcase] == 1)
- {
- //SetPlayerAttachedObject( playerid, 0, 1210, 6, 0.259532, -0.043030, -0.009978, 85.185333, 271.380615, 253.650283, 1.000000, 1.000000, 1.000000 );
- //HoldingSuitcase[playerid] = 1;
- }
- }
- return 1;
- }
- stock ini_GetKey( line[] )
- {
- new keyRes[256];
- keyRes[0] = 0;
- if( strfind( line , "=" , true ) == -1 ) return keyRes;
- strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
- return keyRes;
- }
- stock ini_GetValue( line[] )
- {
- new valRes[256];
- valRes[0]=0;
- if( strfind( line , "=" , true ) == -1 ) return valRes;
- strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) );
- return valRes;
- }
- public ABroadCast(color,const string[],level)
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pAdmin] >= level)
- {
- SendClientMessage(i, color, string);
- // printf("%s", string);
- }
- }
- }
- return 1;
- }
- public OOCOff(color,const string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(!gOoc[i])
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public OOCNewbie(color,const string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(!gNewbie[i])
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public OOCNews(color,const string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(!gNews[i])
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendDepartmentMessage(color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4 || PlayerInfo[i][pMember] == 7 || PlayerInfo[i][pLeader] == 7 || PlayerInfo[i][pLeader] == 5 || PlayerInfo[i][pMember] == 5 || PlayerInfo[i][pLeader] == 6 || PlayerInfo[i][pMember] == 6)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendRadioMessage(member, color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMember] == member || PlayerInfo[i][pLeader] == member)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendJobMessage(job, color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pJob] == job)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendNewFamilyMessage(family, color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pFMember] == family)
- {
- if(!gFam[i])
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- }
- public SendFamilyMessage(family, color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMember] == family || PlayerInfo[i][pLeader] == family)
- {
- if(!gFam[i])
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- }
- public SendCopMessage(color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsACop(i))
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendParaMessage(color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendIRCMessage(channel, color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayersChannel[i] == channel)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendAdminMessage(color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pAdmin] >= 1)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendAdminMessage2(color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pAdmin] >= 99999 || PlayerInfo[i][pFakeIP])
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendVIPMessage(color, string[])
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pDonateRank] >= 1)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public SendWTMessage(channel, color, string[])
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pWTc] == channel && WTOnline[i] == 0)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public PlayerFixRadio(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- SetTimer("PlayerFixRadio2", 1000, 0);
- Fixr[playerid] = 1;
- }
- }
- public PlayerFixRadio2()
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(Fixr[i])
- {
- PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
- Fixr[i] = 0;
- }
- }
- }
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(setaccent, 9, cmdtext);
- dcmd(deleteaccount, 13, cmdtext);
- dcmd(duel, 4, cmdtext);
- dcmd(setbankreload, 13, cmdtext);
- dcmd(subf, 4, cmdtext);
- dcmd(mass, 4, cmdtext);
- dcmd(assigncommander, 15, cmdtext);
- dcmd(givedonuts, 10, cmdtext);
- dcmd(givedonutstoall, 15, cmdtext);
- //dcmd(exchange, 8, cmdtext);
- dcmd(removedonuts, 12, cmdtext);
- if(gPlayerSpawned[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not logged in or have not spawned !");
- return 1;
- }
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- new cmd[128];
- new tmp[128];
- new rapstyle;
- new wankstyle;
- new dancestyle;
- new sexstyle;
- new bjstyle;
- new giveplayerid, moneys, idx;
- cmd = strtok(cmdtext, idx);
- if(strcmp(cmd,"/mute",true,4) && strcmp(cmd, "/report",true,6) && PlayerInfo[playerid][pMuted] == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak, you're muted.");
- //=========================[Anti-server advertisement]==========================
- new dotcount =0;
- new dotcount2 =0;
- new coloncount =0;
- new slashcount =0;
- new numcount =0;
- new numcount2 =0;
- new numcount3 =0;
- new numcount4 =0;
- new numcount5 =0;
- new numcount6 =0;
- new numcount7 =0;
- new numcount8 =0;
- new numcount9 =0;
- new numcount10 =0;
- for(new a=1; a <strlen(cmdtext); a++)
- {
- if(cmdtext[a] == ':')
- {
- coloncount ++;
- }
- else
- if(cmdtext[a] == '.')
- {
- dotcount ++;
- }
- else
- if(cmdtext[a] == ',')
- {
- dotcount2 ++;
- }
- else
- if(cmdtext[a] == '/')
- {
- slashcount ++;
- }
- else
- if(cmdtext[a] == '0')
- {
- numcount ++;
- }
- else
- if(cmdtext[a] == '1')
- {
- numcount2 ++;
- }
- else
- if(cmdtext[a] == '2')
- {
- numcount3 ++;
- }
- else
- if(cmdtext[a] == '3')
- {
- numcount4 ++;
- }
- else
- if(cmdtext[a] == '4')
- {
- numcount5 ++;
- }
- else
- if(cmdtext[a] == '5')
- {
- numcount6 ++;
- }
- else
- if(cmdtext[a] == '6')
- {
- numcount7 ++;
- }
- else
- if(cmdtext[a] == '7')
- {
- numcount8 ++;
- }
- else
- if(cmdtext[a] == '8')
- {
- numcount9 ++;
- }
- else
- if(cmdtext[a] == '9')
- {
- numcount10 ++;
- }
- }
- if(dotcount >= 3 && coloncount == 1 && PlayerInfo[playerid][pAdmin] < 3 && (numcount > 0 || numcount2 > 0 || numcount3 > 0 || numcount4 > 0 || numcount5 > 0 || numcount6 > 0 || numcount7 > 0 || numcount8 > 0 || numcount9 > 0 || numcount10 > 0))
- {
- format(string, sizeof(string), "Possible server advertisment: [%d]%s",playerid,PlayerName(playerid));
- ABroadCast(COLOR_YELLOW,string,1);
- format(string, sizeof(string), "Message: %s",cmdtext);
- ABroadCast(COLOR_LIGHTBLUE,string,1);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Text: %s.", ip, day, month, year,PlayerName(playerid),cmdtext);
- AdLog(logstring);
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to advertise other servers here.");
- return 1;
- }
- if(dotcount2 == 3 && coloncount == 1 && PlayerInfo[playerid][pAdmin] < 3 && (numcount > 0 || numcount2 > 0 || numcount3 > 0 || numcount4 > 0 || numcount5 > 0 || numcount6 > 0 || numcount7 > 0 || numcount8 > 0 || numcount9 > 0 || numcount10 > 0))
- {
- format(string, sizeof(string), "Possible server advertisment: [%d]%s",playerid,PlayerName(playerid));
- ABroadCast(COLOR_YELLOW,string,1);
- format(string, sizeof(string), "Message: %s",cmdtext);
- ABroadCast(COLOR_LIGHTBLUE,string,1);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Text: %s.", ip, day, month, year,PlayerName(playerid),cmdtext);
- AdLog(logstring);
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to advertise other servers here.");
- return 1;
- }
- if(slashcount == 3 && coloncount == 1 && PlayerInfo[playerid][pAdmin] < 3 && (numcount > 0 || numcount2 > 0 || numcount3 > 0 || numcount4 > 0 || numcount5 > 0 || numcount6 > 0 || numcount7 > 0 || numcount8 > 0 || numcount9 > 0 || numcount10 > 0))
- {
- format(string, sizeof(string), "Possible server advertisment: [%d]%s",playerid,PlayerName(playerid));
- ABroadCast(COLOR_YELLOW,string,1);
- format(string, sizeof(string), "Message: %s",cmdtext);
- ABroadCast(COLOR_LIGHTBLUE,string,1);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Text: %s.", ip, day, month, year,PlayerName(playerid),cmdtext);
- AdLog(logstring);
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to advertise other servers here.");
- return 1;
- }
- if(slashcount == 4 && PlayerInfo[playerid][pAdmin] < 3 && (numcount > 0 || numcount2 > 0 || numcount3 > 0 || numcount4 > 0 || numcount5 > 0 || numcount6 > 0 || numcount7 > 0 || numcount8 > 0 || numcount9 > 0 || numcount10 > 0))
- {
- format(string, sizeof(string), "Possible server advertisment: [%d]%s",playerid,PlayerName(playerid));
- ABroadCast(COLOR_YELLOW,string,1);
- format(string, sizeof(string), "Message: %s",cmdtext);
- ABroadCast(COLOR_LIGHTBLUE,string,1);
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Text: %s.", ip, day, month, year,PlayerName(playerid),cmdtext);
- AdLog(logstring);
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to advertise other servers here.");
- return 1;
- }
- if(gPlayerLogged[playerid] == 1)
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- printf("[cmd] [%s] %s", sendername, cmdtext);
- }
- if(strcmp(cmd, "/pay", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /pay [playerid/PartOfName] [amount]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /pay [playerid/PartOfName] [amount]");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(moneys > 1000 && PlayerInfo[playerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You must be level 2 to pay more than $1000 at a time !");
- return 1;
- }
- if(moneys < 1 || moneys > 100000)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't pay more under $1 or than $100,000 at a time !");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't pay money to yourself !"); return 1; }
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(5.0, playerid, giveplayerid))
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- new playermoney = PlayerInfo[playerid][pCash];
- if(moneys > 0 && playermoney >= moneys)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-moneys;
- GivePlayerMoney(playerid, (0 - moneys));
- PlayerInfo[giveplayerid][pCash] = PlayerInfo[giveplayerid][pCash]+moneys;
- GivePlayerMoney(giveplayerid, moneys);
- if(PlayerInfo[playerid][pMask] > 0){ sendername = "Stranger"; }
- if(PlayerInfo[giveplayerid][pMask] > 0){ giveplayer = "Stranger"; }
- format(string, sizeof(string), " You have paid $%d to %s",moneys,giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved $%d from %s.", moneys,sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* %s takes out some cash, and hands it to %s.",sendername,giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
- new plrIP[16];
- new giveplrIP[16];
- GetPlayerIp(playerid, plrIP, sizeof(plrIP));
- GetPlayerIp(giveplayerid, giveplrIP, sizeof(giveplrIP));
- format(string, sizeof(string), "%s (IP:%s) (Key:%s) (ConTime:%d) has paid $%d to %s (IP:%s) (Key:%s)", sendername,plrIP,PlayerInfo[playerid][pKey], PlayerInfo[playerid][pConnectTime],moneys,giveplayer,giveplrIP,PlayerInfo[giveplayerid][pKey]);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're too far away !");
- }
- }
- }
- else
- {
- format(string, sizeof(string), "%d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/charity", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /charity [amount]");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(moneys < 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That is not enough !");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < moneys)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have that much money !");
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-moneys;
- GivePlayerMoney(playerid, -moneys);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Thank you for you donation of $%d.",sendername, moneys);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PayLog(string);
- }
- return 1;
- }
- if(strcmp(cmd, "/stats", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] != 0)
- {
- ShowStats(playerid,playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/dn", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz-2);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/up", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+2);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fly", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new Float:px, Float:py, Float:pz, Float:pa;
- GetPlayerFacingAngle(playerid,pa);
- if(pa >= 0.0 && pa <= 22.5) //n1
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px, py+30, pz+5);
- }
- if(pa >= 332.5 && pa < 0.0) //n2
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px, py+30, pz+5);
- }
- if(pa >= 22.5 && pa <= 67.5) //nw
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px-15, py+15, pz+5);
- }
- if(pa >= 67.5 && pa <= 112.5) //w
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px-30, py, pz+5);
- }
- if(pa >= 112.5 && pa <= 157.5) //sw
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px-15, py-15, pz+5);
- }
- if(pa >= 157.5 && pa <= 202.5) //s
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px, py-30, pz+5);
- }
- if(pa >= 202.5 && pa <= 247.5)//se
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px+15, py-15, pz+5);
- }
- if(pa >= 247.5 && pa <= 292.5)//e
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px+30, py, pz+5);
- }
- if(pa >= 292.5 && pa <= 332.5)//e
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px+15, py+15, pz+5);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not an Admin !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/check", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /check [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- ShowStats(playerid,giveplayerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not an Admin !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/id", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /id [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerNameEx(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Name: %s, ID: %d", giveplayer, giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- format(string, sizeof(string), "%d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/number", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pPhoneBook] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /number [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerNameEx(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Name: %s, Ph: %d", giveplayer, PlayerInfo[giveplayerid][pPnumber]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You don't have a Phonebook !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/address", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pPhoneBook] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /address [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pHouseKey] != 999 || PlayerInfo[giveplayerid][pRenthouse] != 999)
- {
- new house;
- if(PlayerInfo[giveplayerid][pHouseKey] != 999) { house = PlayerInfo[giveplayerid][pHouseKey]; }
- else if(PlayerInfo[giveplayerid][pRenthouse] != 999) { house = PlayerInfo[giveplayerid][pRenthouse]; }
- SetPlayerCheckpoint(playerid, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z], 3.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This player doesnt own/rent a house.");
- return 1;
- }
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You don't have a Phonebook !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/levelup", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] != 0)
- {
- if(PlayerInfo[playerid][pLevel] >= 0)
- {
- new nxtlevel = PlayerInfo[playerid][pLevel]+1;
- new expamount = nxtlevel*levelexp;
- if(PlayerInfo[playerid][pExp] < expamount)
- {
- format(string, sizeof(string), " You need %d respect points, you curently have %d !",expamount,PlayerInfo[playerid][pExp]);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- else
- {
- format(string, sizeof(string), "~r~Level up~n~~w~level %d", nxtlevel);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pLevel]++;
- PlayerInfo[playerid][pExp] -= expamount;
- new total = PlayerInfo[playerid][pExp];
- if(total > 0) { PlayerInfo[playerid][pExp] = total; }
- else { PlayerInfo[playerid][pExp] = 0; }
- PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
- GameTextForPlayer(playerid, string, 5000, 1);
- format(string, sizeof(string), "You bought level %d, type /upgrade.", nxtlevel);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "You have %d upgrade points remaining.",PlayerInfo[playerid][gPupgrade]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/resetupgrades", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not logged in.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford that ($1,000).");
- return 1;
- }
- if(PlayerInfo[playerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be at least level 2.");
- return 1;
- }
- PlayerInfo[playerid][gPupgrade] = (PlayerInfo[playerid][pLevel])*2;
- PlayerInfo[playerid][pSHealth] = 0;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid,-1000);
- PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), " You have %d upgrade points remaining !",PlayerInfo[playerid][gPupgrade]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/upgrade", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][gPupgrade] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any Upgrade Points.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /upgrade [name]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Armor");
- format(string, sizeof(string), "You have %d upgrade points remaining.",PlayerInfo[playerid][gPupgrade]);
- SendClientMessage(playerid, COLOR_YELLOW,string);
- return 1;
- }
- if(strcmp(tmp,"armor",true) == 0)
- {
- if(PlayerInfo[playerid][pSHealth] >= 100)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your Armor is at its limit !");
- return 1;
- }
- PlayerInfo[playerid][pSHealth] = PlayerInfo[playerid][pSHealth]+1;
- PlayerInfo[playerid][gPupgrade]--;
- format(string, sizeof(string), "You have upgraded your Armor to %d, changes will take effect when you spawn.", PlayerInfo[playerid][pSHealth]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid upgrade name.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/newbie", true) == 0 || strcmp(cmd, "/new", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
- return 1;
- }
- if(PlayerInfo[playerid][pTut] == 0)
- {
- Kick(playerid);
- return 1;
- }
- if(PlayerInfo[playerid][pConnectTime] == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE,"You must play longer before using the newbie chat channel, use /report or /faq for help.");
- return 1;
- }
- if((nonewbie) && PlayerInfo[playerid][pAdmin] < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "The Newbie channel has been disabled by an Admin.");
- return 1;
- }
- if(PlayerInfo[playerid][pNewbieMuted] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are banned from speaking in that channel.");
- return 1;
- }
- if(UseNewbieTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY,"You must wait 30 seconds before speaking in that channel.");
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} (/new)bie [newbie chat]");
- return 1;
- }
- if(PlayerInfo[playerid][pLevel] > 1 && PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pHelper] <= 0 && PlayerInfo[playerid][pDonateRank] <= 1) format(string, sizeof(string), "* Player %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pAdmin] == 2) format(string, sizeof(string), "* Junior Admin %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pAdmin] == 3) format(string, sizeof(string), "* General Admin %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pAdmin] == 4) format(string, sizeof(string), "* Senior Admin %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pAdmin] == 5) format(string, sizeof(string), "* Head Admin %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pAdmin] == 6) format(string, sizeof(string), "* Executive Admin %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pAdmin] == 7) format(string, sizeof(string), "* Server Owner %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pDonateRank] == 1) format(string, sizeof(string), "* Bronze VIP %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pDonateRank] == 2) format(string, sizeof(string), "* Silver VIP %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pDonateRank] == 3) format(string, sizeof(string), "* Gold VIP %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pHelper] >= 6) format(string, sizeof(string), "* DoPR %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pHelper] >= 5) format(string, sizeof(string), "* Community Advisor %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pHelper] >= 4) format(string, sizeof(string), "* Head Helper %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pHelper] >= 3) format(string, sizeof(string), "* Assistant Head %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pHelper] >= 2) format(string, sizeof(string), "* Helper %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pHelper] == 1) format(string, sizeof(string), "* Trial Helper %s: %s", sendername, result);
- else format(string, sizeof(string), "* Newbie %s: %s", sendername, result);
- OOCNewbie(NEWBIE_COLOR,string);
- if(PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pHelper] <= 0) { UseNewbieTimer[playerid] = true; SetTimerEx("UseNewbie",30*1000,0,"i",playerid); }
- }
- }
- if(!strcmp("/glasses",cmd,true))
- {
- if(IsPlayerConnected(playerid))
- {
- new skin2, id;
- skin2 = GetPlayerSkin(playerid);
- id = PlayerInfo[playerid][pGlasses];
- if(id < 1000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any sunglasses");
- return 1;
- }
- if(WithGlasses[playerid] == 0)
- {
- WithGlasses[playerid] = 1;
- WithMask[playerid] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts on their sunglasses.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerAttachedObject(playerid, GLASSSLOT, id, 2, SkinOffSet[skin2][0], floatadd(SkinOffSet[skin2][1], 0.004500), SkinOffSet[skin2][2], SkinOffSet[skin2][3], SkinOffSet[skin2][4], SkinOffSet[skin2][5]);
- }
- else
- {
- WithGlasses[playerid] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s takes off their sunglasses.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, GLASSSLOT);
- }
- return 1;
- }
- return 1;
- }
- /* if(!strcmp("/fmask",cmd,true))
- {
- if(IsPlayerConnected(playerid))
- {
- new skin2, id;
- skin2 = GetPlayerSkin(playerid);
- id = PlayerInfo[playerid][pCMask];
- if(id < 1000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a mask.");
- return 1;
- }
- if(WithMask[playerid] == 0)
- {
- WithMask[playerid] = 1;
- WithGlasses[playerid] = 0;
- if(WithHelmet[playerid] == 1)
- {
- WithHelmet[playerid] = 0;
- RemovePlayerAttachedObject(playerid, HATSLOT);
- }
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* Stranger takes out a mask and puts it on.");
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerAttachedObject(playerid, GLASSSLOT, id, 2, SkinOffSet[skin2][0], floatadd(SkinOffSet[skin2][1], 0.004500), SkinOffSet[skin2][2], SkinOffSet[skin2][3], SkinOffSet[skin2][4], SkinOffSet[skin2][5]);
- }
- else
- {
- WithMask[playerid] = 0;
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* Stranger takes out a mask and puts it on.");
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, GLASSSLOT);
- }
- return 1;
- }
- return 1;
- }
- */
- if(!strcmp("/helmet",cmd,true))
- {
- if(IsPlayerConnected(playerid))
- {
- new id = PlayerInfo[playerid][pHelmet];
- if(id < 1000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any helmet");
- return 1;
- }
- if(WithHelmet[playerid] == 0)
- {
- switch(GetPlayerSkin(playerid))
- {
- #define SPAO{%0,%1,%2,%3,%4,%5} SetPlayerAttachedObject(playerid, HATSLOT, id, 2, (%0), (%1), (%2), (%3), (%4), (%5));
- case 0, 65, 74, 149, 208, 273: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 75.000000, 0.000000}
- case 1..6, 8, 14, 16, 22, 27, 29, 33, 41..49, 82..84, 86, 87, 119, 289: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 77.000000, 0.000000}
- case 7, 10: SPAO{0.090000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
- case 9: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
- case 11..13: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
- case 15: SPAO{0.059999, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
- case 17..21: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 23..26, 28, 30..32, 34..39, 57, 58, 98, 99, 104..118, 120..131: SPAO{0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 40: SPAO{0.050000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 50, 100..103, 148, 150..189, 222: SPAO{0.070000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 51..54: SPAO{0.100000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 55, 56, 63, 64, 66..73, 75, 76, 78..81, 133..143, 147, 190..207, 209..219, 221, 247..272, 274..288, 290..293: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 59..62: SPAO{0.079999, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 77: SPAO{0.059999, 0.019999, 0.000000, 87.000000, 82.000000, 0.000000}
- case 85, 88, 89: SPAO{0.070000, 0.039999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 90..97: SPAO{0.050000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 132: SPAO{0.000000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 144..146: SPAO{0.090000, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
- case 220: SPAO{0.029999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 223, 246: SPAO{0.070000, 0.050000, 0.000000, 88.000000, 82.000000, 0.000000}
- case 224..245: SPAO{0.070000, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 294: SPAO{0.070000, 0.019999, 0.000000, 91.000000, 84.000000, 0.000000}
- case 295: SPAO{0.050000, 0.019998, 0.000000, 86.000000, 82.000000, 0.000000}
- case 296..298: SPAO{0.064999, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 299: SPAO{0.064998, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- }
- WithHat[playerid] = 0;
- WithHelmet[playerid] = 1;
- if(WithMask[playerid] == 1)
- {
- WithMask[playerid] = 0;
- RemovePlayerAttachedObject(playerid, GLASSSLOT);
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts on their helmet.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- WithHelmet[playerid] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s takes off their helmet.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, HATSLOT);
- }
- return 1;
- }
- return 1;
- }
- if(strcmp("/wrench", cmdtext, true, 10) == 0)
- {
- if(PlayerInfo[playerid][pWrench] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any wrench");
- return 1;
- }
- if (wrench[playerid] == 0)
- {
- SetPlayerAttachedObject(playerid,6,18633,5,0.07998,0.03999,0.0,45.0,0.0,180.0);
- wrench[playerid] = 1;
- hammer[playerid] = 0;
- crowbar[playerid] = 0;
- chainsawdildo[playerid] = 0;
- flashlight[playerid] = 0;
- screwdriver[playerid] = 0;
- rake[playerid] = 0;
- }
- else
- {
- RemovePlayerAttachedObject(playerid, 6);
- wrench[playerid] = 0;
- }
- return 1;
- }
- if(strcmp("/hammer", cmdtext, true, 10) == 0)
- {
- if(PlayerInfo[playerid][pHammer] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any hammer");
- return 1;
- }
- if (hammer[playerid] == 0)
- {
- SetPlayerAttachedObject(playerid,6,18635,5,0.0,0.06999,0.0,0.0,180.0,180.0);
- wrench[playerid] = 0;
- hammer[playerid] = 1;
- crowbar[playerid] = 0;
- chainsawdildo[playerid] = 0;
- flashlight[playerid] = 0;
- screwdriver[playerid] = 0;
- rake[playerid] = 0;
- }
- else
- {
- RemovePlayerAttachedObject(playerid, 6);
- hammer[playerid] = 0;
- }
- return 1;
- }
- if(strcmp("/crowbar", cmdtext, true, 10) == 0)
- {
- if(PlayerInfo[playerid][pCrowbar] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any crowbar");
- return 1;
- }
- if (crowbar[playerid] == 0)
- {
- SetPlayerAttachedObject(playerid,6,18634,5,0.07998,0.03999,0.0,45.0,0.0,180.0);
- wrench[playerid] = 0;
- hammer[playerid] = 0;
- crowbar[playerid] = 1;
- chainsawdildo[playerid] = 0;
- flashlight[playerid] = 0;
- screwdriver[playerid] = 0;
- rake[playerid] = 0;
- }
- else
- {
- RemovePlayerAttachedObject(playerid, 6);
- crowbar[playerid] = 0;
- }
- return 1;
- }
- if(strcmp("/chainsawdildo", cmdtext, true, 10) == 0)
- {
- if(PlayerInfo[playerid][pDonateRank] == 0)
- {
- SendClientMessage(playerid, COLOR_RED, "You are not VIP");
- return 1;
- }
- if (chainsawdildo[playerid] == 0)
- {
- SetPlayerAttachedObject(playerid,6,19086,5,0.04998,0.02000,0.0,0.0,260.0,170.0);
- wrench[playerid] = 0;
- hammer[playerid] = 0;
- crowbar[playerid] = 0;
- chainsawdildo[playerid] = 1;
- flashlight[playerid] = 0;
- screwdriver[playerid] = 0;
- rake[playerid] = 0;
- }
- else
- {
- RemovePlayerAttachedObject(playerid, 6);
- chainsawdildo[playerid] = 0;
- }
- return 1;
- }
- if(strcmp("/flashlight", cmdtext, true, 10) == 0)
- {
- if(PlayerInfo[playerid][pFlash] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any flashlight");
- return 1;
- }
- if (flashlight[playerid] == 0)
- {
- SetPlayerAttachedObject(playerid,6,18641,5,0.07998,0.03999,-0.0700,0.0,0.0,0.0);
- flashlight[playerid] = 1;
- }
- else
- {
- RemovePlayerAttachedObject(playerid, 6);
- flashlight[playerid] = 0;
- }
- return 1;
- }
- if(strcmp("/screwdriver", cmdtext, true, 10) == 0)
- {
- if(PlayerInfo[playerid][pScrew] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any screwdriver");
- return 1;
- }
- if (screwdriver[playerid] == 0)
- {
- SetPlayerAttachedObject(playerid,6,18644,5,0.07998,0.03999,0.0,0.0,0.0,0.0);
- wrench[playerid] = 0;
- hammer[playerid] = 0;
- crowbar[playerid] = 0;
- chainsawdildo[playerid] = 0;
- flashlight[playerid] = 0;
- screwdriver[playerid] = 1;
- rake[playerid] = 0;
- }
- else
- {
- RemovePlayerAttachedObject(playerid, 6);
- screwdriver[playerid] = 0;
- }
- return 1;
- }
- if(strcmp("/rake", cmdtext, true, 10) == 0)
- {
- if(PlayerInfo[playerid][pRake] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any rake");
- return 1;
- }
- if (rake[playerid] == 0)
- {
- SetPlayerAttachedObject(playerid,6,18890,5,0.0,0.03999,0.0,0.0,0.0,-90.0);
- wrench[playerid] = 0;
- hammer[playerid] = 0;
- crowbar[playerid] = 0;
- chainsawdildo[playerid] = 0;
- flashlight[playerid] = 0;
- screwdriver[playerid] = 0;
- rake[playerid] = 1;
- }
- else
- {
- RemovePlayerAttachedObject(playerid, 6);
- rake[playerid] = 0;
- }
- return 1;
- }
- if(!strcmp("/hat",cmd,true))
- {
- if(IsPlayerConnected(playerid))
- {
- new skin2, id, count;
- skin2 = (GetPlayerSkin(playerid) - 1);
- id = PlayerInfo[playerid][pHat];
- if(id < 1000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any hat");
- return 1;
- }
- do
- {
- if(skin2 == invalidskins[count]) return SendClientMessage(playerid, 0xFFFFFFAA, "(Error) Your skin does not support a cap.");
- count++;
- }
- while(count < sizeof invalidskins);
- if(skin2 < 0) skin2 = 0;
- if(WithHat[playerid] == 0)
- {
- WithHat[playerid] = 1;
- WithHelmet[playerid] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts on their hat.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- WithHelmet[playerid] = 0;
- SetPlayerAttachedObject(playerid, HATSLOT, id, 2, SkinOffSet2[skin2][0], SkinOffSet2[skin2][1], SkinOffSet2[skin2][2], SkinOffSet2[skin2][3], SkinOffSet2[skin2][4], SkinOffSet2[skin2][5]);
- }
- else
- {
- WithHat[playerid] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s takes off their hat.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, HATSLOT);
- }
- return 1;
- }
- return 1;
- }
- if(!strcmp("/bandana",cmd,true))
- {
- if(IsPlayerConnected(playerid))
- {
- new skin2, id;
- skin2 = GetPlayerSkin(playerid);
- id = PlayerInfo[playerid][pBandana];
- if(id < 1000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any bandana");
- return 1;
- }
- if(WithBandana[playerid] == 0)
- {
- WithBandana[playerid] = 1;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts on their bandana.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerAttachedObject(playerid, BANDANASLOT, id, 2, SkinOffSet3[skin2][0]-0.003818, floatadd(SkinOffSet3[skin2][1], 0.004500)-0.00696, SkinOffSet3[skin2][2]+0.002195, SkinOffSet3[skin2][3]+182.367736, SkinOffSet3[skin2][4]+277.015808, SkinOffSet3[skin2][5]+261.854606);
- }
- else
- {
- WithBandana[playerid] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s takes off their bandana.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, BANDANASLOT);
- }
- return 1;
- }
- return 1;
- }
- if(strcmp("/helperhelp", cmdtext, true, 10) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pHelper] >= 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "TRIAL HELPER: /hc(helperchat) /new");
- }
- if(PlayerInfo[playerid][pHelper] >= 2)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "HELPER: /nmute");
- }
- if(PlayerInfo[playerid][pHelper] >= 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "ASSISTANT HEAD: /makehelper");
- }
- if(PlayerInfo[playerid][pHelper] >= 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "HEAD HELPER: /makehelper");
- }
- if(PlayerInfo[playerid][pHelper] >= 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "COMMUNITY ADVISOR: /makehelper");
- }
- if(PlayerInfo[playerid][pHelper] >= 6)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "DIRECTOR OF PUBLIC RELATIONS: /makehelper");
- }
- }
- return 1;
- }
- if (strcmp(cmd, "/helpers", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Helpers Online:");
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pHelper] >= 1)
- {
- GetPlayerNameEx(i, sendername, sizeof(sendername));
- format(string, 256, "- %s", sendername);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/hc", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/hc) [helper chat]{7DAEFF}");
- return 1;
- }
- new hrank[64];
- if(PlayerInfo[playerid][pHelper] == 1) { hrank = "Trial Helper"; }
- if(PlayerInfo[playerid][pHelper] == 2) { hrank = "Helper"; }
- if(PlayerInfo[playerid][pHelper] == 3) { hrank = "Assistant Head"; }
- if(PlayerInfo[playerid][pHelper] == 4) { hrank = "Head Helper"; }
- if(PlayerInfo[playerid][pHelper] == 5) { hrank = "Community Advisor"; }
- else if(PlayerInfo[playerid][pHelper] == 6) { hrank = "DoPR"; }
- format(string, sizeof(string), "* %s %s: %s", hrank, sendername, result);
- if (PlayerInfo[playerid][pHelper] >= 1)
- {
- SendHelperMessage(TEAM_AZTECAS_COLOR, string);
- }
- printf("Helper %s: %s", sendername, result);
- }
- return 1;
- }
- if(strcmp(cmd, "/gotonewbie", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/gotonewbie) [PlayerID]{7DAEFF}");
- return 1;
- }
- new para1;
- para1 = ReturnUser(tmp);
- new hrank[64];
- if(PlayerInfo[playerid][pHelper] == 2) { hrank = "Helper"; }
- if(PlayerInfo[playerid][pHelper] == 3) { hrank = "Assistant Head"; }
- if(PlayerInfo[playerid][pHelper] == 4) { hrank = "Head Helper"; }
- else if(PlayerInfo[playerid][pHelper] == 5) { hrank = "Community Advisor"; }
- format(string, sizeof(string), "* %s %s accepted %s's assistance request and is helping them.", hrank, sendername, PlayerName(para1));
- if (PlayerInfo[playerid][pHelper] >= 2)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (Reqhelp[para1] == 1)
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:a,
- p=1,
- i = GetPlayerInterior(para1),
- v = GetPlayerVirtualWorld(para1);
- if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) p=0;
- GetPlayerFacingAngle(para1,a);
- GetPlayerPos(para1,x,y,z);
- Teleport(playerid,x,y+2,z,a,i,v,p);
- SendHelperMessage(TEAM_AZTECAS_COLOR, string);
- format(string, sizeof(string), "* Helper %s accepted your assistance request, you were frozen for 3 seconds.", sendername);
- SendClientMessage(para1, TEAM_AZTECAS_COLOR, string);
- TogglePlayerControllable(para1, 0);
- SetTimerEx("BizFreeze", 3000, false, "i", para1);
- Reqhelp[para1] = 0;
- }
- }
- }
- }
- printf("%s", string);
- }
- return 1;
- }
- if(strcmp(cmd, "/ao", true) == 0 || strcmp(cmd, "/adminooc", true) == 0) // Logan Stone
- {
- if(IsPlayerConnected(playerid))
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 2))
- return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[256];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/ao)[text chat]{7DAEFF}");
- return 1;
- }
- new arank[64];
- if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Junior Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "General Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Senior Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Head Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Executive Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 7) { arank = "Server Owner"; }
- format(string, sizeof(string), "(( %s %s: %s ))", arank, sendername, result);
- {
- SendClientMessageToAll(COLOR_OOC, string);
- }
- printf("Admin %s: %s", sendername, result);
- }
- return 1;
- }
- if(strcmp(cmd, "/mole", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 3))
- return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mole [text]");
- return 1;
- }
- format(string, sizeof(string), "SMS: %s, Sender: MOLE (555)",result);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/makehelper", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pHelper] >= 3 || PlayerInfo[playerid][pAdmin] >= 5)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE:{7DAEFF} /makehelper [playerid/PartOfName] [level(1-6)]");
- return 1;
- }
- new para1;
- new level;
- para1 = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- level = strval(tmp);
- if(IsPlayerConnected(para1))
- if(level > 6 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "You cant go above 6 or below 0."); return 1; }
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pHelper] = level;
- printf("Info: %s has made %s a level %d helper", sendername, giveplayer, level);
- format(string, sizeof(string), "You have been promoted to a level %d helper by %s.", level, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have promoted/demoted %s to a level %d helper.", giveplayer,level);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are authorized to use this command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/makegangmod", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 6))
- return SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makegangmod [playerid]{7DAEFF}");
- new targetid = ReturnUser(tmp);
- if(PlayerInfo[targetid][pGangMod])
- {
- SendClientMessage(targetid,COLOR_RED,"Your gang moderator status was removed by an administrator.");
- format(string, sizeof(string), "AdmWarning: %s removed %s's gang moderator status.",PlayerName(playerid),PlayerName(targetid));
- ABroadCast(COLOR_YELLOW,string,1);
- PlayerInfo[targetid][pGangMod] = 0;
- }
- else
- {
- SendClientMessage(targetid,COLOR_RED,"You have been granted gang moderator status by an administrator.");
- format(string, sizeof(string), "AdmWarning: %s granted %s gang moderator status.",PlayerName(playerid),PlayerName(targetid));
- ABroadCast(COLOR_YELLOW,string,1);
- PlayerInfo[targetid][pGangMod] = 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/makebanappealer", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 6))
- return SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makebanappealer [playerid]{7DAEFF}");
- new targetid = ReturnUser(tmp);
- if(PlayerInfo[targetid][pBanAppealer])
- {
- SendClientMessage(targetid,COLOR_RED,"Your ban appealer status was removed by an administrator.");
- format(string, sizeof(string), "AdmWarning: %s removed %s's ban appealer status.",PlayerName(playerid),PlayerName(targetid));
- ABroadCast(COLOR_YELLOW,string,1);
- PlayerInfo[targetid][pBanAppealer] = 0;
- }
- else
- {
- SendClientMessage(targetid,COLOR_RED,"You have been granted ban appealer status by an administrator.");
- format(string, sizeof(string), "AdmWarning: %s granted %s ban appealer status.",PlayerName(playerid),PlayerName(targetid));
- ABroadCast(COLOR_YELLOW,string,1);
- PlayerInfo[targetid][pBanAppealer] = 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/nonewbie", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3 && (!nonewbie))
- {
- nonewbie = 1;
- SendClientMessageToAll(COLOR_GRAD2, "Newbie chat channel disabled by an Admin.");
- }
- else if(PlayerInfo[playerid][pAdmin] >= 3 && (nonewbie))
- {
- nonewbie = 0;
- SendClientMessageToAll(COLOR_GRAD2, "Newbie chat channel enabled by an Admin !");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/noreport", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3 && (!noreport))
- {
- noreport = 1;
- SendClientMessageToAll(COLOR_GRAD2, "Report channel disabled by an Admin !");
- }
- else if(PlayerInfo[playerid][pAdmin] >= 3 && (noreport))
- {
- noreport = 0;
- SendClientMessageToAll(COLOR_GRAD2, "Report channel enabled by an Admin !");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet !");
- return 1;
- }
- if((noooc) && PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "The OOC channel has been disabled by an Admin !");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/o)oc [ooc chat]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "(( %s: %s ))", sendername, result);
- OOCOff(COLOR_OOC,string);
- }
- return 1;
- }
- if(strcmp(cmd, "/noooc", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2 && (!noooc))
- {
- noooc = 1;
- SendClientMessageToAll(COLOR_GRAD2, " OOC chat channel disabled by an Admin !");
- }
- else if(PlayerInfo[playerid][pAdmin] >= 2 && (noooc))
- {
- noooc = 0;
- SendClientMessageToAll(COLOR_GRAD2, " OOC chat channel enabled by an Admin !");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/speedo", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gSpeedo[playerid] == 1)
- {
- gSpeedo[playerid] = 2;
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~on", 5000, 5);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- }
- else if(gSpeedo[playerid] == 2)
- {
- gSpeedo[playerid] = 1;
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~r~off", 5000, 5);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You don't have a Speedometer !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/togfuel", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gGas[playerid] == 0)
- {
- gGas[playerid] = 1;
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~Fuel Info on", 5000, 5);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- }
- else if(gGas[playerid] == 1)
- {
- gGas[playerid] = 0;
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Fuel Info off", 5000, 5);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
- return 1;
- }
- if(PlayerInfo[playerid][pConnectTime] == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE,"You must play longer before you can place advertisements.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdMuted] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are banned from making advertisments.");
- return 1;
- }
- if(PlayerInfo[playerid][pTut] == 0 || PlayerInfo[playerid][pHospital] == 1)
- {
- return 1;
- }
- if(PlayerInfo[playerid][pPnumber] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a cell phone !");
- SendClientMessage(playerid, COLOR_WHITE,"HINT: You can /buy a cell phone from a Phone Shop.");
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] != 0 || PlayerCuffed[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do that at this time.");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/ad)vertise [advert text]{7DAEFF}");
- return 1;
- }
- if((!adds) && (PlayerInfo[playerid][pAdmin] < 3))
- {
- format(string, sizeof(string), "You must wait %d between advertisements, try again soon.", (addtimer/1000));
- SendClientMessage(playerid, COLOR_GRAD2, string);
- return 1;
- }
- new ip[15];
- if(ipmatch(result, ip))
- {
- // format(string, sizeof(string), "AdmCmd: %s was banned, reason: Server Advertising.", sendername);
- // SendClientMessageToAll(COLOR_LIGHTRED, string);
- // BanEx(playerid, "Banned By: Autoban Reason: Server Advertising");
- return 1;
- }
- new payout = idx * 25;
- if(PlayerInfo[playerid][pCash] < payout)
- {
- format(string, sizeof(string), "* You used %d characters which cost $%d, you don't have enough.", offset, payout);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-payout;
- GivePlayerMoney(playerid, - payout);
- format(string, sizeof(string), "Advertisement: %s, Contact: %s Ph: %d", result, sendername,PlayerInfo[playerid][pPnumber]);
- OOCNews(TEAM_GROVE_COLOR,string);
- format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters", payout, idx);
- GameTextForPlayer(playerid, string, 5000, 5);
- if(PlayerInfo[playerid][pAdmin] < 4){SetTimer("AddsOn", addtimer, 0);adds = 0;}
- }
- return 1;
- }
- if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid) || IsANG(playerid) || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
- {
- if(PlayerInfo[playerid][pMember] == 1)
- {
- if(PlayerInfo[playerid][pRank] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be Rank 4 to be able to use this.");
- return 1;
- }
- }
- else
- {
- if(PlayerInfo[playerid][pRank] < 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be Rank 5 to be able to use this.");
- return 1;
- }
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/gov)ernment [text]{7DAEFF}");
- return 1;
- }
- new rtext[64];
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) //LSPD
- {
- if(PlayerInfo[playerid][pRank] == 4) { rtext = "LSPD Captain"; }
- else if(PlayerInfo[playerid][pRank] == 5) { rtext = "LSPD Deputy Chief"; }
- else if(PlayerInfo[playerid][pRank] == 6) { rtext = "LSPD Chief"; }
- }
- else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
- {
- if(PlayerInfo[playerid][pRank] == 5) { rtext = "FBI Assistant Director"; }
- else if(PlayerInfo[playerid][pRank] == 6) { rtext = "FBI Director"; }
- }
- else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) //SASP
- {
- if(PlayerInfo[playerid][pRank] == 5) { rtext = "Superintendent"; }
- else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Commodore"; }
- }
- else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) //Paramedic
- {
- if(PlayerInfo[playerid][pRank] == 5) { rtext = "LSFMD Captain"; }
- else if(PlayerInfo[playerid][pRank] == 6) { rtext = "LSFMD Battalion Chief"; }
- }
- else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) //National Guard
- {
- if(PlayerInfo[playerid][pRank] == 5) { rtext = "NG Colonel"; }
- else if(PlayerInfo[playerid][pRank] == 6) { rtext = "NG General"; }
- }
- else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) //Senate
- {
- if(PlayerInfo[playerid][pRank] == 5) { rtext = "Vice Governor"; }
- else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Governor"; }
- }
- else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) //CIA
- {
- if(PlayerInfo[playerid][pRank] == 5) { rtext = "SS Vice Director"; }
- else if(PlayerInfo[playerid][pRank] == 6) { rtext = "SS Director"; }
- }
- SendClientMessageToAll(COLOR_WHITE, "|___________ Government News Announcement ___________|");
- format(string, sizeof(string), "%s %s: %s",rtext,sendername, result);
- SendClientMessageToAll(COLOR_DBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / Fireman / Paramedic / NG / Governor.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/togooc", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!gOoc[playerid])
- {
- gOoc[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "OOC chat channel Disabled.");
- }
- else if(gOoc[playerid])
- {
- gOoc[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "OOC chat channel Enabled.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/tognewbie", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!gNewbie[playerid])
- {
- gNewbie[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "Newbie chat channel Disabled.");
- }
- else if(gNewbie[playerid])
- {
- gNewbie[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "Newbie chat channel Enabled.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/tognews", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!gNews[playerid])
- {
- gNews[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "News chat channel Disabled.");
- }
- else if(gNews[playerid])
- {
- gNews[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "News chat channel Enabled.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/togfam", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!gFam[playerid])
- {
- gFam[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "Family chat channel Disabled.");
- }
- else if(gFam[playerid])
- {
- gFam[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "Family chat channel Enabled.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/togwhisper", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!HidePM[playerid])
- {
- HidePM[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "Whisper chat channel Disabled.");
- }
- else if(HidePM[playerid])
- {
- HidePM[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "Whisper chat channel Enabled.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/notp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_RED, "You are not authorised to use that command.");
- return 1;
- }
- if(!NoTP[playerid])
- {
- NoTP[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "Teleports Disabled.");
- }
- else if(NoTP[playerid])
- {
- NoTP[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "Teleports Enabled.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/nospec", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_RED, "You are not authorised to use that command.");
- return 1;
- }
- if(!NoSpec[playerid])
- {
- NoSpec[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "Spectating Disabled.");
- }
- else if(NoSpec[playerid])
- {
- NoSpec[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "Spectating Enabled.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/togphone", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!PhoneOnline[playerid])
- {
- PhoneOnline[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "Your Phone is Offline.");
- }
- else if(PhoneOnline[playerid])
- {
- PhoneOnline[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "Your Phone is Online.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/me", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /me [action]");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger %s", result);
- }
- else
- {
- format(string, sizeof(string), "* %s %s", sendername, result);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- if(strcmp(cmd, "/b", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /b [local ooc chat]");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "Stranger: (( %s ))", result);
- }
- else
- {
- format(string, sizeof(string), "%s: (( %s ))", sendername, result);
- }
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- }
- return 1;
- }
- if(strcmp(cmd, "/shout", true) == 0 || strcmp(cmd, "/s", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/s)hout [local chat]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "Stranger shouts: %s!", result);
- }
- else
- {
- format(string, sizeof(string), "%s shouts: %s!", sendername, result);
- }
- ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
- format(string, sizeof(string), "shouts: %s!", result);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 30.0, 10000);
- }
- return 1;
- }
- if(strcmp(cmd, "/low", true) == 0 || strcmp(cmd, "/l", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE:{7DAEFF} (/l)ow [local chat]");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "Stranger [low]: %s", result);
- }
- else
- {
- format(string, sizeof(string), "%s [low]: %s", sendername, result);
- }
- ProxDetector(5.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "[low]: %s", result);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 10.0, 10000);
- }
- return 1;
- }
- if(strcmp(cmd, "/do", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /do [local chat]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* %s (( Stranger ))", result);
- }
- else
- {
- format(string, sizeof(string), "* %s (( %s ))",result , sendername);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- if(strcmp(cmd, "/intercom", true) == 0 || strcmp(cmd, "/int", true) == 0)
- {
- new vw, interior;
- new vehid = GetPlayerVehicleID(playerid);
- if(vehid == 152)
- {
- vw = 1337;
- interior = 1;
- }
- else if(vehid == 153)
- {
- vw = 1338;
- interior = 1;
- }
- else if(vehid == 154)
- {
- vw = 1339;
- interior = 1;
- }
- else
- {
- return SendClientMessage(playerid,COLOR_GREY,"You're not in a vehicle with an intercom!");
- }
- strmid(tmp,cmdtext,idx,strlen(cmdtext));
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/int)ercom [text]{7DAEFF}");
- format(string, sizeof(string), "[Pilot %s:o<%s]",PlayerName(playerid),tmp);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- for(new i = 0;i < MAX_PLAYERS;i++)
- {
- if(GetPlayerVirtualWorld(i) == vw && GetPlayerInterior(i) == interior)
- {
- SendClientMessage(i,COLOR_YELLOW,string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/m)egaphone [megaphone chat]{7DAEFF}");
- return 1;
- }
- if(IsACop(playerid) || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4|| IsANG(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
- {
- format(string, sizeof(string), "[Officer %s:o< %s]", sendername, result);
- ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- }
- else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
- {
- format(string, sizeof(string), "[Agent %s:o< %s]", sendername, result);
- ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- }
- else if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
- {
- format(string, sizeof(string), "[Deputy %s:o< %s]", sendername, result);
- ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- }
- else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
- {
- format(string, sizeof(string), "[Paramedic %s:o< %s]", sendername, result);
- ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- }
- else if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5)
- {
- format(string, sizeof(string), "[Soldier %s:o< %s]", sendername, result);
- ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not part of a Team !");
- return 1;
- }
- }
- return 1;
- }
- /*if(strcmp(cmd, "/door", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 7)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3, 246.3489,72.0905,1003.6406))
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- if(IsPlayerConnected(playerid))
- {
- if(IsLSPDDoorOpen == 0)
- {
- MoveDynamicObject(LSPD_Door[ObjectID1], 247.3080, 72.3000, 1003.6700, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID2], 245.480, 72.5750, 1003.6650, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID3], 247.888, 72.4500, 1003.7000, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID4], 244.908, 72.4500, 1003.7000, 1.50);
- IsLSPDDoorOpen = 1;
- format(string, sizeof(string), "* %s slides their card and opens the door", name);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- if(IsLSPDDoorOpen == 1)
- {
- MoveDynamicObject(LSPD_Door[ObjectID1], 246.4050, 72.3000, 1003.6700, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID2], 246.4050, 72.5750, 1003.6650, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID3], 246.9850, 72.4500, 1003.7000, 1.50);
- MoveDynamicObject(LSPD_Door[ObjectID4], 245.8330, 72.4500, 1003.7000, 1.50);
- IsLSPDDoorOpen = 0;
- format(string, sizeof(string), "* %s slides their card and closes the door", name);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3, 222.09, 70.57, 1004.00))
- {
- if(IsPlayerConnected(playerid))
- {
- if(DoorOpened==0)
- {
- MoveDynamicObject(door, 222.21, 72.27, 1004.00, 3);
- chiefdoortimer = SetTimer("ClosePDDoor",3000,0);
- DoorOpened = 1;
- }
- else if(DoorOpened==1)
- {
- MoveDynamicObject(door, 222.09, 70.57, 1004.00, 3);
- KillTimer(chiefdoortimer);
- DoorOpened = 0;
- }
- }
- }
- }
- }
- }*/
- if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new str[160];
- GetPlayerName(playerid, str, MAX_PLAYER_NAME);
- for (new i = 0; i < MAX_PLAYER_NAME; i++)
- if (str[i] == '_')
- str[i] = ' ';
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[256];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/r)adio [radio chat]{7DAEFF}");
- return 1;
- }
- switch (PlayerInfo[playerid][pMember])
- {
- case 1:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(1, TEAM_BLUE_COLOR, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- }
- case 2:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(2, TEAM_BLUE_COLOR, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- }
- case 3:
- {
- format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
- SendRadioMessage(3, TEAM_BLUE_COLOR, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- }
- case 4:
- {
- format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
- SendRadioMessage(4, COLOR_DOC, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- }
- case 5:
- {
- format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
- SendRadioMessage(5, COLOR_LIGHTGREEN, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- }
- case 6:
- {
- format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
- SendRadioMessage(6, TEAM_BLUE_COLOR, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- }
- case 7:
- {
- format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
- SendRadioMessage(7, TEAM_BLUE_COLOR, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- }
- case 9:
- {
- format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
- SendRadioMessage(9, TEAM_GROVE_COLOR, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- }
- case 10:
- {
- format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
- SendRadioMessage(10, TEAM_GROVE_COLOR, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- }
- default: SendClientMessage(playerid, COLOR_GRAD2, "You are not part of a Team.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/faction", true) == 0 || strcmp(cmd, "/fooc", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new str[160];
- GetPlayerName(playerid, str, MAX_PLAYER_NAME);
- for (new i = 0; i < MAX_PLAYER_NAME; i++)
- if (str[i] == '_')
- str[i] = ' ';
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[256];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /f [ooc chat]{7DAEFF}");
- return 1;
- }
- switch (PlayerInfo[playerid][pMember])
- {
- case 1:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(1, TEAM_AZTECAS_COLOR, string);
- }
- case 2:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(2, TEAM_AZTECAS_COLOR, string);
- }
- case 3:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(3, TEAM_AZTECAS_COLOR, string);
- }
- case 4:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
- }
- case 5:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(5, TEAM_AZTECAS_COLOR, string);
- }
- case 6:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(6, TEAM_AZTECAS_COLOR, string);
- }
- case 7:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(7, TEAM_AZTECAS_COLOR, string);
- }
- case 8:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(8, TEAM_AZTECAS_COLOR, string);
- }
- case 9:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(9, TEAM_AZTECAS_COLOR, string);
- }
- case 10:
- {
- format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
- SendRadioMessage(10, TEAM_AZTECAS_COLOR, string);
- }
- default: SendClientMessage(playerid, COLOR_GRAD2, "You are not a member of a Faction/Family.");
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/backupclear",true) == 0 || strcmp(cmd,"/bkc",true) == 0) // Logan Stone
- {
- if(IsACop(playerid))
- {
- GetPlayerNameEx(playerid,sendername,sizeof(sendername));
- format(string, sizeof(string), "DISPATCH: %s %s has cancelled their backup request.", GetPlayerRank(playerid), sendername);
- SendRadioMessage(1, TEAM_BLUE_COLOR, string);
- SendRadioMessage(2, TEAM_BLUE_COLOR, string);
- SendRadioMessage(3, TEAM_BLUE_COLOR, string);
- BackupClear(playerid, 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a law enforcement official.");
- }
- return 1;
- }
- if(strcmp(cmd,"/backup",true) == 0 || strcmp(cmd,"/bk",true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid))
- {
- if(PlayerInfo[playerid][pRequestingBackup] != 1)
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "HQ: All units, %s %s %s is requesting backup, they have been marked on your GPS.", GetPlayerFactionName(playerid),GetPlayerRank(playerid), sendername);
- SendRadioMessage(1, TEAM_BLUE_COLOR, string);
- SendRadioMessage(2, TEAM_BLUE_COLOR, string);
- SendRadioMessage(3, TEAM_BLUE_COLOR, string);
- PlayerInfo[playerid][pRequestingBackup] = 1;
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsACop(i))
- {
- SetPlayerMarkerForPlayer(i, playerid, 0xFF0000FF);
- }
- }
- }
- SendClientMessage(playerid, TEAM_BLUE_COLOR, "Type /bkc to clear your backup request.");
- SetTimerEx("BackupClear", 180000, false, "ii", playerid, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You already have an active backup request.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / SAST.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/deployspikes", true) == 0)
- {
- if(!IsACop(playerid) && !IsANG(playerid))
- {
- return SendClientMessage(playerid,COLOR_GREY,"You are not a Cop / FBI / SAST / NG.");
- }
- if(PlayerInfo[playerid][pMember] == 1)
- {
- if(PlayerInfo[playerid][pRank] < 4)
- {
- return SendClientMessage(playerid,COLOR_GREY,"Your rank is too low to be deploying spike strips.");
- }
- }
- else
- {
- if(PlayerInfo[playerid][pRank] < 5)
- {
- return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
- }
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid,COLOR_GREY," You cannot place a spike strip while inside a vehicle !");
- }
- new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
- GetPlayerPos(playerid,plocx,plocy,plocz);
- GetPlayerFacingAngle(playerid,ploca);
- new location[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
- new Float:x, Float:y, Float:z, Float:angle;
- GetPlayerFacingAngle(playerid, angle);
- GetPlayerPos(playerid, x, y, z);
- CreateStrip(x, y, z, angle);
- format(string, sizeof(string), "HQ: %s %s has placed a spike strip at %s", GetPlayerRank(playerid),PlayerName(playerid), location);
- SendRadioMessage(1, TEAM_BLUE_COLOR, string);
- SendRadioMessage(2, TEAM_BLUE_COLOR, string);
- SendRadioMessage(3, TEAM_BLUE_COLOR, string);
- SendRadioMessage(5, TEAM_BLUE_COLOR, string);
- ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,0); // Plant bomb
- /*GetPlayerFacingAngle(playerid,ploca);
- CreateStrip(plocx,plocy,plocz,ploca);*/
- return 1;
- }
- if(strcmp(cmd, "/deletespike", true) == 0)
- {
- if(!IsACop(playerid) && !IsANG(playerid))
- {
- return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST / NG !");
- }
- if(PlayerInfo[playerid][pMember] == 1)
- {
- if(PlayerInfo[playerid][pRank] < 4)
- {
- return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
- }
- }
- else
- {
- if(PlayerInfo[playerid][pRank] < 5)
- {
- return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
- }
- }
- DeleteClosestStrip(playerid);
- return 1;
- }
- if(strcmp(cmd, "/deletespikes", true) == 0)
- {
- if(!IsACop(playerid) && !IsANG(playerid))
- {
- return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST / NG !");
- }
- if(PlayerInfo[playerid][pMember] == 1)
- {
- if(PlayerInfo[playerid][pRank] < 4)
- {
- return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
- }
- }
- else
- {
- if(PlayerInfo[playerid][pRank] < 5)
- {
- return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
- }
- }
- format(string, sizeof(string), "HQ: %s %s has deleted all spike strips.", GetPlayerRank(playerid),PlayerName(playerid));
- SendRadioMessage(1, TEAM_BLUE_COLOR, string);
- SendRadioMessage(2, TEAM_BLUE_COLOR, string);
- SendRadioMessage(3, TEAM_BLUE_COLOR, string);
- SendRadioMessage(5, TEAM_BLUE_COLOR, string);
- DeleteAllStrip();
- return 1;
- }
- if(strcmp(cmd, "/duty", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] == 2)
- {
- if(JobDuty[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Lawyer Job and will not receive calls anymore.");
- JobDuty[playerid] = 0;
- Lawyers -= 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Lawyer Job and will receive calls from people in need.");
- JobDuty[playerid] = 1;
- Lawyers += 1;
- }
- }
- else if(PlayerInfo[playerid][pJob] == 7)
- {
- if(JobDuty[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Mechanic Job and will not receive calls anymore.");
- JobDuty[playerid] = 0;
- Mechanics -= 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Mechanic Job and will receive calls from people in need.");
- JobDuty[playerid] = 1;
- Mechanics += 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,3,375.5890,180.6613,1014.1875) && PlayerInfo[playerid][pMember] == 6)
- {
- if(PlayerInfo[playerid][pOnDuty] == 0) //if player is off duty, set them them on
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes a Gun from their locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { SetPlayerColor(playerid, TCOLOR_DARKGREY); }
- GivePlayerWeapon(playerid, 24, 999999); PlayerInfo[playerid][pGun2] = 24; //deagle
- SetPlayerArmour(playerid, 100.0);
- PlayerInfo[playerid][pOnDuty] = 1;
- TogglePlayerControllable(playerid,1);
- }
- else if(PlayerInfo[playerid][pOnDuty] == 1) //if player is on duty, set them off
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s places a Gun in their locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TCOLOR_WHITE);
- PlayerInfo[playerid][pGun2] = 0;
- ResetPlayerWeapons(playerid);
- SetPlayerArmour(playerid, 0.0);
- PlayerInfo[playerid][pOnDuty] = 0;
- TogglePlayerControllable(playerid,1);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/tow", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
- {
- if(IsACop(playerid) && PlayerInfo[playerid][pRank] >= 2 || PlayerInfo[playerid][pJob] == 7)
- {
- new Float:ppX,Float:ppY,Float:ppZ;
- GetPlayerPos(playerid,ppX,ppY,ppZ);
- new Float:vvX,Float:vvY,Float:vvZ;
- new Found=0;
- new vid=0;
- while((vid<MAX_VEHICLES)&&(!Found))
- {
- vid++;
- GetVehiclePos(vid,vvX,vvY,vvZ);
- if ((floatabs(ppX-vvX)<7.0)&&(floatabs(ppY-vvY)<7.0)&&(floatabs(ppZ-vvZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
- {
- Found=1;
- if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
- DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
- else
- AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
- }
- }
- if (!Found)
- SendClientMessage(playerid,COLOR_GREY," There is no car in range !");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You have to be a mechanic or be apart of the LSPD.");
- return 1;
- }
- }
- }
- else
- SendClientMessage(playerid, COLOR_GREY, "You have to be in a Towtruck!");
- return 1;
- }
- //lspd menu
- if(strcmp(cmdtext, "/lspd", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,3,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid,3,327.2337,308.3763,999.1484))
- {
- DisplayDialogForPlayer(playerid, 10);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not in your locker room.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a Cop.");
- return 1;
- }
- }
- return 1;
- }
- //fbi menu
- if(strcmp(cmdtext, "/fbi", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,3,266.1936,108.6017,1004.6172))
- {
- DisplayDialogForPlayer(playerid, 10);
- ShowPlayerDialog(playerid, FBI1, DIALOG_STYLE_LIST, "FBI","Duty\nUndercover\nChange Uniform\nArmory\nTACTICAL\nClear Suspect\nRelease Suspect","Select","Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "* You are not in your locker room !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "* You are not an Agent !");
- return 1;
- }
- }
- return 1;
- }
- //lsfmd menu
- if(strcmp(cmdtext, "/lsfmd", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- if(IsPlayerInRangeOfPoint(playerid,3,355.1422,164.2477,1019.9844))
- {
- ShowPlayerDialog(playerid,67,DIALOG_STYLE_LIST,"LSFMD","Duty\nChange Uniform\nGear\n","Select","Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in your first aid room !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Paramedic / Fireman !");
- return 1;
- }
- }
- return 1;
- }
- //ng menu
- if(strcmp(cmdtext, "/ng", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsANG(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.5,-219.0950,1406.0631,27.7734))
- {
- DisplayDialogForPlayer(playerid, 8);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in your locker room !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a National Guard !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/camera", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,211.6799,1812.2871,21.8594) || IsPlayerInRangeOfPoint(playerid,1.0,450.7513,-88.6526,1174.3534) || IsPlayerInRangeOfPoint(playerid,1.0,1816.1584,-1562.8831,1636.9736))
- {
- new PrisonCam[256];
- PrisonCam = strtok(cmdtext, idx);
- tmp = strtok(cmdtext, idx);
- if(!strlen(PrisonCam))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /camera [1-7]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /camera [off]{7DAEFF}");
- return 1;
- }
- else if(strcmp(PrisonCam,"1",true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 1.");
- SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
- SetPlayerCameraPos(playerid, 159.2888,1931.1571,31.8069);
- SetPlayerCameraLookAt(playerid, 134.1327,1918.2794,19.0090);
- TogglePlayerControllable(playerid, 0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if(strcmp(PrisonCam,"2",true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 2.");
- SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
- SetPlayerCameraPos(playerid,263.8218,1893.5532,31.8306);
- SetPlayerCameraLookAt(playerid, 225.8632,1879.5031,17.6406);
- TogglePlayerControllable(playerid, 0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if(strcmp(PrisonCam,"3",true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 3.");
- SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
- SetPlayerCameraPos(playerid, 168.5983,1848.0315,31.8531);
- SetPlayerCameraLookAt(playerid, 207.7683,1851.8423,19.6529);
- TogglePlayerControllable(playerid, 0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if(strcmp(PrisonCam,"4",true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 4.");
- SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
- SetPlayerCameraPos(playerid, 202.1480,1873.5778,15.4752);
- SetPlayerCameraLookAt(playerid, 214.8778,1863.3593,13.1406);
- TogglePlayerControllable(playerid, 0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if(strcmp(PrisonCam,"5",true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 5.");
- SetPlayerPos(playerid, 1816.1584,-1562.8831,1636.9736);
- SetPlayerCameraPos(playerid, 1767.4937,-1570.1757,1644.8822);
- SetPlayerCameraLookAt(playerid, 1789.7747,-1570.7231,1636.9736);
- TogglePlayerControllable(playerid, 0);
- SetPlayerInterior(playerid, 1);
- PlayerInfo[playerid][pInt] = 1;
- }
- else if(strcmp(PrisonCam,"6",true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 6.");
- SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
- SetPlayerCameraPos(playerid, 265.4656,1862.6543,11.4501);
- SetPlayerCameraLookAt(playerid, 272.2814,1858.9218,8.7578);
- TogglePlayerControllable(playerid, 0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if(strcmp(PrisonCam,"7",true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 7.");
- SetPlayerPos(playerid, 450.7513,-88.6526,1174.3534);
- SetPlayerCameraPos(playerid, 460.1160,-91.8375,1000.8726);
- SetPlayerCameraLookAt(playerid, 454.0889,-88.0101,999.5547);
- TogglePlayerControllable(playerid, 0);
- SetPlayerInterior(playerid, 4);
- PlayerInfo[playerid][pInt] = 4;
- }
- else if(strcmp(PrisonCam,"off",true) == 0)
- {
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- TogglePlayerControllable(playerid, 1);
- SetPlayerPos(playerid, 211.6332,1812.2885,21.8594);
- SendClientMessage(playerid, COLOR_GREEN, " You are no longer watching the cameras.");
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not at the control center !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not logged in !");
- }
- }
- /*
- if(strcmp(cmd, "/setgunskill", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- if(strcmp(tmp,"pistol",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's Pistol Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"sdpistol",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's SDPistol Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"deagle",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's Deagle Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"shotgun",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's Shotgun Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"sawnoff",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's Sawnoff Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"spas12",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's SPAS12 Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"microsmg",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's MicroSMG Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"mp5",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's MP5 Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"ak47",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's AK47 Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"m4",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's M4 Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(strcmp(tmp,"sniper",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
- return 1;
- }
- new amount;
- amount = strvalEx(tmp);
- if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, amount);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's Sniper Skill to %d !", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- */
- if(strcmp(cmd, "/setfightstyle", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFF} /setfightstyle [playerid/PartOfName] [1-6]");
- return 1;
- }
- new playa;
- new fstyle;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setfightstyle [playerid/PartOfName] [1-6]");
- return 1;
- }
- fstyle = strvalEx(tmp);
- if(fstyle < 1 || fstyle > 6) { SendClientMessage(playerid, COLOR_GREY, "Fighting Style can't be below 1 or above 6 !"); return 1; }
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- new fstring[16];
- if(fstyle == 1)
- {
- SetPlayerFightingStyle(playa, FIGHT_STYLE_NORMAL);
- PlayerInfo[playa][pFightingStyle] = 4;
- fstring = "NORMAL";
- }
- if(fstyle == 2)
- {
- SetPlayerFightingStyle(playa, FIGHT_STYLE_BOXING);
- PlayerInfo[playa][pFightingStyle] = 5;
- fstring = "BOXING";
- }
- if(fstyle == 3)
- {
- SetPlayerFightingStyle(playa, FIGHT_STYLE_KUNGFU);
- PlayerInfo[playa][pFightingStyle] = 6;
- fstring = "KUNG FU";
- }
- if(fstyle == 4)
- {
- SetPlayerFightingStyle(playa, FIGHT_STYLE_KNEEHEAD);
- PlayerInfo[playa][pFightingStyle] = 7;
- fstring = "KNEEHEAD";
- }
- if(fstyle == 5)
- {
- SetPlayerFightingStyle(playa, FIGHT_STYLE_GRABKICK);
- PlayerInfo[playa][pFightingStyle] = 15;
- fstring = "GRABKICK";
- }
- if(fstyle == 6)
- {
- SetPlayerFightingStyle(playa, FIGHT_STYLE_ELBOW);
- PlayerInfo[playa][pFightingStyle] = 26;
- fstring = "ELBOW";
- }
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have set %s's Fighting Style to %s !", giveplayer, fstring);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setcrime", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setcrime [playerid/PartOfName] [3-22]{7DAEFF}");
- return 1;
- }
- new playa;
- new crime;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setcrime [playerid/PartOfName] [3-22]{7DAEFF}");
- return 1;
- }
- crime = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- PlayCrimeReportForPlayer(playerid,giveplayerid,crime);
- format(string, sizeof(string), " You have set %s's crime report to %d !", giveplayer,crime);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/pickupbomb", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(BombID[playerid] != -1)
- {
- new Float:X,Float:Y,Float:Z;
- GetObjectPos(BombID[playerid],X,Y,Z);
- if(IsPlayerInAnyVehicle(playerid))
- {
- BombInCar[playerid] = 0;
- PlayerInfo[playerid][pBombs]++;
- HoldingDetonator[playerid] = 0;
- TakeWeapon(playerid,40);
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You have disarmed the C4.");
- }
- else if(IsPlayerInRangeOfPoint(playerid,1.5,X,Y,Z))
- {
- SetPlayerFacingObject(playerid,BombID[playerid]);
- ApplyAnimation(playerid,"BOMBER","BOM_Plant_2Idle",4.0,0,0,0,0,0);
- DestroyDynamicObject(BombID[playerid]);
- BombID[playerid] = -1;
- PlayerInfo[playerid][pBombs]++;
- HoldingDetonator[playerid] = 0;
- TakeWeapon(playerid,40);
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You have disarmed the C4.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You haven't planted a C4 yet !");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/plantbomb", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pBombs] == 0)
- {
- SendClientMessage(playerid,COLOR_GRAD2," You don't have any C4 Explosives !");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- BombInCar[playerid] = 1;
- BombID[playerid] = GetPlayerVehicleID(playerid);
- }
- else
- {
- new Float:X,Float:Y,Float:Z,Float:A;
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerFacingAngle(playerid, A);
- DestroyDynamicObject(BombID[playerid]);
- X += (1 * floatsin(-A, degrees));
- Y += (1 * floatcos(-A, degrees));
- BombID[playerid] = CreateDynamicObject(1654, X, Y, Z-0.9, 0, 90, 0);
- BombInCar[playerid] = 0;
- }
- ResetPlayerWeapons(playerid);
- GivePlayerGun(playerid, 40); //detonator
- PlayerInfo[playerid][pBombs]--;
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You have placed the C4, the device is now armed.");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/departments", true) == 0 || strcmp(cmd, "/d", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new str[160];
- GetPlayerName(playerid, str, MAX_PLAYER_NAME);
- for (new i = 0; i < MAX_PLAYER_NAME; i++)
- if (str[i] == '_')
- str[i] = ' ';
- if(!(PlayerInfo[playerid][pMember] >= 1 && PlayerInfo[playerid][pMember] <= 7))
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not part of a Team !");
- return 1;
- }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[256];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/d)epartments [department chat]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "* [%s] %s %s: %s, over.", GetPlayerFactionName(playerid),GetPlayerRank(playerid),str, result);
- SendFamilyMessage(1, COLOR_DCHAT, string);
- SendFamilyMessage(2, COLOR_DCHAT, string);
- SendFamilyMessage(3, COLOR_DCHAT, string);
- SendFamilyMessage(4, COLOR_DCHAT, string);
- SendFamilyMessage(5, COLOR_DCHAT, string);
- SendFamilyMessage(6, COLOR_DCHAT, string);
- SendFamilyMessage(7, COLOR_DCHAT, string);
- format(string, sizeof(string), "[Radio] %s, over.", result);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/profile", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /profile [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- ShowProfile(playerid,giveplayerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid Player ID.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the Hitman Agency !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/mdc", true) == 0) //DIALOG MDC
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsACop(playerid) && !IsAAgent(playerid) && !IsANG(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / Prison Guard.");
- return 1;
- }
- new mdcstring[1024];
- new location[MAX_ZONE_NAME];
- new tmpcar = GetPlayerVehicleID(playerid);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /mdc [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(CarInfo[tmpcar][tFaction] == 1 || CarInfo[tmpcar][tFaction] == 2 || IsPlayerInRangeOfPoint(playerid,5.0,253.9280,69.6094,1003.6406))
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, sendername, sizeof(sendername));
- GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
- new wanted = 0,hashome = 0,crimes = 0;
- if(PlayerInfo[giveplayerid][pWantedLevel] > 0) wanted = 1;
- if(PlayerInfo[giveplayerid][pHouseKey] < 999) hashome = 1;
- if(PlayerInfo[giveplayerid][pCrimes] > 0) crimes = 1;
- if(wanted == 1 && hashome == 0)
- {
- format(mdcstring, sizeof(mdcstring), "Name: %s\nReporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\nCriminal Record: Yes\nCrimes Commited: %d\nTimes Arrested: %d",
- sendername,
- PlayerInfo[giveplayerid][pCrimeReporter0],PlayerInfo[giveplayerid][pCrimeDate0],
- PlayerInfo[giveplayerid][pCrimeReporter1],PlayerInfo[giveplayerid][pCrimeDate1],
- PlayerInfo[giveplayerid][pCrimeReporter2],PlayerInfo[giveplayerid][pCrimeDate2],
- PlayerInfo[giveplayerid][pCrimeReporter3],PlayerInfo[giveplayerid][pCrimeDate3],
- PlayerInfo[giveplayerid][pCrimeReporter4],PlayerInfo[giveplayerid][pCrimeDate4],
- PlayerInfo[giveplayerid][pCrimeReporter5],PlayerInfo[giveplayerid][pCrimeDate5],
- PlayerInfo[giveplayerid][pCrimes],
- PlayerInfo[giveplayerid][pArrested]);
- }
- if(wanted == 1 && hashome == 1)
- {
- Get2DZone(location, MAX_ZONE_NAME, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]);
- format(mdcstring, sizeof(mdcstring), "Name: %s\nReporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\nHouse Address: %s\nCriminal Record: Yes\nCrimes Commited: %d\nTimes Arrested: %d",
- sendername,
- PlayerInfo[giveplayerid][pCrimeReporter0],PlayerInfo[giveplayerid][pCrimeDate0],
- PlayerInfo[giveplayerid][pCrimeReporter1],PlayerInfo[giveplayerid][pCrimeDate1],
- PlayerInfo[giveplayerid][pCrimeReporter2],PlayerInfo[giveplayerid][pCrimeDate2],
- PlayerInfo[giveplayerid][pCrimeReporter3],PlayerInfo[giveplayerid][pCrimeDate3],
- PlayerInfo[giveplayerid][pCrimeReporter4],PlayerInfo[giveplayerid][pCrimeDate4],
- PlayerInfo[giveplayerid][pCrimeReporter5],PlayerInfo[giveplayerid][pCrimeDate5],
- location,
- PlayerInfo[giveplayerid][pCrimes],
- PlayerInfo[giveplayerid][pArrested]);
- }
- if(wanted == 0 && hashome == 0 && crimes == 1)
- {
- format(mdcstring, sizeof(mdcstring), "Name: %s\nWanted: No\nCriminal Record: Yes\nCrimes Commited: %d\nTimes Arrested: %d",
- sendername,
- PlayerInfo[giveplayerid][pCrimes],
- PlayerInfo[giveplayerid][pArrested]);
- }
- if(wanted == 0 && hashome == 1 && crimes == 0)
- {
- Get2DZone(location, MAX_ZONE_NAME, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]);
- format(mdcstring, sizeof(mdcstring), "Name: %s\nWanted: No\nHouse Address: %s\nCriminal Record: No",
- sendername,
- location);
- }
- if(wanted == 0 && hashome == 0 && crimes == 0)
- {
- format(mdcstring, sizeof(mdcstring), "Name: %s\nWanted: No\nCriminal Record: No",
- sendername);
- }
- if(wanted == 0 && hashome == 1 && crimes == 1)
- {
- Get2DZone(location, MAX_ZONE_NAME, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]);
- format(mdcstring, sizeof(mdcstring), "Name: %s\nWanted: No\nHouse Address: %s\nCriminal Record: Yes\nCrimes Commited: %d\nTimes Arrested: %d",
- sendername,
- location,
- PlayerInfo[giveplayerid][pCrimes],
- PlayerInfo[giveplayerid][pArrested]);
- }
- ShowPlayerDialog(playerid,667,DIALOG_STYLE_MSGBOX,"Mobile Data Computer",mdcstring,"Ok","Cancel");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Police Vehicle or in the Police Department.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/su)spect [playerid/PartOfName] [crime discription]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(!IsACop(giveplayerid))
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/su)spect [playerid/PartOfName] [crime text]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pWantedLevel] >= 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is at max wanted level.");
- return 1;
- }
- if(UseAdmCmdTimer[playerid] > 8)
- {
- new IP[16];
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- BanEx(playerid, "Banned By: Autoban Reason: Spam");
- return 1;
- }
- PlayerInfo[giveplayerid][pWantedLevel]++;
- SetPlayerCriminal(giveplayerid,playerid, result);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- UseAdmCmdTimer[playerid]++;
- SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You can't suspect a Cop !");
- }
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / SAST !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/swhisper", true) == 0 || strcmp(cmd, "/sw", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}Error:{FFFFFF}Please login to proceed.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/sw)isper [playerid/PartOfName] [whisper text]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't whisper to yourself."); return 1; }
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this.");
- return 1;
- }
- if(HidePM[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is blocking whispers.");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/w)isper [playerid/PartOfName] [whisper text]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "Secret Admin: %s", (result));
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Secret Admin Whisper to %s(ID: %d): %s", giveplayer, giveplayerid, (result));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- }
- else
- {
- format(string, sizeof(string), "%d is not an active player.", giveplayerid);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/whisper", true) == 0 || strcmp(cmd, "/w", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/w)isper [playerid/PartOfName] [whisper text]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't whisper to yourself !"); return 1; }
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not in range !");
- return 1;
- }
- }
- if(HidePM[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is blocking whispers !");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/w)isper [playerid/PartOfName] [whisper text]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "%s(ID: %d) whispers: %s", sendername, playerid, (result));
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Whisper to %s(ID: %d): %s", giveplayer, giveplayerid, (result));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- }
- else
- {
- format(string, sizeof(string), "%d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setcarhp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /setcarhp [playerid/PartOfName] [health]{7DAEFF}");
- return 1;
- }
- new CarHP;
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- CarHP = strval(tmp);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- SetVehicleHealth(GetPlayerVehicleID(giveplayerid), CarHP);
- format(string, sizeof(string), "Info: %s has restored %s 's car to %d", sendername, giveplayer, CarHP);
- SendAdminMessage(COLOR_YELLOW, string);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/admins", true) == 0)//Logan Stone - New Ranks and Grammar Fixes
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Admins Online:");
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pAdmin] > 1 && PlayerInfo[i][pStealth] == 0)
- {
- new admtext[64];
- {
- if(PlayerInfo[i][pAdmin] >= 7) { admtext = "{800000}Community Owner"; }
- else if(PlayerInfo[i][pAdmin] == 6) { admtext = "{FF0000}Community Co Owner"; }
- else if(PlayerInfo[i][pAdmin] == 5) { admtext = "{FF0000}Head Admin"; }
- else if(PlayerInfo[i][pAdmin] == 4) { admtext = "{009900}Senior Admin"; }
- else if(PlayerInfo[i][pAdmin] == 3) { admtext = "{00FF00}General Admin"; }
- else if(PlayerInfo[i][pAdmin] == 2) { admtext = "{00FF00}Junior Admin"; }
- }
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "%s: %s", admtext, giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/viplist", true) == 0)//Logan Stone - New Ranks and Grammar Fixes
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- SendClientMessage(playerid, COLOR_WHITE, "VIP's Online:");
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pDonateRank] > 0)
- {
- new viptext[64];
- {
- if(PlayerInfo[i][pDonateRank] == 1) { viptext = "Bronze VIP"; }
- else if(PlayerInfo[i][pDonateRank] == 2) { viptext = "Silver VIP"; }
- else if(PlayerInfo[i][pDonateRank] == 3) { viptext = "Gold VIP"; }
- }
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "%s: %s", viptext, giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/whoisadmin", true) == 0 || strcmp(cmd, "/wia", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 6 || PlayerInfo[playerid][pFakeIP] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Admins Online:");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pAdmin] > 0)
- {
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "%d Admin: %s",PlayerInfo[i][pAdmin],giveplayer);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/taxwithdraw", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLeader] != 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not the Governor.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1458.6104,-987.2628,1402.7000))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the bank.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /taxwithdraw [amount]{7DAEFF}");
- format(string, sizeof(string), "There is currently $%d in the Treasury.", TaxValue);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- new cashdeposit = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /taxwithdraw [amount]{7DAEFF}");
- format(string, sizeof(string), "There is currently $%d in the Treasury.", TaxValue);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if(cashdeposit > TaxValue || cashdeposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "There is not enough in the Treasury !");
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+cashdeposit;
- GivePlayerMoney(playerid, cashdeposit);
- TaxValue = TaxValue-cashdeposit;
- format(string, sizeof(string), " You have withdrawn $%d from the Treasury, Total: $%d ", cashdeposit, TaxValue);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SaveStuff();
- }
- return 1;
- }
- if(strcmp(cmd, "/withdraw", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1458.6104,-987.2628,1402.7000))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the bank .");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /withdraw [amount]{7DAEFF}");
- format(string, sizeof(string), "You have $%d in your bank account.", PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- new cashdeposit = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /withdraw [amount]{7DAEFF}");
- format(string, sizeof(string), "You have $%d in your bank account.", PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if(cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+cashdeposit;
- GivePlayerMoney(playerid,cashdeposit);
- PlayerInfo[playerid][pAccount] = PlayerInfo[playerid][pAccount]-cashdeposit;
- format(string, sizeof(string), "You have withdrawn $%d from your bank account, Total: $%d ", cashdeposit,PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/stealth", true)) // By Logan Stone
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Please login to continue.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] > 3)
- {
- if(PlayerInfo[playerid][pStealth] == 0)
- {
- PlayerInfo[playerid][pStealth] = 1;
- SendClientMessage(playerid, COLOR_GREY, "You are now hidden.");
- return 1;
- }
- else if(PlayerInfo[playerid][pStealth] == 1)
- {
- PlayerInfo[playerid][pStealth] = 0;
- SendClientMessage(playerid, COLOR_GREY, "You are not hidden anymore.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/fakeip", true)) // By Logan Stone
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Please login to proceed.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 99999 || PlayerInfo[playerid][pFakeIP] == 1)
- {
- if(PlayerInfo[playerid][pFakeIP] == 0)
- {
- PlayerInfo[playerid][pFakeIP] = 1;
- SendClientMessage(playerid, COLOR_GREY, "Fake IP ON !");
- return 1;
- }
- else if(PlayerInfo[playerid][pFakeIP] == 1)
- {
- PlayerInfo[playerid][pFakeIP] = 0;
- SendClientMessage(playerid, COLOR_GREY, "Fake IP OFF !");
- return 1;
- }
- }
- else
- {
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/checkhacks", true) == 0 || strcmp(cmd, "/ch", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 1)) return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /checkhacks [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), "* %s was checked for health hacks.", PlayerName(playa));
- ProxDetector(30.0, playa, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- CheckHacks2(playa);
- SetTimerEx("DoneCheckHacks2", 1000, 0, "ii", playerid, playa);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/bank", true) == 0 || strcmp(cmd, "/deposit", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1458.6104,-987.2628,1402.7000))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the bank !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /deposit [amount]{7DAEFF}");
- format(string, sizeof(string), " You have $%d in your bank account.", PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- new cashdeposit = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /deposit [amount]{7DAEFF}");
- format(string, sizeof(string), "You have $%d in your bank account.", PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if(cashdeposit > PlayerInfo[playerid][pCash] || cashdeposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much !");
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-cashdeposit;
- GivePlayerMoney(playerid,-cashdeposit);
- new curfunds = PlayerInfo[playerid][pAccount];
- PlayerInfo[playerid][pAccount] = cashdeposit+PlayerInfo[playerid][pAccount];
- SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATEMENT ___|");
- format(string, sizeof(string), " Old Balance: $%d", curfunds);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), " Deposit: $%d",cashdeposit);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD6, "|------------------------------------------|");
- format(string, sizeof(string), " New Balance: $%d", PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/createcar", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
- return 1;
- }
- new vehcount = 0;
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] != INVALID_VEHICLE_ID)
- {
- vehcount += 1;
- if(vehcount > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have to remove all spawned /veh vehicles first.");
- return 1;
- }
- }
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /createcar [vehicle name/ID]{7DAEFF}");
- return 1;
- }
- new model = ReturnVehicleModelID(tmp);
- if(!model)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle model name/ID.");
- return 1;
- }
- if(IsATrain(model))
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle model name/ID.");
- return 1;
- }
- new Float:coordX, Float:coordY, Float:coordZ, Float:coordA;
- GetPlayerPos(playerid, coordX,coordY,coordZ);
- GetPlayerFacingAngle(playerid,coordA);
- new foundcar = 0;
- for(new h = 1; h < 2000; h++)
- {
- if (CarInfo[h][tModel]==0)
- {
- if (foundcar==0)
- {
- CarSys[h] = CreateVehicle(model, coordX,coordY,coordZ,coordA, 0, 0, -1);
- ChangeVehiclePaintjob(h, 3);
- format(string, sizeof(string), "Vehicle ID %d created", h);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- CarInfo[h][tModel] = model;
- CarInfo[h][tLocationx] = coordX;
- CarInfo[h][tLocationy] = coordY;
- CarInfo[h][tLocationz] = coordZ;
- CarInfo[h][tAngle] = coordA;
- PutPlayerInVehicle(playerid, h, 0);
- new plate[10];
- strmid(plate, CarInfo[h][tLicensePlate], 0, strlen(CarInfo[h][tLicensePlate]), 255);
- SetVehicleNumberPlate(h, plate);
- foundcar = 1;
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/createhouse", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
- return 1;
- }
- new Float:coordX, Float:coordY, Float:coordZ, Float:coordA;
- GetPlayerPos(playerid, coordX,coordY,coordZ);
- GetPlayerFacingAngle(playerid,coordA);
- new foundhouse = 0;
- for(new h = 0; h < 600; h++)
- {
- if (HouseInfo[h][hLocation_x]==0.000000)
- {
- if (foundhouse==0)
- {
- new Float:angle = coordA + 180.0000;
- HouseInfo[h][hLocation_x] = coordX;
- HouseInfo[h][hLocation_y] = coordY;
- HouseInfo[h][hLocation_z] = coordZ;
- HouseInfo[h][hEnterAngle] = angle;
- DestroyDynamicPickup(HousePickup[h]);
- //DestroyDynamicMapIcon(HouseIcon[h]);
- DestroyDynamic3DTextLabel(HouseLabel[h]);
- HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]);
- //HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z], 31, 0);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You created a new house. You are now editing it ( /edithouse )");
- new VString[255];
- format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[h][hPrice],HouseInfo[h][hLevel]);
- HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- HouseEditID[playerid] = h;
- foundhouse = 1;
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/createbiz", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- new Float:coordX, Float:coordY, Float:coordZ, Float:coordA;
- GetPlayerPos(playerid, coordX,coordY,coordZ);
- GetPlayerFacingAngle(playerid,coordA);
- new interiorz = GetPlayerInterior(playerid);
- new pvw = GetPlayerVirtualWorld(playerid);
- new foundbiz = 0;
- for(new h = 0; h < 600; h++)
- {
- if (BizInfo[h][bLocation_x]==0.000000)
- {
- if (foundbiz==0)
- {
- new Float:angle = coordA + 180.0000;
- BizInfo[h][bLocation_x] = coordX;
- BizInfo[h][bLocation_y] = coordY;
- BizInfo[h][bLocation_z] = coordZ;
- BizInfo[h][bEnterAngle] = angle;
- BizInfo[h][bPInt] = interiorz;
- BizInfo[h][bPVW] = pvw;
- DestroyDynamicPickup(BizPickup[h]);
- DestroyDynamic3DTextLabel(BizLabel[h]);
- BizPickup[h] = CreateDynamicPickup(1318, 1, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You created a new business/building. You are now editing it ( /editbiz )");
- new VString[255];
- new name[25];
- strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
- format(VString,sizeof(VString),"%s", name);
- BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
- BizEditID[playerid] = h;
- foundbiz = 1;
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/lockpick", true) == 0)
- {
- new counter = 0;
- new result;
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(2, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars near you");
- return 1;
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't lockpick the vehicle if you're inside it");
- return 1;
- }
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are already lockpicking this vehicle");
- return 1;
- }
- if(PlayerInfo[playerid][pScrew] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your need a screwdriver do lockpick a vehicle!");
- return 1;
- }
- if(CarInfo[result][tLock] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "This vehicle is already unlocked");
- return 1;
- }
- if(screwdriver[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not holding a screwdriver (( /screwdriver ))!");
- return 1;
- }
- new owner[MAX_PLAYER_NAME];
- strmid(owner, CarInfo[result][tOwner], 0, strlen(CarInfo[result][tOwner]), 255);
- giveplayerid = ReturnUser(owner);
- if(IsPlayerConnected(giveplayerid))
- {
- PlayerInfo[playerid][Lockpicking] = 60;
- PlayerInfo[playerid][CLockpick] = result;
- PlayerInfo[playerid][pScrew]--;
- if(CarInfo[result][tAlarm] == 1)
- {
- new Float:cX, Float:cY, Float:cZ;
- new car = PlayerInfo[playerid][CLockpick];
- GetVehiclePos(car, cX, cY, cZ);
- GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(result,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
- CarInfo[result][tAlarmStarted] = 1;
- SetPlayerCheckpoint(giveplayerid, cX, cY, cZ, 3.0);
- SendClientMessage(giveplayerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
- SendClientMessage(giveplayerid, COLOR_WHITE, ""CB"Message:"CW" You received this message because one of your vehicle alarm has been activated");
- }
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "** %s pulls out a screwdriver and begins lockpicking the vehicle...", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "** It takes you 1 minute to lockpick the vehicle...");
- SetTimerEx("Lockpick", 1, false, "d", playerid);
- SetTimerEx("Lockpickmove", 1, false, "d", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The owner of this car is offline, you can't lockpick it ");
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- //Roadblock
- if(strcmp(cmd, "/crb", true) == 0)
- {
- if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /crb [Roadblock ID]{7DAEFF}");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Available Roadblocks:");
- SendClientMessage(playerid, COLOR_GRAD1, "| 1: Small Roadblock");
- SendClientMessage(playerid, COLOR_GRAD1, "| 2: Medium Roadblock");
- SendClientMessage(playerid, COLOR_GRAD1, "| 3: Big Roadblock");
- SendClientMessage(playerid, COLOR_GRAD1, "| 4: Cone");
- return 1;
- }
- new rb = strval(tmp);
- if (rb == 1)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
- GetPlayerPos(playerid, plocx, plocy, plocz);
- GetPlayerFacingAngle(playerid,ploca);
- CreateRoadblock(1459,plocx,plocy,plocz,ploca);
- format(string,sizeof(string),"[HQ]: Officer %s has placed a Roadblock(1) at his position, over.",PlayerName(playerid));
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
- return 1;
- }
- else if (rb == 2)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
- GetPlayerPos(playerid, plocx, plocy, plocz);
- GetPlayerFacingAngle(playerid,ploca);
- CreateRoadblock(978,plocx,plocy,plocz+0.6,ploca);
- format(string,sizeof(string),"[HQ]: Officer %s has placed a Roadblock(2) at his position, over.",PlayerName(playerid));
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
- return 1;
- }
- else if (rb == 3)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
- GetPlayerPos(playerid, plocx, plocy, plocz);
- GetPlayerFacingAngle(playerid,ploca);
- CreateRoadblock(981,plocx,plocy,plocz+0.9,ploca+180);
- format(string,sizeof(string),"[HQ]: Officer %s has placed a Roadblock(3) at his position, over.",PlayerName(playerid));
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- GameTextForPlayer(playerid,"~w~Roadblock ~g~Placed!",3000,1);
- SetPlayerPos(playerid, plocx, plocy+1.3, plocz);
- return 1;
- }
- else if (rb == 4)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
- GetPlayerPos(playerid, plocx, plocy, plocz);
- GetPlayerFacingAngle(playerid,ploca);
- CreateRoadblock(1238,plocx,plocy,plocz+0.2,ploca);
- format(string,sizeof(string),"[HQ]: Officer %s has placed a Traffic Cone(1) at his position, over.",PlayerName(playerid));
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- GameTextForPlayer(playerid,"~w~Cone ~g~Placed!",3000,1);
- return 1;
- }
- /*else if (rb == 4)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
- GetPlayerPos(playerid, plocx, plocy, plocz);
- GetPlayerFacingAngle(playerid,ploca);
- CreateRoadblock(1425,plocx,plocy,plocz+0.6,ploca);
- format(string,sizeof(string),"[HQ]: Officer %s has placed a Detour Sign(4) at his position, over.",PlayerName(playerid));
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
- return 1;
- }
- else if (rb == 5)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
- GetPlayerPos(playerid, plocx, plocy, plocz);
- GetPlayerFacingAngle(playerid,ploca);
- CreateRoadblock(3265,plocx,plocy,plocz-0.5,ploca);
- format(string,sizeof(string),"[HQ]: Officer %s has placed a Will Be Sign(5) at his position, over.",PlayerName(playerid));
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
- return 1;
- }
- else if (rb == 6)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
- GetPlayerPos(playerid, plocx, plocy, plocz);
- GetPlayerFacingAngle(playerid,ploca);
- CreateRoadblock(3091,plocx,plocy,plocz+0.5,ploca+180);
- format(string,sizeof(string),"[HQ]: Officer %s has placed a Line Closed Sign(6) at his position, over.",PlayerName(playerid));
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
- return 1;
- }*/
- }
- return 1;
- }
- else if (strcmp(cmd,"/rrb",true) == 0)
- {
- if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid))
- {
- DeleteClosestRoadblock(playerid);
- format(string,sizeof(string),"[HQ]: Officer %s has removed a Roadblock, over.",PlayerName(playerid));
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- GameTextForPlayer(playerid,"~w~Roadblock ~r~Removed!",3000,1);
- }
- return 1;
- }
- else if (strcmp(cmd,"/rrball",true) == 0)
- {
- if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid))
- {
- if(PlayerInfo[playerid][pRank] >= 6 || IsPlayerAdmin(playerid)) // This being the default Chief rank in LA-RP change if neccesary.
- {
- DeleteAllRoadblocks(playerid);
- format(string,sizeof(string),"[HQ]: Officer %s has removed all Roadblocks in the area, over.",PlayerName(playerid));
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- GameTextForPlayer(playerid,"~b~All ~w~Roadblocks ~r~Removed!",3000,1);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/suitcase", true) == 0)
- {
- if(PlayerInfo[playerid][pSuitcase] == 1)
- {
- ShowPlayerDialog(playerid,suitcasediag,DIALOG_STYLE_LIST,"Suitcase","Check\nTake\nPut\nChange password(Disabled)\nLock(Disabled)","Select","Cancel"); //Suitcase
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have a suitcase");
- }
- return 1;
- }
- if(strcmp(cmd, "/atm", true) == 0)
- {
- new atmstring[256];
- if(IsPlayerConnected(playerid))
- {
- if(!IsAtATM(playerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not at an ATM machine !");
- return 1;
- }
- format(atmstring,sizeof(atmstring),"Los Santos ATM\nYou have a total of $%d in your Bank account\nType below the amount of money you want to withdraw:", PlayerInfo[playerid][pAccount]);
- ShowPlayerDialog(playerid,59,DIALOG_STYLE_INPUT,"Los Santos ATM",atmstring,"Withdraw","Cancel");
- format(string, sizeof(string), "* %s presses a button and checks their balance.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- if(strcmp(cmd, "/loadcash", true) == 0)
- {
- if(BankRobberyTime >= 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "* Someone has robbed the bank recently.");
- return 1;
- }
- if(BankRobbery == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "* The vault is currently locked.");
- return 1;
- }
- if(LoadingCash == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "* Someone is already loading the cash.");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,2,1448.0712,-984.1879,1402.7000))
- {
- ShowPlayerDialog(playerid,LOADTHECASH,DIALOG_STYLE_LIST,"How much cash would you like to load ?","Up to $500,000 (6 minutes of waiting)\nUp to $1,000,000 (10 minutes of waiting)\nUp to $1,000,000 (15 minutes of waiting)","Load the cash","Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "* You are not inside the vault.");
- }
- }
- if(strcmp(cmd, "/robbank", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new points = PlayerInfo[playerid][pWantedLevel];
- if(points > 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "* Your wanted level is too high to rob the bank.");
- return 1;
- }
- if(BankRobberyTime >= 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "* Someone has robbed the bank recently, Please wait for the reload time.");
- return 1;
- }
- if(BankRobbery == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "* The vault is already unlocked.");
- return 1;
- }
- if(IsACop(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "* Cops cannot rob the bank.");
- return 1;
- }
- if(PlayerInfo[playerid][pLevel] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "* You must be at least a Level 4 to rob the bank.");
- return 1;
- }
- new Cops = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsACop(i))
- {
- Cops += 1;
- }
- }
- if(!(Cops >= 1))
- {
- SendClientMessage(playerid,COLOR_GREY,"There must be atleast 3 Law Enforcement Officers online.");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,1,1450.5269,-981.9805,1402.7000))
- {
- ShowPlayerDialog(playerid, CRACKTHEVAULT, DIALOG_STYLE_INPUT, "Crack the vault","Note: Entering the right code or not your wanted level will be increased\nPlease, enter the vault code if you want to crack it:", "Crack it", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "* You are not near the vault.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/showvaultpass", true) == 0 && PlayerInfo[playerid][pAdmin] >= 2)
- {
- new showpass = VPass;
- format(string, sizeof(string), "The Vault Door password is: %d.", showpass);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- if(strcmp(cmd, "/setvaultdoorpass", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /setvaultdoorpass [newpass]{7DAEFF}");
- return 1;
- }
- new para1;
- para1 = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- if (para1 > 99999 && para1 < 1000000)
- {
- format(string, sizeof(string), "You have set the new vault door password to: %d.", para1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- VPass = para1;
- SaveStuff();
- return 1;
- }
- else
- {
- return 1;
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/openvault", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (BankRobbery == 0) {
- SendClientMessage(playerid, COLOR_GREY, " The vault is currently locked");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,3,1450.5269,-981.9805,1402.7000))
- {
- MoveDynamicObject(bankvaultdoor, 1450.90002441,-981.70001221,1403.00000000, 0.20, 0.00000000,0.00000000,330.00000000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not near/at the vault.");
- }
- return 1;
- }
- }
- if(strcmp(cmd, "/setdoorpass", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLeader] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /setdoorpass [newpass]{7DAEFF}");
- return 1;
- }
- new para1;
- para1 = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- if (para1 > 1 && para1 < 9999)
- {
- format(string, sizeof(string), "You have set the new door password to: %d.", para1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- new coordsstring[256];
- format(coordsstring, sizeof(coordsstring), "%d", para1);
- new File: file2 = fopen("Other/passwords.ini", io_write);
- fwrite(file2, coordsstring);
- fclose(file2);
- Pass[LSPD] = para1;
- return 1;
- }
- else
- {
- return 1;
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/dice", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new dice = random(6)+1;
- if(PlayerInfo[playerid][pDice] == 1)
- {
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s throws a dice that lands on %d.", sendername,dice);
- ProxDetector(5.0, playerid, string, COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a dice !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/flipcoin", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pCash] > 0)
- {
- new coin = random(2);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(coin == 1)
- {
- if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger flips a coin that lands on Tails.");
- else format(string, sizeof(string), "* %s flips a coin that lands on Tails.", sendername);
- ProxDetector(5.0, playerid, string, COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN);
- }
- else
- {
- if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger flips a coin that lands on Heads.");
- else format(string, sizeof(string), "* %s flips a coin that lands on Heads.", sendername);
- ProxDetector(5.0, playerid, string, COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have any money !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/transfer", true) == 0 || strcmp(cmd, "/wiretransfer", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLevel] < 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You must be atleast level 3.");
- return 1;
- }
- if(PlayerInfo[playerid][pConnectTime] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You must be ingame longer before using this feature.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1458.6104,-987.2628,1402.7000))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the bank.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /transfer [playerid/PartOfName] [amount]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /transfer [playerid/PartOfName] [amount]{7DAEFF}");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(gPlayerLogged[giveplayerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has not logged in.");
- return 1;
- }
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't transfer money to yourself !");
- return 1;
- }
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerNameEx(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new playermoney = PlayerInfo[playerid][pAccount] ;
- if(moneys > 0 && playermoney >= moneys)
- {
- PlayerInfo[playerid][pAccount] -= moneys;
- PlayerInfo[giveplayerid][pAccount] += moneys;
- format(string, sizeof(string), " You have transferred $%d to %s's account.", moneys, giveplayer,giveplayerid);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved $%d to into your account from %s", moneys, sendername, playerid);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "%s transferred $%d to %s", sendername, moneys, giveplayer);
- if(moneys >= 500000)
- {
- ABroadCast(COLOR_YELLOW,string,1);
- }
- PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount !");
- }
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- return 1;
- }
- /* if(strcmp(cmd, "/takestretcher", true) == 0) //HOSPITAL (NEW)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid ,3.0, 1216.8700, -1370.1622, 1017.8790))
- {
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- AttachObjectToPlayer( hospybed, playerid, 0, 1.5, -0.5, 0, 0, 0 );
- return 1;
- }
- }
- }
- }
- if(strcmp(cmd, "/dropstretcher", true) == 0) //HOSPITAL (NEW)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid ,25.0, 1216.8700, -1370.1622, 1017.8790))
- {
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- DestroyObject(hospybed);
- hospybed = CreateDynamicObject(2146, 1217.627441, -1370.959229, 1017.364563, 0.0000, 0.0000, 90.0000);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are inside the hospital!");
- return 1;
- }
- }
- }*/
- if(strcmp(cmd, "/safedeposit", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pFMember] == 255)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a member of a Family.");
- return 1;
- }
- if(FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafe] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your family does not own a safe.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 2, FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][0], FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][1], FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][2]))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not at your Family Safe.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
- return 1;
- }
- if(strcmp(tmp,"cash",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
- return 1;
- }
- new deposit = strvalEx(tmp);
- if(deposit > 1000000 || FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCash] > 1000000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't have more than $1,000,000 in your safe.");
- return 1;
- }
- if(deposit > PlayerInfo[playerid][pCash] || deposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-deposit;
- GivePlayerMoney(playerid,-deposit);
- FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCash] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCash]+deposit;
- format(string, sizeof(string), "* %s takes out some cash, and puts it in their safe.",sendername);
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "You have sucessfully deposited $%d into your family safe.", deposit);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"pot",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
- return 1;
- }
- new deposit = strvalEx(tmp);
- if(deposit > 500 || FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyPot] > 500)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't have more than 500 grams of Pot in your safe.");
- return 1;
- }
- if(deposit > PlayerInfo[playerid][pPot] || deposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot]-deposit;
- FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyPot] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyPot]+deposit;
- format(string, sizeof(string), "* %s takes out some pot, and puts it in their safe.",sendername);
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "You have sucessfully deposited %d grams into your family safe.", deposit);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"crack",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
- return 1;
- }
- new deposit = strvalEx(tmp);
- if(deposit > 250 || FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCrack] > 250)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't have more than 250 grams of Crack in your safe.");
- return 1;
- }
- if(deposit > PlayerInfo[playerid][pCrack] || deposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack]-deposit;
- FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCrack] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCrack]+deposit;
- format(string, sizeof(string), "* %s takes out some crack, and puts it in their safe.",sendername);
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "You have sucessfully deposited %d grams into your family safe.", deposit);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"materials",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
- return 1;
- }
- new deposit = strvalEx(tmp);
- if(deposit > 100000 || FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMats] > 100000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't have more than 100000 Materials in your safe !");
- return 1;
- }
- if(deposit > PlayerInfo[playerid][pMats] || deposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats]-deposit;
- FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMats] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMats]+deposit;
- format(string, sizeof(string), "* %s takes out some materials, and puts them in their safe.",sendername);
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "You have sucessfully deposited %d materials into your family safe.", deposit);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SaveFamilies();
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fsafe", true) == 0)
- {
- new fam = PlayerInfo[playerid][pFMember];
- if (fam == 255) { SendClientMessage(playerid, COLOR_GREY, " You aren't in a family."); return 1; }
- if(FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafe] == 0) { SendClientMessage(playerid, COLOR_GRAD2, " Your family does not own a safe !"); return 1; }
- if(!IsPlayerInRangeOfPoint(playerid, 2, FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][0], FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][1], FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][2])) { SendClientMessage(playerid, COLOR_GRAD2, " You are not at your Family Safe !"); return 1; }
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe [put|get]{7DAEFF}"); return 1; }
- if(strcmp(x_nr,"put",true) == 0)
- {
- new subcmd[24];
- subcmd = strtok(cmdtext,idx);
- if (!strlen(subcmd)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe put [mats|pot|crack|gun] [amount|name]{7DAEFF}"); return 1; }
- tmp = strtok(cmdtext,idx);
- if (!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe get [mats|pot|crack|gun] [amount|name]{7DAEFF}"); return 1; }
- new amount;
- amount = strval(tmp);
- // fput mats
- if(strcmp(subcmd, "mats", true) == 0)
- {
- if(PlayerInfo[playerid][pMats] < amount) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much materials."); return 1; }
- if(amount < 1 || amount > 50000) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 50000."); return 1; }
- if(FamilyInfo[fam][FamilyMats] + amount > 200000) { SendClientMessage(playerid,COLOR_GREY," Family safe can't hold more than 200,000 materials."); return 1; }
- PlayerInfo[playerid][pMats] -= amount;
- FamilyInfo[fam][FamilyMats] += amount;
- SaveFamilies();
- format(string, sizeof(string), "* %s deposits materials into a safe.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- // fput pot
- if(strcmp(subcmd, "pot", true) == 0)
- {
- if(PlayerInfo[playerid][pPot] < amount) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much pot."); return 1; }
- if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 50."); return 1; }
- if(FamilyInfo[fam][FamilyPot] + amount > 50) { SendClientMessage(playerid,COLOR_GREY," Family safe can't hold more than 50 pot."); return 1; }
- PlayerInfo[playerid][pPot] -= amount;
- FamilyInfo[fam][FamilyPot] += amount;
- SaveFamilies();
- format(string, sizeof(string), "* %s deposits some pot into a safe.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- // fput crack
- if(strcmp(subcmd, "crack", true)==0)
- {
- if(PlayerInfo[playerid][pCrack] < amount) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much crack."); return 1; }
- if(amount < 1 || amount > 25) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 25."); return 1; }
- if(FamilyInfo[fam][FamilyCrack] + amount > 25) { SendClientMessage(playerid,COLOR_GREY," Family safe can't hold more than 50 crack."); return 1; }
- PlayerInfo[playerid][pCrack] -= amount;
- FamilyInfo[fam][FamilyCrack] += amount;
- SaveFamilies();
- format(string, sizeof(string), "* %s deposits some crack into a safe.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- // fput gun
- if(strcmp(subcmd, "gun", true)==0)
- {
- new stored = 0;
- new weapon = GetPlayerWeapon(playerid);
- if(strcmp(tmp, "colt45", true) == 0)
- {
- if(FamilyInfo[fam][Colt45] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family Colt45 locker is full."); return 1; }
- if(weapon != 22 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a Colt45."); return 1; }
- FamilyInfo[fam][Colt45]++;
- TakeWeapon(playerid,22);
- stored = 1;
- }
- if(strcmp(tmp, "shotgun", true) == 0)
- {
- if(FamilyInfo[fam][Shotgun] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family Shotgun locker is full."); return 1; }
- if(weapon != 25 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a Shotgun."); return 1; }
- FamilyInfo[fam][Shotgun]++;
- TakeWeapon(playerid,25);
- stored = 1;
- }
- if(strcmp(tmp, "mp5", true) == 0)
- {
- if(FamilyInfo[fam][MP5] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family MP5 locker is full."); return 1; }
- if(weapon != 29 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a MP5."); return 1; }
- FamilyInfo[fam][MP5]++;
- TakeWeapon(playerid,29);
- stored = 1;
- }
- if(strcmp(tmp, "ak47", true) == 0)
- {
- if(FamilyInfo[fam][AK47] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family AK47 locker is full."); return 1; }
- if(weapon != 30 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding an AK47."); return 1; }
- FamilyInfo[fam][AK47]++;
- TakeWeapon(playerid,30);
- stored = 1;
- }
- if(strcmp(tmp, "m4", true) == 0)
- {
- if(FamilyInfo[fam][M4] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family M4 locker is full."); return 1; }
- if(weapon != 31 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding an M4."); return 1; }
- FamilyInfo[fam][M4]++;
- TakeWeapon(playerid,31);
- stored = 1;
- }
- if(strcmp(tmp, "spas12", true) == 0)
- {
- if(FamilyInfo[fam][SPAS12] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family SPAS12 locker is full."); return 1; }
- if(weapon != 27 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a SPAS12."); return 1; }
- FamilyInfo[fam][SPAS12]++;
- TakeWeapon(playerid,27);
- stored = 1;
- }
- if(strcmp(tmp, "rifle", true) == 0)
- {
- if(FamilyInfo[fam][Rifle] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family Rifle locker is full."); return 1; }
- if(weapon != 33 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a Rifle."); return 1; }
- FamilyInfo[fam][Rifle]++;
- TakeWeapon(playerid,33);
- stored = 1;
- }
- if(strcmp(tmp, "sniper", true) == 0)
- {
- if(FamilyInfo[fam][Sniper] >= 10) { SendClientMessage(playerid, COLOR_GREY, "Your family Sniper locker is full."); return 1; }
- if(weapon != 34 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a Sniper."); return 1; }
- FamilyInfo[fam][Sniper]++;
- TakeWeapon(playerid,34);
- stored = 1;
- }
- if(stored == 1)
- {
- format(string, sizeof(string), "* %s places a %s into a safe.", PlayerName(playerid), tmp);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- SaveFamilies();
- }
- return 1;
- }
- else SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe put [money|mats|pot|crack|gun] [amount|name]{7DAEFF}");
- }
- if(strcmp(x_nr,"get",true) == 0)
- {
- new subcmd[24];
- subcmd = strtok(cmdtext,idx);
- if (!strlen(subcmd)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe get [mats|pot|crack|gun] [amount|name]{7DAEFF}"); return 1; }
- tmp = strtok(cmdtext,idx);
- if (!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe get [mats|pot|crack|gun] [amount|name]{7DAEFF}"); return 1; }
- new amount;
- amount = strval(tmp);
- // fget mats
- if(strcmp(subcmd, "mats", true) == 0)
- {
- if(PlayerInfo[playerid][pFRank] < 5) return SendClientMessage(playerid,COLOR_GREY,"Only rank 5+ is allowed to take family materials.");
- if(amount > FamilyInfo[fam][FamilyMats]) { SendClientMessage(playerid, COLOR_GREY, "Family safe doesn't have that much materials."); return 1; }
- if(amount < 1 || amount > 50000) { SendClientMessage(playerid, COLOR_GREY, "Amount must be between 1 and 50000."); return 1; }
- PlayerInfo[playerid][pMats] += amount;
- FamilyInfo[fam][FamilyMats] -= amount;
- SaveFamilies();
- format(string, sizeof(string), "* %s takes some materials from a safe.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- // fget pot
- if(strcmp(subcmd, "pot", true) == 0)
- {
- if(PlayerInfo[playerid][pFRank] < 5) return SendClientMessage(playerid,COLOR_GREY," Only rank 5+ is allowed to take family pot.");
- if(amount > FamilyInfo[fam][FamilyPot]) { SendClientMessage(playerid, COLOR_GREY, " Family safe doesn't have that much pot."); return 1; }
- if(amount < 1 || amount > 50) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 50."); return 1; }
- if(amount + PlayerInfo[playerid][pPot] > 50) { SendClientMessage(playerid, COLOR_GREY, " You can only hold a max of 50 pot."); return 1; }
- PlayerInfo[playerid][pPot] += amount;
- FamilyInfo[fam][FamilyPot] -= amount;
- SaveFamilies();
- format(string, sizeof(string), "* %s takes some pot from a safe.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- // fget crack
- if(strcmp(subcmd, "crack", true)==0)
- {
- if(PlayerInfo[playerid][pFRank] < 5) return SendClientMessage(playerid,COLOR_GREY," Only rank 5+ is allowed to take family crack.");
- if(amount > FamilyInfo[fam][FamilyCrack]) { SendClientMessage(playerid, COLOR_GREY, " Family safe doesn't have that much crack."); return 1; }
- if(amount < 1 || amount > 25) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 25."); return 1; }
- if(amount + PlayerInfo[playerid][pCrack] > 25) { SendClientMessage(playerid, COLOR_GREY, " You can only hold a max of 25 crack."); return 1; }
- PlayerInfo[playerid][pCrack] += amount;
- FamilyInfo[fam][FamilyCrack] -= amount;
- SaveFamilies();
- format(string, sizeof(string), "* %s takes some crack from a safe.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- // fget gun
- if(strcmp(subcmd, "gun", true)==0)
- {
- if(PlayerInfo[playerid][pFRank] < 2) return SendClientMessage(playerid,COLOR_GREY," Only rank 2+ is allowed to take family guns.");
- new got = 0;
- if(strcmp(tmp, "colt45", true) == 0)
- {
- if(FamilyInfo[fam][Colt45] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family Colt45 locker is empty."); return 1; }
- if(HaveWeapon(playerid,22) == 22) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a Colt45."); return 1; }
- FamilyInfo[fam][Colt45]--;
- GivePlayerGun(playerid,22);
- got = 1;
- }
- if(strcmp(tmp, "shotgun", true) == 0)
- {
- if(FamilyInfo[fam][Shotgun] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family Shotgun locker is empty."); return 1; }
- if(HaveWeapon(playerid,25) == 25) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a Shotgun."); return 1; }
- FamilyInfo[fam][Shotgun]--;
- GivePlayerGun(playerid,25);
- got = 1;
- }
- if(strcmp(tmp, "mp5", true) == 0)
- {
- if(FamilyInfo[fam][MP5] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family MP5 locker is empty."); return 1; }
- if(HaveWeapon(playerid,29) == 29) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a MP5."); return 1; }
- FamilyInfo[fam][MP5]--;
- GivePlayerGun(playerid,29);
- got = 1;
- }
- if(strcmp(tmp, "ak47", true) == 0)
- {
- if(FamilyInfo[fam][AK47] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family AK47 locker is empty."); return 1; }
- if(HaveWeapon(playerid,30) == 30) { SendClientMessage(playerid,COLOR_GREY, " You are already holding an AK47."); return 1; }
- FamilyInfo[fam][AK47]--;
- GivePlayerGun(playerid,30);
- got = 1;
- }
- if(strcmp(tmp, "m4", true) == 0)
- {
- if(FamilyInfo[fam][M4] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family M4 locker is empty."); return 1; }
- if(HaveWeapon(playerid,31) == 31) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a M4."); return 1; }
- FamilyInfo[fam][M4]--;
- GivePlayerGun(playerid,31);
- got = 1;
- }
- if(strcmp(tmp, "spas12", true) == 0)
- {
- if(FamilyInfo[fam][SPAS12] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family SPAS12 locker is empty."); return 1; }
- if(HaveWeapon(playerid,27) == 27) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a SPAS12."); return 1; }
- FamilyInfo[fam][SPAS12]--;
- GivePlayerGun(playerid,27);
- got = 1;
- }
- if(strcmp(tmp, "rifle", true) == 0)
- {
- if(FamilyInfo[fam][Rifle] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family Rifle locker is empty."); return 1; }
- if(HaveWeapon(playerid,33) == 33) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a Rifle."); return 1; }
- FamilyInfo[fam][Rifle]--;
- GivePlayerGun(playerid,33);
- got = 1;
- }
- if(strcmp(tmp, "sniper", true) == 0)
- {
- if(FamilyInfo[fam][Sniper] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family Sniper locker is empty."); return 1; }
- if(HaveWeapon(playerid,34) == 34) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a Sniper."); return 1; }
- FamilyInfo[fam][Sniper]--;
- GivePlayerGun(playerid,34);
- got = 1;
- }
- if(got == 1)
- {
- format(string, sizeof(string), "* %s takes a %s from a safe.", PlayerName(playerid), tmp);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- SaveFamilies();
- }
- return 1;
- }
- else SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe get [money|mats|pot|crack|gun] [amount|name]{7DAEFF}");
- }
- else SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe [put|get]{7DAEFF}");
- return 1;
- }
- if(strcmp(cmd, "/fstats", true) == 0)
- {
- if(PlayerInfo[playerid][pFMember] == 255) { SendClientMessage(playerid, COLOR_GREY, "You are not in a family."); return 1; }
- new fam = PlayerInfo[playerid][pFMember];
- format(string, 256, "Family: %s, Money: $%d, Mats: %d, Pot: %d, Crack: %d",
- FamilyInfo[fam][FamilyName], FamilyInfo[fam][FamilyBank], FamilyInfo[fam][FamilyMats], FamilyInfo[fam][FamilyPot], FamilyInfo[fam][FamilyCrack]);
- SendClientMessage(playerid, COLOR_YELLOW2, string);
- format(string, sizeof(string), "Colt45: %d, Shotgun: %d, MP5: %d, AK47: %d, M4: %d, Rifle: %d, Sniper: %d, SPAS12: %d",
- FamilyInfo[fam][Colt45], FamilyInfo[fam][Shotgun], FamilyInfo[fam][MP5],
- FamilyInfo[fam][AK47], FamilyInfo[fam][M4], FamilyInfo[fam][Rifle], FamilyInfo[fam][Sniper], FamilyInfo[fam][SPAS12]);
- SendClientMessage(playerid, COLOR_YELLOW2, string);
- return 1;
- }
- if(strcmp(cmd, "/afstats", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pGangMod])) { SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command."); return 1; }
- new fam;
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /afstats [family]{7DAEFF}"); return 1; }
- fam = strval(tmp);
- if (fam < 1 || fam > 14) { SendClientMessage(playerid, COLOR_GREY, "Family number must be between 1 and 14."); return 1; }
- fam--;
- format(string, 256, "Family: %s, Money: $%d, Mats: %d, Pot: %d, Crack: %d",
- FamilyInfo[fam][FamilyName], FamilyInfo[fam][FamilyBank], FamilyInfo[fam][FamilyMats], FamilyInfo[fam][FamilyPot], FamilyInfo[fam][FamilyCrack]);
- SendClientMessage(playerid, COLOR_YELLOW2, string);
- format(string, sizeof(string), "Colt45: %d, Shotgun: %d, MP5: %d, AK47: %d, M4: %d, Rifle: %d, Sniper: %d, SPAS12: %d",
- FamilyInfo[fam][Colt45], FamilyInfo[fam][Shotgun], FamilyInfo[fam][MP5],
- FamilyInfo[fam][AK47], FamilyInfo[fam][M4], FamilyInfo[fam][Rifle], FamilyInfo[fam][Sniper], FamilyInfo[fam][SPAS12]);
- SendClientMessage(playerid, COLOR_YELLOW2, string);
- return 1;
- }
- if(strcmp(cmd, "/lotto", true) == 0)
- {
- if(PlayerInfo[playerid][pInBiz] == 999)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in a lotto agency !");
- return 1;
- }
- new biz = PlayerInfo[playerid][pInBiz];
- if(BizInfo[biz][bType] != 8) // None
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in a lotto agency !");
- return 1;
- }
- if(PlayerInfo[playerid][pPlayLotto] != 999) // None
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You already bought a ticket !");
- return 1;
- }
- if(BizInfo[biz][bProducts] <= 0) // None
- {
- SendClientMessage(playerid, COLOR_GRAD2, " This business doesn't have any products left !");
- return 1;
- }
- ShowPlayerDialog(playerid,LOTTODIALOG,DIALOG_STYLE_LIST,"Lotto agengy","1 chance ($5,000)\n2 chances ($15,000)","Buy","Cancel"); //Clothing shop
- return 1;
- }
- if(strcmp(cmd, "/cancellotto", true) == 0)
- {
- if(PlayerInfo[playerid][pPlayLotto] == 999) // None
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a ticket.");
- return 1;
- }
- PlayerInfo[playerid][pLottoNr] = 0;
- PlayerInfo[playerid][pLottoNr2] = 0;
- PlayerInfo[playerid][pLottoNr3] = 0;
- PlayerInfo[playerid][pLottoNr4] = 0;
- PlayerInfo[playerid][pLottoNr5] = 0;
- PlayerInfo[playerid][pLottoNr6] = 0;
- PlayerInfo[playerid][pPlayLotto] = 999;
- SendClientMessage(playerid, COLOR_GRAD2, "You have canceled your lotto ticket(s).");
- return 1;
- }
- if(strcmp(cmd, "/train", true) == 0)
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3, 1230.1084,-772.6608,1084.0127))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not at a trainer.");
- return 1;
- }
- DisplayDialogForPlayer(playerid, 5); //Training
- return 1;
- }
- if(strcmp(cmd, "/adivorce", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adivorce [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "You have reset %s's marriage status.", giveplayer);
- SendClientMessage(playerid, COLOR_GREY, string);
- SendClientMessage(giveplayerid, COLOR_YELLOW, "Your marriage status has been reset by an Administrator.");
- ClearMarriage(giveplayerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/call", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJailed] == 2) // COMMENTED
- {
- if(!IsPlayerInRangeOfPoint(playerid,2.0,185.3808,1923.9442,17.7778))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not at the prison payphone.");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pPnumber] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a cell phone.");
- SendClientMessage(playerid, COLOR_WHITE,"HINT: You can /buy a cell phone from a Phone Shop.");
- return 1;
- }
- if(PlayerInfo[playerid][pHospital] != 0 || PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are unable to use your cell phone at this time.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /call [phonenumber]{7DAEFF}");
- return 1;
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes out a cellphone.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
- SetPlayerAttachedObject(playerid, 5, 330, 6);
- new phonenumb = strvalEx(tmp);
- if(phonenumb == 911)
- {
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
- SendClientMessage(playerid, COLOR_DOC, "EMERGENCY: Which Service Do You Require, Police or Paramedic?");
- Mobile[playerid] = 911;
- return 1;
- }
- else if(PlayerInfo[playerid][pCredits] < 25)
- return SendClientMessage(playerid, COLOR_GREY, "You dont have any money on your phone, Reload at the nearest Phone Company.");
- if(phonenumb == PlayerInfo[playerid][pPnumber])
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You just get a busy tone...");
- return 1;
- }
- if(Mobile[playerid] != 255)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are already on a call...");
- return 1;
- }
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
- {
- giveplayerid = i;
- Mobile[playerid] = giveplayerid; //caller connecting
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PhoneOnline[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That players Phone is Offline !");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pHospital] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " That player is unable to speak at this time !");
- return 1;
- }
- if(Mobile[giveplayerid] == 255)
- {
- new callnumber = PlayerInfo[playerid][pPnumber];
- format(string, sizeof(string), "Your Mobile is Ringing Type (/Pickup) Caller number: %d", callnumber);
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- GetPlayerNameEx(giveplayerid, sendername, sizeof(sendername));
- if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger's phone begins to ring.");
- }
- else
- {
- format(string, sizeof(string), "* %s's phone begins to ring.", sendername);
- }
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
- ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CellTime[playerid] = 1;
- PlayerInfo[playerid][pCredits] -= callcost;
- if(PlayerInfo[playerid][pJailed] == 2)
- {
- TogglePlayerControllable(playerid, 0);
- }
- return 1;
- }
- }
- }
- }
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, "You just get a Busy tone...");
- }
- return 1;
- }
- if(strcmp(cmd, "/txt", true) == 0 || strcmp(cmd, "/t", true) == 0 || strcmp(cmd, "/sms", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/t)ext [phonenumber] [text chat]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[playerid][pPnumber] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You dont't have a cell phone.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You can purchase one from any 24/7.");
- return 1;
- }
- if(PlayerInfo[playerid][pHospital] != 0 || PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerInfo[playerid][pJailed] == 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are unable to use your cell phone at this time.");
- return 1;
- }
- if(PlayerInfo[playerid][pCredits] < 5)
- return SendClientMessage(playerid, COLOR_GREY, "You dont have any money on your phone, Reload at the nearest Phone Company.");
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger takes out a cellphone and starts texting.");
- }
- else
- {
- format(string, sizeof(string), "* %s takes out a cellphone and starts texting.", sendername);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new phonenumb = strvalEx(tmp);
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/t)ext [phonenumber] [text chat]{7DAEFF}");
- return 1;
- }
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
- {
- giveplayerid = i;
- Mobile[playerid] = giveplayerid;
- new smsstring[128];
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PhoneOnline[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That players Phone is Offline.");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] > 0)
- {
- format(smsstring, sizeof(smsstring), "["CB"SMS Inbox"CW"]"CB" Sender:"CW" UNKNOWN",result);
- }
- else
- {
- format(smsstring, sizeof(smsstring), "["CB"SMS Inbox"CW"] "CB" Sender:"CW" %d",PlayerInfo[playerid][pPnumber]);
- }
- format(string, sizeof(string), "SMS: %s, Sender: %s (%d)", result,sendername,PlayerInfo[playerid][pPnumber]);
- GetPlayerName(giveplayerid, sendername, sizeof(sendername));
- SendClientMessage(playerid, COLOR_WHITE, "Text Message Delivered");
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "~r~$-%d", 25);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-25;
- GivePlayerMoney(playerid,-25);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- Mobile[playerid] = 255;
- PlayerInfo[playerid][pCredits] -= 5;
- return 1;
- }
- }
- }
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, "Message Delivery Failed...");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/pbalance", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pPnumber] == 0)
- return SendClientMessage(playerid, COLOR_GRAD2, " You dont't have a cell phone...");
- format(string, sizeof(string), "Credits left on the phone: %d", PlayerInfo[playerid][pCredits]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- return 1;
- }
- if(strcmp(cmdtext, "/speakon", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pPnumber] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You do not own a phone !");
- return 1;
- }
- if(Mobile[playerid] == 255)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not on a phone call !");
- return 1;
- }
- if(PlayerInfo[playerid][pSpeakPhone] == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW2, "Speaker phone on.");
- PlayerInfo[playerid][pSpeakPhone] = 1;
- return 1;
- }
- if(PlayerInfo[playerid][pSpeakPhone] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW2, "Speaker phone off.");
- PlayerInfo[playerid][pSpeakPhone] = 0;
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/pickup", true) == 0 || strcmp(cmd, "/p", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(Mobile[playerid] != 255)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are already on a call...");
- return 1;
- }
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(Mobile[i] == playerid)
- {
- Mobile[playerid] = i; //caller connecting
- SendClientMessage(i, COLOR_GRAD2, " They Picked up the call.");
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger answers their cellphone.");
- }
- else
- {
- format(string, sizeof(string), "* %s answers their cellphone.", sendername);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
- SetPlayerAttachedObject(playerid, 5, 330, 6);
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/hangup", true) == 0 || strcmp(cmd, "/h", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new caller = Mobile[playerid];
- if(IsPlayerConnected(caller))
- {
- if(caller != INVALID_PLAYER_ID)
- {
- if(caller != 255)
- {
- if(caller < 255)
- {
- SendClientMessage(caller, COLOR_GRAD2, " They hung up.");
- CellTime[caller] = 0;
- CellTime[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, " You hung up.");
- Mobile[caller] = 255;
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- SetPlayerSpecialAction(caller,SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 5);
- RemovePlayerAttachedObject(caller, 5);
- }
- Mobile[playerid] = 255;
- CellTime[playerid] = 0;
- if(PlayerInfo[playerid][pJailed] == 2)
- {
- TogglePlayerControllable(playerid, 1);
- }
- return 1;
- }
- }
- }
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] > 0) { sendername = "Stranger"; }
- format(string, sizeof(string), "* %s puts away their cellphone.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 5);
- }
- return 1;
- }
- if(strcmp(cmd, "/fixr", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- PlayerFixRadio(playerid);
- }
- return 1;
- }
- if(strcmp(cmd, "/time", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pWatch] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a watch, buy one from any 24/7 store.");
- return 1;
- }
- new mtext[20];
- new year, month, day;
- getdate(year, month, day);
- if(month == 1) { mtext = "January"; }
- else if(month == 2) { mtext = "February"; }
- else if(month == 3) { mtext = "March"; }
- else if(month == 4) { mtext = "April"; }
- else if(month == 5) { mtext = "May"; }
- else if(month == 6) { mtext = "June"; }
- else if(month == 7) { mtext = "July"; }
- else if(month == 8) { mtext = "August"; }
- else if(month == 9) { mtext = "September"; }
- else if(month == 10) { mtext = "October"; }
- else if(month == 11) { mtext = "November"; }
- else if(month == 12) { mtext = "December"; }
- new hour,minuite,second;
- gettime(hour,minuite,second);
- FixHour(hour);
- hour = shifthour;
- if(minuite < 10)
- {
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:0%d~g~|~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
- }
- else
- {
- format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:0%d~g~|", day, mtext, hour, minuite);
- }
- }
- else
- {
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d~g~|~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
- }
- else
- {
- format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d~g~|", day, mtext, hour, minuite);
- }
- }
- GameTextForPlayer(playerid, string, 5000, 1);
- if(!IsPlayerInAnyVehicle(playerid)) { ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_watch",4.0,0,0,0,0,0); }
- }
- return 1;
- }
- if(strcmp(cmd, "/gotocar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /gotocar [vehicleid]{7DAEFF}");
- return 1;
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) { SendClientMessage(playerid, COLOR_GREY, " You can not do that while spectating !"); return 1; }
- new vehid = strvalEx(tmp);
- new Float:vX, Float:vY, Float:vZ;
- GetVehiclePos(vehid, vX, vY, vZ);
- SetPlayerPos(playerid, vX, vY, vZ+3);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pLocal] = 999;
- PlayerInfo[playerid][pVirtualWorld] = 0;
- GameTextForPlayer(playerid, "~w~Teleporting", 5000, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/dedit", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /dedit [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack");
- return 1;
- }
- if(strcmp(tmp,"pot",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /dedit [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > dhlimit) { format(string, sizeof(string), "Amount can not be greater than %d !", dhlimit); SendClientMessage(playerid, COLOR_GREY, string); return 1; }
- dhstock = amount;
- format(string, sizeof(string), "You have adjusted the amount of Pot in the Drug House: %d/%d.", dhstock, dhlimit);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(strcmp(tmp,"crack",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /dedit [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > chlimit) { format(string, sizeof(string), "Amount can not be greater than %d !", chstock); SendClientMessage(playerid, COLOR_GREY, string); return 1; }
- chstock = amount;
- format(string, sizeof(string), "You have adjusted the amount of Crack in the Crack Lab: %d/%d.", chstock, chlimit);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/fedit", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!(PlayerInfo[playerid][pGangMod]) && PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use this command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new family = strvalEx(tmp);
- if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "Family can't be below 1 or above 14 !"); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- if(strcmp(tmp,"maxskins",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > 8) { SendClientMessage(playerid, COLOR_GREY, "MaxSkins can't be below 0 or above 8 !"); return 1; }
- FamilyInfo[family-1][FamilySkins] = amount;
- format(string, sizeof(string), "You have adjusted the MaxSkins of Family %d to %d", family, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"skin1",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299."); return 1; }
- if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin."); return 1; }
- FamilyInfo[family-1][FamilySkin1] = amount;
- format(string, sizeof(string), "You have adjusted Family %d's Skin1 to Skin ID %d", family, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"skin2",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
- if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
- FamilyInfo[family-1][FamilySkin2] = amount;
- format(string, sizeof(string), "You have adjusted Family %d's Skin2 to Skin ID %d", family, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"skin3",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
- if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
- FamilyInfo[family-1][FamilySkin3] = amount;
- format(string, sizeof(string), "You have adjusted Family %d's Skin3 to Skin ID %d", family, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"skin4",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, " Skin can't be below 0 or above 299 !"); return 1; }
- if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, " Invalid Skin !"); return 1; }
- FamilyInfo[family-1][FamilySkin4] = amount;
- format(string, sizeof(string), "You have adjusted Family %d's Skin4 to Skin ID %d", family, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"skin5",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
- if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
- FamilyInfo[family-1][FamilySkin5] = amount;
- format(string, sizeof(string), "You have adjusted Family %d's Skin5 to Skin ID %d", family, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"skin6",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
- if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
- FamilyInfo[family-1][FamilySkin6] = amount;
- format(string, sizeof(string), "You have adjusted Family %d's Skin6 to Skin ID %d", family, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"skin7",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
- if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
- FamilyInfo[family-1][FamilySkin7] = amount;
- format(string, sizeof(string), "You have adjusted Family %d's Skin7 to Skin ID %d", family, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- if(strcmp(tmp,"skin8",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
- if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin."); return 1; }
- FamilyInfo[family-1][FamilySkin8] = amount;
- format(string, sizeof(string), "You have adjusted Family %d's Skin8 to Skin ID %d", family, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Unknown name.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/disarm", true) == 0) // By Logan Stone
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /disarm [Playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- ResetPlayerWeapons(playa);
- ClearGuns(playa);
- ResetPlayerAdminWeaponsEx(playa);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "You have disarmed %s.", giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/warnings", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 1))
- return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
- tmp = strtok(cmdtext, idx);
- new showcount;
- if(!strlen(tmp))
- {
- showcount = 4;
- } else {
- showcount = (strval(tmp) - 1);
- if(showcount < 0)
- return 1;
- if(showcount > 19)
- {
- showcount = 19;
- }
- }
- for(new i = 19 - showcount;i <= 19;i++)
- {
- if(strlen(Warnings[i]) != 0)
- {
- SendClientMessage(playerid,COLOR_YELLOW,Warnings[i]);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fdeposit", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pFMember] == 255)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a Family.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid,5.0,2308.8071,-13.2485,26.7422))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the bank.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fdeposit [amount]{7DAEFF}");
- format(string, sizeof(string), "You have $%d in your family bank account.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- new cashdeposit = strvalEx(tmp);
- if(cashdeposit > PlayerInfo[playerid][pCash] || cashdeposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much !");
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-cashdeposit;
- GivePlayerMoney(playerid,-cashdeposit);
- FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]=FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]+cashdeposit;
- SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATEMENT ___|");
- format(string, sizeof(string), " Old Balance: $%d", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), " Deposit: $%d",cashdeposit);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD6, "|------------------------------------------|");
- format(string, sizeof(string), " New Balance: $%d", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/fwithdraw", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pFMember] == 255)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a Family.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid,5.0,1458.6104,-987.2628,1402.7000))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the bank.");
- return 1;
- }
- if(PlayerInfo[playerid][pFRank] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be rank 4 to withdraw money from your family bank account.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fwithdraw [amount]{7DAEFF}");
- format(string, sizeof(string), " You have $%d in your family bank account.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- new cashdeposit = strvalEx(tmp);
- if(cashdeposit > FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank] || cashdeposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+cashdeposit;
- GivePlayerMoney(playerid,cashdeposit);
- FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]=FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]-cashdeposit;
- format(string, sizeof(string), " You have withdrawn $%d from your family bank account, Total: $%d ", cashdeposit,FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/heal", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /heal [playerid/PartOfName] [price]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /heal [playerid/PartOfName] [price{7DAEFF}]");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(moneys < 200 || moneys > 1000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be below $200 or above $1000 !"); return 1; }
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You cannot heal yourself.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new giveambu = GetPlayerVehicleID(giveplayerid);
- new playambu = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- if(IsAnAmbulance(playambu) && playambu == giveambu)
- {
- new Float:tempheal;
- GetPlayerHealth(giveplayerid,tempheal);
- if(tempheal >= 100.0)
- {
- SendClientMessage(playerid, COLOR_GRAD1," That person is fully healed !");
- return 1;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+moneys;
- GivePlayerMoney(playerid,moneys);
- PlayerInfo[giveplayerid][pCash] = PlayerInfo[giveplayerid][pCash]-moneys;
- GivePlayerMoney(giveplayerid,-moneys);
- SetPlayerHealth(giveplayerid, 100);
- PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(giveplayerid, COLOR_GRAD1, " You have been fully healed.");
- format(string, sizeof(string), "* Paramedic %s has healed %s for $%d.", sendername,giveplayer,moneys);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(STDPlayer[giveplayerid] > 0)
- {
- STDPlayer[giveplayerid] = 0;
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* You are no longer infected with a STD !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You and the patient must be inside the Ambulance !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- return 1;
- }
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/bigears", true) == 0 && PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!BigEar[playerid])
- {
- BigEar[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "Bigears enabled !");
- }
- else if(BigEar[playerid])
- {
- (BigEar[playerid] = 0);
- SendClientMessage(playerid, COLOR_GRAD2, "Bigears disabled !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fuelcars", true) == 0 && PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(playerid))
- {
- for(new i = 0; i < MAX_VEHICLES; i++)
- {
- Gas[i] = 100;
- }
- SendClientMessage(playerid, COLOR_RED, "All vehicles refilled.");
- }
- return 1;
- }
- /*if(strcmp(cmd, "/spec2", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- new Float:X, Float:Y, Float:Z;
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /spec [playerid/PartOfName]" );
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /spec off" );
- return 1;
- }
- if(strcmp("off", tmp, true, strlen(tmp)) == 0)
- {
- if(WatchingTV[playerid] > 0)
- {
- pOnHand[playerid] = GetPlayerMoney(playerid);
- WatchingTV[playerid] = 0;
- Spectate[playerid] = 253;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not specing !");
- return 1;
- }
- }
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- Spectate[playerid] = giveplayerid;
- new Float:health;
- GetPlayerHealth(Spectate[playerid], health);
- new Float:armor;
- GetPlayerArmour(Spectate[playerid], armor);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
- new cash = GetPlayerMoney(Spectate[playerid]);
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(string, sizeof(string), "Specing: (%d) %s $%d H:%.0f A:%.0f",Spectate[playerid],giveplayer,cash,health,armor);
- }
- SendClientMessage(playerid, COLOR_GREEN, string);
- WatchingTV[playerid] = 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, " Target is not available.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
- return 1;
- }
- }
- return 1;
- }*/
- if(strcmp(cmd, "/spec", true) == 0 || strcmp(cmd, "/recon", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /spec [playerid/off]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerNPC(giveplayerid)) return 1;
- if(strcmp("off", tmp, true, strlen(tmp)) == 0)
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not spectating anyone{7DAEFF}");
- return 1;
- }
- SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- SetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
- SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirtualWorld]);
- SetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
- SetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
- SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
- SendClientMessage(playerid, COLOR_WHITE, "You are no longer spectating.");
- TogglePlayerSpectating(playerid, 0);
- SpectatedID[playerid] = INVALID_PLAYER_ID;
- SpectateType[playerid] = ADMIN_SPEC_TYPE_NONE;
- HidePM[playerid] = 0;
- PhoneOnline[playerid] = 0;
- WithGlasses[playerid] = 0;
- WithMask[playerid] = 0;
- WithHat[playerid] = 0;
- WithBandana[playerid] = 0;
- WithHelmet[playerid] = 0;
- ResetPlayerAdminWeaponsEx(playerid);
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if (NoSpec[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " That player can't be spectated !");
- return 1;
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
- {
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
- GetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
- }
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
- SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
- TogglePlayerSpectating(playerid, 1);
- SpectatedID[playerid] = giveplayerid;
- HidePM[playerid] = 1;
- PhoneOnline[playerid] = 1;
- new Float:X, Float:Y, Float:Z;
- new Float:health;
- GetPlayerHealth(giveplayerid, health);
- new Float:armor;
- GetPlayerArmour(giveplayerid, armor);GetPlayerPos(playerid, X, Y, Z);
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- new cash = GetPlayerMoney(giveplayerid);
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(string, sizeof(string), "Specing: [%d]%s [$%d] [H:%.0f] [A:%.0f]",giveplayerid,giveplayer,cash,health,armor);
- }
- SendClientMessage(playerid, COLOR_GREEN, string);
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid));
- SpectateType[playerid] = ADMIN_SPEC_TYPE_VEHICLE;
- }
- else
- {
- PlayerSpectatePlayer(playerid, giveplayerid);
- SpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player isn't active !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/kill", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerTied[playerid] > 0 || PlayerCuffed[playerid] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pTut] != 1 || PlayerInfo[playerid][pJailed] == 2) // COMMENTED
- {
- SendClientMessage(playerid, COLOR_GREY," You cannot do that at this time !");
- return 1;
- }
- else
- {
- SetPlayerHealth(playerid, 0);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[256];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/a)dmin [admin chat]{7DAEFF}");
- return 1;
- }
- new arank[64];
- if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Secret Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Junior Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "General Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Senior Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Head Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Executive Admin"; }
- else if(PlayerInfo[playerid][pAdmin] == 7) { arank = "Server Owner"; }
- format(string, sizeof(string), "{7DAEFF}* %s{FFFFFF} %s: %s", arank, sendername, result);
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- SendAdminMessage(0xFEB918FF, string);
- }
- printf("Admin %s: %s", sendername, result);
- }
- return 1;
- }
- if(strcmp(cmd, "//", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[256];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: // [chat]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "* %s %s", sendername, result);
- if (PlayerInfo[playerid][pAdmin] >= 6 || PlayerInfo[playerid][pFakeIP] == 1)
- {
- SendAdminMessage2(COLOR_ADMIN, string);
- }
- printf("Admin %s: %s", sendername, result);
- }
- return 1;
- }
- if(strcmp(cmd, "/cnn", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cnn [cnn textformat ~n~=Newline ~r~=Red ~g~=Green ~b~=Blue ~w~=White ~y~=Yellow]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "~b~%s: ~w~%s",sendername,result);
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForPlayer(i, string, 5000, 6);
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/cnnn", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- tmp = strtok(cmdtext, idx);
- new txtid;
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cnnn <type>{7DAEFF}");
- return 1;
- }
- txtid = strvalEx(tmp);
- if(txtid == 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You cannot select type 2.");
- return 1;
- }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cnnn <type> [cnnc textformat ~n~=Newline ~r~=Red ~g~=Green ~b~=Blue ~w~=White ~y~=Yellow]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "~w~%s",result);
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) == 1)
- {
- GameTextForPlayer(i, string, 5000, txtid);
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/cage", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- for(new i; i<MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pJailed] == 10)
- {
- SendClientMessage(playerid, COLOR_RED, "Someone else is in the cage right now.");
- return 1;
- }
- }
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cage [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cage [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has been sent to \"The Cage\" cage for 3 minutes and auto-fined $10,000, reason: %s", giveplayer, (result));
- SendClientMessageToAll(0x9ACD32AA, string);
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~\"The Cage\" ~n~~n~~y~Don't make the same mistake again", 5000, 5);
- SetPlayerVirtualWorld(giveplayerid, 0); PlayerInfo[giveplayerid][pVirtualWorld] = 0;
- SetPlayerInterior(giveplayerid, 0); PlayerInfo[giveplayerid][pInt] = 0;
- format(PlayerInfo[giveplayerid][pPrisonedBy], 128, "%s (Admin - Cage)", PlayerName(playerid));
- format(PlayerInfo[giveplayerid][pPrisonReason], 32, "%s", (result));
- SetPlayerWantedLevel(giveplayerid, 0);
- GivePlayerMoney(giveplayerid, -10000);
- PlayerInfo[giveplayerid][pCash] -= 10000;
- PlayerInfo[giveplayerid][pJailed] = 10;
- PlayerInfo[giveplayerid][pAdminJailed] = 1;
- PlayerInfo[giveplayerid][pJailTime] = 3*60;
- SetPlayerPos(giveplayerid, 154.4657,-1951.9379,47.8750);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/prison", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] <= 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /prison [playerid/PartOfName] [minutes] [reason]{7DAEFF}");
- return 1;
- }
- new time;
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- time = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /prison [playerid/PartOfName] [minutes] [reason]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has been prisoned by an Admin, reason: %s", giveplayer, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- format(string, sizeof(string), "You are prisoned for %d minutes.Bail: Unable", time);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Fort DeMorgan", 5000, 3);
- ClearGuns(giveplayerid);
- ResetPlayerWeapons(giveplayerid);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerVirtualWorld(giveplayerid, 0); PlayerInfo[giveplayerid][pVirtualWorld] = 0;
- SetPlayerInterior(giveplayerid, 69); PlayerInfo[giveplayerid][pInt] = 69;
- format(PlayerInfo[giveplayerid][pPrisonedBy], 128, "%s (Admin)", PlayerName(playerid));
- format(PlayerInfo[giveplayerid][pPrisonReason], 32, "%s", (result));
- SetPlayerWantedLevel(giveplayerid, 0);
- SetPlayerColor(giveplayerid, TCOLOR_PRISON);
- PlayerInfo[giveplayerid][pJailed] = 3;
- PlayerInfo[giveplayerid][pAdminJailed] = 1;
- PlayerInfo[giveplayerid][pJailTime] = time*60;
- SetPlayerSkin(giveplayerid, 50);
- new rand = random(sizeof(PrisonSpawns));
- PrisonCell[giveplayerid] = rand;
- SetPlayerPos(giveplayerid, PrisonSpawns[rand][0], PrisonSpawns[rand][1], PrisonSpawns[rand][2]);
- SetPlayerFacingAngle(giveplayerid, PrisonSpawns[rand][3]);
- }
- }
- }
- return 1;
- }
- /* if(strcmp(cmd, "/tree", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] <= 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /tree [playerid/PartOfName] [minutes] [reason]");
- return 1;
- }
- new time;
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- time = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /tree [playerid/PartOfName] [minutes] [reason]");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has been tree'd by an Admin, reason: %s", giveplayer, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- format(string, sizeof(string), "You are tree'd for %d minutes.", time);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Admin Tree-Prison", 5000, 3);
- ClearGuns(giveplayerid);
- ResetPlayerWeapons(giveplayerid);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[giveplayerid][pVirtualWorld] = 0;
- SetPlayerWantedLevel(giveplayerid, 0);
- SetPlayerToTeamColor(playerid);
- SetPlayerPos(playerid, -1070.8547,-2038.5858,49.1448);
- TogglePlayerControllable(playerid, 1);
- SetCameraBehindPlayer(playerid);
- PlayerInfo[giveplayerid][pJailed] = 3;
- PlayerInfo[giveplayerid][pJailTime] = time*60;
- SetPlayerWorldBounds(playerid, -1069, -1073.4076, -2036.4987, -2040.6022);
- }
- }
- }
- return 1;
- }*/
- if(strcmp(cmd, "/jail", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /jail [playerid/PartOfName] [minutes] [reason]{7DAEFF}");
- return 1;
- }
- new playa;
- new time;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- time = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /jail [playerid/PartOfName] [minutes] [reason]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has been jailed by an Admin, reason: %s", giveplayer, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- ClearGuns(playa);
- ResetPlayerWeapons(playa);
- PlayerInfo[playa][pWantedLevel] = 0;
- SetPlayerWantedLevel(playa, 0);
- SetPlayerToTeamColor(playa);
- PlayerInfo[playa][pJailed] = 1;
- PlayerInfo[playa][pJailTime] = time*60;
- SetPlayerInterior(playa, 6);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[giveplayerid][pVirtualWorld] = 0;
- SetPlayerPos(playa, 264.6288,77.5742,1001.0391);
- SetPlayerFacingAngle(playa, -90);
- format(string, sizeof(string), "You are jailed for %d minutes. Bail: Unable", time);
- SendClientMessage(playa, COLOR_LIGHTBLUE, string);
- format(PlayerInfo[playa][pPrisonedBy], 128, "%s (Admin)", PlayerName(playerid));
- format(PlayerInfo[playa][pPrisonReason], 32, "%s", (result));
- PlayerInfo[playa][pAdminJailed] = 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/tod", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /tod [hour] (0-23){7DAEFF}");
- return 1;
- }
- new hour;
- hour = strvalEx(tmp);
- if(hour < 0 || hour > 23) { SendClientMessage(playerid, COLOR_GREY, "Hour can't be below 0 or above 23 !"); return 1; }
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- SetWorldTime(hour);
- format(string, sizeof(string), "Time set to %d Hours.", hour);
- SendClientMessageToAll(COLOR_GRAD1, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/refund", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /refund [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- RefundingID[playerid] = giveplayerid;
- DisplayDialogForPlayer(playerid, 47); //refund
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/getproducts", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 3)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not a product dealer.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 553.7549,-1314.1748,17.2422))
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not at the products pickup.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- new amount = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /getproducts [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_YELLOW, "The price is $50 for each product.");
- return 1;
- }
- if(amount > 500)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't buy so many products.");
- return 1;
- }
- new moneycalc = amount * 50;
- if(PlayerInfo[playerid][pCash] < moneycalc)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford this.");
- return 1;
- }
- new calc = amount + PlayerInfo[playerid][pProducts];
- if(calc > 500)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't have so many products.");
- return 1;
- }
- PlayerInfo[playerid][pProducts] = calc;
- PlayerInfo[playerid][pCash] -= moneycalc;
- GivePlayerMoney(playerid,-moneycalc);
- format(string, sizeof(string), "You have purchased %d products for %d",amount,moneycalc);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/setstat", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /setstat [playerid/PartOfName] [statcode] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "|1 Level |2 Armor Upgrade |3 UpgradePoints |4 Model |5 BankAccount |6 PhoneNumber |7 RespectPoints");
- SendClientMessage(playerid, COLOR_GRAD2, "|996 HouseKey |997 BizKey |11 FMember |12 Det |13 Lawyer |14 Fixer |15 News |16 Jack |17 Drug");
- SendClientMessage(playerid, COLOR_GRAD3, "|18 Sex |19 Box |20 Arms |21 Materials |22 Pot |23 Crack |24 Fishing |25 Job |26 Rank |27 Packages |28 Crates");
- SendClientMessage(playerid, COLOR_GRAD4, "|29 Smuggler |30 CarKey 31| Warnings |998 Car1 |999 Car2");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /setstat [playerid/PartOfName] [statcode] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "|1 Level |2 Armor Upgrade |3 UpgradePoints |4 Model |5 BankAccount |6 PhoneNumber |7 RespectPoints");
- SendClientMessage(playerid, COLOR_GRAD2, "|996 HouseKey |997 BizKey |11 FMember |12 Det |13 Lawyer |14 Fixer |15 News |16 Jack |17 Drug");
- SendClientMessage(playerid, COLOR_GRAD3, "|18 Sex |19 Box |20 Arms |21 Materials |22 Pot |23 Crack |24 Fishing |25 Job |26 Rank |27 Packages |28 Crates");
- SendClientMessage(playerid, COLOR_GRAD4, "|29 Smuggler |30 CarKey 31| Warnings |998 Car1 |999 Car2");
- return 1;
- }
- new stat;
- stat = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /setstat [playerid/PartOfName] [statcode] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "|1 Level |2 Armor Upgrade |3 UpgradePoints |4 Model |5 BankAccount |6 PhoneNumber |7 RespectPoints");
- SendClientMessage(playerid, COLOR_GRAD2, "|996 HouseKey |997 BizKey |11 FMember |12 Det |13 Lawyer |14 Fixer |15 News |16 Jack |17 Drug");
- SendClientMessage(playerid, COLOR_GRAD3, "|18 Sex |19 Box |20 Arms |21 Materials |22 Pot |23 Crack |24 Fishing |25 Job |26 Rank |27 Packages |28 Crates");
- SendClientMessage(playerid, COLOR_GRAD4, "|29 Smuggler |30 CarKey 31| Warnings |998 Car1 |999 Car2");
- return 1;
- }
- new amount;
- new logstring[128];
- new year, month, day;
- getdate(year, month, day);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- amount = strvalEx(tmp);
- switch (stat)
- {
- case 1:
- {
- PlayerInfo[giveplayerid][pLevel] = amount;
- format(string, sizeof(string), " That players Level was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Level to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 2:
- {
- PlayerInfo[giveplayerid][pSHealth] = amount;
- format(string, sizeof(string), " That players ArmorUpgade was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's ArmorUpgade to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 3:
- {
- PlayerInfo[giveplayerid][gPupgrade] = amount;
- format(string, sizeof(string), " That players Upgradepoints were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Upgradepoints to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 4:
- {
- if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, " Model Number can't be below 0 or above 299 !"); return 1; }
- if(IsInvalidSkin(amount))
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid Model !");
- return 1;
- }
- else
- {
- PlayerInfo[giveplayerid][pModel] = amount;
- SetPlayerSkin(giveplayerid, amount);
- format(string, sizeof(string), " That players Model was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Model to %d", day, month, year, sendername, giveplayer, amount);
- }
- }
- case 5:
- {
- PlayerInfo[giveplayerid][pAccount] = amount;
- format(string, sizeof(string), " That players Account was set to $%d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's BankAccount to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 6:
- {
- PlayerInfo[giveplayerid][pPnumber] = amount;
- format(string, sizeof(string), " That players Phone Number was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Phone Number to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 7:
- {
- PlayerInfo[giveplayerid][pExp] = amount;
- format(string, sizeof(string), " That players Respect Points was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Respect Points to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 11:
- {
- if(amount < 1 || amount > 10) { SendClientMessage(playerid, COLOR_GREY, " FMember can't be below 1 or above 10 !"); return 1; }
- PlayerInfo[giveplayerid][pFMember] = amount-1;
- format(string, sizeof(string), " That players Family was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Family to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 12:
- {
- PlayerInfo[giveplayerid][pDetSkill] = amount;
- format(string, sizeof(string), " That players Detective Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Detective Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 13:
- {
- PlayerInfo[giveplayerid][pLawSkill] = amount;
- format(string, sizeof(string), " That players Lawyer Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Lawyer Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 14:
- {
- PlayerInfo[giveplayerid][pMechSkill] = amount;
- format(string, sizeof(string), " That players Mechanic Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Mechanic Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 15:
- {
- PlayerInfo[giveplayerid][pNewsSkill] = amount;
- format(string, sizeof(string), " That players News Reporter Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's News Reporter Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 16:
- {
- PlayerInfo[giveplayerid][pJackSkill] = amount;
- format(string, sizeof(string), " That players Car Jacker Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car Jacker Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 17:
- {
- PlayerInfo[giveplayerid][pDrugsSkill] = amount;
- format(string, sizeof(string), " That players Drug Dealer Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Drug Dealer Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 18:
- {
- PlayerInfo[giveplayerid][pSexSkill] = amount;
- format(string, sizeof(string), " That players Sex Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Sex Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 19:
- {
- PlayerInfo[giveplayerid][pBoxSkill] = amount;
- format(string, sizeof(string), " That players Box Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Box Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 20:
- {
- PlayerInfo[giveplayerid][pArmsSkill] = amount;
- format(string, sizeof(string), " That players Arms Dealer Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Arms Dealer Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 21:
- {
- PlayerInfo[giveplayerid][pMats] = amount;
- format(string, sizeof(string), " That players Materials were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Materials to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 22:
- {
- PlayerInfo[giveplayerid][pPot] = amount;
- format(string, sizeof(string), " That players Pot was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Pot to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 23:
- {
- PlayerInfo[giveplayerid][pCrack] = amount;
- format(string, sizeof(string), " That players Crack was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Crack to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 24:
- {
- PlayerInfo[giveplayerid][pFishSkill] = amount;
- format(string, sizeof(string), " That players Fishing Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Fishing Skill to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 25:
- {
- if(amount < 0 || amount > 17) { SendClientMessage(playerid, COLOR_GREY, " Job can't be below 0 or above 17 !"); return 1; }
- PlayerInfo[giveplayerid][pJob] = amount;
- format(string, sizeof(string), " That players Job was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Job to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 26:
- {
- if(amount < 1 || amount > 6) { SendClientMessage(playerid, COLOR_GREY, " Rank can't be below 1 or above 6 !"); return 1; }
- PlayerInfo[giveplayerid][pFRank] = amount;
- format(string, sizeof(string), " That players Family Rank was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Rank to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 27:
- {
- Packages[playerid] = amount;
- format(string, sizeof(string), " That players Packages were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Materials Packages to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 28:
- {
- Crates[playerid] = amount;
- format(string, sizeof(string), " That players Crates were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Drug Crates to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 29:
- {
- PlayerInfo[giveplayerid][pSmugglerSkill] = amount;
- format(string, sizeof(string), " That players Drug Smuggler Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Drug Smuggler to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 31:
- {
- PlayerInfo[giveplayerid][pWarns] = amount;
- format(string, sizeof(string), " That players Warnings were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Warnings to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 100000:
- {
- PlayerInfo[giveplayerid][pAWarns] = amount;
- format(string, sizeof(string), " That players AWarnings were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Warnings to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 996:
- {
- PlayerInfo[giveplayerid][pHouseKey] = amount;
- format(string, sizeof(string), " That players House were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car 1 to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 997:
- {
- PlayerInfo[giveplayerid][pBizKey] = amount;
- format(string, sizeof(string), " That players Biz were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car 1 to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 998:
- {
- PlayerInfo[giveplayerid][pCarKey1] = amount;
- format(string, sizeof(string), " That players Car 1 were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car 1 to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 999:
- {
- PlayerInfo[giveplayerid][pCarKey2] = amount;
- format(string, sizeof(string), " That players Car 2 were set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car 1 to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 9999991:
- {
- PlayerInfo[giveplayerid][pCHits] = amount;
- format(string, sizeof(string), " That players CompletedHits was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's CompletedHits to %d", day, month, year, sendername, giveplayer, amount);
- }
- case 9999992:
- {
- PlayerInfo[giveplayerid][pFHits] = amount;
- format(string, sizeof(string), " That players CompletedHits was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's CompletedHits to %d", day, month, year, sendername, giveplayer, amount);
- }
- /* case 34: // Trashman
- {
- PlayerInfo[giveplayerid][pTrashSkill] = amount;
- format(string, sizeof(string), " That players Trashman Skill was set to %d", amount);
- format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Trashman Skill to %d", day, month, year, sendername, giveplayer, amount);
- }*/
- default:
- {
- format(string, sizeof(string), " Invalid stat code %d !", amount);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GRAD1, string);
- StatLog(logstring);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setvw", true) == 0)//PaNoULiS
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /setvw [PlayerID/PartOfName] [VW ID]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- new virid;
- tmp = strtok(cmdtext, idx);
- virid = strvalEx(tmp);
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SetPlayerVirtualWorld(playa, virid);
- format(string, sizeof(string), "You Have Set %s's Virtual World To ID: %d.", giveplayer, virid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "%s Has Set Your Virtual World To ID: %d.", sendername, virid);
- SendClientMessage(playa, COLOR_GRAD1, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setint", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setint [playerid] [interiorid]{7DAEFF}");
- return 1;
- }
- new playa;
- new intid;
- playa = ReturnUser(tmp);
- if(IsPlayerNPC(playa)) return 1;
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setint [playerid] [interiorid]{7DAEFF}");
- return 1;
- }
- intid = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- SetPlayerInterior(playa,intid);
- PlayerInfo[playerid][pInt] = intid;
- format(string, sizeof(string), "You have set %s's Interior ID to %d !", giveplayer, intid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/skydive", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- GetPlayerPos(playerid, rx, ry, rz);
- if(IsPlayerConnected(playerid))
- {
- GivePlayerGun(playerid, 46);
- SetPlayerPos(playerid,rx, ry, rz+1500);
- SendClientMessage(playerid, COLOR_WHITE, "GO!! GO!! GO!!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fourdive", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fourdive [playerid1] [playerid2] [playerid3] [playerid4]{7DAEFF}");
- return 1;
- }
- new para1;
- new para2;
- new para3;
- new para4;
- para1 = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- para2 = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- para3 = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- para4 = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(IsPlayerConnected(para1)){ GivePlayerGun(para1, 46); SetPlayerPos(para1,1536.0, -1360.0, 1350.0);SetPlayerInterior(para1,0);PlayerInfo[para1][pInt] = 0;SendClientMessage(para1, COLOR_WHITE, "GO!! GO!! GO!!");}
- if((IsPlayerConnected(para2)) && (para2>0)) { GivePlayerGun(para2, 46); SetPlayerPos(para2,1536.0, -1345.0, 1350.0);SetPlayerInterior(para2,0);PlayerInfo[para2][pInt] = 0;SendClientMessage(para2, COLOR_RED, "GO!! GO!! GO!!");}
- if((IsPlayerConnected(para3)) && (para3>0)) { GivePlayerGun(para3, 46); SetPlayerPos(para3,1552.0, -1345.0, 1350.0);SetPlayerInterior(para3,0);PlayerInfo[para3][pInt] = 0;SendClientMessage(para3, COLOR_RED, "GO!! GO!! GO!!");}
- if((IsPlayerConnected(para4)) && (para4>0)) { GivePlayerGun(para4, 46); SetPlayerPos(para4,1552.0, -1360.0, 1350.0);SetPlayerInterior(para4,0);PlayerInfo[para4][pInt] = 0;SendClientMessage(para4, COLOR_RED, "GO!! GO!! GO!!");}
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/invite", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /invite [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new ftext[20];
- giveplayerid = ReturnUser(tmp);
- if(PlayerInfo[playerid][pLeader] >= 1)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pMember] == 0 && PlayerInfo[giveplayerid][pLeader] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- if(PlayerInfo[playerid][pLeader] == 1) { ftext = "Police Force"; }
- else if(PlayerInfo[playerid][pLeader] == 2) { ftext = "FBI"; }
- else if(PlayerInfo[playerid][pLeader] == 3) { ftext = "SAST"; }
- else if(PlayerInfo[playerid][pLeader] == 4) { ftext = "Firemen/Ambulance"; }
- else if(PlayerInfo[playerid][pLeader] == 5) { ftext = "National Guards"; }
- else if(PlayerInfo[playerid][pLeader] == 6) { ftext = "Senate"; }
- else if(PlayerInfo[playerid][pLeader] == 7) { ftext = "CIA"; }
- else if(PlayerInfo[playerid][pLeader] == 8) { ftext = "Hitman Agency"; }
- else if(PlayerInfo[playerid][pLeader] == 9) { ftext = "News Agency"; }
- else if(PlayerInfo[playerid][pLeader] == 10) { ftext = "Taxi Cab Company"; }
- format(string, sizeof(string), "* You have Invited %s to join the %s.", giveplayer, ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has invited you to join the %s, (type /accept faction) to accept.",sendername, ftext);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- FactionOffer[giveplayerid] = playerid;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is already in a Faction !");
- return 1;
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command (leaders only) !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vc", true) == 0)//Logan Stone - VIP Chat
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pDonateRank] >= 1)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/v)ip chat [VIP Chat]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[playerid][pDonateRank] == 1) format(string, sizeof(string), "* Bronze VIP %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pDonateRank] == 2) format(string, sizeof(string), "* Silver VIP %s: %s", sendername, result);
- else if(PlayerInfo[playerid][pDonateRank] == 3) format(string, sizeof(string), "* Gold VIP %s: %s", sendername, result);
- if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pDonateRank] >= 2)
- {
- SendVIPMessage(0x80008000, string);
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"You are not a VIP.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/buygun", false) == 0)//PaNoULiS
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 1, -2654.3123,1424.4027,912.4063) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP SPAS
- {
- if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 59999)
- {
- PlayerInfo[playerid][pCash] -= 60000;
- GivePlayerWeapon(playerid, 27, 999999);
- PlayerInfo[playerid][pGun3] = 27;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s grabs a SPAS-12 from the Locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($80,000).");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 39999)
- {
- PlayerInfo[playerid][pCash] -= 40000;
- GivePlayerWeapon(playerid, 27, 999999);
- PlayerInfo[playerid][pGun3] = 27;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s grabs a SPAS-12 from the Locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($40,000).");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 24000)
- {
- PlayerInfo[playerid][pCash] -= 25000;
- GivePlayerWeapon(playerid, 27, 999999);
- PlayerInfo[playerid][pGun3] = 27;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s grabs a SPAS-12 from the Locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($25,000).");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 1, -2667.1187,1399.3182,918.3516) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP Knife
- {
- if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 99999)
- {
- PlayerInfo[playerid][pCash] -= 100000;
- GivePlayerWeapon(playerid, 4, 999999);
- PlayerInfo[playerid][pGun1] = 4;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s grabs a Knife from the Locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($100,000)).");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, " You are not a Gold VIP ! !");
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 1, -2667.1355,1424.5560,912.4063) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP AK47
- {
- if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 24999)
- {
- PlayerInfo[playerid][pCash] -= 25000;
- GivePlayerWeapon(playerid, 30, 999999);
- PlayerInfo[playerid][pGun5] = 30;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s grabs an AK-47 from the Locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($25,000)).");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 11999)
- {
- PlayerInfo[playerid][pCash] -= 12000;
- GivePlayerWeapon(playerid, 30, 999999);
- PlayerInfo[playerid][pGun5] = 30;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s grabs an AK-47 from the Locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($12,000)).");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 6999)
- {
- PlayerInfo[playerid][pCash] -= 7000;
- GivePlayerWeapon(playerid, 30, 999999);
- PlayerInfo[playerid][pGun5] = 30;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s grabs an AK-47 from the Locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($7,000)).");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 1, -2660.8079,1424.4830,912.4063) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP M4
- {
- if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 29999)
- {
- PlayerInfo[playerid][pCash] -= 30000;
- GivePlayerWeapon(playerid, 31, 999999);
- PlayerInfo[playerid][pGun5] = 31;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s grabs an M4 from the locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($30,000)).");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 14999)
- {
- PlayerInfo[playerid][pCash] -= 15000;
- GivePlayerWeapon(playerid, 31, 999999);
- PlayerInfo[playerid][pGun5] = 31;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s grabs an M4 from the locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($15,000)).");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 9999)
- {
- PlayerInfo[playerid][pCash] -= 10000;
- GivePlayerWeapon(playerid, 31, 999999);
- PlayerInfo[playerid][pGun5] = 31;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s grabs an M4 from the locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($10,000)).");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at a Weapon Pickup !");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext,"/parrot",true)==0)
- {
- if(PlayerInfo[playerid][pDonateRank] >= 1)
- {
- if (Parrot[playerid] == 0)
- {
- Parrot[playerid] = 1;
- SetPlayerAttachedObject(playerid,PARROT,19078,1,0.320722,-0.067912,-0.165151,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // Parrot
- }
- else
- {
- Parrot[playerid] = 0;
- RemovePlayerAttachedObject(playerid, PARROT);
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"You are not a VIP.");
- }
- return 1;
- }
- if(strcmp(cmdtext,"/vip",true)==0)
- {
- if(PlayerInfo[playerid][pDonateRank] >= 1)
- {
- ShowPlayerDialog(playerid, 62, DIALOG_STYLE_LIST, "VIP","Color Name\nCar Tune\nSkin", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"You are not a VIP.");
- }
- return 1;
- }
- if(strcmp(cmd,"/sellhousetomarket",true) == 0)
- {
- new x_nr[32];
- new house = PlayerInfo[playerid][pHouseKey];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sellhousetomarket [confirm]{7DAEFF}");
- SendClientMessage(playerid, COLOR_YELLOW,"You will get 80 percent from your house price. Are you sure you wanna do this ?");
- return 1;
- }
- if(HouseInfo[house][hRenters] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY,"You need to evict the current renters before doing this");
- return 1;
- }
- if(strcmp(x_nr,"confirm",true) == 0)
- {
- if(PlayerInfo[playerid][pHouseKey] != 999)
- {
- new price = HouseInfo[house][hPrice];
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- new VString[255];
- format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", price,HouseInfo[house][hLevel]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- new percent = price / 100 * 80;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+percent;
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
- HouseInfo[house][hOwned] = 0;
- HouseInfo[house][hAlarm] = 0;
- HouseInfo[house][hSafe] = 0;
- HouseInfo[house][hLocked] = 0;
- HouseInfo[house][hRentable] = 0;
- strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
- strmid(HouseInfo[house][hName], "House", 0, strlen("House"), 255);
- format(string, sizeof(string), "You have sold your house for $%d.", percent);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- //DestroyDynamicMapIcon(HouseIcon[house]);
- DestroyDynamicPickup(HouseSafe[house]);
- //HouseIcon[house] = CreateDynamicMapIcon(HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z], 31, 0);
- PlayerInfo[playerid][pHouseKey] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You do not own a house.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/sellbiztomarket",true) == 0)
- {
- new x_nr[32];
- new biz = PlayerInfo[playerid][pBizKey];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sellbiztomarket [confirm]{7DAEFF}");
- SendClientMessage(playerid, COLOR_YELLOW,"You will get 80 percent from your house price. Are you sure you wanna do this ?");
- return 1;
- }
- if(strcmp(x_nr,"confirm",true) == 0)
- {
- if(PlayerInfo[playerid][pBizKey] != 999)
- {
- new VString[255];
- new price = BizInfo[biz][bPrice];
- DestroyDynamic3DTextLabel(BizLabel[biz]);
- format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- new percent = price / 100 * 80;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+percent;
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
- BizInfo[biz][bOwned] = 0;
- BizInfo[biz][bLocked] = 0;
- BizInfo[biz][bFee] = 0;
- strmid(BizInfo[biz][bOwner], "The State", 0, strlen("The State"), 255);
- format(string, sizeof(string), "You have sold your business for $%d.", percent);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- PlayerInfo[playerid][pBizKey] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't own a house !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/unrent",true) == 0)
- {
- if(PlayerInfo[playerid][pRenthouse] != 999)
- {
- new house = PlayerInfo[playerid][pRenthouse];
- HouseInfo[house][hRenters] -= 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You are no longer renting a room.");
- PlayerInfo[playerid][pRenthouse] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not renting a room.");
- return 1;
- }
- }
- if(strcmp(cmd, "/gotohouse", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- new house = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /gotohouse [HouseID]{7DAEFF}");
- return 1;
- }
- SetPlayerPos(playerid, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z]);
- SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- SetPlayerVirtualWorld(playerid,0);
- }
- return 1;
- }
- if(strcmp(cmd, "/goinhouse", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- new houseid = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /goinhouse [HouseID]{7DAEFF}");
- return 1;
- }
- SetPlayerPos(playerid, HouseInfo[houseid][hIntLocationx],HouseInfo[houseid][hIntLocationy],HouseInfo[houseid][hIntLocationz]);
- SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, HouseInfo[houseid][hInterior]);
- PlayerInfo[playerid][pInt] = HouseInfo[houseid][hInterior];
- SetPlayerVirtualWorld(playerid, HouseInfo[houseid][hVirtualWorld]);
- PlayerInfo[playerid][pVirtualWorld] = HouseInfo[houseid][hVirtualWorld];
- PlayerInfo[playerid][pInHouse] = houseid;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- return 1;
- }
- if(strcmp(cmd, "/gotobiz", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- new biz = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /gotobiz [BizID]{7DAEFF}");
- return 1;
- }
- SetPlayerPos(playerid, BizInfo[biz][bLocation_x],BizInfo[biz][bLocation_y],BizInfo[biz][bLocation_z]);
- SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- SetPlayerVirtualWorld(playerid,0);
- }
- return 1;
- }
- if(strcmp(cmd, "/goinbiz", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- new biz = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /goinbiz [BizID]{7DAEFF}");
- return 1;
- }
- SetPlayerPos(playerid, BizInfo[biz][bIntLocationx],BizInfo[biz][bIntLocationy],BizInfo[biz][bIntLocationz]);
- SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, BizInfo[biz][bInterior]);
- PlayerInfo[playerid][pInt] = BizInfo[biz][bInterior];
- SetPlayerVirtualWorld(playerid, BizInfo[biz][bVirtualWorld]);
- PlayerInfo[playerid][pVirtualWorld] = BizInfo[biz][bVirtualWorld];
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = biz;
- }
- return 1;
- }
- if(strcmp(cmdtext,"/buyhouse",true)==0)
- {
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
- {
- if(PlayerInfo[playerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_RED, "** You have to be at least level 2 to buy a house");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(HouseInfo[h][hOwned] == 1)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This house is already owned!");
- return 1;
- }
- if(PlayerInfo[playerid][pHouseKey] != 999)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You already own a house, you have to sell it first!");
- return 1;
- }
- if(PlayerInfo[playerid][pRenthouse] != 999)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You are currently renting a room, /unrent first!");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < HouseInfo[h][hPrice])
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You can't afford this!");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new price = HouseInfo[h][hPrice];
- PlayerInfo[playerid][pCash] -= price;
- GivePlayerMoney(playerid,-price);
- PlayerInfo[playerid][pHouseKey] = h;
- HouseInfo[h][hOwned] = 1;
- HouseInfo[h][hVulnerable] = 5;
- strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
- GameTextForPlayer(playerid, "~y~Property bought", 5000, 1);
- PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
- //DestroyDynamicMapIcon(HouseIcon[h]);
- DestroyDynamic3DTextLabel(HouseLabel[h]);
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
- strmid(name, HouseInfo[h][hName], 0, strlen(HouseInfo[h][hName]), 255);
- if(HouseInfo[h][hRentable] == 0)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[h][hLevel],owner);
- HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[h][hRentable] == 1)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[h][hLevel],owner,HouseInfo[h][hRent]);
- HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- //HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z], 32, 0);
- SendClientMessage(playerid,COLOR_YELLOW, "You have successfully bought this house !");
- SendClientMessage(playerid,COLOR_YELLOW, "Use /househelp to see the commands.");
- return 1;
- }
- }
- }
- if(strcmp(cmdtext,"/buybiz",true)==0)
- {
- for(new h = 0; h < sizeof(BizInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]))
- {
- if(PlayerInfo[playerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_RED, "** You have to be at least level 2 to buy a business");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(BizInfo[h][bOwned] == 1)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This business is already owned!");
- return 1;
- }
- if(PlayerInfo[playerid][pBizKey] != 999)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You already own a business, you have to sell it first!");
- return 1;
- }
- if(BizInfo[h][bType] == 0)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You can't buy normal buildings!");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < BizInfo[h][bPrice])
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You can't afford this!");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new price = BizInfo[h][bPrice];
- PlayerInfo[playerid][pCash] -= price;
- GivePlayerMoney(playerid,-price);
- PlayerInfo[playerid][pBizKey] = h;
- BizInfo[h][bOwned] = 1;
- strmid(BizInfo[h][bOwner], sendername, 0, strlen(sendername), 255);
- GameTextForPlayer(playerid, "~y~Business bought", 5000, 1);
- PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
- DestroyDynamic3DTextLabel(BizLabel[h]);
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, BizInfo[h][bOwner], 0, strlen(BizInfo[h][bOwner]), 255);
- strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
- format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[h][bFee]);
- BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW, "You have successfully bought this business !");
- SendClientMessage(playerid,COLOR_YELLOW, "Use /bizhelp to see the commands.");
- return 1;
- }
- }
- }
- if(strcmp(cmdtext,"/breakin",true)==0)
- {
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
- {
- if(HouseInfo[h][hLocked] == 0)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This house is not locked!");
- return 1;
- }
- if(PlayerInfo[playerid][Lockpicking] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are already lockpicking this house");
- return 1;
- }
- if(PlayerInfo[playerid][pCrowbar] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your need a crowbar do lockpick a door!");
- return 1;
- }
- if(crowbar[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not holding a crowbar (( /crowbar ))!");
- return 1;
- }
- new owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
- giveplayerid = ReturnUser(owner);
- PlayerInfo[playerid][Lockpicking] = 20;
- PlayerInfo[playerid][HLockpick] = h;
- PlayerInfo[playerid][pScrew]--;
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "** %s pulls out a screwdriver and begins lockpicking the house...", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "** It takes you 20 seconds to unlock this house...");
- if(HouseInfo[h][hAlarmON] == 1)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- SetPlayerCheckpoint(giveplayerid, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z], 3.0);
- SendClientMessage(giveplayerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
- SendClientMessage(giveplayerid, COLOR_WHITE, ""CB"Message:"CW" You received this message because your house alarm has been activated");
- }
- }
- SetTimerEx("Breakin", 1, false, "d", playerid);
- SetTimerEx("Breakinmove", 1, false, "d", playerid);
- return 1;
- }
- }
- }
- /* if(strcmp(cmdtext,"/robhouse",true)==0)
- {
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(PlayerInfo[playerid][pInHouse] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your need to be in a house to do this!");
- return 1;
- }
- new houseid = PlayerInfo[playerid][pInHouse];
- if(HouseInfo[houseid][hVulnerable] != 0)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This house was recently robbed!");
- return 1;
- }
- if(PlayerInfo[playerid][pStolenObject1] != 0 || PlayerInfo[playerid][pStolenObject2] != 0 || PlayerInfo[playerid][pStolenObject3] != 0 || PlayerInfo[playerid][pStolenObject4] != 0 || PlayerInfo[playerid][pStolenObject5] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You have too many stolen objects already. You have to sell them first");
- return 1;
- }
- if(PlayerInfo[playerid][pCrowbar] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your need a crowbar to rob a house!");
- return 1;
- }
- new owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
- giveplayerid = ReturnUser(owner);
- PlayerInfo[playerid][RobHouseTime] = 5;
- PlayerInfo[playerid][RobHouseID] = houseid;
- PlayerInfo[playerid][RobHouse] = 1;
- PlayerInfo[playerid][pCrowbar]--;
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "** %s pulls out a crowbar and begins searching in the house...", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "** You have to stay inside the house for 5 minutes");
- SetTimerEx("RobHouse1", 1, false, "d", playerid);
- SetTimerEx("RobInHouse", 1, false, "d", playerid);
- return 1;
- }
- }*/
- if(strcmp(cmd, "/sbalance", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pInHouse] != 999)
- {
- new house = PlayerInfo[playerid][pInHouse];
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
- return 1;
- }
- if(HouseInfo[house][hSafeOpen] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
- return 1;
- }
- new gunname1[64];
- if(HouseInfo[house][hGun1] != 0)
- {
- GetWeaponName(HouseInfo[house][hGun1], gunname1, sizeof(gunname1));
- }
- else { gunname1 = "Empty"; }
- new gunname2[64];
- if(HouseInfo[house][hGun2] != 0)
- {
- GetWeaponName(HouseInfo[house][hGun2], gunname2, sizeof(gunname2));
- }
- else { gunname2 = "Empty"; }
- new gunname3[64];
- if(HouseInfo[house][hGun3] != 0)
- {
- GetWeaponName(HouseInfo[house][hGun3], gunname3, sizeof(gunname3));
- }
- else { gunname3 = "Empty"; }
- new gunname4[64];
- if(HouseInfo[house][hGun4] != 0)
- {
- GetWeaponName(HouseInfo[house][hGun4], gunname4, sizeof(gunname4));
- }
- else { gunname4 = "Empty"; }
- format(string, sizeof(string), "Guns: %s | %s | %s | %s",gunname1,gunname2,gunname3,gunname4 );
- SendClientMessage(playerid, COLOR_GRAD6, string);
- format(string, sizeof(string), "Cash: $%d | Pot: %d | Crack: %d | Materials: %d", HouseInfo[house][hCash], HouseInfo[house][hPot], HouseInfo[house][hCrack], HouseInfo[house][hMaterials]);
- SendClientMessage(playerid, COLOR_GRAD6, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not inside a house !");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext,"/lockhouse",true)==0)
- {
- if(PlayerInfo[playerid][pHouseKey] != 999 || PlayerInfo[playerid][pRenthouse] != 999)
- {
- new h;
- if(PlayerInfo[playerid][pHouseKey] != 999) { h = PlayerInfo[playerid][pHouseKey]; }
- else if(PlayerInfo[playerid][pRenthouse] != 999) { h = PlayerInfo[playerid][pRenthouse]; }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]) || (IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[h][hIntLocationx],HouseInfo[h][hIntLocationy],HouseInfo[h][hIntLocationz]) && PlayerInfo[playerid][pVirtualWorld] == HouseInfo[h][hVirtualWorld]))
- {
- if(HouseInfo[h][hLocked] == 0)
- {
- HouseInfo[h][hLocked] = 1;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has locked their house.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(HouseInfo[h][hLocked] == 1)
- {
- HouseInfo[h][hLocked] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has unlocked their house.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You are not at your house door!");
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You don't have a house key!");
- return 1;
- }
- }
- if(strcmp(cmdtext,"/lockbiz",true)==0)
- {
- if(PlayerInfo[playerid][pBizKey] != 999)
- {
- new h = PlayerInfo[playerid][pBizKey];
- if(IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]) || (IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[h][bIntLocationx],BizInfo[h][bIntLocationy],BizInfo[h][bIntLocationz]) && PlayerInfo[playerid][pVirtualWorld] == BizInfo[h][bVirtualWorld]))
- {
- if(BizInfo[h][bLocked] == 0)
- {
- BizInfo[h][bLocked] = 1;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has locked the door of their business.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(BizInfo[h][bLocked] == 1)
- {
- BizInfo[h][bLocked] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has unlocked the door of their business.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You are not at your business door!");
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You don't have a business key!");
- return 1;
- }
- }
- if(strcmp(cmd, "/enter", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:shax, Float:shay, Float:shaz;
- new Float:shbx, Float:shby, Float:shbz;
- new Float:shcx, Float:shcy, Float:shcz;
- GetVehiclePos(152, shax, shay, shaz);
- GetVehiclePos(153, shbx, shby, shbz);
- GetVehiclePos(154, shcx, shcy, shcz);
- //foreach(Player, i)
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
- {
- if(HouseInfo[h][hLocked] == 1)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This house is currently locked");
- return 1;
- }
- new houseid = h;
- SetPlayerPos(playerid, HouseInfo[h][hIntLocationx],HouseInfo[h][hIntLocationy],HouseInfo[h][hIntLocationz]);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, HouseInfo[h][hInterior]);
- PlayerInfo[playerid][pInt] = HouseInfo[h][hInterior];
- SetPlayerVirtualWorld(playerid, HouseInfo[h][hVirtualWorld]);
- PlayerInfo[playerid][pVirtualWorld] = HouseInfo[h][hVirtualWorld];
- PlayerInfo[playerid][pInHouse] = houseid;
- SetPlayerFacingAngle(playerid, HouseInfo[h][hEnterAngle]);
- SetCameraBehindPlayer(playerid);
- new owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
- giveplayerid = ReturnUser(owner);
- if(HouseInfo[h][hAlarmON] == 1)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- SetPlayerCheckpoint(giveplayerid, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z], 3.0);
- SendClientMessage(giveplayerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
- SendClientMessage(giveplayerid, COLOR_WHITE, ""CB"Message:"CW" You received this message because your house alarm has been activated");
- }
- }
- return 1;
- }
- }
- for(new h = 0; h < sizeof(BizInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]) && PlayerInfo[playerid][pVirtualWorld] == BizInfo[h][bPVW])
- {
- if(BizInfo[h][bLocked] == 1)
- {
- GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < BizInfo[h][bFee] && BizInfo[h][bType] != 0)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You can't afford to enter this business");
- return 1;
- }
- new bizid = h;
- new name[25];
- strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
- SetPlayerPos(playerid, BizInfo[h][bIntLocationx],BizInfo[h][bIntLocationy],BizInfo[h][bIntLocationz]);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, BizInfo[h][bInterior]);
- PlayerInfo[playerid][pInt] = BizInfo[h][bInterior];
- SetPlayerVirtualWorld(playerid, BizInfo[h][bVirtualWorld]);
- PlayerInfo[playerid][pVirtualWorld] = BizInfo[h][bVirtualWorld];
- PlayerInfo[playerid][pInBiz] = bizid;
- PlayerInfo[playerid][pCash] -= BizInfo[h][bFee];
- GivePlayerMoney(playerid,-BizInfo[h][bFee]);
- SetPlayerFacingAngle(playerid, BizInfo[h][bEnterAngle]);
- format(string, sizeof(string), "~r~%s", name);
- GameTextForPlayer(playerid, string, 5000, 1);
- SetCameraBehindPlayer(playerid);
- if(BizInfo[h][bOwned] == 1)
- {
- new price = BizInfo[h][bTill]+BizInfo[h][bFee];
- BizInfo[h][bTill] = price;
- }
- if(BizInfo[h][bType] > 0 && BizInfo[h][bType] != 8)
- {
- SendClientMessage(playerid,COLOR_LIGHTBLUE," Use /buy to purchase something from this business !");
- }
- if(BizInfo[h][bType] == 8)
- {
- SendClientMessage(playerid,COLOR_LIGHTBLUE," Use /lotto to purchase a lotto ticket !");
- }
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 327.6485,-1512.1423,36.0325)) //The VIP Lounge (Enter) - PaNoULiS
- {
- if(PlayerInfo[playerid][pDonateRank] >= 1)
- {
- SetPlayerPos(playerid, -2634.9387,1409.7109,906.4609);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 3);
- PlayerInfo[playerid][pInt] = 3;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVirtualWorld] = 0;
- GameTextForPlayer(playerid, "~w~The ~r~V~y~I~p~P ~b~Lounge", 5000, 1);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"You are not a VIP.");
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,shax,shay,shaz)) //SHAMAL 1
- {
- if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal.");
- else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 1337);
- SetPlayerInterior(playerid,1);
- SetPlayerPos(playerid,2.57, 33.14, 1200);
- GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
- GivePlayerGun(playerid, 46);
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,shbx,shby,shbz)) //SHAMAL 2
- {
- if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal.");
- else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 1338);
- SetPlayerInterior(playerid,1);
- SetPlayerPos(playerid,2.57, 33.14, 1200);
- GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
- GivePlayerGun(playerid, 46);
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,shcx,shcy,shcz)) //SHAMAL 3
- {
- if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal.");
- else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 1339);
- SetPlayerInterior(playerid,1);
- SetPlayerPos(playerid,2.57, 33.14, 1200);
- GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
- GivePlayerGun(playerid, 46);
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/exitpb", true) == 0 || strcmp(cmd, "/exitpaintball", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerPaintballing[playerid] != 0)
- {
- ResetPlayerWeapons(playerid);
- ClearGuns(playerid);
- ResetPlayerAdminWeaponsEx(playerid);
- SetPlayerWeapons(playerid);
- PlayerPaintballing[playerid] = 0;
- SetPlayerPos(playerid,1310.2244,-1368.6892,13.5526);
- TogglePlayerControllable(playerid, 1);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- PaintballPlayers --;
- PlayerPaintballKills[playerid] = 0;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerPaintballing[i] != 0)
- {
- format(string, sizeof(string), "* %s has left the Paintball.",sendername);
- SendClientMessage(i, COLOR_GREEN, string);
- }
- }
- }
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/exit", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[h][hIntLocationx],HouseInfo[h][hIntLocationy],HouseInfo[h][hIntLocationz]) && PlayerInfo[playerid][pVirtualWorld] == HouseInfo[h][hVirtualWorld])
- {
- if(HouseInfo[h][hLocked] == 1)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This house is currently locked");
- return 1;
- }
- SetPlayerPos(playerid, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVirtualWorld] = 0;
- SetPlayerFacingAngle(playerid, HouseInfo[h][hExitAngle]);
- SetCameraBehindPlayer(playerid);
- PlayerInfo[playerid][pInHouse] = 999;
- return 1;
- }
- }
- for(new h = 0; h < sizeof(BizInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[h][bIntLocationx],BizInfo[h][bIntLocationy],BizInfo[h][bIntLocationz]) && PlayerInfo[playerid][pVirtualWorld] == BizInfo[h][bVirtualWorld])
- {
- if(BizInfo[h][bLocked] == 1)
- {
- GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
- return 1;
- }
- SetPlayerPos(playerid, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, BizInfo[h][bPInt]);
- PlayerInfo[playerid][pInt] = BizInfo[h][bPInt];
- SetPlayerVirtualWorld(playerid, BizInfo[h][bPVW]);
- PlayerInfo[playerid][pVirtualWorld] = BizInfo[h][bPVW];
- SetPlayerFacingAngle(playerid, BizInfo[h][bExitAngle]);
- SetCameraBehindPlayer(playerid);
- PlayerInfo[playerid][pInBiz] = 999;
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, -2634.9387,1409.7109,906.4609) && GetPlayerVirtualWorld(playerid) == 0) //The VIP Lounge (Exit) - PaNoULiS
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 327.6485,-1512.1423,36.0325);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 8.0,2.57, 33.14, 1200)) // SHAMAL
- {
- new
- vwcheck = GetPlayerVirtualWorld(playerid),
- Float:px,
- Float:py,
- Float:pz,
- Float:za,
- Float:vx,
- Float:vy,
- Float:vz,
- vehicle
- ;
- switch(vwcheck)
- {
- case 1337: vehicle = 152;
- case 1338: vehicle = 153;
- case 1339: vehicle = 154;
- }
- if(vehicle)
- {
- if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has left the shamal.");
- else format(string, sizeof(string), "* %s has left the shamal.", sendername);
- GetVehiclePos(vehicle,px,py,pz);
- GetVehicleZAngle(vehicle,za);
- GetVehicleVelocity(vehicle,vx,vy,vz);
- px -= (10 * floatsin(-za, degrees));
- py -= (10 * floatcos(-za, degrees));
- SetPlayerVirtualWorld(playerid,0);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,px,py,pz);
- SetPlayerFacingAngle(playerid,za);
- SetPlayerVelocity(playerid,vx,vy,vz);
- return 1;
- }
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- new isdriver = GetPlayerVehicleSeat(playerid);
- if(isdriver == 0)
- {
- TogglePlayerControllable(playerid, 1);
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- else { return 1; }
- }
- }
- return 1;
- }
- if(strcmp(cmdtext,"/viptime",true)==0)
- {
- if(PlayerInfo[playerid][pDonateRank] < 1)
- {
- return SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
- }
- format(string, sizeof(string), "Join Date: %s, Expire Date: %s", PlayerInfo[playerid][pVIPJoinDate], PlayerInfo[playerid][pVIPExpDate]);
- SendClientMessage(playerid,COLOR_GRAD1,string);
- return 1;
- }
- if(strcmp(cmd, "/makevip", true) == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makevip [playerid/PartOfName] [rank]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(giveplayerid == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Invalid player ID.");
- return 1;
- }
- new x_string[64];
- x_string = strtok(cmdtext, idx);
- if(!strlen(x_string))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makevip [playerid/PartOfName] [rank]{7DAEFF}");
- return 1;
- }
- new Year, Month, Day;
- getdate(Year, Month, Day);
- if(Month == 1 && Day >= 29) { return SendClientMessage(giveplayerid, COLOR_GREY, "You cannot make vips today."); }
- if(strcmp(x_string,"0",true) == 0)
- {
- PlayerInfo[giveplayerid][pDonateRank] = 0;
- format(string, sizeof(string), "AdmWarning: %s's VIP status has been revoked by %s.",PlayerName(giveplayerid),PlayerName(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "Admin %s has revoked you of your VIP status.", PlayerName(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- ClearVIP(giveplayerid);
- return 1;
- }
- else if(strcmp(x_string,"1",true) == 0)
- {
- PlayerInfo[giveplayerid][pDonateRank] = 1;
- format(string, sizeof(string), "AdmWarning: %s has been made a bronze VIP by %s.",PlayerName(giveplayerid),PlayerName(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "Admin %s has made you a bronze VIP.", PlayerName(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else if(strcmp(x_string,"2",true) == 0)
- {
- PlayerInfo[giveplayerid][pDonateRank] = 2;
- format(string, sizeof(string), "AdmWarning: %s has been made a silver VIP by %s.",PlayerName(giveplayerid),PlayerName(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "Admin %s has made you a silver VIP.", PlayerName(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else if(strcmp(x_string,"3",true) == 0)
- {
- PlayerInfo[giveplayerid][pDonateRank] = 3;
- format(string, sizeof(string), "AdmWarning: %s has been made a gold VIP by %s.",PlayerName(giveplayerid),PlayerName(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "Admin %s has made you a gold VIP.", PlayerName(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- format(string, 32, "%02d/%02d/%d", Month, Day, Year);
- strmid(PlayerInfo[giveplayerid][pVIPJoinDate], string, 0, strlen(string), 255);
- format(string, 32, "%02d/%02d/%d", Month+1, Day, Year);
- strmid(PlayerInfo[giveplayerid][pVIPExpDate], string, 0, strlen(string), 255);
- if(Month == 12) { format(PlayerInfo[giveplayerid][pVIPExpDate], 32, "%02d/%02d/%d", 1, Day, Year+1); }
- format(string, sizeof(string), "Join Date: %s, Expire Date: %s", PlayerInfo[giveplayerid][pVIPJoinDate], PlayerInfo[giveplayerid][pVIPExpDate]);
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- }
- else { SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use this command."); }
- return 1;
- }
- if(strcmp(cmd, "/exchange", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,6,379.169189,-188.803024,1000.63))
- {
- ShowPlayerDialog(playerid,donutshopdiag1,DIALOG_STYLE_LIST,"-= Donuts Shop =-","Aspirin(Full health) [3 Donuts]\nKevlar(Full Armor) [3 Donuts]\n25g crack [4 Donuts]\n25g pot [4 Donuts]\nWeapon - Deagle [5 Donuts]\nWeapon - MP5 [6 Donuts]\nWeapon - M4 [7 Donuts]\nWeapon - AK47 [7 Donuts]\nWeapon - Spas12 [10 Donuts]\nWeapon Sniper [10 Donuts]\nMore...","Exchange","Cancel"); //Donuts shop
- }
- else { SendClientMessage(playerid, COLOR_GREY, "You are not at the Donuts Shop"); return 1; }
- }
- return 1;
- }
- if(strcmp(cmd, "/buy", true) == 0)
- {
- if(PlayerInfo[playerid][pInBiz] == 999)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in a business !");
- return 1;
- }
- new biz = PlayerInfo[playerid][pInBiz];
- if(BizInfo[biz][bType] == 0) // None
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in a business !");
- return 1;
- }
- if(BizInfo[biz][bProducts] <= 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " This business doesn't have any products left !");
- return 1;
- }
- if(BizInfo[biz][bType] == 1)
- {
- DisplayDialogForPlayer(playerid, 3); //247
- return 1;
- }
- if(BizInfo[biz][bType] == 2)
- {
- DisplayDialogForPlayer(playerid, 4); //Bar
- return 1;
- }
- if(BizInfo[biz][bType] == 3)
- {
- if(PlayerInfo[playerid][pGunLic] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need a gun license to buy guns.");
- return 1;
- }
- ShowPlayerDialog(playerid,AMMUNATIONDIALOG,DIALOG_STYLE_LIST,"Ammunation","Vest ($1,500)\nMP5 ($2,500)\nShotgun ($2,000)\nColt45 ($500)","Buy","Cancel"); //Ammunation
- return 1;
- }
- if(BizInfo[biz][bType] == 4)
- {
- DisplayDialogForPlayer(playerid, 7); //Restaurant
- return 1;
- }
- if(BizInfo[biz][bType] == 5)
- {
- ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
- return 1;
- }
- if(BizInfo[biz][bType] == 6)
- return ShowPlayerDialog(playerid, 8711, DIALOG_STYLE_LIST, "Phone Company", "Cellphone $500\nPhonebook $350\nBuy Credit\nNumber Information", "Select", "Cancel"); // Phone Company
- return 1;
- }
- if(strcmp(cmd, "/faq", true) == 0) // Logan Stone
- {
- ShowPlayerDialog(playerid,FAQ,DIALOG_STYLE_LIST,"Frequently asked questions","How to level up\nHow to buy a car\nHow to buy a house\nHow to buy a business\nHow to join a faction\nHow to join a gang\nHow to become VIP\nWhat's the use of donuts and how to get them\nHow to become a staff member\nHow to rob the bank\nHow to get a refund\nGeneral help","Ok","Cancel"); //FAQ
- return 1;
- }
- if(strcmp(cmd, "/showpass", true) == 0 && PlayerInfo[playerid][pAdmin] >= 1)
- {
- new showpass = Pass[LSPD];
- format(string, sizeof(string), "The LSPD Door password is: %d.", showpass);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- if(strcmp(cmd, "/makeadmin", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makeadmin [playerid/PartOfName] [level(1-7)]{7DAEFF}");
- return 1;
- }
- new para1;
- new level;
- para1 = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- level = strvalEx(tmp);
- if(IsPlayerConnected(para1))
- if(level > 7 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "You can't go higher than 7 or lower than 0."); return 1; }
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pAdmin] = level;
- printf("Info: %s has promoted %s to a level %d admin.", sendername, giveplayer, level);
- format(string, sizeof(string), "You have been promoted/demoted to a level %d admin by %s.", level, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have promoted/demoted %s to a level %d admin.", giveplayer,level);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/uninvite", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /uninvite [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new para1;
- para1 = ReturnUser(tmp);
- if(PlayerInfo[playerid][pLeader] >= 1)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[para1][pMember] == PlayerInfo[playerid][pLeader])
- {
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have been kicked out of your Faction / Family, by Leader %s.", sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "* You are now a Civilian again.");
- PlayerInfo[para1][pMember] = 0;
- PlayerInfo[para1][pRank] = 0;
- PlayerInfo[para1][pModel] = 299;
- SetPlayerSkin(para1, PlayerInfo[para1][pModel]);
- format(string, sizeof(string), "* You have kicked %s from the Faction / Family.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- OnPlayerSave(para1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not a member of your Faction !");
- return 1;
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command (Leaders only).");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/makeircadmin", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /makeircadmin [playerid/PartOfName] [ChannelNr]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /makeircadmin [playerid/PartOfName] [ChannelNr]{7DAEFF}");
- return 1;
- }
- new channel = strvalEx(tmp);
- if(channel > 10 || channel < 0) { SendClientMessage(playerid, COLOR_GREY, "Dont go below number 0, or above number 10."); return 1; }
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You've made %s an IRC Admin over Channel %d.", giveplayer, channel);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has made you an IRC Admin over Channel %d.", sendername, channel);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s", giveplayer);
- switch(channel)
- {
- case 1:
- {
- strmid(IRCInfo[0][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[0][iNeedPass] = 0; IRCInfo[0][iLock] = 0;
- }
- case 2:
- {
- strmid(IRCInfo[1][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[1][iNeedPass] = 0; IRCInfo[1][iLock] = 0;
- }
- case 3:
- {
- strmid(IRCInfo[2][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[2][iNeedPass] = 0; IRCInfo[2][iLock] = 0;
- }
- case 4:
- {
- strmid(IRCInfo[3][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[3][iNeedPass] = 0; IRCInfo[3][iLock] = 0;
- }
- case 5:
- {
- strmid(IRCInfo[4][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[4][iNeedPass] = 0; IRCInfo[4][iLock] = 0;
- }
- case 6:
- {
- strmid(IRCInfo[5][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[5][iNeedPass] = 0; IRCInfo[5][iLock] = 0;
- }
- case 7:
- {
- strmid(IRCInfo[6][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[6][iNeedPass] = 0; IRCInfo[6][iLock] = 0;
- }
- case 8:
- {
- strmid(IRCInfo[7][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[7][iNeedPass] = 0; IRCInfo[7][iLock] = 0;
- }
- case 9:
- {
- strmid(IRCInfo[8][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[8][iNeedPass] = 0; IRCInfo[8][iLock] = 0;
- }
- case 10:
- {
- strmid(IRCInfo[9][iAdmin], string, 0, strlen(string), 255);
- IRCInfo[9][iNeedPass] = 0; IRCInfo[9][iLock] = 0;
- }
- }
- SaveIRC();
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, ".You are not authorized to do that.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ciabadge", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /showbadge [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new para1;
- para1 = ReturnUser(tmp);
- giveplayerid = ReturnUser(tmp);
- if(IsAAgent(playerid))
- {
- if(IsPlayerConnected(para1))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if (GetDistanceBetweenPlayers(playerid,giveplayerid) > 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are too far away from that player.");
- return 1;
- }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /showbadge [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "* %s flashes their badge to %s.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "%s %s, %s.", GetPlayerRank(playerid),PlayerName(playerid),GetPlayerFactionName(playerid),sendername);
- SendClientMessage(giveplayerid, 0x000000AA, string);
- format(string, sizeof(string), "You have shown your badge to %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in the CIA.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/showbadge", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /showbadge [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new para1;
- para1 = ReturnUser(tmp);
- giveplayerid = ReturnUser(tmp);
- if(IsACop(playerid))
- {
- if(IsPlayerConnected(para1))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if (GetDistanceBetweenPlayers(playerid,giveplayerid) > 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are too far away from that player.");
- return 1;
- }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /showbadge [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "* %s flashes their badge to %s.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "%s %s, %s.", GetPlayerRank(playerid),PlayerName(playerid),GetPlayerFactionName(playerid),sendername);
- SendClientMessage(giveplayerid, COLOR_DBLUE, string);
- format(string, sizeof(string), "You have shown your badge to %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / SAST.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/makeleader", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /makeleader [playerid/PartOfName] [number]{7DAEFF}");
- return 1;
- }
- new para1;
- para1 = ReturnUser(tmp);
- if(IsPlayerNPC(para1)) return 1;
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /makeleader [playerid/PartOfName] [number]{7DAEFF}");
- return 1;
- }
- new faction;
- faction = strvalEx(tmp);
- if(faction < 0 || faction > 10) { SendClientMessage(playerid, COLOR_GREY, "Dont go below number 0, or above number 10."); return 1; }
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pFRank] > 3)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is Rank4+ in a family.");
- return 1;
- }
- new ftext[20];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- if(faction == 0) { PlayerInfo[para1][pModel] = 299; PlayerInfo[para1][pRank] = 0; ftext = "None"; }
- else if(faction == 1) { PlayerInfo[para1][pModel] = 265; PlayerInfo[para1][pRank] = 6; ftext = "Police Force"; }
- else if(faction == 2) { PlayerInfo[para1][pModel] = 286; PlayerInfo[para1][pRank] = 6; ftext = "FBI"; }
- else if(faction == 3) { PlayerInfo[para1][pModel] = 283; PlayerInfo[para1][pRank] = 6; ftext = "SAST"; }
- else if(faction == 4) { PlayerInfo[para1][pModel] = 274; PlayerInfo[para1][pRank] = 6; ftext = "Firemen/Ambulance"; }
- else if(faction == 5) { PlayerInfo[para1][pModel] = 287; PlayerInfo[para1][pRank] = 6; ftext = "National Guards"; }
- else if(faction == 6) { PlayerInfo[para1][pModel] = 147; PlayerInfo[para1][pRank] = 6; ftext = "Senate"; }
- else if(faction == 7) { PlayerInfo[para1][pModel] = 294; PlayerInfo[para1][pRank] = 6; ftext = "CIA"; }
- else if(faction == 8) { PlayerInfo[para1][pModel] = 294; PlayerInfo[para1][pRank] = 6; ftext = "Hitman Agency"; }
- else if(faction == 9) { PlayerInfo[para1][pModel] = 227; PlayerInfo[para1][pRank] = 8; ftext = "News Agency"; }
- else if(faction == 10) { PlayerInfo[para1][pModel] = 61; PlayerInfo[para1][pRank] = 6; ftext = "Taxi Cab Company"; }
- format(string, sizeof(string), "* You have given %s leadership of the %s.", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has given you leadership of the %s.",sendername,ftext);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- PlayerInfo[para1][pLeader] = faction;
- PlayerInfo[para1][pMember] = faction;
- SetPlayerSkin(para1, PlayerInfo[para1][pModel]);
- SetPlayerToTeamColor(playerid);
- OnPlayerSave(para1);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/giverank", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /giverank [playerid/PartOfName] [Number(1-6)]{7DAEFF}");
- return 1;
- }
- new para1;
- new level;
- para1 = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- level = strvalEx(tmp);
- if(level > 7 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "You can't go higher than 7 or lower than 0."); return 1; }
- if(PlayerInfo[playerid][pLeader] >= 1)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (level > 3 && PlayerInfo[para1][pFRank] > 3)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is Rank4+ in a family.");
- return 1;
- }
- if(PlayerInfo[para1][pMember] == PlayerInfo[playerid][pLeader])
- {
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pRank] = level;
- format(string, sizeof(string), "* You have been promoted to a higher Rank by Leader %s.", sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You have given %s Rank %d.", giveplayer,level);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not a member of your Faction / Family.");
- return 1;
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command (Leaders Only).");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/skiptut", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /skiptut [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(TutTime[giveplayerid] <= 0) return SendClientMessage(playerid,COLOR_GREY,"That player is not in the tutorial.");
- CanTalk[giveplayerid] = 1;
- TutTime[giveplayerid] = 0;
- PlayerInfo[giveplayerid][pSafeSpawn] = 1;
- PlayerInfo[giveplayerid][pTut] = 1;
- gOoc[giveplayerid] = 0; gNewbie[giveplayerid] = 0; gNews[giveplayerid] = 0; gFam[giveplayerid] = 0;
- TogglePlayerControllable(giveplayerid, 1);
- PlayerInfo[giveplayerid][pHealth] = 100;
- PlayerInfo[giveplayerid][pArmor] = 0;
- SetPlayerSpawn(giveplayerid);
- SendClientMessage(giveplayerid, COLOR_GRAD1, "You have been forced out of the tutorial.");
- SendClientMessage(giveplayerid, COLOR_YELLOW, "Welcome to Reality Gaming Roleplay, If you have any questions, use /new.");
- SendClientMessage(giveplayerid, COLOR_YELLOW, "For a list of commands type /help. For more information, check out (www.ms-roleplay.tk), have fun!");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sendtols", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sendtols [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pLocal] = 999;
- PlayerInfo[playerid][pVirtualWorld] = 0;
- SetPlayerInterior(giveplayerid, 0);
- SetPlayerVirtualWorld(giveplayerid, 0);
- SetPlayerPos(giveplayerid, 1535.5898,-1706.0223,13.5469);
- PlayerInfo[giveplayerid][pInHouse] = 999;
- PlayerInfo[giveplayerid][pInBiz] = 999;
- SendClientMessage(giveplayerid, COLOR_GRAD1, "You have been teleported by an Administrator.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/gotoint", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 3))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- return 1;
- }
- tmp = strtok(cmdtext,idx);
- if (!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /gotoint [InteriorId] [x] [y] [z]{7DAEFF}");
- return 1;
- }
- new int_id;
- int_id = strval(tmp);
- tmp = strtok(cmdtext,idx);
- if (!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /gotoint [InteriorId] [x] [y] [z]{7DAEFF}");
- return 1;
- }
- new Float:int_x;
- int_x = floatstr(tmp);
- tmp = strtok(cmdtext,idx);
- if (!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /gotoint [InteriorId] [x] [y] [z]{7DAEFF}");
- return 1;
- }
- new Float:int_y;
- int_y = floatstr(tmp);
- tmp = strtok(cmdtext,idx);
- if (!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /gotoint [InteriorId] [x] [y] [z]{7DAEFF}");
- return 1;
- }
- new Float:int_z;
- int_z = floatstr(tmp);
- format(string, sizeof(string), "You have been teleported to interior %d, x=%1.5f, y%=1.5f, z=%1.5f", int_id, int_x, int_y, int_z);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SetPlayerPos(playerid, int_x, int_y, int_z);
- SetPlayerInterior(playerid, int_id);
- return 1;
- }
- if(!strcmp(cmd,"/goto",true) || !strcmp(cmd,"/gotoid",true))
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 2))
- return SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use this command.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE,"USAGE: /goto [PlayerID/PartOfName] or /goto [Place]");
- SendClientMessage(playerid, COLOR_WHITE,"Set your teleport destination with /mark");
- SendClientMessage(playerid, COLOR_LIGHTRED,"mark lsair sfair lvair lspd saints county");
- SendClientMessage(playerid, COLOR_LIGHTRED,"tower chiliad airstrip bayside dam bank pier int1 bloodbowl");
- SendClientMessage(playerid, COLOR_LIGHTRED,"underwater jet battlefield 8track kickstart dirtbike gym");
- SendClientMessage(playerid, COLOR_LIGHTRED,"hitman ss fbi sasp demorgan");
- SendClientMessage(playerid, COLOR_LIGHTRED,"paintball 24/7 vip");
- SendClientMessage(playerid, COLOR_LIGHTRED,"vla grove glen rich");
- SendClientMessage(playerid, COLOR_LIGHTRED,"tune1 tune2 tune3");
- SendClientMessage(playerid, COLOR_LIGHTRED,"mp1 mf1 mp2 mf2 dh df cl sprunk ffc aec");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"disabledvehicles");
- return 1;
- }
- new
- p=1,
- Float:a = GetPlayerFacingAngle(playerid,a),
- destination[64] = " ",
- lookupid = ReturnUser(tmp);
- if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) p=0;
- if(lookupid != INVALID_PLAYER_ID)
- {
- if(lookupid != playerid)
- {
- if(!gPlayerLogged[lookupid])
- return SendClientMessage(playerid, COLOR_WHITE,"That Player hasen't spawned Yet.");
- if(GetPlayerState(lookupid) == PLAYER_STATE_SPECTATING)
- return SendClientMessage(playerid, COLOR_WHITE,"That Player is spectating Someone.");
- if (NoTP[lookupid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't go to that player.");
- return 1;
- }
- }
- new
- Float:x,
- Float:y,
- Float:z,
- i = GetPlayerInterior(lookupid),
- v = GetPlayerVirtualWorld(lookupid);
- if(IsPlayerInAnyVehicle(lookupid))
- {
- GetVehicleZAngle(GetPlayerVehicleID(lookupid),a);
- } else {
- GetPlayerFacingAngle(lookupid,a);
- }
- GetPlayerPos(lookupid,x,y,z);
- Teleport(playerid,x,y+2,z,a,i,v,p);
- PlayerInfo[playerid][pInHouse] = PlayerInfo[lookupid][pInHouse];
- PlayerInfo[playerid][pInBiz] = PlayerInfo[lookupid][pInBiz];
- destination = PlayerName(lookupid);
- }
- else if(!strcmp(tmp,"lspd",true) || !strcmp(tmp,"ls",true))
- {
- destination = "Los Santos Police Department";
- Teleport(playerid,1535.5898,-1706.0223, 15.19,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if(!strcmp(tmp,"dv",true) || !strcmp(tmp,"disabledvehicles",true))
- {
- destination = "Cars we don't use";
- Teleport(playerid,-1353.1062,0.8893,6.0000,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if(!strcmp(tmp,"int1",true))
- {
- destination = "Interior 1";
- Teleport(playerid,1411.1451,-0.5155,1000.9236,a,1,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if(!strcmp(tmp,"gym",true))
- {
- destination = "Los Santos GYM";
- Teleport(playerid,2225.4001,-1724.4464,13.5632,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if(!strcmp(tmp,"lsair",true))
- {
- destination = "Los Santos Airport";
- Teleport(playerid,1934.9127,-2290.6362,13.5469,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if(!strcmp(tmp,"vip",true))
- {
- destination = "The VIP Lounge";
- Teleport(playerid,334.0973,-1519.2019,35.8672,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- }
- else if(!strcmp(tmp,"sfair",true) || !strcmp(tmp,"sf",true))
- {
- destination = "San Fierro Airport";
- Teleport(playerid,-1417.0,-295.8,14.1,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if(!strcmp(tmp,"lvair",true) || !strcmp(tmp,"lv",true))
- {
- destination = "Las Venturas Airport";
- Teleport(playerid,1699.2,1435.1, 10.7,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if(!strcmp(tmp,"jet",true))
- {
- destination = "private jet";
- Teleport(playerid,1.71875, 30.4062, 1200.34,a,1,0,0);
- }
- else if (!strcmp(tmp,"chiliad",true))
- {
- destination = "Mt. Chiliad";
- Teleport(playerid,-2317.5325,-1644.9664,483.7031,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"area51",true))
- {
- destination = "Area 51";
- Teleport(playerid,202.1886,1881.4122,17.2199,37.8779,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"airstrip",true))
- {
- destination = "Desert Airstrip";
- Teleport(playerid,357.5273,2513.8701,16.5856,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"skyscraper",true) || !strcmp(tmp,"sky",true))
- {
- destination = "the Skyscraper";
- Teleport(playerid,1543.9886,-1353.7587,329.4735,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"bayside",true))
- {
- destination = "Bayside Heliport";
- Teleport(playerid,-2252.2944,2335.5396,4.8125,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"underwater",true) || !strcmp(tmp,"under",true))
- {
- destination = "under the sea";
- Teleport(playerid,-1005.3044,657.4559,-39.0847,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"bank",true))
- {
- destination = "The Bank";
- Teleport(playerid,1462.395751,-1016.391174,25.84375,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"pier",true))
- {
- destination = "the fishing pier";
- Teleport(playerid,364.9920,-2059.7288,15.3990,a,0,0,p);
- }
- else if (!strcmp(tmp,"battlefield",true) || !strcmp(tmp,"battle",true))
- {
- destination = "the battlefield";
- Teleport(playerid,-972.4957,1060.9830,1345.6690,a,10,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"dam",true))
- {
- destination = "the Sherman Dam";
- Teleport(playerid,-715.0000,2062.0000,60.0000,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"bloodbowl",true))
- {
- destination = "Bloodbowl Arena";
- Teleport(playerid,-1394.5928,996.4797,1033.8864,a,15,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"8track",true))
- {
- destination = "8-Track Stadium";
- Teleport(playerid,-1406.3815,-262.7644,1043.4290,346.8336,7,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"dirtbike",true))
- {
- destination = "Dirtbike Stadium";
- Teleport(playerid,-1436.2065,-642.5217,1049.5261,167.3703,4,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"kickstart",true))
- {
- destination = "Kickstart Stadium";
- Teleport(playerid,-1447.2618,1604.3374,1052.5220,263.7223,14,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"quarry",true))
- {
- destination = "Hunter Quarry";
- Teleport(playerid,609.8776,867.3369,-42.2692,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"hitman",true))
- {
- destination = "Hitmen Village";
- Teleport(playerid,1564.6329,20.4654,24.1641,335.7327,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"fbi",true))
- {
- destination = "FBI Department";
- Teleport(playerid,1777.4604,-1664.0137,14.4343,174.6930,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"cia",true))
- {
- destination = "CIA Department";
- Teleport(playerid,1040.2537,1019.9399,11.0000,174.6930,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"paintball",true))
- {
- destination = "Paintball Arena";
- Teleport(playerid,1313.7390,-1376.6500,13.6649,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"24/7",true))
- {
- destination = "24/7 Store";
- Teleport(playerid,1314.5610,-913.7150,38.1331,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"tune1",true))
- {
- destination = "Lowrider Tuning Shop";
- Teleport(playerid,2644.9026,-2005.4315,13.3828,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"tune2",true))
- {
- destination = "Los Santos Tuning Shop";
- Teleport(playerid,1025.1035,-1039.0695,31.5661,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"tune3",true))
- {
- destination = "San Fierro Tuning Shop";
- Teleport(playerid,-2702.4583,217.1397,4.1797,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"mp1",true))
- {
- destination = "Material Pickup 1";
- Teleport(playerid,1430.8533,-1327.6997,13.5657,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"mf1",true))
- {
- destination = "Material Factory 1";
- Teleport(playerid,2183.5547,-2279.0374,13.5469,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"mp2",true))
- {
- destination = "Material Pickup 2";
- Teleport(playerid,2397.6951,-2012.1493,13.5537,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"mf2",true))
- {
- destination = "Material Factory 2";
- Teleport(playerid,2289.1423,-1116.5608,37.9766,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"dh",true))
- {
- destination = "Drug House";
- Teleport(playerid,2174.9119,-1669.4958,15.0716,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"df",true))
- {
- destination = "Drug Factory";
- Teleport(playerid,53.8947,-284.2078,1.6548,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"cl",true))
- {
- destination = "Crack Labaratory";
- Teleport(playerid,2360.7083,-1161.9872,27.6096,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"sprunk",true))
- {
- destination = "Sprunk Factory";
- Teleport(playerid,1342.1078,286.7178,19.5615,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"ffc",true))
- {
- destination = "Fossil Fuel Company";
- Teleport(playerid,2648.7205,-2109.0586,13.5469,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"aec",true))
- {
- destination = "Auto Export Company";
- Teleport(playerid,2753.0408,-2433.9844,13.6484,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"sasp",true))
- {
- destination = "San Andreas State Police";
- Teleport(playerid,625.7545,-588.1606,16.7991,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"rich",true))
- {
- destination = "Richmond";
- Teleport(playerid,393.7295,-1241.3582,52.0572,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"county",true))
- {
- destination = "General County Hospital";
- Teleport(playerid,2002.0876,-1448.0087,13.5606,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"saints",true))
- {
- destination = "All Saints Hospital";
- Teleport(playerid,1188.8627,-1330.2386,13.5606,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"glen",true))
- {
- destination = "Glen Park";
- Teleport(playerid,1971.5403,-1147.4678,25.8117,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"grove",true))
- {
- destination = "Grove Street";
- Teleport(playerid,2496.1221,-1670.3540,13.3359,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"vla",true))
- {
- destination = "Varrios Los Aztecas Bar";
- Teleport(playerid,2785.3215,-1610.6592,10.9219,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"demorgan",true))
- {
- destination = "Area 51 - Demorgan";
- Teleport(playerid,202.1886,1881.4122,17.2199,37.8779,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else if (!strcmp(tmp,"tower",true) || !strcmp(tmp,"sky",true))
- {
- destination = "Star Tower";
- Teleport(playerid,1543.9886,-1353.7587,329.4735,a,0,0,p);
- PlayerInfo[playerid][pInHouse] = 999;
- PlayerInfo[playerid][pInBiz] = 999;
- }
- else
- {
- return SendClientMessage(playerid, COLOR_FADE1,"Invalid Destination/Area/ID.");
- }
- GameTextForPlayer(playerid, "~p~Tele~r~ported ~y~!", 5000, 1);
- return 1;
- }
- if(strcmp(cmd, "/setmark", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- for(new i = 0; i < MAX_PLAYERS; i++) { SetPlayerCheckpoint(i, X, Y, Z, 3.0); }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/mark", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- SendClientMessage(playerid, COLOR_GRAD1, "Teleport destination set !");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/gotomark", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can not do that while spectating.");
- return 1;
- }
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- }
- else
- {
- SetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- }
- SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
- SetPlayerInterior(playerid,0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/gethere", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /gethere [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new Float:plocx,Float:plocy,Float:plocz;
- new plo;
- plo = ReturnUser(tmp);
- if(IsPlayerNPC(plo)) return 1;
- if(IsPlayerConnected(plo))
- {
- if(plo != INVALID_PLAYER_ID)
- {
- if(GetPlayerState(plo) == PLAYER_STATE_SPECTATING)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is currently spectating someone.");
- return 1;
- }
- if (NoTP[plo] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't get that player to you.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- new interior = GetPlayerInterior(playerid);
- new vw = GetPlayerVirtualWorld(playerid);
- SetPlayerVirtualWorld(plo,vw);
- SetPlayerInterior(plo,interior);
- GetPlayerPos(playerid, plocx, plocy, plocz);
- PlayerInfo[plo][pInt] = interior;
- PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal];
- PlayerInfo[plo][pVirtualWorld] = PlayerInfo[playerid][pVirtualWorld];
- if(GetPlayerState(plo) == 2)
- {
- new tmpcar = GetPlayerVehicleID(plo);
- SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
- }
- else
- {
- SetPlayerPos(plo,plocx,plocy+2, plocz);
- PlayerInfo[plo][pInHouse] = PlayerInfo[playerid][pInHouse];
- PlayerInfo[plo][pInBiz] = PlayerInfo[playerid][pInBiz];
- }
- SendClientMessage(plo, COLOR_GRAD1, " You have been teleported !");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", plo);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ramps", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- switch(RampToggle[playerid])
- {
- case 0:
- {
- SendClientMessage(playerid,COLOR_GREY,"Ramps enabled!");
- RampToggle[playerid] = 1;
- }
- case 1:
- {
- SendClientMessage(playerid,COLOR_GREY,"Ramps disabled!");
- RampToggle[playerid] = 0;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Cool Kids Only.");
- return 1;
- }
- }
- if(strcmp(cmd, "/setskin", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setskin [playerid/PartOfName] [skin]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerNPC(giveplayerid)) return 1;
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setskin [playerid/PartOfName] [skin]{7DAEFF}");
- return 1;
- }
- new skin;
- skin = strvalEx(tmp);
- if(skin < 0 || skin > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299."); return 1; }
- //if(IsInvalidSkin(skin)) { SendClientMessage(playerid, COLOR_GREY, " Invalid Skin !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- PlayerInfo[giveplayerid][pModel] = skin;
- SetPlayerSkin(giveplayerid, skin);
- format(string, sizeof(string), "That players Skin was set to %d.", skin);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- }
- else
- {
- format(string, sizeof(string), "%d is not an active player.", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/oldcar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- format(string, sizeof(string), "Your old car was Vehicle ID: %d.",gLastCar[playerid]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/givegun", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegun [playerid/PartOfName] [weaponid]{7DAEFF}");
- return 1;
- }
- new playa;
- new gun;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- gun = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Brass Knuckles 2: Golf Club 3: Nite Stick 4: Knife 5: Baseball Bat 6: Shovel 7: Pool Cue 8: Katana 9: Chainsaw");
- SendClientMessage(playerid, COLOR_GRAD2, "10: Purple Dildo 11: Small White Vibrator 12: Large White Vibrator 13: Silver Vibrator 14: Flowers 15: Cane 16: Frag Grenade");
- SendClientMessage(playerid, COLOR_GRAD3, "17: Tear Gas 18: Molotov Cocktail 19: Vehicle Missile 20: Hydra Flare 21: Jetpack 22: 9mm 23: Silenced 9mm 24: Deagle");
- SendClientMessage(playerid, COLOR_GRAD4, "26: Sawnoff Shotgun 27: Combat Shotgun 28: Micro SMG (Mac 10) 29: SMG (MP5) 30: AK-47 31: M4 32: Tec9 33: Country Rifle");
- SendClientMessage(playerid, COLOR_GRAD5, "25: Shotgun 34: Sniper Rifle 35: Rocket Launcher 36: HS Rocket Launcher 37: Flamethrower 38: Minigun 39: Satchel Charge");
- SendClientMessage(playerid, COLOR_GRAD6, "40: Detonator 41: Spraycan 42: Fire Extinguisher 43: Camera 44: Nightvision Goggles 45: Infared Goggles 46: Parachute");
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- return 1;
- }
- if(gun < 1||gun > 46) { SendClientMessage(playerid, COLOR_GRAD1, " Invalid weaponid !"); return 1; }
- if(IsPlayerConnected(playa))
- {
- if(gun == 21)
- {
- SetPlayerSpecialAction(playa,SPECIAL_ACTION_USEJETPACK);
- }
- else
- {
- GivePlayerAdminGun(playa, gun);
- }
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "You have given gun %d to %s.", gun,giveplayer);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/givegunall", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Meelee");
- SendClientMessage(playerid, COLOR_GRAD1, "2: Pistols");
- SendClientMessage(playerid, COLOR_GRAD2, "3: Shotguns");
- SendClientMessage(playerid, COLOR_GRAD2, "4: Rifles");
- SendClientMessage(playerid, COLOR_GRAD2, "5: Machine Guns");
- SendClientMessage(playerid, COLOR_GRAD3, "6: Assault");
- SendClientMessage(playerid, COLOR_GRAD3, "7: Heavy Assault");
- SendClientMessage(playerid, COLOR_GRAD3, "8: Explosives");
- SendClientMessage(playerid, COLOR_GRAD4, "9: Special");
- return 1;
- }
- new type = strvalEx(tmp);
- if(type == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Golf Club");
- SendClientMessage(playerid, COLOR_GRAD1, "2: Nite Stick");
- SendClientMessage(playerid, COLOR_GRAD2, "3: Knife");
- SendClientMessage(playerid, COLOR_GRAD2, "4: Baseball Bat");
- SendClientMessage(playerid, COLOR_GRAD3, "5: Shovel");
- SendClientMessage(playerid, COLOR_GRAD3, "6: Pool Cue");
- SendClientMessage(playerid, COLOR_GRAD4, "7: Katana");
- SendClientMessage(playerid, COLOR_GRAD4, "8: Cane");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) { GivePlayerWeaponAll(2, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(3, 999999); }
- else if(number == 3) { GivePlayerWeaponAll(4, 999999); }
- else if(number == 4) { GivePlayerWeaponAll(5, 999999); }
- else if(number == 5) { GivePlayerWeaponAll(6, 999999); }
- else if(number == 6) { GivePlayerWeaponAll(7, 999999); }
- else if(number == 7) { GivePlayerWeaponAll(8, 999999); }
- else if(number == 8) { GivePlayerWeaponAll(15, 999999); }
- else { return 0; }
- }
- if(type == 2)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Silenced Pistol");
- SendClientMessage(playerid, COLOR_GRAD1, "2: Duel Pistols");
- SendClientMessage(playerid, COLOR_GRAD2, "3: Desert Eagle");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) { GivePlayerWeaponAll(23, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(22, 999999); }
- else if(number == 3) { GivePlayerWeaponAll(24, 999999); }
- else { return 0; }
- }
- if(type == 3)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Shotgun");
- SendClientMessage(playerid, COLOR_GRAD1, "2: SPAS12");
- SendClientMessage(playerid, COLOR_GRAD2, "3: Sawnoff Shotgun");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) { GivePlayerWeaponAll(25, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(27, 999999); }
- else if(number == 3) { GivePlayerWeaponAll(26, 999999); }
- else { return 0; }
- }
- if(type == 4)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Country Rifle");
- SendClientMessage(playerid, COLOR_GRAD1, "2: Sniper Rifle");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) {GivePlayerWeaponAll(33, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(34, 999999); }
- else { return 0; }
- }
- if(type == 5)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Micro SMG");
- SendClientMessage(playerid, COLOR_GRAD1, "2: Tec9");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) { GivePlayerWeaponAll(28, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(32, 999999); }
- else { return 0; }
- }
- if(type == 6)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: MP5");
- SendClientMessage(playerid, COLOR_GRAD1, "2: AK47");
- SendClientMessage(playerid, COLOR_GRAD2, "3: M4");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) { GivePlayerWeaponAll(29, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(30, 999999); }
- else if(number == 3) { GivePlayerWeaponAll(31, 999999); }
- else { return 0; }
- }
- if(type == 7)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Rocket Launcher");
- SendClientMessage(playerid, COLOR_GRAD1, "2: HS Rocket Launcher");
- SendClientMessage(playerid, COLOR_GRAD2, "3: Flamethrower");
- SendClientMessage(playerid, COLOR_GRAD2, "4: Minigun");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) { GivePlayerWeaponAll(35, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(36, 999999); }
- else if(number == 3) { GivePlayerWeaponAll(37, 999999); }
- else if(number == 4) { GivePlayerWeaponAll(38, 999999); }
- else { return 0; }
- }
- if(type == 8)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Molotovs");
- SendClientMessage(playerid, COLOR_GRAD1, "2: Grenades");
- SendClientMessage(playerid, COLOR_GRAD2, "3: Tear Gas");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) { GivePlayerWeaponAll(18, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(16, 999999); }
- else if(number == 3) { GivePlayerWeaponAll(17, 999999); }
- else { return 0; }
- }
- if(type == 9)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Spraycan");
- SendClientMessage(playerid, COLOR_GRAD2, "2: Fire Extinguisher");
- SendClientMessage(playerid, COLOR_GRAD2, "3: Nightvision");
- SendClientMessage(playerid, COLOR_GRAD3, "4: Infrared");
- SendClientMessage(playerid, COLOR_GRAD3, "5: Flowers");
- SendClientMessage(playerid, COLOR_GRAD4, "6: Brass Knuckles");
- SendClientMessage(playerid, COLOR_GRAD4, "7: Parachute");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) { GivePlayerWeaponAll(41, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(42, 999999); }
- else if(number == 3) { GivePlayerWeaponAll(44, 999999); }
- else if(number == 4) { GivePlayerWeaponAll(45, 999999); }
- else if(number == 5) { GivePlayerWeaponAll(14, 999999); }
- else if(number == 6) { GivePlayerWeaponAll(1, 999999); }
- else if(number == 7) { GivePlayerWeaponAll(46, 999999); }
- else { return 0; }
- }
- if(type == 10)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "1: Purple Dildo");
- SendClientMessage(playerid, COLOR_GRAD1, "2: Small White Vibrator");
- SendClientMessage(playerid, COLOR_GRAD2, "3: Large White Vibrator");
- SendClientMessage(playerid, COLOR_GRAD2, "4: Silver Vibrator");
- SendClientMessage(playerid, COLOR_GRAD3, "5: Satchel Charge");
- SendClientMessage(playerid, COLOR_GRAD3, "6: Detonator");
- SendClientMessage(playerid, COLOR_GRAD4, "7: Fake Pistol");
- return 1;
- }
- new number = strvalEx(tmp);
- if(number == 1) { GivePlayerWeaponAll(10, 999999); }
- else if(number == 2) { GivePlayerWeaponAll(11, 999999); }
- else if(number == 3) { GivePlayerWeaponAll(12, 999999); }
- else if(number == 4) { GivePlayerWeaponAll(13, 999999); }
- else if(number == 5) { GivePlayerWeaponAll(39, 999999); }
- else if(number == 6) { GivePlayerWeaponAll(40, 999999); }
- else if(number == 7) { GivePlayerWeaponAll(47, 999999); }
- else { return 0; }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/joinevent", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(ActiveEvent == 1)
- {
- if(EventLocked == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " The event is currently locked !");
- return 1;
- }
- if(IsAtEvent[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You have already joined the event !");
- return 1;
- }
- if(EventX == 0.0 && EventY == 0.0 && EventZ == 0.0)
- {
- SendClientMessage(playerid, COLOR_GREY, " The event spawn has not been set !");
- return 1;
- }
- SetPlayerPos(playerid, EventX, EventY, EventZ);
- IsAtEvent[playerid] = 1;
- SetPlayerVirtualWorld(playerid, EventWorld);
- SetPlayerInterior(playerid, EventInt);
- SetPlayerHealth(playerid, EventHP);
- SetPlayerArmour(playerid, EventArmour);
- ResetPlayerAdminWeaponsEx(playerid);
- ResetPlayerWeapons(playerid);
- ClearGuns(playerid);
- GivePlayerAdminGun(playerid, EventWeapon1);
- GivePlayerAdminGun(playerid, EventWeapon2);
- GivePlayerAdminGun(playerid, EventWeapon3);
- GivePlayerAdminGun(playerid, EventWeapon4);
- GivePlayerAdminGun(playerid, EventWeapon5);
- if(EventJoinText == 1)
- {
- GameTextForPlayer(playerid, EventText, 5000, 0);
- }
- SendClientMessage(playerid, COLOR_WHITE, "Event: You have been teleported to the event. Follow the admin order.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " There are currently no events active !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/announceevent", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(ActiveEvent == 1)
- {
- SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Event has been started. /joinevent to participate.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to start the event first (/startevent).");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/startevent", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(ActiveEvent == 0)
- {
- if(EventX == 0.0 && EventY == 0.0 && EventZ == 0.0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The event spawn has not been set.");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SendClientMessage(playerid, COLOR_WHITE, "You have started an event, use /announceevent to announce it to the server.");
- ActiveEvent = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "An event is already active, use /endevent to finish the current event.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/lockevent", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(ActiveEvent == 1)
- {
- EventLocked = 1;
- SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Administrator has locked the event.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "There are currently no events active.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/quitevent", true) == 0)
- {
- if(IsAtEvent[playerid] != 0)
- {
- SetPlayerWeapons(playerid);
- IsAtEvent[playerid] = 0;
- ResetPlayerAdminWeaponsEx(playerid);
- }
- return 1;
- }
- if(strcmp(cmd, "/endevent", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(ActiveEvent == 1)
- {
- EventX = 0.0;
- EventY = 0.0;
- EventZ = 0.0;
- EventInt = 0;
- EventWorld = 0;
- EventHP = 100;
- EventArmour = 0;
- ActiveEvent = 0;
- EventLocked = 0;
- EventWeapon1 = 0;
- EventWeapon2 = 0;
- EventWeapon3 = 0;
- EventWeapon4 = 0;
- EventWeapon5 = 0;
- EventJoinText = 0;
- format(EventText, sizeof(EventText), "None");
- SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Event has been finished !");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsAtEvent[i] == 1)
- {
- SetPlayerWeapons(i);
- IsAtEvent[i] = 0;
- ResetPlayerAdminWeaponsEx(i);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " There are currently no events active !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/seteventinfo", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(ActiveEvent == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [name]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Jointext, Health, Armor, Gun1, Gun2, Gun3, Gun4, Gun5");
- return 1;
- }
- if(strcmp(tmp,"jointext",true) == 0)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[128];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo jointext [text]{7DAEFF}");
- return 1;
- }
- format(EventText, sizeof(EventText), "%s", result);
- SendClientMessage(playerid, COLOR_WHITE, "You have been set the event jointext to the following.");
- GameTextForPlayer(playerid, EventText, 5000, 0);
- EventJoinText = 1;
- return 1;
- }
- if(strcmp(tmp,"health",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [health] [amount]{7DAEFF}");
- return 1;
- }
- new ehp = strvalEx(tmp);
- if(ehp < 1 || ehp > 100) { SendClientMessage(playerid, COLOR_GREY, "Health can't be below 1 or above 100."); return 1; }
- EventHP = ehp;
- format(string, sizeof(string), "You have been set the event health to %d.", ehp);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- if(strcmp(tmp,"armor",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [armor] [amount]{7DAEFF}");
- return 1;
- }
- new earmor = strvalEx(tmp);
- if(earmor < 0 || earmor > 100) { SendClientMessage(playerid, COLOR_GREY, " Armor can't be below 0 or above 100 !"); return 1; }
- EventArmour = earmor;
- format(string, sizeof(string), "You have been set the event armor to %d.", earmor);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- if(strcmp(tmp,"gun1",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun1] [gunid]{7DAEFF}");
- return 1;
- }
- new egun = strvalEx(tmp);
- EventWeapon1 = egun;
- format(string, sizeof(string), "You have been set the event gun1 to %d.", egun);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- if(strcmp(tmp,"gun2",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun2] [gunid]{7DAEFF}");
- return 1;
- }
- new egun = strvalEx(tmp);
- EventWeapon2 = egun;
- format(string, sizeof(string), "You have been set the event gun2 to %d.", egun);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- if(strcmp(tmp,"gun3",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun3] [gunid]{7DAEFF}");
- return 1;
- }
- new egun = strvalEx(tmp);
- EventWeapon3 = egun;
- format(string, sizeof(string), "You have been set the event gun3 to %d.", egun);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- if(strcmp(tmp,"gun4",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun4] [gunid]{7DAEFF}");
- return 1;
- }
- new egun = strvalEx(tmp);
- EventWeapon4 = egun;
- format(string, sizeof(string), "You have been set the event gun4 to %d.", egun);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- if(strcmp(tmp,"gun5",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun5] [gunid]{7DAEFF}");
- return 1;
- }
- new egun = strvalEx(tmp);
- EventWeapon5 = egun;
- format(string, sizeof(string), "You have been set the event gun5 to %d.", egun);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " An event is already active, use /endevent to finish the current event !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/seteventpos", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(ActiveEvent == 0)
- {
- GetPlayerPos(playerid, EventX, EventY, EventZ);
- EventInt = GetPlayerInterior(playerid);
- EventWorld = GetPlayerVirtualWorld(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event position.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " An event is already active, use /endevent to finish the current event.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/hoseject", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /hoseject [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(HospitalTime[giveplayerid])
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- HospitalTime[giveplayerid] = 49;
- SendClientMessage(giveplayerid, COLOR_GREY, "You have been ejected from hospital !");
- format(string, sizeof(string), "Info: %s has ejected %s from hospital.", sendername, giveplayer);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That player is not in hospital.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/nohospital", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(!NoHospital[playerid])
- {
- NoHospital[playerid] = 1;
- SendClientMessage(playerid, COLOR_GREY, "You have enabled no hospital mode.");
- }
- else
- {
- NoHospital[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREY, "You have disabled no hospital mode.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(!strcmp(cmd, "/setvhp", true))
- {
- tmp = strtok(cmdtext, idx);
- if(!(PlayerInfo[playerid][pAdmin] >= 3))
- return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /sethp [vehicle id] [health]{7DAEFF}");
- new vid = strval(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /sethp [vehicle id] [health]");
- if(!GetVehicleModel(vid))
- return SendClientMessage(playerid, COLOR_GRAD2, "Invalid vehicle ID. Make sure the vehicle ID exists!");
- new vhealth = strval(tmp);
- SetVehicleHealth(vid,vhealth);
- return 1;
- }
- if(strcmp(cmd, "/sethp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sethp [playerid/PartOfName] [health]{7DAEFF}");
- return 1;
- }
- new playa;
- new health;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sethp [playerid/PartOfName] [health]{7DAEFF}");
- return 1;
- }
- health = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[playa][pAdmin] > PlayerInfo[playerid][pAdmin] && health == 0)
- {
- format(string, sizeof(string), "Info: %s was killed, reason: Attempting to set a higher admin's health to 0.", PlayerName(playerid));
- ABroadCast(COLOR_LIGHTRED, string, 1);
- SetPlayerHealth(playerid,0);
- return 1;
- }
- SetPlayerHealth(playa, health);
- format(string, sizeof(string), "You have set %s's health to %d !",PlayerName(playa),health);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setarmor", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setarmor [playerid/PartOfName] [armor]{7DAEFF}");
- return 1;
- }
- new playa;
- new armor;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sethp [playerid/PartOfName] [armor]{7DAEFF}");
- return 1;
- }
- armor = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- SetPlayerArmour(playa, armor);
- format(string, sizeof(string), "You have set %s's armor to %d.", giveplayer,armor);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setanim", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setanim [playerid/PartOfName] [1-8]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setanim [playerid/PartOfName] [1-9]{7DAEFF}");
- return 1;
- }
- new anim;
- anim = strvalEx(tmp);
- switch (anim)
- {
- case 1:
- {
- ApplyAnimation(giveplayerid,"PARACHUTE","PARA_decel_O",4.0,0,1,1,1,1);
- }
- case 2:
- {
- ApplyAnimation(giveplayerid,"PARACHUTE","PARA_Rip_Land_O",4.0,0,1,1,1,1);
- }
- case 3:
- {
- ApplyAnimation(giveplayerid,"PARACHUTE","PARA_Rip_Loop_O",4.0,0,1,1,1,1);
- }
- case 4:
- {
- ApplyAnimation(giveplayerid,"PED","DOOR_LHinge_O",4.0,0,1,1,1,1);
- }
- case 5:
- {
- ApplyAnimation(giveplayerid,"PED","DOOR_RHinge_O",4.0,0,1,1,1,1);
- }
- case 6:
- {
- ApplyAnimation(giveplayerid,"PED","run_left",4.0,1,1,1,1,1);
- }
- case 7:
- {
- ApplyAnimation(giveplayerid,"PED","run_right",4.0,1,1,1,1,1);
- }
- case 8:
- {
- ApplyAnimation(giveplayerid,"ROB_BANK","CAT_Safe_Open_O",4.0,0,1,1,1,1);
- }
- case 9:
- {
- ApplyAnimation(giveplayerid,"GHANDS","LHGsign1",4.0,0,1,1,1,1);
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, "Animation can't be below 1 or above 8.");
- return 1;
- }
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/spawn", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] <= 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
- return 1;
- }
- ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicles","Heavy Trucks\nTrucks\n2Doors\n4Doors\nAircraft\nBoats\nTrailers\nGovernment\nRC\nTransportation\nSports\nBikes\nSpecial", "Spawn", "Cancel");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/vehmenu", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- ShowPlayerDialog(playerid, VEHMENU1, DIALOG_STYLE_LIST, "Vehicle Mod Menu","Car Color\nModifications","Accept","Cancel");
- }
- }
- if(strcmp(cmd, "/veh", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 4))
- return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /veh [vehicle name/ID] [color1(optional)] [color2(optional)] [respawnable(optional)]{7DAEFF}");
- new car = ReturnVehicleModelID(tmp);
- if(!car)
- return SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle model name/ID.");
- new color1, color2;
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- color1 = -1;
- color2 = -1;
- }
- else
- {
- color1 = strval(tmp);
- if(color1 < -1 || color1 > 200)
- return SendClientMessage(playerid, COLOR_GREY, " Enter a valid color [0-200]");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) color2 = color1;
- else color2 = strval(tmp);
- if(color2 < -1 || color2 > 200)
- return SendClientMessage(playerid, COLOR_GREY, " Enter a valid color [0-200]");
- }
- if(IsPlayerInAnyVehicle(playerid))
- RemovePlayerFromVehicle(playerid);
- new Float:X, Float:Y, Float:Z, Float:A;
- GetPlayerPos(playerid, X,Y,Z);
- GetPlayerFacingAngle(playerid,A);
- new carid = CreateVehicle(car, X,Y,Z,A, color1, color2, -1);
- ChangeVehiclePaintjob(carid, 3);
- tmp = strtok(cmdtext, idx);
- if(strval(tmp) != 1)
- {
- gDestroyVehicle[carid] = 1;
- }
- gCarLock[carid] = 0;
- PutPlayerInVehicle(playerid,carid,0);
- LinkVehicleToInterior(carid,GetPlayerInterior(playerid));
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] != carid)
- {
- CreatedCars[i] = carid;
- break;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/listcars", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 4))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
- return 1;
- }
- new createdcarcount;
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] != INVALID_VEHICLE_ID)
- {
- createdcarcount = 1;
- format(string,sizeof(string),"(%d) %s",CreatedCars[i],vehName[GetVehicleModel(CreatedCars[i])-400]);
- SendClientMessage(playerid,COLOR_GREY,string);
- }
- }
- if(createdcarcount != 1)
- {
- SendClientMessage(playerid,COLOR_GREY,"No vehicles created.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/paintcar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle.");
- return 1;
- }
- if(PlayerInfo[playerid][pSpraycan] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your Spraycan is empty.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /paintcar [0-5]");
- return 1;
- }
- new vehicle = GetPlayerVehicleID(playerid);
- new paintjob;
- paintjob = strvalEx(tmp);
- if(paintjob < 0||paintjob > 5) { SendClientMessage(playerid, COLOR_GREY, "Paint job can't be below 0 or above 5."); return 1; }
- ChangeVehiclePaintjob(vehicle,paintjob);
- CarInfo[vehicle][tPaintjob] = paintjob;
- PlayerInfo[playerid][pSpraycan]--;
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- }
- return 1;
- }
- if(strcmp(cmd, "/colorcar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle.");
- return 1;
- }
- if(PlayerInfo[playerid][pSpraycan] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your Spraycan is empty.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /colorcar [0-126] [0-126]{7DAEFF}");
- return 1;
- }
- new color1;
- color1 = strvalEx(tmp);
- if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "Color can't be below 0 or above 126 ."); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /colorcar [0-126] [0-126]{7DAEFF}");
- return 1;
- }
- new vehicle = GetPlayerVehicleID(playerid);
- if (CarInfo[vehicle][tFaction] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't color this vehicle.");
- return 1;
- }
- new color2;
- color2 = strvalEx(tmp);
- if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "Color can't be below 0 or above 126 !"); return 1; }
- CarInfo[vehicle][tColorOne] = color1;
- CarInfo[vehicle][tColorTwo] = color2;
- ChangeVehicleColor(vehicle, color1, color2);
- PlayerInfo[playerid][pSpraycan]--;
- PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
- }
- return 1;
- }
- if(strcmp(cmd, "/fixveh", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- RepairVehicle(GetPlayerVehicleID(playerid));
- SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
- SendClientMessage(playerid, COLOR_GREY, "You have Fixed your Vehicle.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/destroycar", true)== 0)
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- new currentVehicle = GetPlayerVehicleID(playerid);
- if(currentVehicle == 0) return SendClientMessage(playerid,COLOR_GREY, "You must be in a vehicle to destroy it.");
- new check;
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] == currentVehicle)
- {
- check = 1;
- CreatedCars[i] = INVALID_VEHICLE_ID;
- break;
- }
- }
- if(!check) return SendClientMessage(playerid, COLOR_GRAD1, "You may only destroy a vehicle that was created with /veh.");
- gDestroyVehicle[currentVehicle] = 1;
- SetVehicleToRespawn(currentVehicle);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- if(strcmp(cmd, "/destroycars", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new vehcount = 0;
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] != INVALID_VEHICLE_ID)
- {
- vehcount++;
- gDestroyVehicle[CreatedCars[i]] = 1;
- SetVehicleToRespawn(CreatedCars[i]);
- CreatedCars[i] = INVALID_VEHICLE_ID;
- }
- }
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/weather", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /weather [weatherid]");
- return 1;
- }
- new weather;
- weather = strvalEx(tmp);
- if(weather < 0||weather > 45) { SendClientMessage(playerid, COLOR_GREY, "Weather ID can't be below 0 or above 45."); return 1; }
- SetPlayerWeather(playerid, weather);
- SendClientMessage(playerid, COLOR_GREY, "Weather has been set.");
- }
- return 1;
- }
- if(strcmp(cmd, "/weatherall", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /weatherall [weatherid]{7DAEFF}");
- return 1;
- }
- new weather;
- weather = strvalEx(tmp);
- if(weather < 0||weather > 45) { SendClientMessage(playerid, COLOR_GREY, "Weather ID can't be below 0 or above 45."); return 1; }
- SetWeather(weather);
- SendClientMessage(playerid, COLOR_GREY, "Weather has been set for everyone.");
- }
- return 1;
- }
- if(strcmp(cmd, "/sethpall", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sethpall [health]{7DAEFF}");
- return 1;
- }
- new health;
- health = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- SetPlayerHealth(i, health);
- }
- }
- format(string, sizeof(string), "You have set everyones health to %d.",health);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setarmorall", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setarmorall [armor]{7DAEFF}");
- return 1;
- }
- new armor;
- armor = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- SetPlayerArmour(i, armor);
- }
- }
- format(string, sizeof(string), "You have set everyones armor to %d.",armor);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fixvehall", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- for(new i = 0; i < MAX_VEHICLES; i++)
- {
- RepairVehicle(i);
- SetVehicleHealth(i, 1000.0);
- }
- SendClientMessage(playerid, COLOR_GREY, "All vehicles fixed.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/savechars", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- OnPlayerSave(i);
- }
- }
- SaveBiz();
- SaveHouse();
- SaveCar();
- SendClientMessage(playerid, COLOR_GREY, "All Players, Houses and Cars saved.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/givenos", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(IsValidNosVehicle(vehid))
- {
- AddVehicleComponent(vehid, 1010); //10x nos
- SendClientMessage(playerid, COLOR_GREY, "10x nos added to the vehicle.");
- }
- else
- {
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/givenosall", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- for(new i = 0; i < MAX_VEHICLES; i++)
- {
- if(IsValidNosVehicle(i))
- {
- AddVehicleComponent(i, 1010); //10x nos
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "10x nos added to the vehicle.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setname", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setname [playerid/PartOfName] [name]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerNPC(giveplayerid)) return 1;
- if(PlayerInfo[playerid][pAdmin] >=4)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setname [playerid/PartOfName] [name]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "%s.ini", tmp);
- if(fexist(string))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That name is already registered.");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- // PlayerInfo[giveplayerid][pDisabled] = 1;
- // OnPlayerSave(giveplayerid);
- SetPlayerName(giveplayerid, tmp);
- // PlayerInfo[giveplayerid][pDisabled] = 0;
- format(string, sizeof(string), "%s.ini", giveplayer);
- fremove(string);
- OnPlayerSave(giveplayerid); // save player (in case server has a restart and fucks up their name)
- format(string, sizeof(string), " You have renamed %s to %s !", giveplayer, tmp);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "Your name has been changed from %s to %s.", giveplayer, tmp);
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "%s has renamed %s to %s.", sendername, giveplayer, tmp);
- if(PlayerInfo[giveplayerid][pCarKey1] > 0)
- {
- strmid(CarInfo[PlayerInfo[giveplayerid][pCarKey1]][tOwner], tmp, 0, strlen(tmp), 255);
- }
- if(PlayerInfo[giveplayerid][pCarKey2] > 0)
- {
- strmid(CarInfo[PlayerInfo[giveplayerid][pCarKey2]][tOwner], tmp, 0, strlen(tmp), 255);
- }
- if(PlayerInfo[giveplayerid][pHouseKey] < 999)
- {
- strmid(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hOwner], tmp, 0, strlen(tmp), 255);
- DestroyDynamic3DTextLabel(HouseLabel[PlayerInfo[giveplayerid][pHouseKey]]);
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hOwner], 0, strlen(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hOwner]), 255);
- strmid(name, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hName], 0, strlen(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hName]), 255);
- if(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hRentable] == 0)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLevel],owner);
- HouseLabel[PlayerInfo[giveplayerid][pHouseKey]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hRentable] == 1)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLevel],owner,HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hRent]);
- HouseLabel[PlayerInfo[giveplayerid][pHouseKey]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- }
- if(PlayerInfo[giveplayerid][pBizKey] < 999)
- {
- strmid(BizInfo[PlayerInfo[giveplayerid][pBizKey]][bOwner], tmp, 0, strlen(tmp), 255);
- DestroyDynamic3DTextLabel(BizLabel[PlayerInfo[giveplayerid][pBizKey]]);
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, BizInfo[PlayerInfo[giveplayerid][pBizKey]][bOwner], 0, strlen(BizInfo[PlayerInfo[giveplayerid][pBizKey]][bOwner]), 255);
- strmid(name, BizInfo[PlayerInfo[giveplayerid][pBizKey]][bName], 0, strlen(BizInfo[PlayerInfo[giveplayerid][pBizKey]][bName]), 255);
- format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[PlayerInfo[giveplayerid][pBizKey]][bFee]);
- BizLabel[PlayerInfo[giveplayerid][pBizKey]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[PlayerInfo[giveplayerid][pBizKey]][bLocation_x], BizInfo[PlayerInfo[giveplayerid][pBizKey]][bLocation_y], BizInfo[PlayerInfo[giveplayerid][pBizKey]][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[PlayerInfo[giveplayerid][pBizKey]][bPVW], BizInfo[PlayerInfo[giveplayerid][pBizKey]][bPInt], -1, 100.0);
- }
- StatLog(string);
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/load", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /load [name]");
- SendClientMessage(playerid, COLOR_GREY,"Available names: Families");
- return 1;
- }
- if(strcmp(tmp,"families",true) == 0)
- {
- LoadFamilies();
- SendClientMessage(playerid, COLOR_GRAD1, "Families/families.cfg has successfully been reloaded !");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid load name.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setmoney", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setmoney [playerid/PartOfName] [amount]");
- return 1;
- }
- new playa;
- new money;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setmoney [playerid/PartOfName] [amount]");
- return 1;
- }
- money = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- ResetPlayerMoney(playa);
- PlayerInfo[playa][pCash] = money;
- GivePlayerMoney(playa, money);
- format(string, sizeof(string), "You have set %s's money to $%d !", giveplayer,money);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/givemoney", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givemoney [playerid/PartOfName] [money]{7DAEFF}");
- return 1;
- }
- new playa;
- new money;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givemoney [playerid/PartOfName] [money]{7DAEFF}");
- return 1;
- }
- money = strvalEx(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- PlayerInfo[playa][pCash] = PlayerInfo[playa][pCash]+money;
- GivePlayerMoney(playa,money);
- format(string, sizeof(string), "You have given %s $%d.", giveplayer,money);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setcolor", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setcolor [Playerid/PartOfName] [color]");
- return 1;
- }
- new playa;
- new colornr;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setcolor [Playerid/PartOfName] [color]");
- return 1;
- }
- colornr = GetColorCode2(tmp);
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- SetPlayerColor(playa, colornr);
- format(string, sizeof(string), "* You have changed %s's name color.", PlayerName(playa));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/countdown", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- SetTimer("CountDownCheck", 1, 0);
- return 1;
- }
- SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use that command.");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd,"/watch",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- new x_place[128];
- x_place = strtok(cmdtext, idx);
- if(!strlen(x_place))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /watch [place]{7DAEFF}");
- SendClientMessage(playerid, COLOR_LIGHTRED, "Credits to Zhao.");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Places: Gym, LSPD, Allsaints, County, Grove, TGB, Bank, Motel, Jail, DeMorgan, Off");
- return 1;
- }
- else if(strcmp(x_place,"gym",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching Gym.");
- SetPlayerPos(playerid, 2212.61, -1730.57, 1000.0);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2208.67, -1733.71, 27.48);
- SetPlayerCameraLookAt(playerid, 2225.25, -1723.1, 13.56);
- return 1;
- }
- else if(strcmp(x_place,"lspd",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching the LSPD.");
- SetPlayerPos(playerid, 1504.23, -1700.17, 1000.0);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid, 0);
- SetPlayerCameraPos(playerid, 1500.21, -1691.75, 38.38);
- SetPlayerCameraLookAt(playerid, 1541.46, -1676.17, 13.55);
- return 1;
- }
- else if(strcmp(x_place,"allsaints",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching All Saints Hospital.");
- SetPlayerPos(playerid, 1201.12, -1324, 1000.0);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1207.39, -1294.71, 24.61);
- SetPlayerCameraLookAt(playerid, 1181.72, -1322.65, 13.58);
- return 1;
- }
- else if(strcmp(x_place,"county",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching County General Hospital.");
- SetPlayerPos(playerid, 1989.24, -1461.38, 1000.0);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1981.79, -1461.55, 31.93);
- SetPlayerCameraLookAt(playerid, 2021.23, -1427.48, 13.97);
- return 1;
- }
- else if(strcmp(x_place,"grove",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching Grove Street.");
- SetPlayerPos(playerid, 2489.09, -1669.88, 1000.0);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2459.82, -1652.68, 26.45);
- SetPlayerCameraLookAt(playerid, 2489.09, -1669.88, 13.34);
- }
- else if(strcmp(x_place,"tgb",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching Ten Green Bottles.");
- SetPlayerPos(playerid, 2319.09, -1650.90, 1000.0);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2336.31, -1664.76, 24.98);
- SetPlayerCameraLookAt(playerid, 2319.09, -1650.90, 14.16);
- return 1;
- }
- else if(strcmp(x_place,"bank",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching the Los Santos Bank.");
- SetPlayerPos(playerid, 1466.24, -1023.05, 1000.0);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1502.28, -1044.47, 31.19);
- SetPlayerCameraLookAt(playerid, 1466.24, -1023.05, 23.83);
- return 1;
- }
- else if(strcmp(x_place,"motel",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching the Jefferson Motel.");
- SetPlayerPos(playerid, 2215.73, -1163.39, 1000.0);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2203.05, -1152.81, 37.03);
- SetPlayerCameraLookAt(playerid, 2215.73, -1163.39, 25.73);
- return 1;
- }
- else if(strcmp(x_place,"jail",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching the LSPD jail cell.");
- SetPlayerPos(playerid, 264.75, 78.32, 2000.0);
- SetPlayerInterior(playerid, 6);
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 262.64, 75.77, 1003.31);
- SetPlayerCameraLookAt(playerid, 264.75, 78.32, 1001.04);
- return 1;
- }
- else if(strcmp(x_place,"demorgan",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are now watching Fort DeMorgan.");
- SetPlayerPos(playerid, 195.56, 1873.53, 10000.0);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 81.95, 1953.36, 66.69);
- SetPlayerCameraLookAt(playerid, 195.56, 1873.53, 17.64);
- return 1;
- }
- else if(strcmp(x_place,"off",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are no longer watching anywhere.");
- SetPlayerPos(playerid, 1520.50, -1674.70, 13.55);
- SetPlayerInterior(playerid, 0);
- SetPlayerFacingAngle(playerid, 270.0);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,1);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/slap", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /slap [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- new Float:slx, Float:sly, Float:slz;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >=2)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playa][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- format(string, sizeof(string), "Info: %s was slapped, reason: Attempting to slap a higher admin.", sendername);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+5);
- PlayerPlaySound(playerid, 1130, slx, sly, slz+5);
- return 1;
- }
- GetPlayerPos(playa, slx, sly, slz);
- SetPlayerPos(playa, slx, sly, slz+5);
- PlayerPlaySound(playa, 1130, slx, sly, slz+5);
- format(string, sizeof(string), "Info: %s was slapped by %s.",giveplayer ,sendername);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/blowup", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /blowup [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- new Float:slx, Float:sly, Float:slz;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >=4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerPos(playa, slx, sly, slz);
- CreateExplosion(slx, sly, slz, 6, 10.0);
- format(string, sizeof(string), "You have blown up %s !", giveplayer);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fartbomb", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fartbomb [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- new Float:slx, Float:sly, Float:slz;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >=4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerPos(playa, slx, sly, slz);
- CreateExplosion(slx, sly, slz-10.0, 6, 10.0);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/mask", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] != 8 && PlayerInfo[playerid][pMember] != 7 && PlayerInfo[playerid][pMember] != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a member of the CIA / Hitman Agency / FBI.");
- return 1;
- }
- if(HasBoughtMask[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a mask.");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 0)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- ShowPlayerNameTagForPlayer(i, playerid, 0);
- }
- }
- PlayerInfo[playerid][pMask] = 1;
- format(string, sizeof(string), "* Stranger takes out a mask and puts it on.");
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(PlayerInfo[playerid][pMask] == 1)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- ShowPlayerNameTagForPlayer(i, playerid, 1);
- }
- }
- PlayerInfo[playerid][pMask] = 0;
- format(string, sizeof(string), "* Stranger takes off their mask and put it away.");
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/listmasked", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Masked online players:");
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMask] == 1)
- {
- format(string, sizeof(string), "- %s", PlayerName(i));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/listmuted", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Muted Players:");
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMuted] == 1)
- {
- format(string, sizeof(string), "- %s", PlayerName(i));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/freezeplayers", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 2))
- {
- return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use that command.");
- }
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GRAD2,"{7DAEFF}USAGE: /freezeplayers [distance]{7DAEFF}");
- new radius = strval(tmp);
- SendClientMessage(playerid,COLOR_YELLOW,"You have frozen all players within that radius.");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(playerid != i && IsPlayerConnected(i))
- {
- new Float:distance = GetDistanceBetweenPlayers(playerid,i);
- if(distance > 0 && distance <= radius)
- {
- PlayerFrozen[i] = 1;
- TogglePlayerControllable(i,0);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/unfreezeplayers", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 2))
- {
- return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
- }
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GRAD2,"{7DAEFF}USAGE: /unfreezeplayers [distance]{7DAEFF}");
- new radius = strval(tmp);
- SendClientMessage(playerid,COLOR_YELLOW,"You have unfrozen all players within that radius.");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(playerid != i && IsPlayerConnected(i))
- {
- new Float:distance = GetDistanceBetweenPlayers(playerid,i);
- if(distance > 0 && distance <= radius)
- {
- PlayerFrozen[i] = 0;
- TogglePlayerControllable(i,1);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/muteplayers", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 2))
- {
- return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
- }
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GRAD2,"{7DAEFF}USAGE: /muteplayers [distance]{7DAEFF}");
- new radius = strval(tmp);
- SendClientMessage(playerid,COLOR_YELLOW,"You have muted all players within that radius.");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(playerid != i && IsPlayerConnected(i))
- {
- new Float:distance = GetDistanceBetweenPlayers(playerid,i);
- if(distance > 0 && distance <= radius)
- {
- PlayerInfo[i][pMuted] = 1;
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/unmuteplayers", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 2))
- {
- return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
- }
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GRAD2,"{7DAEFF}USAGE: /unmuteplayers [distance]{7DAEFF}");
- new radius = strval(tmp);
- SendClientMessage(playerid,COLOR_YELLOW,"You have unmuted all players within that radius.");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(playerid != i && IsPlayerConnected(i))
- {
- new Float:distance = GetDistanceBetweenPlayers(playerid,i);
- if(distance > 0 && distance <= radius)
- {
- PlayerInfo[i][pMuted] = 0;
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/mute", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /mute [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playa][pMuted] == 0)
- {
- PlayerInfo[playa][pMuted] = 1;
- format(string, sizeof(string), "Info: %s was silenced by %s.",giveplayer ,sendername);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- else
- {
- PlayerInfo[playa][pMuted] = 0;
- format(string, sizeof(string), "Info: %s was unsilenced by %s.",giveplayer ,sendername);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/nmute", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /nmute [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playa][pNewbieMuted] == 0)
- {
- PlayerInfo[playa][pNewbieMuted] = 1;
- format(string, sizeof(string), "Info: %s was muted from newbie chat by %s.",giveplayer ,sendername);
- ABroadCast(COLOR_LIGHTRED,string,1);
- SendHelperMessage(COLOR_LIGHTRED, string);
- }
- else
- {
- PlayerInfo[playa][pNewbieMuted] = 0;
- format(string, sizeof(string), "Info: %s was unmuted from newbie chat by %s.",giveplayer ,sendername);
- ABroadCast(COLOR_LIGHTRED,string,1);
- SendHelperMessage(COLOR_LIGHTRED, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/rmute", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /rmute [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playa][pReportMuted] == 0)
- {
- PlayerInfo[playa][pReportMuted] = 1;
- format(string, sizeof(string), "Info: %s was muted from /report by %s.",giveplayer ,sendername);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- else
- {
- PlayerInfo[playa][pReportMuted] = 0;
- format(string, sizeof(string), "Info: %s was unmuted from /report by %s.",giveplayer ,sendername);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/admute", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /admute [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playa][pAdMuted] == 0)
- {
- PlayerInfo[playa][pAdMuted] = 1;
- format(string, sizeof(string), "Info: %s was muted from making advertisments by %s.",giveplayer ,sendername);
- SendClientMessageToAll(COLOR_LIGHTRED,string);
- }
- else
- {
- PlayerInfo[playa][pAdMuted] = 0;
- format(string, sizeof(string), "Info: %s was unmuted from making advertisments by %s.",giveplayer ,sendername);
- SendClientMessageToAll(COLOR_LIGHTRED,string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/kick", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /kick [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerNPC(giveplayerid)) return 1;
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /kick [playerid/PartOfName] [reason]");
- return 1;
- }
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- format(logstring, sizeof(logstring), "Info: %s was kicked, reason: Attempting to kick admin %s (%d-%d-%d).", sendername, giveplayer,month,day,year);
- KickLog(logstring);
- format(string, sizeof(string), "Info: %s was kicked, reason: Attempting to kick a higher admin.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- Kick(playerid);
- return 1;
- }
- format(logstring, sizeof(logstring), "Info: %s was kicked by %s, reason: %s (%d-%d-%d).", giveplayer, sendername, (result),month,day,year);
- KickLog(logstring);
- format(string, sizeof(string), "Info: %s was kicked by %s, reason: %s", giveplayer, sendername, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- Kick(giveplayerid);
- return 1;
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/skick", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /skick [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerNPC(giveplayerid)) return 1;
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- format(string, sizeof(string), "Info: %s was skicked, reason: Attempting to silent kick a higher admin.", sendername);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- Kick(playerid);
- return 1;
- }
- format(string, sizeof(string), "Info: %s was skicked by %s", giveplayer, sendername);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- Kick(giveplayerid);
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/awarn", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /awarn [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /awarn [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- new logstring[256];
- new IP[16];
- new year, month, day;
- getdate(year, month, day);
- if(UseAdmCmdTimer[playerid] > 2)
- {
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- BanEx(playerid, "Banned By: Autoban Reason: Spam");
- return 1;
- }
- PlayerInfo[giveplayerid][pAWarns] += 1;
- if(PlayerInfo[giveplayerid][pAWarns] >= 3)
- {
- format(string, sizeof(string), "You have been removed from the admin team for getting 3 warnings");
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pAdmin] = 0;
- PlayerInfo[giveplayerid][pGang] = 0;
- PlayerInfo[giveplayerid][pLotto] = 0;
- return 1;
- }
- format(string, sizeof(string), "You warned %s, reason: %s", giveplayer, (result));
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- format(string, sizeof(string), "You were admin warned by %s, reason: %s", sendername, (result));
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
- UseAdmCmdTimer[playerid]++;
- SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
- return 1;
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player.", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/warn", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /warn [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /warn [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- new logstring[256];
- new IP[16];
- new year, month, day;
- getdate(year, month, day);
- if(UseAdmCmdTimer[playerid] > 2)
- {
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- BanEx(playerid, "Banned By: Autoban Reason: Spam");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- format(string, sizeof(string), "Info: %s was slapped, reason: Attempting to slap a higher admin.", sendername);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- PlayerInfo[playerid][pWarns] += 1;
- if(PlayerInfo[playerid][pWarns] >= 3)
- {
- GetPlayerIp(giveplayerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: Autoban Reason: Attempting to warn a higher admin (3 Warnings).", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "Info: %s was banned (had 3 Warnings), reason: Attempting to warn a higher admin", giveplayer);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pBand] = 3;
- BanEx(giveplayerid, "Banned By: Autoban Reason: Had 3 Warnings");
- return 1;
- }
- return 1;
- }
- PlayerInfo[giveplayerid][pWarns] += 1;
- if(PlayerInfo[giveplayerid][pWarns] >= 3)
- {
- GetPlayerIp(giveplayerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s (3 Warnings).", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey],sendername, (result));
- BanLog(logstring);
- format(string, sizeof(string), "Info: %s was banned by %s (had 3 Warnings), reason: %s", giveplayer, sendername, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pBand] = 3;
- BanEx(giveplayerid, "Banned By: Autoban Reason: Had 3 Warnings");
- return 1;
- }
- format(string, sizeof(string), "You warned %s, reason: %s", giveplayer, (result));
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- format(string, sizeof(string), "You were warned by %s, reason: %s", sendername, (result));
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
- UseAdmCmdTimer[playerid]++;
- SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
- return 1;
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player.", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sban", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerNPC(giveplayerid)) return 1;
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- new IP[16];
- new logstring[256];
- new banstring[256]; //modified
- new year, month, day;
- getdate(year, month, day);
- if(UseAdmCmdTimer[playerid] > 2)
- {
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam (/sban).", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "AdmCmd: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- format(string, sizeof(string), "Ban Reason: Spam (/sban) - Banned by: Autoban");
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- BanEx(playerid, "Banned By: Autoban Reason: Spam");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Attempting to ban a higher admin (/sban).", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "AdmCmd: %s was sbanned, reason: Attempting to ban a higher admin.", sendername);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- format(string, sizeof(string), "Ban Reason: Attempting to ban a higher admin - Banned by: Autoban");
- PlayerInfo[playerid][pBand] = 3;
- BanEx(playerid, "Banned By: Autoban Reason: Attempting to ban a higher admin");
- return 1;
- }
- GetPlayerIp(giveplayerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s (/sban)", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey], sendername, (result));
- BanLog(logstring);
- format(string, sizeof(string), "AdmCmd: %s was banned by an admin, reason: %s", giveplayer, (result));
- ABroadCast(COLOR_LIGHTRED, string, 1);
- format(string, sizeof(string), "S-Ban Reason: %s - Banned by: %s",result,sendername);
- PlayerInfo[giveplayerid][pBand] = 3;
- format(banstring, sizeof(banstring), "Sbanned By: %s Reason: %s", sendername, (result)); //modified
- BanEx(giveplayerid, banstring); //modified
- UseAdmCmdTimer[playerid]++;
- SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
- return 1;
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ban", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerNPC(giveplayerid)) return 1;
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- new IP[16];
- new logstring[256];
- new banstring[256]; //modified
- new year, month, day;
- getdate(year, month, day);
- if(giveplayerid == playerid)
- {
- return SendClientMessage(playerid,COLOR_GREY,"If you're leaving, use /q and stop being an attention whore.");
- }
- if(UseAdmCmdTimer[playerid] > 2)
- {
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "AdmCmd: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- format(string, sizeof(string), "Ban Reason: Spam - Banned by: Autoban");
- BanEx(playerid, "Banned By: Autoban Reason: Spam");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Attempting to ban a higher admin.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "AdmCmd: %s was banned by ChuckNorrisBot, reason: Attempting to ban a higher admin.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- format(string, sizeof(string), "Ban Reason: Attempting to ban a higher admin - Banned by: Autoban");
- BanEx(playerid, "Banned By: Autoban Reason: Attempting to ban a higher admin");
- return 1;
- }
- GetPlayerIp(giveplayerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey], sendername, (result));
- BanLog(logstring);
- format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pBand] = 3;
- format(banstring, sizeof(banstring), "Banned By: %s Reason: %s", sendername, (result)); //modified
- BanEx(giveplayerid, banstring); //modified
- UseAdmCmdTimer[playerid]++;
- SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
- return 1;
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fakeban", true) == 0) //Scripted by Logan Stone
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /fakeban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if (PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /fakeban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- new year, month,day;
- getdate(year, month, day);
- format(string, sizeof(string), "Info: %s was banned by %s, reason: %s (%d-%d-%d)fake", giveplayer, sendername, (result),month,day,year);
- format(string, sizeof(string), "Info: %s was banned by %s, reason: %s", giveplayer, sendername, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- SendClientMessage(giveplayerid, COLOR_FAKEBAN, "Server closed the connection.");
- }
- }//not connected
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player.", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/banip",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,COLOR_WHITE,"{7DAEFF}USAGE: /banip [ip]{7DAEFF}");
- return 1;
- }
- format(string,sizeof(string),"banip %s",tmp);
- SendRconCommand(string);
- SendRconCommand("reloadbans");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "Info: %s has banned IP:%s", sendername, tmp);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/unbanip",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pBanAppealer])
- {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,COLOR_WHITE,"{7DAEFF}USAGE: /unbanip [ip]{7DAEFF}");
- return 1;
- }
- format(string,sizeof(string),"unbanip %s",tmp);
- SendRconCommand(string);
- SendRconCommand("reloadbans");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "Info: %s has unbanned IP:%s", sendername, tmp);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/rangeban", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,COLOR_WHITE,"{7DAEFF}USAGE: /rangeban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- new IP[16];
- new logstring[256];
- new year, month, day;
- getdate(year, month, day);
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' ')) {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid,COLOR_WHITE,"{7DAEFF}USAGE: /rangeban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- GetPlayerIp(playerid, IP, sizeof(IP));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- PlayerInfo[giveplayerid][pBand] = 3;
- PlayerInfo[giveplayerid][pPermBand] = 1;
- format(string, sizeof(string), "Info: %s was rangebanned by %s, reason: %s", giveplayer, sendername, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- Rangeban(giveplayerid);
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s (/rangeban)", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey], sendername, (result));
- BanLog(logstring);
- return 1;
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/pban", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /pban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /pban [playerid/PartOfName] [reason]{7DAEFF}");
- return 1;
- }
- new IP[16];
- new logstring[256];
- new banstring[256]; //modified
- new year, month, day;
- getdate(year, month, day);
- if(UseAdmCmdTimer[playerid] > 2)
- {
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- BanEx(playerid, "Banned By: Autoban Reason: Spam");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Attempting to ban a higher admin.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(logstring);
- format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Attempting to ban a higher admin.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- BanEx(playerid, "Banned By: Autoban Reason: Attempting to ban a higher admin");
- return 1;
- }
- GetPlayerIp(giveplayerid, IP, sizeof(IP));
- format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey], sendername, (result));
- BanLog(logstring);
- format(string, sizeof(string), "Info: %s was permanently banned by %s, reason: %s", giveplayer, sendername, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pBand] = 3;
- PlayerInfo[giveplayerid][pPermBand] = 1;
- format(banstring, sizeof(banstring), "Permabanned By: %s Reason: %s", sendername, (result)); //modified
- BanEx(giveplayerid, banstring); //modified
- UseAdmCmdTimer[playerid]++;
- SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
- return 1;
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/unban", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new string2[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /unban [full name(caSe SeNsAtiVe)]{7DAEFF}");
- return 1;
- }
- if (PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pBanAppealer])
- {
- format(string, sizeof(string), "%s.ini",tmp);
- if(dini_Exists(string))
- {
- if(dini_Int(string, "Band") > 0)
- {
- new clearban[6];
- format(clearban, sizeof(clearban),"None");
- dini_IntSet(string, "Band", 0);
- dini_IntSet(string, "Warnings", 0);
- string2 = dini_Get(string, "IP");
- format(string, sizeof(string),"unbanip %s", string2);
- SendRconCommand(string);
- SendRconCommand("reloadbans");
- format(string, 256, "AdmWarning: %s has unbanned account '%s' and IP '%s'.",PlayerName(playerid),tmp,string2);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is not account-banned. You have unbanned their IP.");
- string2 = dini_Get(string, "IP");
- format(string, sizeof(string), "unbanip %s", string2);
- SendRconCommand(string);
- SendRconCommand("reloadbans");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "ERROR: That player does not exist.");
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/getip", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new string2[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /getip [full name(case sensative)]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 2 || PlayerInfo[playerid][pBanAppealer])
- {
- format(string, sizeof(string), "%s.ini",tmp);
- if(dini_Exists(string))
- {
- string2 = dini_Get(string, "IP");
- if(dini_Int(string, "FakeIP") == 1)
- {
- format(string, sizeof(string), "%s's IP: 79.120.215.212", tmp);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- format(string, sizeof(string), "%s's IP: %s", tmp,string2);
- SendClientMessage(playerid,COLOR_WHITE, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "ERROR: That player does not exist.");
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/lastlogin", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new string2[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /lastlogin [full name(case sensative)]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- format(string, sizeof(string), "%s.ini",tmp);
- if(dini_Exists(string))
- {
- string2 = dini_Get(string, "LastLogin");
- format(string, sizeof(string), "%s's last login: %s", tmp,string2);
- SendClientMessage(playerid,COLOR_WHITE, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "ERROR: That player does not exist.");
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/banaccount", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new string2[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /banaccount [full name(case sensative)]{7DAEFF}");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- format(string, sizeof(string), "%s.ini",tmp);
- if(dini_Exists(string))
- {
- if(dini_Int(string, "Band") == 0)
- {
- if(dini_Int(string, "AdminLvl") > PlayerInfo[playerid][pAdmin])
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't ban higher level Admins.");
- return 1;
- }
- dini_IntSet(string, "Band", 3);
- string2 = dini_Get(string, "IP");
- format(string, sizeof(string),"banip %s", string2);
- SendRconCommand(string);
- SendRconCommand("reloadbans");
- format(string, 256, "AdmWarning: %s has banned account '%s' and IP '%s'.",PlayerName(playerid),tmp,string2);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is already account-banned. You have banned their IP.");
- string2 = dini_Get(string, "IP");
- format(string, sizeof(string), "banip %s", string2);
- SendRconCommand(string);
- SendRconCommand("reloadbans");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "ERROR: That player does not exist.");
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/checkprison", true) == 0 || strcmp(cmd, "/cp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin]>= 2)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "{7DAEFF}USAGE: /checkprison [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, sendername, sizeof(sendername));
- format(string, 256, "%s, %d seconds. Prisoned By %s. Reason: %s",PlayerName(giveplayerid),PlayerInfo[giveplayerid][pJailTime],PlayerInfo[giveplayerid][pPrisonedBy],PlayerInfo[giveplayerid][pPrisonReason]);
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Player does not exist !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/oprison", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 3))
- {
- return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use that command.");
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /oprison [full name(case sensative)] [minutes] [reason]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "%s.ini",tmp);
- if(!dini_Exists(string))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That player does not exist.");
- return 1;
- }
- new tmp2[128];
- new money;
- tmp2 = strtok(cmdtext, idx);
- money = strval(tmp2);
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(dini_Int(string, "AdminLvl") > PlayerInfo[playerid][pAdmin])
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't prison higher level Admins.");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /oprison [full name(case sensative)] [minutes] [reason]{7DAEFF}");
- return 1;
- }
- dini_IntSet(string, "Gun0", 0);
- dini_IntSet(string, "Gun1", 0);
- dini_IntSet(string, "Gun2", 0);
- dini_IntSet(string, "Gun3", 0);
- dini_IntSet(string, "Gun4", 0);
- dini_IntSet(string, "Gun5", 0);
- dini_IntSet(string, "Gun6", 0);
- dini_IntSet(string, "Gun7", 0);
- dini_IntSet(string, "Gun8", 0);
- dini_IntSet(string, "Gun9", 0);
- dini_IntSet(string, "Gun10", 0);
- dini_IntSet(string, "Gun11", 0);
- dini_IntSet(string, "Gun12", 0);
- dini_IntSet(string, "Gun13", 0);
- dini_IntSet(string, "WantedLevel", 0);
- dini_IntSet(string, "Jailed", 3);
- dini_IntSet(string, "JailTime", money*60);
- dini_IntSet(string, "AdminJailed", 1);
- dini_Set(string, "PrisonedBy", PlayerName(playerid));
- dini_Set(string, "PrisonReason", (result));
- format(string, 256, "AdmCmd: %s has been offline-prisoned by an Admin, Reason: %s", tmp, (result));
- SendClientMessageToAll(COLOR_LIGHTRED,string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use this command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/oevict", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pHouseKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY,"You don't have a house.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /oevict [full name(case sensative)]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "%s.ini",tmp);
- if(!dini_Exists(string))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That player does not exist.");
- return 1;
- }
- if(dini_Int(string, "Renthouse") == PlayerInfo[playerid][pHouseKey])
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- dini_IntSet(string, "Renthouse", 999);
- HouseInfo[PlayerInfo[playerid][pHouseKey]][hRenters] -= 1;
- format(string, sizeof(string), "* You have evicted %s from your house.", tmp);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not renting a room in your house.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ouninvite", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ouninvite [full name(case sensative)]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "%s.ini",tmp);
- if(!dini_Exists(string))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That player does not exist.");
- return 1;
- }
- if(PlayerInfo[playerid][pLeader] >= 1)
- {
- if(dini_Int(string, "Leader") == PlayerInfo[playerid][pLeader])
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't kick out fellow leaders.");
- return 1;
- }
- if(dini_Int(string, "Member") == PlayerInfo[playerid][pLeader])
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- dini_IntSet(string, "Member", 0);
- dini_IntSet(string, "Model", 299);
- format(string, sizeof(string), "* You have kicked %s from the faction.", tmp);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not a member of your faction.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not a leader.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/freeze", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /freeze [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- TogglePlayerControllable(playa, 0);
- PlayerFrozen[playerid] = 1;
- format(string, sizeof(string), "Info: %s was Frozen by %s.",giveplayer ,sendername);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/respawnthiscar", true) == 0 || strcmp(cmd, "/rtc", true) == 0) // by Ellis
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 2 )
- {
- SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, 256, "[ADMIN] %s has just respawned vehicle id %d.",sendername,GetPlayerVehicleID(playerid));
- ABroadCast(COLOR_YELLOW,string,1);
- SetVehicleToRespawn(GetPlayerVehicleID(playerid));
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_GREY, " Vehicle Respawned !");
- CarInfo[GetPlayerVehicleID(playerid)][tTrunkOpened] = 0;
- CarInfo[GetPlayerVehicleID(playerid)][tHoodOpened] = 0;
- CarInfo[GetPlayerVehicleID(playerid)][tAlarmStarted] = 0;
- return 1;
- }
- }
- else
- {
- new carid;
- carid = strvalEx(tmp);
- format(string, 256, "[ADMIN] %s has just respawned vehicle id %d.",sendername,carid);
- ABroadCast(COLOR_YELLOW,string,1);
- SetVehicleToRespawn(carid);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) // by Ellis
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- new bool:unwanted[CAR_AMOUNT];
- for(new player=0; player<MAX_PLAYERS; player++)
- {
- if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
- }
- for(new vehi = 0; vehi < MAX_VEHICLES; vehi++)
- {
- if(!unwanted[vehi]) SetVehicleToRespawn(vehi);
- if(CarInfo[vehi][tOwned] == 1 && CarInfo[vehi][tLicensePlate] != 0)
- {
- new plate[9];
- strmid(plate, CarInfo[vehi][tLicensePlate], 0, strlen(CarInfo[vehi][tLicensePlate]), 255);
- SetVehicleNumberPlate(vehi, plate);
- }
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "Info: All unused cars respawned by %s.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/unfreeze", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /unfreeze [playerid]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- TogglePlayerControllable(playa, 1);
- PlayerFrozen[playerid] = 0;
- format(string, sizeof(string), "Info: %s was UnFrozen by %s.",giveplayer ,sendername);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ipcheck", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ipcheck [playerid]{7DAEFF}");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- new IP[16];
- new country[256];
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerIp(playa, IP, sizeof(IP));
- GetPlayerCountry(playa, country);
- if(PlayerInfo[playa][pFakeIP] == 1)
- {
- format(string, sizeof(string), "%s's IP: 79.120.215.212, Country: Romania (ROM)", giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- format(string, sizeof(string), "%s's IP: %s, Country: %s", giveplayer, IP, country);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/signcheck", true) == 0)
- {
- //new string[128];
- new account,interest;
- if(!strlen(cmdtext[11]))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "{7DAEFF}USAGE: /signcheck [check number]{7DAEFF}");
- return 1;
- }
- new number = strval(cmdtext[11]);
- if(number < 1000 || number > 9999) { SendClientMessage(playerid, COLOR_GREY, "Error: Invalid check number."); return 1; }
- if(number == CheckNumber[playerid])
- {
- //new sendername[MAX_PLAYER_NAME];
- new tmpintrate = 1; //interest rate
- //if(PlayerInfo[playerid][pHouseAccepted] == 1){ tmpintrate = 2; }
- if(PlayerInfo[playerid][pDonateRank] == 1){ tmpintrate = 2; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- account = PlayerInfo[playerid][pAccount]; //bank account amount
- if(PlayerInfo[playerid][pPayDay] >= 5)
- {
- new checks = PlayerInfo[playerid][pPayCheck]; //paycheck amount
- new incometax = PlayerInfo[playerid][pPayCheck] / 100 * Tax; //income tax amount
- if(PlayerInfo[playerid][pRentKey] != 0)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+checks-incometax-CarInfo[PlayerInfo[playerid][pRentKey]][tPrice]; //give money
- GivePlayerMoney(playerid, checks-incometax-CarInfo[PlayerInfo[playerid][pRentKey]][tPrice]); //give money
- }
- else
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+checks-incometax; //give money
- GivePlayerMoney(playerid, checks-incometax); //give money
- }
- //TAX MONEY
- TaxValue = TaxValue+incometax;
- //INTEREST
- interest = (PlayerInfo[playerid][pAccount]/1000)*(tmpintrate); //bank interest
- PlayerInfo[playerid][pAccount] = account+interest; //add interest money to bank
- //EXP
- PlayerInfo[playerid][pExp]++; //experience points
- SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATEMENT ___|");
- format(string, sizeof(string), " Paycheck: $%d", checks);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " Income Tax: -$%d", incometax);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- if(PlayerInfo[playerid][pRentKey] != 0)
- {
- format(string, sizeof(string), " Car Rental: -$%d", CarInfo[PlayerInfo[playerid][pRentKey]][tPrice]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- format(string, sizeof(string), " Balance: $%d", account);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " Interest Rate: 0.%d percent",tmpintrate);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), " Interest Gained $%d", interest);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- SendClientMessage(playerid, COLOR_GRAD4, "|------------------------------------------|");
- format(string, sizeof(string), " New Balance: $%d", PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_GRAD5, string);
- format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerInfo[playerid][pPayDay] = 0;
- PlayerInfo[playerid][pPayCheck] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* You haven't played long enough to obtain a Paycheck.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/clearchat", true) == 0 || strcmp(cmd, "/cc", true) == 0)//Logan Stone
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 4)
- {
- for(new Order = 0; Order < 800; Order++)
- SendClientMessageToAll(COLOR_GREY, " ");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not authorized to use that Command !");
- return 1;
- }
- }
- }
- if(strcmp(cmd, "/gmx", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- GameModeInitExitFunc();
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/help", true) == 0)
- {
- DisplayDialogForPlayer(playerid, 79);
- return 1;
- }
- if(strcmp(cmd, "/cellphonehelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pPnumber] > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"HELP: type a command for more infomation");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /call 'eg: /call 911' /sms (/p)ickup (/h)angup /number /pbalance");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE," You can /buy a cellphone from a 24-7 !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/irchelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE,"IRC HELP: Type a command for more infomation");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: (/irc join [channelnr] or /irc join [channelnr] [password]) (/irc leave)");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: (/irc Password [channelnr]) (/irc NeedPass [channelnr]) (/irc Lock [channelnr])");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: (/irc Admins) (/irc MOTD [motdtext]) (/irc status [channelnr]) (/i [text])");
- }
- return 1;
- }
- if(strcmp(cmd, "/carhelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new mstring[1500], titlestring[128], line1[512], line2[512], line3[512], line4[512], line5[512], line6[512], line7[512], line8[512];
- format(titlestring, sizeof(titlestring), "{CC0000}Vehicle ownership / trunk system by Logan Stone");
- format(line1, sizeof(line1), "{FFFF00}Insurance:\n{AAC4E5}This is an upgrade (/vehupgrade) which will save your trunk items when your car explodes.\nIf you don't have this update your trunk items will be lost forever if your car blows up.");
- format(line2, sizeof(line2), "{FFFF00}\nAlarm:\n{AAC4E5}Having the alarm upgraded, you will receive a SMS every time your vehicle is being lockpicked");
- format(line3, sizeof(line3), "{FFFF00}\nGPS:\n{AAC4E5}With this upgrade you will be able to /trackcar anytime, to get your current vehicle position.");
- format(line4, sizeof(line4), "{FFFF00}\nTow services:\n{AAC4E5}Upgrading the tow services will allow you to request a tow anytime you want, so your vehicle will be brought to the last /park position.");
- format(line5, sizeof(line5), "{FFFF00}\nEngine / Lights:\n{AAC4E5}You can turn the engine on/off by pressing the key 2.\nLights can be turned on/off by pressing ctrl.");
- format(line6, sizeof(line6), "{FFFF00}\nDuplicate keys:\n{AAC4E5}Having a duplicate key allows you to /givekey to anyone, so they will be able to lock/unlock your vehicle.");
- format(line7, sizeof(line7), "{FFFF00}\nModifications:\n{AAC4E5}Your modifications will be saved every time you /park your vehicle.\nThough, the NOS only saves on /nos, the paintjob saves on /paintcar and the colors saves on /colorcar only.");
- format(line8, sizeof(line8), "{FFFF00}\nAvailable commands:\n{AAC4E5}/trunk /park /lockpick /carupgrade /sellcartomarket /sellcar /checkplate /hood\n/trackcar /towcar /givekeys /clearmods /dealerships");
- format(mstring, sizeof(mstring), "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", line1, line2, line3, line4, line5, line6, line7, line8);
- ShowPlayerDialog(playerid, VEHINFO, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Print", "Cancel");
- }
- return 1;
- }
- if(strcmp(cmd, "/carrenthelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /unrentcar /lock /trackcar /clearmods /trunk /hood /engine /lights");
- }
- return 1;
- }
- if(strcmp(cmd, "/clotheshelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE,"Clothes HELP");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /glasses /bandana /fmask /hat /helmet");
- }
- return 1;
- }
- if(strcmp(cmd, "/househelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE,"House HELP: Type a command for more infomation");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /lockhouse /buyhouse /sellhouse /sellhousetomarket /houseupgrade");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /rentroom /unrent /evict /oevict /alarm /robhouse");
- SendClientMessage(playerid, COLOR_WHITE,"Safe HELP: /sbalance /storegun /takegun /sput /stake /safe");
- }
- return 1;
- }
- if(strcmp(cmd, "/bizhelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE,"Business HELP: Type a command for more infomation");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /lockbiz /buybiz /sellbiz /sellbiztomarket /biz");
- }
- return 1;
- }
- if(strcmp(cmd, "/fishhelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE,"FISH HELP: type a command for more information");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /fish (try to catch a fish) /fishes (show the fishes you have caught)");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /throwback (throw the last fish you caught back) /throwbackall");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /releasefish (release one of your fishes) /sellfish (sell your fish at a 24/7)");
- }
- return 1;
- }
- if(strcmp(cmd, "/eventhelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- SendClientMessage(playerid, COLOR_WHITE,"EVENT HELP: type a command for more information");
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /seteventpos /seteventinfo /startevent /lockevent /endevent /announceevent /quitevent");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/firehelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /createfire /removefire /removeallfires /announcefire");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new alevel = PlayerInfo[playerid][pAdmin];
- if(alevel > 0)
- {
- if(alevel >= 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Secret Admin(1): /listguns /wscan /check /spec /setint /setvw /nmute /skick /sban (/a)dmin /warnings /ch");
- }
- if(alevel >= 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2,"Junior Admin(2): /ao /skydive /bigears /freeze /jail /unfreeze /slap /warn /cnn /goto /sendtols /skiptut /hoseject /mute /rmute /admute");
- SendClientMessage(playerid, COLOR_GRAD2,"Junior Admin(2): /freezeplayers /unfreezeplayers /setskin /muteplayers /unmuteplayers /listmuted /listmasked /kick /ban /noooc /fuelcars");
- }
- if(alevel >= 3)
- {
- SendClientMessage(playerid, COLOR_GRAD3,"General Admin (3): /mole /nonewbie /fourdive /prison /fine /ramps /setcarhp /carinfo");
- SendClientMessage(playerid, COLOR_GRAD3,"General Admin (3): /mark /goto /gethere /oldcar /mass /ipcheck /countdown /disarm /nohospital /setaccent /stealth");
- }
- if(alevel >= 4)
- {
- SendClientMessage(playerid, COLOR_GRAD4,"Senior Admin (4): /setchamp /sethpall /setarmorall /fixvehall /givenos /blowup /setname /listcars /refund /duel /setmark");
- SendClientMessage(playerid, COLOR_GRAD4,"Senior Admin (4): /veh /vehmenu /fixveh /sethp /setarmor /givegun /givegunall /givemoney /setmoney /setstat /setfightstyle /setbankreload");
- SendClientMessage(playerid, COLOR_GRAD5,"Senior Admin (4): /fcreate /fdelete /load /adivorce /makeircadmin /destroycar /destroycars /eventhelp /setcrime /givedonut /firehelp");
- }
- if(alevel >= 5)
- {
- SendClientMessage(playerid, COLOR_GRAD4,"Head Admin (5): /weather /weatherall /makeleader /tod /savechars /fedit /dedit /pointtime /ahousehelp");
- SendClientMessage(playerid, COLOR_GRAD4,"Head Admin (5): /pban /unban /banaccount /gotocar /setcolor /banip /unbanip /deleteaccount /rangeban /makehelper");
- }
- if(alevel >= 6)
- {
- SendClientMessage(playerid, COLOR_GRAD4,"Executive Admin+ (6-7): /makeadmin /makebanappealer /makegangmod /acarhelp");
- }
- if(PlayerInfo[playerid][pBanAppealer])
- {
- SendClientMessage(playerid, COLOR_GRAD1, "BAN APPEALER: /unban /unbanip");
- }
- if(PlayerInfo[playerid][pGangMod])
- {
- SendClientMessage(playerid, COLOR_GRAD1, "GANG MODERATOR: /pointtime /fedit /fstrike /fsetstrike");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/payimpound", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new Foundcar[MAX_PLAYERS];
- for(new i = 1; i < sizeof(CarInfo); i++)
- {
- new Float:X, Float:Y, Float:Z;
- new Float:A;
- GetVehiclePos(i, X, Y, Z);
- GetVehicleZAngle(i, A);
- if(IsPlayerInRangeOfPoint(playerid, 2.3, X, Y, Z))
- {
- new imp_cmd[32];
- imp_cmd = strtok(cmdtext, idx);
- if(!strlen(imp_cmd) && CarInfo[i][tImp] == 1)
- {
- format(string, sizeof(string), "{7DAEFF}USAGE: /payimpound [confirm]{7DAEFF}");
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "{FF0000}Impound Price{FFFFFF}: $%d", CarInfo[i][tImpPrice]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- if(strcmp(imp_cmd,"confirm",true) == 0)
- {
- if(CarInfo[i][tImp] == 1)
- {
- if(i == PlayerInfo[playerid][pCarKey1])
- {
- if(PlayerInfo[playerid][pCash] < CarInfo[i][tImpPrice])
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford that!");
- Foundcar[playerid] = 1;
- PlayerInfo[playerid][pCash] -= CarInfo[i][tImpPrice];
- GivePlayerMoney(playerid, -CarInfo[i][tImpPrice]);
- CarInfo[i][tImp] = 0;
- CarInfo[i][tImpPrice] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "You paid the Impound! Watch where you park your car next time!");
- return 1;
- }
- if(i == PlayerInfo[playerid][pCarKey2])
- {
- if(PlayerInfo[playerid][pCash] < CarInfo[i][tImpPrice])
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford that!");
- Foundcar[playerid] = 1;
- PlayerInfo[playerid][pCash] -= CarInfo[i][tImpPrice];
- GivePlayerMoney(playerid, -CarInfo[i][tImpPrice]);
- CarInfo[i][tImp] = 0;
- CarInfo[i][tImpPrice] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "You paid the Impound! Watch where you park your car next time!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You dont own this vehicle!");
- return 1;
- }
- }
- }
- }
- }
- if(Foundcar[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have to be close to an impounded vehicle.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/impound", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4) { }
- else
- {
- if(!IsACop(playerid))
- return SendClientMessage(playerid, COLOR_GREY, "You have to be a Cop!");
- if(PlayerInfo[playerid][pRank] < 1)
- return SendClientMessage(playerid, COLOR_GREY, "You have to be Rank 1!");
- if(PlayerInfo[playerid][pOnDuty] == 0)
- return SendClientMessage(playerid, COLOR_GREY, "You have to be on duty!");
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /impound [price]{7DAEFF}");
- new price = strval(tmp);
- if(price < 10000)
- return SendClientMessage(playerid, COLOR_GREY, "Minimum impound price is $10.000");
- if(price > 30000)
- return SendClientMessage(playerid, COLOR_GREY, "Maximum impound price is $30.000");
- if(!IsPlayerInRangeOfPoint(playerid, 30.0, 2583.77, -2175.83, -0.22))
- return SendClientMessage(playerid, COLOR_GREY, "You have to be in the Impound Parking Lot!");
- for(new i = 1; i < sizeof(CarInfo); i++)
- {
- new Float:X, Float:Y, Float:Z;
- new Float:A;
- GetVehiclePos(i, X, Y, Z);
- GetVehicleZAngle(i, A);
- if(IsPlayerInRangeOfPoint(playerid, 2.3, X, Y, Z))
- {
- if(CarInfo[i][tOwned] == 1)
- {
- if(CarInfo[i][tImp] == 1)
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle is already impounded!");
- new owner[128];
- strmid(owner, CarInfo[i][tOwner], 0, strlen(CarInfo[i][tOwner]), 255);
- new player = ReturnUser(owner);
- if(player != INVALID_PLAYER_ID)
- {
- SetPlayerCheckpoint(player, X, Y, Z, 5.0);
- SendClientMessage(player, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" Impound Service™ (4192)");
- SendClientMessage(player, COLOR_WHITE, ""CB"Message:"CW" Your vehicle has been impounded!");
- }
- SaveVehicleComponents(i);
- DestroyVehicle(i);
- CarSys[i] = CreateVehicle(CarInfo[i][tModel],X,Y,Z,A,CarInfo[i][tColorOne],CarInfo[i][tColorTwo],60000);
- SetVehicleModifications(i);
- ChangeVehiclePaintjob(i, CarInfo[i][tPaintjob]);
- CarInfo[i][tLocationx] = X;
- CarInfo[i][tLocationy] = Y;
- CarInfo[i][tLocationz] = Z;
- CarInfo[i][tAngle] = A;
- CarInfo[i][tImp] = 1;
- CarInfo[i][tImpPrice] = price;
- SendClientMessage(playerid, COLOR_YELLOW, "Vehicle Impounded");
- return 1;
- }
- else
- return SendClientMessage(playerid, COLOR_GREY, "You can't impound vehicle's that is not owned/ownable!");
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/acarhelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new alevel = PlayerInfo[playerid][pAdmin];
- if(alevel > 6)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "/createcar(bugged/disabled) /editcar");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ahousehelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new alevel = PlayerInfo[playerid][pAdmin];
- if(alevel > 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "/edithouse /houseinfo /gotohouse /goinhouse /gotohouseint");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/abizhelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new alevel = PlayerInfo[playerid][pAdmin];
- if(alevel > 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "/editbiz /bizinfo /gotobiz /goinbiz");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/stopani",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerTied[playerid] > 0 || PlayerCuffed[playerid] > 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY,"You cannot do that at this time.");
- return 1;
- }
- else
- {
- if(StopAniTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 3 seconds before using that again !");
- GetPlayerPos(playerid, PlayerPosition[playerid][PosX], PlayerPosition[playerid][PosY], PlayerPosition[playerid][PosZ]);
- StopAniTimer[playerid] = 1;
- SendClientMessage(playerid, COLOR_GREY,"You must remain in your current position for 3 seconds.");
- SetTimerEx("StopAni",3*1000,0,"i",playerid);
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/skill",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skill [number]");
- SendClientMessage(playerid, COLOR_GRAD1, "| 1: Detective 7: Arms Dealer");
- SendClientMessage(playerid, COLOR_GRAD2, "| 2: Lawyer 8: Mechanic");
- SendClientMessage(playerid, COLOR_GRAD3, "| 3: Whore 9: Boxer");
- SendClientMessage(playerid, COLOR_GRAD4, "| 4: Drug Dealer 10: Fishing");
- SendClientMessage(playerid, COLOR_GRAD5, "| 5: Car Jacker 11: Drug Smuggler");
- SendClientMessage(playerid, COLOR_GRAD6, "| 6: News Reporter");
- return 1;
- }
- if(strcmp(x_nr,"1",true) == 0)//Detective
- {
- new level = PlayerInfo[playerid][pDetSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 1."); format(string, sizeof(string), "You need to find %d more people to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 2."); format(string, sizeof(string), "You need to find %d more people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 3."); format(string, sizeof(string), "You need to find %d more people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 4."); format(string, sizeof(string), "You need to find %d more people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 5."); }
- }
- else if(strcmp(x_nr,"2",true) == 0)//Lawyer
- {
- new level = PlayerInfo[playerid][pLawSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 1."); format(string, sizeof(string), "You need to free %d more people to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 2."); format(string, sizeof(string), "You need to free %d more people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 3."); format(string, sizeof(string), "You need to free %d more people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 4."); format(string, sizeof(string), "You need to free %d more people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 5."); }
- }
- else if(strcmp(x_nr,"3",true) == 0)//Whore
- {
- new level = PlayerInfo[playerid][pSexSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 1."); format(string, sizeof(string), "You need to have sex %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 2."); format(string, sizeof(string), "You need to have sex %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 3."); format(string, sizeof(string), "You need to have sex %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 4."); format(string, sizeof(string), "You need to have sex %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 5."); }
- }
- else if(strcmp(x_nr,"4",true) == 0)//Drug Dealer
- {
- new level = PlayerInfo[playerid][pDrugsSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 1."); format(string, sizeof(string), "You need to sell drugs %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 2."); format(string, sizeof(string), "You need to sell drugs %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 3."); format(string, sizeof(string), "You need to sell drugs %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 4."); format(string, sizeof(string), "You need to sell drugs %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 5."); }
- }
- else if(strcmp(x_nr,"5",true) == 0)//Car Jacker
- {
- new level = PlayerInfo[playerid][pJackSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Level = 1."); format(string, sizeof(string), "You need to drop %d cars more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 2."); format(string, sizeof(string), "You need to drop %d cars more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 3."); format(string, sizeof(string), "You need to drop %d cars more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 4."); format(string, sizeof(string), "You need to drop %d cars more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 5."); }
- }
- else if(strcmp(x_nr,"6",true) == 0)//News Reporter
- {
- new level = PlayerInfo[playerid][pNewsSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 1."); format(string, sizeof(string), "You need to use /news %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 2."); format(string, sizeof(string), "You need to use /news %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 3."); format(string, sizeof(string), "You need to use /news %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 4."); format(string, sizeof(string), "You need to use /news %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 5."); }
- }
- else if(strcmp(x_nr,"7",true) == 0)//Arms Dealer
- {
- new level = PlayerInfo[playerid][pArmsSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 1."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 2."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 3."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 4."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400 && level <= 599) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 5."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 600 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 600 && level <= 899) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 6."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 900 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 900 && level <= 1299) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 7."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 1300 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 1300 && level <= 1999) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 8."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 2000 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 2000) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 9."); }
- }
- else if(strcmp(x_nr,"8",true) == 0)//Mechanic
- {
- new level = PlayerInfo[playerid][pMechSkill];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 1."); format(string, sizeof(string), "You need to fix/fill a car for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 2."); format(string, sizeof(string), "You need to fix/fill a car for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 3."); format(string, sizeof(string), "You need to fix/fill a car for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 4."); format(string, sizeof(string), "You need to fix/fill a car for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 5."); }
- }
- else if(strcmp(x_nr,"9",true) == 0)//Boxer
- {
- new level = PlayerInfo[playerid][pBoxSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 1."); format(string, sizeof(string), "You need to Win %d more Matches to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 2."); format(string, sizeof(string), "You need to Win %d more Matches to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 3."); format(string, sizeof(string), "You need to Win %d more Matches to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 4."); format(string, sizeof(string), "You need to Win %d more Matches to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 5."); }
- }
- else if(strcmp(x_nr,"10",true) == 0)//Fishing
- {
- new level = PlayerInfo[playerid][pFishSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 1."); format(string, sizeof(string), "You need to Fish %d more Fishes to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 249) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 2."); format(string, sizeof(string), "You need to Fish %d more Fishes to Level up.", 250 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 250 && level <= 499) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 3."); format(string, sizeof(string), "You need to Fish %d more Fishes to Level up.", 500 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 500 && level <= 999) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 4."); format(string, sizeof(string), "You need to Fish %d more Fishes to Level up.", 1000 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 1000) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 5."); }
- }
- else if(strcmp(x_nr,"11",true) == 0)//Drug Smuggler
- {
- new level = PlayerInfo[playerid][pSmugglerSkill];
- if(level >= 0 && level <= 19) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 1."); format(string, sizeof(string), "You need to deliver %d more Drug Crates to Level up.", 20 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 20 && level <= 39) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 2."); format(string, sizeof(string), "You need to deliver %d more Drug Crates to Level up.", 40 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 40 && level <= 59) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 3."); format(string, sizeof(string), "You need to deliver %d more Drug Crates to Level up.", 60 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 60 && level <= 79) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 4."); format(string, sizeof(string), "You need to deliver %d more Drug Crates to Level up.", 80 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 80) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 5."); }
- }
- /* else if(strcmp(x_nr,"12",true) == 0) // Trashman
- {
- new level = PlayerInfo[playerid][pTrashSkill];
- if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 1."); format(string, sizeof(string), "You need to deliver %d more Trashbags to Level up.", 20 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 2."); format(string, sizeof(string), "You need to deliver %d more Trashbags to Level up.", 40 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 3."); format(string, sizeof(string), "You need to deliver %d more Trashbags to Level up.", 60 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 4."); format(string, sizeof(string), "You need to deliver %d more Trashbags to Level up.", 80 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 5."); }
- }*/
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid Skill Number !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/families", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- new number = 0;
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- number ++;
- format(string, sizeof(string), "Family %d| Name: %s | Leader: %s | Members: %d | Strikes: %d/3",number,FamilyInfo[i][FamilyName],FamilyInfo[i][FamilyLeader],FamilyInfo[i][FamilyMembers],FamilyInfo[i][FStrikes]);
- SendClientMessage(playerid, COLOR_GRAD6, string);
- }
- return 1;
- }
- new family = strvalEx(tmp);
- if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, " Can't be below 1 or above 14 !"); return 1; }
- family -= 1;
- if(FamilyInfo[family][FamilyTaken] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " That family hasn't been taken yet !");
- return 1;
- }
- new members;
- //foreach(Player, i)
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pFMember] == family)
- {
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* %s: %s | Rank: %s.",FamilyInfo[family][FamilyName],giveplayer,FamilyRank[family][PlayerInfo[i][pFRank]-1]);
- SendClientMessage(playerid, COLOR_GREY, string);
- members++;
- }
- }
- }
- if(members == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are currently no members online !");
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/members",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new teamnumber;
- if(PlayerInfo[playerid][pFMember] != 255) teamnumber = PlayerInfo[playerid][pFMember];
- else if(PlayerInfo[playerid][pMember] != 225) teamnumber = PlayerInfo[playerid][pMember];
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not a member of a family or a faction!");
- return 1;
- }
- SendClientMessage(playerid, 0x808000AA, "Members Online:");
- for(new i; i<MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i))
- {
- GetPlayerName(i, sendername, sizeof(sendername));
- format(string, sizeof(string), "");
- if(PlayerInfo[playerid][pFMember] != 255)
- {
- if (PlayerInfo[i][pFMember] == teamnumber)
- {
- format(string, sizeof(string), "%s, Rank: %d",sendername, PlayerInfo[i][pFRank]);
- }
- }
- else if(PlayerInfo[playerid][pMember] != 255)
- {
- if(PlayerInfo[i][pMember] == teamnumber)
- {
- format(string, sizeof(string), "%s, Rank: %d",sendername, PlayerInfo[i][pRank]);
- }
- }
- if (strlen(string) > 1) SendClientMessage(playerid, 0xF5DEB3AA, string);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/adjust", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pFMember] == 255)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a Family.");
- return 1;
- }
- new family = PlayerInfo[playerid][pFMember];
- if(PlayerInfo[playerid][pFRank] > 4)
- {
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust [name]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Name, MOTD, Invite, Uninvite, Rank, Safe, Rankname");
- return 1;
- }
- if(strcmp(x_nr,"name",true) == 0)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[24];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust name [name]{7DAEFF}");
- return 1;
- }
- if(InvalidChar(result) == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: cannot contain invalid characters.");
- return 1;
- }
- strmid(FamilyInfo[family][FamilyName], result, 0, strlen(result), 255);
- format(string, sizeof(string), "* You have adjusted your Family's Name to '%s'.",FamilyInfo[family][FamilyName]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SaveFamilies();
- }
- else if(strcmp(x_nr,"rankname",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rankname [rank] [name]{7DAEFF}");
- return 1;
- }
- new rank = strvalEx(tmp);
- if(rank < 1 || rank > 6) { SendClientMessage(playerid, COLOR_GREY, "Rank can't be below 1 or above 6."); return 1; }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[24];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rankname [rank] [name]{7DAEFF}");
- return 1;
- }
- if(InvalidChar(result) == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: cannot contain invalid characters.");
- return 1;
- }
- strmid(FamilyRank[family][rank-1], result, 0, strlen(result), 255);
- format(string, sizeof(string), "* You have adjusted the name of Rank %d to \"%s\".",rank,FamilyRank[family][rank-1]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SaveFamilies();
- return 1;
- }
- else if(strcmp(x_nr,"motd",true) == 0)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust MOTD [MOTD Text]{7DAEFF}");
- return 1;
- }
- if(InvalidChar(result) == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: cannot contain invalid characters.");
- return 1;
- }
- strmid(FamilyInfo[family][FamilyMOTD], result, 0, strlen(result), 255);
- format(string, sizeof(string), "* You have adjusted your Family's MOTD to \"%s\".",FamilyInfo[family][FamilyMOTD]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SaveFamilies();
- }
- else if(strcmp(x_nr,"safe",true) == 0)
- {
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust safe [confirm]{7DAEFF}");
- if(FamilyInfo[family][FamilySafe] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY," Adjusting the position of your Family's Safe will cost $50,000 !");
- SendClientMessage(playerid, COLOR_WHITE,"HINT: Adjusting the position of your Family's Safe will remove its contents.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," Purchasing a Safe for your Family will cost $50,000 !");
- SendClientMessage(playerid, COLOR_WHITE,"HINT: Purchasing a Safe will give your Family the ability to store/share Pot, Crack, Cash and Materials.");
- }
- return 1;
- }
- if(strcmp(x_nr,"confirm",true) == 0)
- {
- if(PlayerInfo[playerid][pCash] < 49999)
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You don't have that much money !");
- return 1;
- }
- if(FamilyInfo[family][FamilySafe] != 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have adjusted the position of your Family's Safe.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have purchased a Safe.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /safehelp for more information.");
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
- GivePlayerMoney(playerid,-50000);
- GetPlayerPos(playerid, FamilyInfo[family][FamilySafePos][0],FamilyInfo[family][FamilySafePos][1],FamilyInfo[family][FamilySafePos][2]);
- DestroyDynamicPickup(FamilyInfo[family][PickupID]);
- FamilyInfo[family][PickupID] = CreateDynamicPickup(1210, 23, FamilyInfo[family][FamilySafePos][0],FamilyInfo[family][FamilySafePos][1], FamilyInfo[family][FamilySafePos][2], GetPlayerVirtualWorld(playerid), -1, -1, 100.0 );
- FamilyInfo[family][FamilySafe] = 1;
- FamilyInfo[family][FamilyCash] = 0;
- FamilyInfo[family][FamilyPot] = 0;
- FamilyInfo[family][FamilyCrack] = 0;
- FamilyInfo[family][FamilyMats] = 0;
- SaveFamilies();
- return 1;
- }
- }
- else if(strcmp(x_nr,"invite",true) == 0)
- {
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust invite [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(x_nr);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pFMember] != 255)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is already in a Family.");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've invited %s to join %s.",giveplayer, FamilyInfo[family][FamilyName]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has invited you to join %s, (type /accept family) to accept.",sendername, FamilyInfo[family][FamilyName]);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- FamilyOffer[giveplayerid] = playerid;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- return 1;
- }
- }
- else if(strcmp(x_nr,"uninvite",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust uninvite [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust uninvite [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pFMember] != family)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not in your Family.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pFRank] > PlayerInfo[playerid][pFRank])
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is a higher rank !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have kicked %s out of your Family.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Family Leader %s has kicked you out of the Family.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pFMember] = 255;
- PlayerInfo[giveplayerid][pFRank] = 0;
- FamilyInfo[family][FamilyMembers] --;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- return 1;
- }
- }
- else if(strcmp(x_nr,"rank",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rank [rank] [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new rank = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rank [rank] [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- if(rank < 1 || rank > 6) { SendClientMessage(playerid, COLOR_GREY, "Rank can't be below 1 or above 6."); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_nr)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rank [rank] [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pFMember] != family)
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not in your Family !");
- return 1;
- }
- if (rank > 3 && (PlayerInfo[giveplayerid][pRank] > 3 || PlayerInfo[giveplayerid][pLeader] >= 1))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is Rank4+ in a faction");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pFRank] >= PlayerInfo[playerid][pFRank])
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is a higher or the same rank !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have given %s Rank %d.",giveplayer,rank);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Family Leader %s has given you Rank %d.",sendername,rank);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pFRank] = rank;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid adjust name.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Your rank is not high enough.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fcreate", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fcreate [family] [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- new family = strvalEx(tmp);
- if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "Family can't be below 1 or above 14."); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fcreate [family] [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerNPC(giveplayerid)) return 1;
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- family -= 1;
- if(FamilyInfo[family][FamilyTaken] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " That Family is already taken !" );
- return 1;
- }
- if (PlayerInfo[giveplayerid][pRank] > 3 || PlayerInfo[giveplayerid][pLeader] >= 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is Rank4+ in a faction");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've made %s the Leader of a Family.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has made you the Leader of a Family.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s",giveplayer);
- strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
- FamilyInfo[family][FamilyMembers] ++;
- FamilyInfo[family][FamilyTaken] = 1;
- PlayerInfo[giveplayerid][pFMember] = family;
- PlayerInfo[giveplayerid][pModel] = FamilyInfo[family][FamilySkin1];
- SetPlayerSkin(giveplayerid, FamilyInfo[family][FamilySkin1]);
- PlayerInfo[giveplayerid][pFRank] = 6;
- SaveFamilies();
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fsetstrike", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pGangMod])
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fsetstrike [FamilyNr] [strikes]{7DAEFF}");
- return 1;
- }
- new family = strval(tmp);
- if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "FamilyNr can't be below 1 or above 14."); return 1; }
- family -= 1;
- if(FamilyInfo[family][FamilyTaken] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "That FamilyNr isn't taken.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fsetstrike [FamilyNr] [strikes]{7DAEFF}");
- return 1;
- }
- new strikes = strval(tmp);
- if(strikes < 0 || strikes > 2) { SendClientMessage(playerid, COLOR_GREY, " Strikes can't go below 1 or above 3 !"); return 1; }
- format(string, sizeof(string), "* Family %d strikes set to %d.",family+1,strikes);
- SendClientMessage(playerid, COLOR_GREY, string);
- FamilyInfo[family][FStrikes] = strikes;
- SaveFamilies();
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fstrike", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pGangMod])
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fstrike [FamilyNr] [reason]{7DAEFF}");
- return 1;
- }
- new family = strval(tmp);
- if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "FamilyNr can't be below 1 or above 14."); return 1; }
- family -= 1;
- if(FamilyInfo[family][FamilyTaken] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "That FamilyNr isn't taken.");
- return 1;
- }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fstrike [FamilyNr] [reason]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "SERVER: Family '%s' was given a strike, reason: %s",FamilyInfo[family][FamilyName],result);
- SendClientMessageToAll(COLOR_WHITE, string);
- FamilyInfo[family][FStrikes] ++;
- if(FamilyInfo[family][FStrikes] >= 3)
- {
- format(string, sizeof(string), "SERVER: Family '%s' was disbanded due to having 3 gang strikes.",FamilyInfo[family][FamilyName]);
- SendClientMessageToAll(COLOR_WHITE, string);
- DestroyPickup(FamilyInfo[family][PickupID]);
- ClearFamily(family);
- SaveFamilies();
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fdelete", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fdelete [family]{7DAEFF}");
- return 1;
- }
- new family = strvalEx(tmp);
- if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "Family can't be below 1 or above 14."); return 1; }
- family -= 1;
- if(FamilyInfo[family][FamilyTaken] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "That family slot isnt taken.");
- return 1;
- }
- if(UseAdmCmdTimer[playerid] > 2)
- {
- new IP[16];
- new year, month, day;
- getdate(year, month, day);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(string, sizeof(string), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(string);
- format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- BanEx(playerid, "Banned By: Autoban Reason: Spam");
- return 1;
- }
- format(string, sizeof(string), " Family %d has been deleted !", family+1);
- SendClientMessage(playerid, COLOR_GREY, string);
- ClearFamily(family);
- UseAdmCmdTimer[playerid]++;
- SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/divorce",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMarried] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You aren't Married.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /divorce [Playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot offer a divorce to yourself."); return 1; }
- new dstring[MAX_PLAYER_NAME];
- new wstring[MAX_PLAYER_NAME];
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s", giveplayer);
- strmid(wstring, string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s", PlayerInfo[playerid][pMarriedTo]);
- strmid(dstring, string, 0, strlen(string), 255);
- if(strcmp(dstring ,wstring, true ) == 0 )
- {
- format(string, sizeof(string), "* You've sent Divorce Papers to %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s just sent you their Divorce Papers (type /accept divorce) to accept.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DivorceOffer[giveplayerid] = playerid;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not Married to you !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/propose",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMarried] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are already Married.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < 100000)
- {
- SendClientMessage(playerid, COLOR_GREY, "The Marriage & Reception costs $100,000.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /propose [Playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pMarried] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is already Married.");
- return 1;
- }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot offer to propose to yourself."); return 1; }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You proposed to %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s just proposed to you (type /accept marriage) to accept.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- ProposeOffer[giveplayerid] = playerid;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/animhelp", true) == 0 || strcmp(cmd, "/animlist", true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN,"_________________________________________________________________________________");
- SendClientMessage(playerid,COLOR_WHITE,"Available Animations:");
- SendClientMessage(playerid,0xB4B5B7FF,"/handsup /drunk /bomb /laugh /lookout /dj /skate /dance /crossarms /fucku");
- SendClientMessage(playerid,0xB4B5B7FF,"/hide /vomit /wave /taichi /kiss /robman /reload /deal /fallover /crack");
- SendClientMessage(playerid,0xBFC0C2FF,"/chat /dance /gift /piss /lean /cpr /cry /cheer /pedmove /wank /bitchslap");
- SendClientMessage(playerid,0xCBCCCEFF,"/slapass /fuckme /bj /rap /hitch /stand /greet /followme /getjiggy");
- SendClientMessage(playerid,0xD8D8D8FF,"/what /signal /crabs /salute /stop /washhands /gesture /hurt /showoff /dive /relax");
- SendClientMessage(playerid,0xD8D8D8FF,"/checktime /rob /sitonchair(/sitdown) /sleep /smoke /nobreath /sit");
- SendClientMessage(playerid, COLOR_GREEN,"_________________________________________________________________________________");
- return 1;
- }
- if(strcmp(cmd,"/sit", true) == 0)
- {
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /sit [1-5]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 5) { SendClientMessage(playerid,0xFF0000FF,"USAGE: /sit [1-5]"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"BEACH","bather",4.0,1,0,0,0,0); }
- if(anumber == 2) { LoopingAnim(playerid,"BEACH","Lay_Bac_Loop",4.0,1,0,0,0,0); }
- if(anumber == 3) { LoopingAnim(playerid,"BEACH","ParkSit_W_loop",4.0,1,0,0,0,0); }
- if(anumber == 4) { LoopingAnim(playerid,"BEACH","SitnWait_loop_W",4.0,1,0,0,0,0); }
- if(anumber == 4) { LoopingAnim(playerid,"BEACH","SitnWait_loop_W",4.0,1,0,0,0,0); }
- if(anumber == 5) { LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0,1,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd,"/nobreath", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /nobreath [1-2]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /nobreath [1-2]{7DAEFF}"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"PED","IDLE_tired",4.0,1,0,0,0,0); }
- if(anumber == 2) { LoopingAnim(playerid,"FAT","IDLE_tired",4.0,1,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd, "/sitonchair", true) == 0 || strcmp(cmd, "/sitdown", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /sitonchair [1-7] or /sitdown [1-7]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 7) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /sitonchair [1-7]{7DAEFF}"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"Attractors","Stepsit_in",4.0,0,0,0,1,0); } // Not looping
- else if(anumber == 2) { LoopingAnim(playerid,"CRIB","PED_Console_Loop",4.0,1,0,0,0,0); }
- else if(anumber == 3) { LoopingAnim(playerid,"INT_HOUSE","LOU_In",4.0,0,0,0,1,0); } // Not looping
- else if(anumber == 4) { LoopingAnim(playerid,"MISC","SEAT_LR",4.0,1,0,0,0,0); }
- else if(anumber == 5) { LoopingAnim(playerid,"MISC","Seat_talk_01",4.0,1,0,0,0,0); }
- else if(anumber == 6) { LoopingAnim(playerid,"MISC","Seat_talk_02",4.0,1,0,0,0,0); }
- else if(anumber == 7) { LoopingAnim(playerid,"ped","SEAT_down",4.0,0,0,0,1,0); } // Not looping
- return 1;
- }
- if(strcmp(cmd, "/handsup", true) == 0)
- {
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
- return 1;
- }
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
- return 1;
- }
- if(strcmp(cmd, "/dance", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /dance [style 1-4]{7DAEFF}");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
- return 1;
- }
- dancestyle = strval(tmp);
- if(dancestyle < 1 || dancestyle > 4)
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /dance [style 1-4]{7DAEFF}");
- return 1;
- }
- if(dancestyle == 1) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1);
- else if(dancestyle == 2) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE2);
- else if(dancestyle == 3) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE3);
- else if(dancestyle == 4) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
- return 1;
- }
- if(strcmp(cmd, "/crossarms", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /crossarms [1-5]{7DAEFF}");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 5)
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /crossarms [1-5]{7DAEFF}");
- return 1;
- }
- if(anumber == 1) LoopingAnim(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
- else if(anumber == 2) LoopingAnim(playerid, "DEALER", "DEALER_IDLE", 4.0, 0, 1, 1, 1, -1);
- else if(anumber == 3) LoopingAnim(playerid, "DEALER", "DEALER_IDLE_01", 4.0, 0, 1, 1, 1, -1);
- else if(anumber == 4) { LoopingAnim(playerid,"GRAVEYARD","mrnM_loop",4.0,1,0,0,0,0); }
- else if(anumber == 5) { LoopingAnim(playerid,"GRAVEYARD","prst_loopa",4.0,1,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd,"/getjiggy", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /getjiggy [1-10]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 10) { SendClientMessage(playerid,0xFF0000FF,"USAGE: /getjiggy [1-10]"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"DANCING","DAN_Down_A",4.0,1,0,0,0,0); }
- if(anumber == 2) { LoopingAnim(playerid,"DANCING","DAN_Left_A",4.0,1,0,0,0,0); }
- if(anumber == 3) { LoopingAnim(playerid,"DANCING","DAN_Loop_A",4.0,1,0,0,0,0); }
- if(anumber == 4) { LoopingAnim(playerid,"DANCING","DAN_Right_A",4.0,1,0,0,0,0); }
- if(anumber == 5) { LoopingAnim(playerid,"DANCING","DAN_Up_A",4.0,1,0,0,0,0); }
- if(anumber == 6) { LoopingAnim(playerid,"DANCING","dnce_M_a",4.0,1,0,0,0,0); }
- if(anumber == 7) { LoopingAnim(playerid,"DANCING","dnce_M_b",4.0,1,0,0,0,0); }
- if(anumber == 8) { LoopingAnim(playerid,"DANCING","dnce_M_c",4.0,1,0,0,0,0); }
- if(anumber == 9) { LoopingAnim(playerid,"DANCING","dnce_M_c",4.0,1,0,0,0,0); }
- if(anumber == 10) { LoopingAnim(playerid,"DANCING","dnce_M_d",4.0,1,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd,"/pedmove", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /pedmove [1-26]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 26) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /pedmove [1-26]{7DAEFF}"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"PED","JOG_femaleA",4.0,1,1,1,1,1); }
- if(anumber == 2) { LoopingAnim(playerid,"PED","JOG_maleA",4.0,1,1,1,1,1); }
- if(anumber == 3) { LoopingAnim(playerid,"PED","WOMAN_walkfatold",4.0,1,1,1,1,1); }
- if(anumber == 4) { LoopingAnim(playerid,"PED","run_fat",4.0,1,1,1,1,1); }
- if(anumber == 5) { LoopingAnim(playerid,"PED","run_fatold",4.0,1,1,1,1,1); }
- if(anumber == 6) { LoopingAnim(playerid,"PED","run_old",4.0,1,1,1,1,1); }
- if(anumber == 7) { LoopingAnim(playerid,"PED","Run_Wuzi",4.0,1,1,1,1,1); }
- if(anumber == 8) { LoopingAnim(playerid,"PED","swat_run",4.0,1,1,1,1,1); }
- if(anumber == 9) { LoopingAnim(playerid,"PED","WALK_fat",4.0,1,1,1,1,1); }
- if(anumber == 10) { LoopingAnim(playerid,"PED","WALK_fatold",4.0,1,1,1,1,1); }
- if(anumber == 11) { LoopingAnim(playerid,"PED","WALK_gang1",4.0,1,1,1,1,1); }
- if(anumber == 12) { LoopingAnim(playerid,"PED","WALK_gang2",4.0,1,1,1,1,1);}
- if(anumber == 13) { LoopingAnim(playerid,"PED","WALK_old",4.0,1,1,1,1,1);}
- if(anumber == 14) { LoopingAnim(playerid,"PED","WALK_shuffle",4.0,1,1,1,1,1);}
- if(anumber == 15) { LoopingAnim(playerid,"PED","woman_run",4.0,1,1,1,1,1);}
- if(anumber == 16) { LoopingAnim(playerid,"PED","WOMAN_runbusy",4.0,1,1,1,1,1); }
- if(anumber == 17) { LoopingAnim(playerid,"PED","WOMAN_runfatold",4.0,1,1,1,1,1); }
- if(anumber == 18) { LoopingAnim(playerid,"PED","woman_runpanic",4.0,1,1,1,1,1); }
- if(anumber == 19) { LoopingAnim(playerid,"PED","WOMAN_runsexy",4.0,1,1,1,1,1); }
- if(anumber == 20) { LoopingAnim(playerid,"PED","WOMAN_walkbusy",4.0,1,1,1,1,1);}
- if(anumber == 21) { LoopingAnim(playerid,"PED","WOMAN_walkfatold",4.0,1,1,1,1,1); }
- if(anumber == 22) { LoopingAnim(playerid,"PED","WOMAN_walknorm",4.0,1,1,1,1,1); }
- if(anumber == 23) { LoopingAnim(playerid,"PED","WOMAN_walkold",4.0,1,1,1,1,1); }
- if(anumber == 24) { LoopingAnim(playerid,"PED","WOMAN_walkpro",4.0,1,1,1,1,1);}
- if(anumber == 25) { LoopingAnim(playerid,"PED","WOMAN_walksexy",4.0,1,1,1,1,1);}
- if(anumber == 26) { LoopingAnim(playerid,"PED","WOMAN_walkshop",4.0,1,1,1,1,1); }
- return 1;
- }
- if(strcmp(cmd, "/rap", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /rap [style 1-3]{7DAEFF}");
- return 1;
- }
- rapstyle = strval(tmp);
- if(rapstyle < 1 || rapstyle > 3)
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /rap [style 1-3]{7DAEFF}");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
- return 1;
- }
- if(rapstyle == 1) LoopingAnim(playerid,"RAPPING","RAP_A_Loop",4.0,1,1,1,1,0);
- else if(rapstyle == 2) LoopingAnim(playerid,"RAPPING","RAP_B_Loop",4.0,1,1,1,1,0);
- else if(rapstyle == 3) LoopingAnim(playerid,"RAPPING","RAP_C_Loop",4.0,1,1,1,1,0);
- return 1;
- }
- if(strcmp(cmd, "/reload", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /reload [style 1-5]{7DAEFF}");
- return 1;
- }
- new rstyle = strval(tmp);
- if(rstyle < 1 || rstyle > 5)
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /reload [style 1-5]{7DAEFF}");
- return 1;
- }
- if(rstyle == 1) ApplyAnimation(playerid,"COLT45","colt45_reload", 4.0, 0, 0, 0, 0, 0);
- else if(rstyle == 2) ApplyAnimation(playerid,"COLT45","sawnoff_reload", 4.0, 0, 0, 0, 0, 0);
- else if(rstyle == 3) ApplyAnimation(playerid,"BUDDY","buddy_reload", 4.0, 0, 0, 0, 0, 0);
- else if(rstyle == 4) ApplyAnimation(playerid,"RIFLE","RIFLE_load", 4.0, 0, 0, 0, 0, 0);
- else if(rstyle == 5) ApplyAnimation(playerid,"PYTHON","python_reload", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp(cmd,"/dj", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /dj [1-4]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 4) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /dj [1-4]{7DAEFF}"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"SCRATCHING","scdldlp",4.0,1,0,0,0,0); }
- if(anumber == 2) { LoopingAnim(playerid,"SCRATCHING","scdlulp",4.0,1,0,0,0,0); }
- if(anumber == 3) { LoopingAnim(playerid,"SCRATCHING","scdrdlp",4.0,1,0,0,0,0); }
- if(anumber == 4) { LoopingAnim(playerid,"SCRATCHING","scdrulp",4.0,1,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd, "/skate", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /skate [style 1-3]{7DAEFF}");
- return 1;
- }
- new rstyle = strval(tmp);
- if(rstyle < 1 || rstyle > 6)
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /skate [style 1-3]{7DAEFF}");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
- return 1;
- }
- if(rstyle == 1) LoopingAnim(playerid,"SKATE","skate_idle", 4.0, 1, 1, 1, 1, 1);
- else if(rstyle == 2) LoopingAnim(playerid,"SKATE","skate_run", 4.0, 1, 1, 1, 1, 1);
- else if(rstyle == 3) LoopingAnim(playerid,"SKATE","skate_sprint", 4.0, 1, 1, 1, 1, 1);
- return 1;
- }
- if(strcmp(cmd, "/wank", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /wank [style 1-3]{7DAEFF}");
- return 1;
- }
- wankstyle = strval(tmp);
- if(wankstyle < 1 || wankstyle > 3)
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /wank [style 1-3]{7DAEFF}");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
- return 1;
- }
- if(wankstyle == 1) LoopingAnim(playerid,"PAULNMAC","wank_in",4.0,1,1,1,1,0);
- else if(wankstyle == 2) LoopingAnim(playerid,"PAULNMAC","wank_loop",4.0,1,1,1,1,0);
- else if(wankstyle == 3) OnePlayAnim(playerid,"PAULNMAC","wank_out",4.0,0,0,0,0,0);
- return 1;
- }
- if(strcmp(cmd, "/fuckme", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /fuckme [style 1-8]{7DAEFF}");
- return 1;
- }
- sexstyle = strval(tmp);
- if(sexstyle < 1 || sexstyle > 8)
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /fuckme [style 1-8]{7DAEFF}");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
- return 1;
- }
- if(sexstyle == 1) LoopingAnim(playerid,"SNM","SPANKING_IDLEW",4.1,0,1,1,1,0);
- else if(sexstyle == 2) LoopingAnim(playerid,"SNM","SPANKING_IDLEP",4.1,0,1,1,1,0);
- else if(sexstyle == 3) LoopingAnim(playerid,"SNM","SPANKINGW",4.1,0,1,1,1,0);
- else if(sexstyle == 4) LoopingAnim(playerid,"SNM","SPANKINGP",4.1,0,1,1,1,0);
- else if(sexstyle == 5) LoopingAnim(playerid,"SNM","SPANKEDW",4.1,0,1,1,1,0);
- else if(sexstyle == 6) LoopingAnim(playerid,"SNM","SPANKEDP",4.1,0,1,1,1,0);
- else if(sexstyle == 7) LoopingAnim(playerid,"SNM","SPANKING_ENDW",4.1,0,1,1,1,0);
- else if(sexstyle == 8) LoopingAnim(playerid,"SNM","SPANKING_ENDP",4.1,0,1,1,1,0);
- return 1;
- }
- if(strcmp(cmd, "/bj", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /bj [style 1-12]{7DAEFF}");
- return 1;
- }
- bjstyle = strval(tmp);
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
- return 1;
- }
- if(bjstyle < 1 || bjstyle > 12)
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /bj [style 1-12]{7DAEFF}");
- return 1;
- }
- if(bjstyle == 1) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_START_P",4.1,0,1,1,1,0);
- else if(bjstyle == 2) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_START_W",4.1,0,1,1,1,0);
- else if(bjstyle == 3) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_P",4.1,0,1,1,1,0);
- else if(bjstyle == 4) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_W",4.1,0,1,1,1,0);
- else if(bjstyle == 5) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_END_P",4.1,0,1,1,1,0);
- else if(bjstyle == 6) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_END_W",4.1,0,1,1,1,0);
- else if(bjstyle == 7) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_START_P",4.1,0,1,1,1,0);
- else if(bjstyle == 8) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_START_W",4.1,0,1,1,1,0);
- else if(bjstyle == 9) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_LOOP_P",4.1,0,1,1,1,0);
- else if(bjstyle == 10) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_LOOP_W",4.1,0,1,1,1,0);
- else if(bjstyle == 11) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_END_P",4.1,0,1,1,1,0);
- else if(bjstyle == 12) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_END_W",4.1,0,1,1,1,0);
- return 1;
- }
- if(strcmp(cmd,"/signal", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /signal [1-2]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /signal [1-2]{7DAEFF}"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"POLICE","CopTraf_Come",4.0,0,0,0,0,0); }
- if(anumber == 2) { LoopingAnim(playerid,"POLICE","CopTraf_Stop",4.0,0,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd, "/lean", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE /lean [1-2]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE /lean [1-2]{7DAEFF}"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"GANGS","leanIDLE",4.1,0,0,0,1,0); }
- else if(anumber == 2) { LoopingAnim(playerid,"MISC","Plyrlean_loop",4.1,0,0,0,1,0); }
- return 1;
- }
- if(strcmp(cmd, "/sleep", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE /sleep [1-2]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 4) { SendClientMessage(playerid,0xFF0000FF,"USAGE /sleep [1-2]"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"CRACK","crckdeth4",4.0,0,0,0,1,0); }
- else if(anumber == 2) { LoopingAnim(playerid,"CRACK","crckidle2",4.0,0,0,0,1,0); }
- return 1;
- }
- if(strcmp(cmd,"/fallover", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /fallover [1-4]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 4) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /fallover [1-4]{7DAEFF}"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"KNIFE","KILL_Knife_Ped_Die",4.0,0,1,1,1,0); }
- if(anumber == 2) { LoopingAnim(playerid,"PED","KO_shot_face",4.0,0,1,1,1,0); }
- if(anumber == 3) { LoopingAnim(playerid,"PED","KO_shot_stom",4.0,0,1,1,1,0); }
- if(anumber == 4) { LoopingAnim(playerid, "PED", "BIKE_fallR", 4.0, 0, 1, 1, 0, 0); }
- return 1;
- }
- if(strcmp(cmd,"/wave", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /wave [1-3]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 3) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /wave [1-3]{7DAEFF}"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"ON_LOOKERS","wave_loop",4.0,1,0,0,0,0); }
- if(anumber == 2) { OnePlayAnim(playerid,"KISSING","gfwave2",4.0,0,0,0,0,0); }
- if(anumber == 3) { OnePlayAnim(playerid,"PED","endchat_03",4.0,0,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd,"/cheer", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /cheer [1-8]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 8) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /cheer [1-8]{7DAEFF}"); return 1; }
- if(anumber == 1) { OnePlayAnim(playerid,"ON_LOOKERS","shout_01",4.0,0,0,0,0,0); }
- if(anumber == 2) { OnePlayAnim(playerid,"ON_LOOKERS","shout_02",4.0,0,0,0,0,0); }
- if(anumber == 3) { OnePlayAnim(playerid,"ON_LOOKERS","shout_in",4.0,0,0,0,0,0); }
- if(anumber == 4) { LoopingAnim(playerid,"RIOT","RIOT_ANGRY_B",4.0,1,0,0,0,0); }
- if(anumber == 5) { OnePlayAnim(playerid,"RIOT","RIOT_CHANT",4.0,0,0,0,0,0); }
- if(anumber == 6) { OnePlayAnim(playerid,"RIOT","RIOT_shout",4.0,0,0,0,0,0); }
- if(anumber == 7) { OnePlayAnim(playerid,"STRIP","PUN_HOLLER",4.0,0,0,0,0,0); }
- if(anumber == 8) { OnePlayAnim(playerid,"OTB","wtchrace_win",4.0,0,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd,"/deal", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /deal [1-2]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /deal [1-2]{7DAEFF}"); return 1; }
- if(anumber == 1) { OnePlayAnim(playerid,"DEALER", "DEALER_DEAL",4.0,0,0,0,0,0); }
- if(anumber == 2) { OnePlayAnim(playerid,"DEALER","shop_pay",4.0,0,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd,"/chat", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /chat [1-7]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 7) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /chat [1-7]{7DAEFF}"); return 1; }
- if(anumber == 1) { OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0); }
- if(anumber == 2) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkA",4.0,0,0,0,0,0); }
- if(anumber == 3) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkB",4.0,0,0,0,0,0); }
- if(anumber == 4) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkE",4.0,0,0,0,0,0); }
- if(anumber == 5) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkF",4.0,0,0,0,0,0); }
- if(anumber == 6) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkG",4.0,0,0,0,0,0); }
- if(anumber == 7) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkH",4.0,0,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd,"/gesture", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /gesture [1-15]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 15) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /gesture [1-15]{7DAEFF}"); return 1; }
- if(anumber == 1) { OnePlayAnim(playerid,"GHANDS","gsign1",4.0,0,0,0,0,0); }
- if(anumber == 2) { OnePlayAnim(playerid,"GHANDS","gsign1LH",4.0,0,0,0,0,0); }
- if(anumber == 3) { OnePlayAnim(playerid,"GHANDS","gsign2",4.0,0,0,0,0,0); }
- if(anumber == 4) { OnePlayAnim(playerid,"GHANDS","gsign2LH",4.0,0,0,0,0,0); }
- if(anumber == 5) { OnePlayAnim(playerid,"GHANDS","gsign3",4.0,0,0,0,0,0);}
- if(anumber == 6) { OnePlayAnim(playerid,"GHANDS","gsign3LH",4.0,0,0,0,0,0); }
- if(anumber == 7) { OnePlayAnim(playerid,"GHANDS","gsign4",4.0,0,0,0,0,0); }
- if(anumber == 8) { OnePlayAnim(playerid,"GHANDS","gsign4LH",4.0,0,0,0,0,0); }
- if(anumber == 9) { OnePlayAnim(playerid,"GHANDS","gsign5",4.0,0,0,0,0,0); }
- if(anumber == 10) { OnePlayAnim(playerid,"GHANDS","gsign5",4.0,0,0,0,0,0); }
- if(anumber == 11) { OnePlayAnim(playerid,"GHANDS","gsign5LH",4.0,0,0,0,0,0); }
- if(anumber == 12) { OnePlayAnim(playerid,"GANGS","Invite_No",4.0,0,0,0,0,0); }
- if(anumber == 13) { OnePlayAnim(playerid,"GANGS","Invite_Yes",4.0,0,0,0,0,0); }
- if(anumber == 14) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkD",4.0,0,0,0,0,0); }
- if(anumber == 15) { OnePlayAnim(playerid,"GANGS","smkcig_prtl",4.0,0,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd,"/smoke", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /smoke [1-2]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /smoke [1-2]{7DAEFF}"); return 1; }
- if(anumber == 1) { OnePlayAnim(playerid,"SMOKING","M_smk_in",4.0,0,0,0,0,0); }
- if(anumber == 2) { LoopingAnim(playerid,"SMOKING","M_smklean_loop",4.0,1,0,0,0,0); }
- return 1;
- }
- if(strcmp(cmd,"/hurt", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /hurt [1-2]{7DAEFF}");
- return 1;
- }
- anumber = strval(tmp);
- if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /hurt [1-2]{7DAEFF}"); return 1; }
- if(anumber == 1) { LoopingAnim(playerid,"SWAT","gnstwall_injurd",4.0,1,0,0,0,0); }
- if(anumber == 2) { LoopingAnim(playerid,"SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0); }
- PlayerHurt[playerid] = 1;
- return 1;
- }
- if(strcmp(cmd, "/checktime", true) == 0) { OnePlayAnim(playerid, "COP_AMBIENT", "Coplook_watch",4.0,0,0,0,0,0); return 1; }
- if(strcmp("/relax", cmdtext, true) == 0) { LoopingAnim(playerid, "CRACK", "crckidle1",4.0,0,1,1,1,-1); return 1; }
- if(strcmp("/dive", cmdtext, true) == 0) { LoopingAnim(playerid,"DODGE","Crush_Jump",4.0,0,1,1,1,0); return 1; }
- if(strcmp("/showoff", cmdtext, true) == 0) { OnePlayAnim(playerid,"Freeweights","gym_free_celebrate",4.0,0,0,0,0,0); return 1; }
- if(strcmp("/crabs", cmdtext, true) == 0) { OnePlayAnim(playerid,"MISC","Scratchballs_01",4.0,0,0,0,0,0); return 1; }
- if(strcmp("/salute", cmdtext, true) == 0) { OnePlayAnim(playerid,"ON_LOOKERS","Pointup_loop",4.0,0,0,0,0,0); return 1; }
- if(strcmp("/stop", cmdtext, true) == 0) { OnePlayAnim(playerid,"PED","endchat_01",4.0,0,0,0,0,0); return 1; }
- if(strcmp("/washhands", cmdtext, true) == 0) { OnePlayAnim(playerid,"BD_FIRE","wash_up",4.0,0,0,0,0,0); return 1; }
- if(strcmp("/cry", cmdtext, true) == 0) { LoopingAnim(playerid,"GRAVEYARD","mrnF_loop",4.0,1,0,0,0,0); return 1; }
- if(strcmp("/what", cmdtext, true) == 0) { LoopingAnim(playerid,"RIOT","RIOT_ANGRY", 4.0, 0, 0, 0, 0, 0); return 1; }
- if(strcmp(cmd, "/piss", true) == 0) { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING); return 1; }
- if(strcmp(cmd, "/followme", true) == 0) { ApplyAnimation(playerid,"WUZI","Wuzi_follow",4.0,0,0,0,0,0); return 1; }
- if(strcmp(cmd, "/greet", true) == 0) { ApplyAnimation(playerid,"WUZI","Wuzi_Greet_Wuzi",4.0,0,0,0,0,0); return 1; }
- if(strcmp(cmd, "/stand", true) == 0) { LoopingAnim(playerid,"WUZI","Wuzi_stand_loop", 4.0, 1, 0, 0, 0, 0); return 1; }
- if(strcmp(cmd, "/hitch", true) == 0) { LoopingAnim(playerid,"MISC","Hiker_Pose", 4.0, 1, 0, 0, 0, 0); return 1; }
- if(strcmp(cmd, "/bitchslap", true) == 0) { ApplyAnimation(playerid,"MISC","bitchslap",4.0,0,0,0,0,0); return 1; }
- if(strcmp("/cpr", cmdtext, true) == 0) { OnePlayAnim(playerid,"MEDIC","CPR",4.0,0,0,0,0,0); return 1; }
- if(strcmp(cmd, "/gift", true) == 0) { ApplyAnimation(playerid,"KISSING","gift_give",4.0,0,0,0,0,0); return 1; }
- if(strcmp(cmd, "/slapass", true) == 0) { ApplyAnimation(playerid,"SWEET","sweet_ass_slap",4.0,0,0,0,0,0); return 1; }
- if(strcmp(cmd, "/drunk", true) == 0) { LoopingAnim(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1); return 1; }
- if (strcmp("/bomb", cmdtext, true) == 0) { ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); return 1; }
- if(strcmp("/rob", cmdtext, true) == 0) { LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0); return 1; }
- if (strcmp("/laugh", cmdtext, true) == 0) { ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); return 1; }
- if (strcmp("/lookout", cmdtext, true) == 0) { ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); return 1; }
- if (strcmp("/robman", cmdtext, true) == 0) { LoopingAnim(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0); return 1; }
- if (strcmp("/hide", cmdtext, true, 3) == 0) { LoopingAnim(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0); return 1; }
- if (strcmp("/vomit", cmdtext, true) == 0) { ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); return 1; }
- if (strcmp("/eat", cmdtext, true) == 0) { ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); return 1; }
- if (strcmp("/crack", cmdtext, true, 6) == 0) { LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); return 1; }
- if(strcmp(cmd, "/fucku", true) == 0) { ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0); return 1; }
- if(strcmp(cmd, "/taichi", true) == 0) { LoopingAnim(playerid,"PARK","Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0); return 1; }
- if(strcmp(cmd, "/kiss", true) == 0) { ApplyAnimation(playerid,"KISSING","Playa_Kiss_01",4.0,0,0,0,0,0); return 1; }
- if(strcmp(cmd,"/witness",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /witness [Playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot offer to be your own witness."); return 1; }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You requested %s to be your Marriage Witness.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s just requested you to be their Marriage Witness (type /accept witness) to accept.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- MarryWitnessOffer[giveplayerid] = playerid;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/irc",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr)) {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/irc join [channelnr] or /irc join [channelnr] [password]) (/irc Leave) (/irc Admins){7DAEFF}");
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc [name] [channelnr]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: MOTD, Password, NeedPass, Lock, Kick, Status");
- return 1;
- }
- if(strcmp(x_nr,"join",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc join [channelnr] or /irc join [channelnr] [password]{7DAEFF}");
- return 1;
- }
- new channel = strvalEx(tmp);
- if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
- channel -= 1;
- if(IRCInfo[channel][iLock] == 0)
- {
- if(IRCInfo[channel][iNeedPass] == 0)
- {
- JoinChannelNr(playerid, channel);
- }
- else
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "There's a password required to join this Channel");
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc join [channelnr] [password]{7DAEFF}");
- return 1;
- }
- JoinChannel(playerid,channel,tmp);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That Channel is Locked, please choose a different one.");
- return 1;
- }
- }
- else if(strcmp(x_nr,"status",true) == 0)
- {
- for(new i = 0; i < sizeof(IRCInfo); i++)
- {
- format(string, sizeof(string), "Channel %d: %d Players Connected.",i + 1, IRCInfo[i][iPlayers]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
- else if(strcmp(x_nr,"password",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc password [channelnr] [password]{7DAEFF}");
- return 1;
- }
- new channel = strvalEx(tmp);
- if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
- channel -= 1;
- new wstring[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s", sendername);
- strmid(wstring, string, 0, strlen(string), 255);
- if(strcmp(IRCInfo[channel][iAdmin],wstring, true ) == 0 )
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc password [channelnr] [password]{7DAEFF}");
- return 1;
- }
- strmid(IRCInfo[channel][iPassword], tmp, 0, strlen(tmp), 255);
- format(string, sizeof(string), "You've changed the IRC Channel's Password to: %s.",IRCInfo[channel][iPassword]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SaveIRC();
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not the Admin of that Channel.");
- return 1;
- }
- }
- else if(strcmp(x_nr,"needpass",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc needpass [channelnr]{7DAEFF}");
- return 1;
- }
- new channel = strvalEx(tmp);
- if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
- channel -= 1;
- new wstring[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s", sendername);
- strmid(wstring, string, 0, strlen(string), 255);
- if(strcmp(IRCInfo[channel][iAdmin],wstring, true ) == 0 )
- {
- if(IRCInfo[channel][iNeedPass] != 0)
- {
- IRCInfo[channel][iNeedPass] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "Players won't have to fill in a password in order to join the IRC Channel now.");
- }
- else
- {
- IRCInfo[channel][iNeedPass] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "Players must fill in a password in order to join the IRC Channel now.");
- }
- SaveIRC();
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not the Admin of that Channel.");
- return 1;
- }
- }
- else if(strcmp(x_nr,"lock",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc lock [channelnr]{7DAEFF}");
- return 1;
- }
- new channel = strvalEx(tmp);
- if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
- channel -= 1;
- new wstring[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s", sendername);
- strmid(wstring, string, 0, strlen(string), 255);
- if(strcmp(IRCInfo[channel][iAdmin],wstring, true ) == 0 )
- {
- if(IRCInfo[channel][iLock] != 0)
- {
- IRCInfo[channel][iLock] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "You've unlocked the IRC Channel.");
- }
- else
- {
- IRCInfo[channel][iLock] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You've locked the IRC Channel.");
- }
- SaveIRC();
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not the Admin of that Channel.");
- return 1;
- }
- }
- else if(strcmp(x_nr,"motd",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc motd [channelnr] [motdtext]{7DAEFF}");
- return 1;
- }
- new channel = strvalEx(tmp);
- if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
- channel -= 1;
- new wstring[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s", sendername);
- strmid(wstring, string, 0, strlen(string), 255);
- if(strcmp(IRCInfo[channel][iAdmin],wstring, true ) == 0 )
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc motd [motdtext]{7DAEFF}");
- return 1;
- }
- strmid(IRCInfo[channel][iMOTD], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_YELLOW, "{7DAEFF}You've adjusted the IRC Channel's MOTD Text.{7DAEFF}");
- SaveIRC();
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not the Admin of that Channel.");
- return 1;
- }
- }
- else if(strcmp(x_nr,"leave",true) == 0)
- {
- if(PlayersChannel[playerid] < 999)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has left the Channel.", sendername);
- SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
- IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
- PlayersChannel[playerid] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not in an IRC Channel !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"admins",true) == 0)
- {
- for(new i = 0; i < sizeof(IRCInfo); i++)
- {
- format(string, sizeof(string), "Channel %d: %s.", i + 1, IRCInfo[i][iAdmin]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
- else if(strcmp(x_nr,"kick",true) == 0)
- {
- if(PlayersChannel[playerid] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in an IRC Channel.");
- return 1;
- }
- new wstring[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s", sendername);
- strmid(wstring, string, 0, strlen(string), 255);
- if(strcmp(IRCInfo[PlayersChannel[playerid]][iAdmin],wstring, true ) == 0 )
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc kick [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayersChannel[giveplayerid] == PlayersChannel[playerid])
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've kicked %s out of your IRC Channel.",giveplayer);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* You've been kicked out of the IRC Channel by Channel Admin: %s.",sendername);
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s has left the Channel (Kicked).", sendername);
- SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
- IRCInfo[PlayersChannel[giveplayerid]][iPlayers] -= 1;
- PlayersChannel[giveplayerid] = 999;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not in your IRC Channel !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not the Admin of the Channel !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid IRC Channel Number ! ");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/i",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayersChannel[playerid] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not in an IRC Channel !");
- return 1;
- }
- if(PlayerInfo[playerid][pMuted] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cannot speak, you have been silenced !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /i [irc chat]{7DAEFF}");
- return 1;
- }
- format(string, sizeof(string), "* IRC %s: %s.", sendername, result);
- SendIRCMessage(PlayersChannel[playerid], COLOR_YELLOW2, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/wt", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pWT]!=1)
- {
- SendClientMessage(playerid,COLOR_GREY,"You don`t have a Walkie Talkie.");
- return 1;
- }
- if(WTOnline[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your Walkie Talkie is Off !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /wt [message]{7DAEFF}");
- return 1;
- }
- new channel = PlayerInfo[playerid][pWTc];
- format(string, sizeof(string), "** Walkie Talkie %s: %s.", sendername, result);
- if(PlayerInfo[playerid][pWTc] > 0 && PlayerInfo[playerid][pWTc] < 1000000)
- {
- SendWTMessage(channel, 0x638F9CFF, string);
- SetPlayerChatBubble(playerid,string, 0x638F9CFF,30.0,10000);
- printf("%s", string);
- // format(string, sizeof(string), "* %s Talked in their Walkie Talkie.", sendername);
- // ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in a channel !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/channel", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pWT]!= 1)
- {
- SendClientMessage(playerid,COLOR_GREY,"You don`t have a Walkie Talkie.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /channel [channel number]{7DAEFF}");
- return 1;
- }
- new channel = strvalEx(tmp);
- if (channel < 1 || channel > 999999)
- return SendClientMessage(playerid, COLOR_GRAD1, "The channel number must not be below 1 or above 999999.");
- PlayerInfo[playerid][pWTc] = channel;
- format(string, sizeof(string), "* You have set your Walkie Talkie to channel to %d.", channel);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/togWT", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!WTOnline[playerid])
- {
- WTOnline[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, " Your Walkie Talkie is now turned off !");
- }
- else if(WTOnline[playerid])
- {
- WTOnline[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "Your Walkie Talkie now is turned on.");
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/settax",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLeader] != 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not the Governor.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /settax [percent]{7DAEFF}");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(moneys < 1 || moneys > 50) { SendClientMessage(playerid, COLOR_GREY, "Tax rate may not be below 1 or above 50."); return 1; }
- Tax = moneys;
- SaveStuff();
- format(string, sizeof(string), "* The Income Tax has been set to %d percent per paycheck.", Tax);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/deliver", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] == 15 || IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
- {
- if(IsACop(playerid) || IsAAgent(playerid))
- {
- if(PlayerInfo[playerid][pOnDuty] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not on Duty !");
- return 1;
- }
- if(PlayerInfo[playerid][pMember] == 1)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your rank is not high enough !");
- return 1;
- }
- }
- else
- {
- if(PlayerInfo[playerid][pRank] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your rank is not high enough.");
- return 1;
- }
- }
- if(!IsPlayerInRangeOfPoint(playerid,8.0,1993.1749,-2313.1492,13.5469))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the Los Santos Airport.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /deliver [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Can't throw yourself into Fort DeMorgan."); return 1; }
- if(IsACop(giveplayerid)) { SendClientMessage(playerid, COLOR_GREY, "We do not accept other police officers."); return 1; }
- if(PlayerInfo[giveplayerid][pWantedLevel] < 6) { SendClientMessage(playerid, COLOR_GREY, "Player must be atleast Wanted Level 6."); return 1; }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(LoadingCashType[giveplayerid] != 0)
- {
- LoadingCashType[giveplayerid] = 0;
- LoadingCashTime[giveplayerid] = 0;
- LoadedCash[giveplayerid] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- DisablePlayerCheckpoint(giveplayerid);
- RemovePlayerAttachedObject(giveplayerid,bankbag);
- SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have sent %s to Fort DeMorgan.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has sent you to Fort DeMorgan.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Fort DeMorgan", 5000, 3);
- ClearGuns(giveplayerid);
- ResetPlayerWeapons(giveplayerid);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- PlayerInfo[giveplayerid][pInt] = 1; // COMMENTED
- SetPlayerInterior(giveplayerid, 1); // COMMENTED
- SetPlayerWantedLevel(giveplayerid, 0);
- SetPlayerColor(giveplayerid, TCOLOR_PRISON); // COMMENTED
- PlayerInfo[giveplayerid][pJailed] = 2;
- PlayerInfo[giveplayerid][pJailTime] = 3600;
- SetPlayerToTeamColor(giveplayerid);
- OnPlayerSave(giveplayerid);
- SetPlayerSkin(giveplayerid, 50); // COMMENTED
- //new prison;
- new rand = random(sizeof(PrisonSpawns)); // COMMENTED
- SetPlayerPos(giveplayerid, PrisonSpawns[rand][0], PrisonSpawns[rand][1], PrisonSpawns[rand][2]);
- SetPlayerFacingAngle(giveplayerid, PrisonSpawns[rand][3]);
- format(PlayerInfo[giveplayerid][pPrisonedBy], 32, "%s (Cop)", PlayerName(playerid));
- format(PlayerInfo[giveplayerid][pPrisonReason], 32, "Most Wanted Criminal");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/cdeliver", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,40.0,1028.0942,1046.1918,11.0000))
- {
- if(IsAAgent(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cdeliver [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Can't throw yourself into CIA Detention."); return 1; }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have sent %s to CIA Detention.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has sent you to CIA Detention.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~b~CIA Detention", 5000, 3);
- ClearGuns(giveplayerid);
- ResetPlayerWeapons(giveplayerid);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- PlayerInfo[giveplayerid][pInt] = 1; // COMMENTED
- SetPlayerInterior(giveplayerid, 1); // COMMENTED
- SetPlayerWantedLevel(giveplayerid, 0);
- SetPlayerColor(giveplayerid, TCOLOR_PRISON); // COMMENTED
- PlayerInfo[giveplayerid][pJailed] = 2;
- PlayerInfo[giveplayerid][pJailTime] = 5000;
- SetPlayerToTeamColor(giveplayerid);
- OnPlayerSave(giveplayerid);
- SetPlayerSkin(giveplayerid, 50); // COMMENTED
- //new prison;
- new rand = random(sizeof(CIASpawns)); // COMMENTED
- SetPlayerPos(giveplayerid, CIASpawns[rand][0], CIASpawns[rand][1], CIASpawns[rand][2]);
- SetPlayerFacingAngle(giveplayerid, CIASpawns[rand][3]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, " You are not in the CIA !");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, " You are not at the detention point !");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, " You are not a logged in !");
- return 1;
- }
- if(strcmp(cmd, "/ndeliver", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,40.0,1789.1893,-1570.7909,1636.9736) || IsPlayerInRangeOfPoint(playerid,90.0,196.0748,1863.6881,19.7967) || IsPlayerInRangeOfPoint(playerid,10.0,449.3295,-86.3893,999.5547))
- {
- if(IsANG(playerid))
- {
- if(PlayerInfo[playerid][pOnDuty] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not on Duty.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ndeliver [playerid/PartOfName]{7DAEFF}");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Can't throw yourself into Fort DeMorgan."); return 1; }
- if(IsANG(giveplayerid)) { SendClientMessage(playerid, COLOR_GREY, "We do not accept other Soldiers."); return 1; }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(LoadingCashType[giveplayerid] != 0)
- {
- LoadingCashType[giveplayerid] = 0;
- LoadingCashTime[giveplayerid] = 0;
- LoadedCash[giveplayerid] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- DisablePlayerCheckpoint(giveplayerid);
- RemovePlayerAttachedObject(giveplayerid,bankbag);
- SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have sent %s to Fort DeMorgan.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has sent you to Fort DeMorgan.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Fort DeMorgan", 5000, 3);
- ClearGuns(giveplayerid);
- ResetPlayerWeapons(giveplayerid);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- PlayerInfo[giveplayerid][pInt] = 1; // COMMENTED
- SetPlayerInterior(giveplayerid, 1); // COMMENTED
- SetPlayerWantedLevel(giveplayerid, 0);
- SetPlayerColor(giveplayerid, TCOLOR_PRISON); // COMMENTED
- PlayerInfo[giveplayerid][pJailed] = 2;
- PlayerInfo[giveplayerid][pJailTime] = 1800;
- SetPlayerToTeamColor(giveplayerid);
- OnPlayerSave(giveplayerid);
- SetPlayerSkin(giveplayerid, 50); // COMMENTED
- //new prison;
- new rand = random(sizeof(PrisonSpawns)); // COMMENTED
- SetPlayerPos(giveplayerid, PrisonSpawns[rand][0], PrisonSpawns[rand][1], PrisonSpawns[rand][2]);
- SetPlayerFacingAngle(giveplayerid, PrisonSpawns[rand][3]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not a National Guard.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not inside DeMorgan grounds .");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not a logged in.");
- return 1;
- }
- if(strcmp(cmd, "/report", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if((noreport))
- {
- SendClientMessage(playerid, COLOR_GREY, "The Report channel has been disabled by an Admin.");
- return 1;
- }
- if(PlayerInfo[playerid][pReportMuted] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are banned from using /report.");
- return 1;
- }
- if(JustReported[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Wait 10 seconds before sending another report.");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /report [text]{7DAEFF}");
- return 1;
- }
- JustReported[playerid] = 1;
- SetTimerEx("ReportReset", 10000, false, "i", playerid);
- format(string, sizeof(string), "* Report from [%d]%s: %s",playerid, sendername, (result));
- ABroadCast(COLOR_LIGHTYELLOW,string,1);
- format(string, sizeof(string), "Your report has been submitted to the online Administrators.", result);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/change", true) == 0) // Trashman - Need to add trashman!
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerInRangeOfPoint(playerid,2,754.5243, -39.7095, 1000.5859) && !IsPlayerInRangeOfPoint(playerid, 2, 2200.5842,-1970.2686,13.7841))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You are not at the locker.");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(IsPlayerInRangeOfPoint(playerid, 2, 754.5243, -39.7095, 1000.5859))
- {
- if(PlayerInfo[playerid][pClothes] != 0)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
- PlayerInfo[playerid][pClothes] = 0;
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- format(string, sizeof(string), "* %s has changed back into their clothes.",sendername);
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- new uniforms[2];
- uniforms[0] = 203;
- uniforms[1] = 204;
- new rand = random(sizeof(uniforms));
- SetPlayerSkin(playerid, uniforms[rand]);
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- PlayerInfo[playerid][pClothes] = uniforms[rand];
- format(string, sizeof(string), "* %s has changed into a karate uniform.",sendername);
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- /* else if(IsPlayerInRangeOfPoint(playerid, 2, 2200.5842,-1970.2686,13.7841)) // Trashman
- {
- if(PlayerInfo[playerid][pClothes] != 0)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
- PlayerInfo[playerid][pClothes] = 0;
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- format(string, sizeof(string), "* %s has changed back into their clothes.",sendername);
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- new uniforms[2];
- uniforms[0] = 79;
- uniforms[1] = 135;
- new rand = random(sizeof(uniforms));
- SetPlayerSkin(playerid, uniforms[rand]);
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- PlayerInfo[playerid][pClothes] = uniforms[rand];
- format(string, sizeof(string), "* %s has changed into a trashman uniform.",sendername);
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }*/
- }
- return 1;
- }
- if(strcmp(cmd, "/clothes", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pFMember] != 255)
- {
- if(IsAtClothShop(playerid))
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the Char you want to use.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
- TogglePlayerControllable(playerid, 0);
- SelectChar[playerid] = 255;
- SelectCharPlace[playerid] = 1;
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = 1; } //LSPD
- else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = 2; } //FBI
- else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { ChosenSkin[playerid] = 34; SelectCharID[playerid] = 3; } //SASP
- else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = 4;} //Paramedic
- else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { ChosenSkin[playerid] = 287; SelectCharID[playerid] = 5; } //National Guards
- else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { ChosenSkin[playerid] = 9; SelectCharID[playerid] = 6; } //Senate
- else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) { ChosenSkin[playerid] = 294; SelectCharID[playerid] = 7;} //CIA
- else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { ChosenSkin[playerid] = 78; SelectCharID[playerid] = 8; } //Hitman
- else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { ChosenSkin[playerid] = 150; SelectCharID[playerid] = 9; } //News
- else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { ChosenSkin[playerid] = 61; SelectCharID[playerid] = 10; } //Taxi
- else if(PlayerInfo[playerid][pFMember] != 255) { ChosenSkin[playerid] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySkin1]; SelectCharID[playerid] = 11; } //Family Member
- SetPlayerSkin(playerid, ChosenSkin[playerid]);
- PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
- ChangeUniform[playerid] = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Clothing Shop !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY, " You are not in a Family / Organisation !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/quitfaction", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0 || PlayerInfo[playerid][pFMember] < 255)
- {
- new ftext[20];
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { ftext = "Police Force"; }
- else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { ftext = "FBI"; }
- else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { ftext = "SAST"; }
- else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { ftext = "Firemen/Ambulance"; }
- else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { ftext = "National Guards"; }
- else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { ftext = "Senate"; }
- else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) { ftext = "CIA"; }
- else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { ftext = "Hitman Agency"; }
- else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { ftext = "News Agency"; }
- else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { ftext = "Taxi Cab Company"; }
- if(IsACop(playerid) || PlayerInfo[playerid][pMember] == 5)
- {
- if(PlayerInfo[playerid][pRequestingBackup] == 1)
- {
- BackupClear(playerid,0);
- }
- PlayerHasTazer[playerid] = 0;
- }
- PlayerInfo[playerid][pRank] = 0;
- PlayerInfo[playerid][pMember] = 0;
- PlayerInfo[playerid][pLeader] = 0;
- PlayerInfo[playerid][pModel] = 299;
- SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have quit the %s.", ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- OnPlayerSave(playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a member of a Faction / Family !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/quitfamily", true) == 0 || strcmp(cmd, "/quitgang", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pFMember] < 255)
- {
- new ftext[20];
- new family = PlayerInfo[playerid][pFMember];
- FamilyInfo[family][FamilyMembers] --; ftext = "Family";
- PlayerInfo[playerid][pFMember] = 255;
- PlayerInfo[playerid][pFRank] = 0;
- PlayerInfo[playerid][pModel] = 299;
- SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have quit the %s.", ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- OnPlayerSave(playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a member of a Family.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/createfire", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- AddFire(X, Y, Z, 120);
- SendClientMessage(playerid, COLOR_YELLOW, "You created a fire.");
- }
- return 1;
- }
- if(strcmp(cmd, "/removefire", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- if(!GetClosestFire(playerid))
- return SendClientMessage(playerid, COLOR_GREY, "You are not close to a fire!");
- DeleteFire(GetClosestFire(playerid));
- SendClientMessage(playerid, COLOR_LIGHTRED, "Fire removed!");
- }
- return 1;
- }
- if(strcmp(cmd, "/removeallfires", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- DeleteAllFire();
- SendClientMessage(playerid, COLOR_LIGHTRED, "All created fires were removed.");
- }
- return 1;
- }
- if(strcmp(cmd, "/announcefire", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- new FireZone[MAX_ZONE_NAME];
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayer2DZone(playerid, FireZone, MAX_ZONE_NAME);
- format(string, sizeof(string), "** Theres a fire at %s", FireZone);
- SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
- format(string, sizeof(string), "You announced to the Fire Department that there's a fire at %s", FireZone);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][pMember] == 4)
- {
- SetPlayerCheckpoint(playerid, X, Y, Z, 4.0);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/spawndonut", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
- return 1;
- }
- new f = 100+1;
- for(new a = 0; a < sizeof(ObjCoords2); a++)
- {
- if(ObjCoords2[a][0] == 0.0)
- {
- f = a;
- break;
- }
- }
- if(f > 100) return SendClientMessage(playerid, COLOR_GREY, "You can not spawn any other donuts at the moment, try back later!!");
- GetPlayerPos(playerid, ObjCoords2[f][0], ObjCoords2[f][1], ObjCoords2[f][2]);
- object2[f] = CreateDynamicObject(2222,ObjCoords2[f][0],ObjCoords2[f][1],ObjCoords2[f][2]-0.9,0,0,0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 100.0);
- new location[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
- format(string, sizeof(string), "AdmWarning: %s has created a donut in %s (%0.2f, %0.2f, %0.2f).", sendername, location, ObjCoords2[f][0], ObjCoords2[f][1], ObjCoords2[f][2]);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- return 1;
- }
- }
- if(strcmp(cmd, "/pickdonut", true) == 0)
- {
- new f = 100+1;
- for(new a = 0; a < sizeof(ObjCoords2); a++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, ObjCoords2[a][0], ObjCoords2[a][1], ObjCoords2[a][2]))
- {
- f = a;
- break;
- }
- }
- if(f > 100) return SendClientMessage(playerid, COLOR_GREY, "You are not near a donut !");
- if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, " You must be on foot !");
- if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick a donut.");
- else
- {
- ObjCoords2[f][0] = 0.0;
- ObjCoords2[f][1] = 0.0;
- ObjCoords2[f][2] = 0.0;
- DestroyDynamicObject(object2[f]);
- PlayerInfo[playerid][pDonuts]+=1;
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has picked up a donut.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- if(strcmp(cmd, "/pickgun", true) == 0 || strcmp(cmd, "/pgun", true) == 0)
- {
- new f = 100+1;
- for(new a = 0; a < sizeof(ObjCoords); a++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, ObjCoords[a][0], ObjCoords[a][1], ObjCoords[a][2]))
- {
- f = a;
- break;
- }
- }
- if(f > 100) return SendClientMessage(playerid, COLOR_GREY, "You are not near the weapon which you can pick up!");
- if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, " You must be on foot !");
- if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick a gun.");
- else
- {
- new gunname[25];
- new buffer[100];
- ObjCoords[f][0] = 0.0;
- ObjCoords[f][1] = 0.0;
- ObjCoords[f][2] = 0.0;
- DestroyDynamicObject(object[f]);
- GivePlayerGun(playerid, ObjectID[f][0]);
- GetWeaponName(ObjectID[f][0], gunname, sizeof(gunname));
- format(buffer, sizeof(buffer), "You picked up a %s", gunname);
- SendClientMessage(playerid, 0x33AA3300, buffer);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has picked up a %s.", sendername, gunname);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- if(strcmp(cmd, "/drop", true) == 0 || strcmp(cmd, "/dump", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /drop [name]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Weapon(s), Pot, Crack, Materials, Packages, Crates, Donuts, Seeds, Suitcase");
- return 1;
- }
- if(strcmp(x_nr,"weapon",true) == 0)
- {
- new gunid = GetPlayerWeapon(playerid);
- if(gunid)
- {
- new f = 100+1;
- for(new a = 0; a < sizeof(ObjCoords); a++)
- {
- if(ObjCoords[a][0] == 0.0)
- {
- f = a;
- break;
- }
- }
- if(f > 100) return SendClientMessage(playerid, COLOR_GREY, "You can not throw weapons at the moment, try back later!!");
- new WeaponName[65];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetWeaponName(gunid, WeaponName, 64);
- if(gunid == 40 && BombID[playerid] != 0) { DestroyDynamicObject(BombID[playerid]); BombID[playerid] = 0; }
- if(gunid == 18) { WeaponName = "Molotovs"; }
- if(gunid == 44) { WeaponName = "Nightvision Goggles"; }
- if(gunid == 45) { WeaponName = "Infared Goggles"; }
- TakeWeapon(playerid,gunid);
- ObjectID[f][0] = gunid;
- GetPlayerPos(playerid, ObjCoords[f][0], ObjCoords[f][1], ObjCoords[f][2]);
- object[f] = CreateDynamicObject(GunObjects[gunid][0],ObjCoords[f][0],ObjCoords[f][1],ObjCoords[f][2]-1,93.7,120.0,120.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 100.0);
- SetTimerEx("DeleteGun", 30000, 0, "d", object[f]);
- format(string, sizeof(string), "* %s has thrown away their %s.", sendername, WeaponName);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," You are not holding a weapon !");
- return 1;
- }
- }
- if(strcmp(x_nr,"weapons",true) == 0)
- {
- ClearGuns(playerid);
- ResetPlayerWeapons(playerid);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has thrown away their Weapons.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- if(strcmp(x_nr,"donuts",true) == 0)
- {
- PlayerInfo[playerid][pDonuts] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has thrown away their Donuts.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- if(strcmp(x_nr,"pot",true) == 0)
- {
- if(PlayerInfo[playerid][pPot] > 0)
- {
- PlayerInfo[playerid][pPot] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has thrown away their Pot.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Pot to throw away !");
- return 1;
- }
- }
- if(strcmp(x_nr,"crack",true) == 0)
- {
- if(PlayerInfo[playerid][pCrack] > 0)
- {
- PlayerInfo[playerid][pCrack] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has thrown away their Crack.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Crack to throw away !");
- return 1;
- }
- }
- if(strcmp(x_nr,"materials",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] > 0)
- {
- PlayerInfo[playerid][pMats] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has thrown away their Materials.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Materials to throw away !");
- return 1;
- }
- }
- if(strcmp(x_nr,"packages",true) == 0)
- {
- if(Packages[playerid] > 0)
- {
- Packages[playerid] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has thrown away their Packages.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Packages to throw away !");
- return 1;
- }
- }
- if(strcmp(x_nr,"seeds",true) == 0)
- {
- if(PlayerInfo[playerid][pSeeds] > 0)
- {
- PlayerInfo[playerid][pSeeds] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has thrown away their Seeds.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Packages to throw away !");
- return 1;
- }
- }
- if(strcmp(x_nr,"crates",true) == 0)
- {
- if(Crates[playerid] > 0)
- {
- Crates[playerid] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has thrown away their Drug Crates.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Drug Crates to throw away !");
- return 1;
- }
- }
- if(strcmp(x_nr,"suitcase",true) == 0)
- {
- if(PlayerInfo[playerid][pSuitcase] == 1)
- {
- PlayerInfo[playerid][pSuitcase] = 0;
- PlayerInfo[playerid][pSuitcasecash] = 0;
- PlayerInfo[playerid][pSuitcasecrack] = 0;
- PlayerInfo[playerid][pSuitcasepot] = 0;
- PlayerInfo[playerid][pSuitcasemats] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has thrown away their Suitcase.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Suitcase to throw away !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid drop name.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/give", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun, Donuts, Suitcase");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
- return 1;
- }
- if(strcmp(tmp,"gunlicense",true) == 0)
- {
- if(IsACop(playerid))
- {
- new vname[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME];
- if(PlayerInfo[giveplayerid][pGunLic] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This player already have a gun license");
- return 1;
- }
- GetPlayerName(giveplayerid, vname, sizeof(vname));
- GetPlayerName(playerid, name, sizeof(name));
- PlayerInfo[giveplayerid][pGunLic] = 1;
- format(string, sizeof(string), "You gave %s a gun license.", vname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You recived a gun license from %s", name);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a cop.");
- return 1;
- }
- }
- if(strcmp(tmp,"pot",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, "You can't give to yourself."); return 1; }
- if(amount > PlayerInfo[playerid][pPot] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, "You don't have that much."); return 1; }
- if(amount > 50 || PlayerInfo[giveplayerid][pPot]+amount > 50) { SendClientMessage(playerid, COLOR_GREY, "That player cannot hold more than 50 Pot."); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "You have given %s %d Pot.", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "You have recieved %d Pot from %s.", amount, sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* %s has given %s some Pot.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot]-amount;
- PlayerInfo[giveplayerid][pPot] = PlayerInfo[giveplayerid][pPot]+amount;
- format(string, sizeof(string), "%s has given %s %d Pot.", sendername, giveplayer, amount);
- PayLog(string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- return 1;
- }
- }
- if(strcmp(tmp,"crack",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, "You can't give to yourself."); return 1; }
- if(amount > PlayerInfo[playerid][pCrack] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, "You don't have that much."); return 1; }
- if(amount > 25 || PlayerInfo[giveplayerid][pCrack]+amount > 25) { SendClientMessage(playerid, COLOR_GREY, "That player cannot hold more than 25 Crack."); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "You have given %s %d Crack.", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "You have recieved %d Crack from %s.", amount, sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "%s has given %s some Crack.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack]-amount;
- PlayerInfo[giveplayerid][pCrack] = PlayerInfo[giveplayerid][pCrack]+amount;
- format(string, sizeof(string), "%s has given %s %d Crack.", sendername, giveplayer, amount);
- PayLog(string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- return 1;
- }
- }
- if(strcmp(tmp,"materials",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give to yourself !"); return 1; }
- if(amount > PlayerInfo[playerid][pMats] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much !"); return 1; }
- if(amount > 50000) { SendClientMessage(playerid, COLOR_GREY, " You can't give more than 50,000 at a time !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have given %s %d Materials.", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved %d Materials from %s.", amount, sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* %s has given %s some Materials.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pMats] -= amount;
- PlayerInfo[giveplayerid][pMats] += amount;
- format(string, sizeof(string), "%s has given %s %d Materials.", sendername, giveplayer, amount);
- PayLog(string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- return 1;
- }
- }
- if(strcmp(tmp,"seeds",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, "You can't give to yourself."); return 1; }
- if(amount > PlayerInfo[playerid][pSeeds] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, "You don't have that much."); return 1; }
- if(amount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't give more than 10 at a time."); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "You have given %s %d Seeds.", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "You have recieved %d Seeds from %s.", amount, sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "%s has given %s some Seeds.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pSeeds] -= amount;
- PlayerInfo[giveplayerid][pSeeds] += amount;
- format(string, sizeof(string), "%s has given %s %d Seeds.", sendername, giveplayer, amount);
- PayLog(string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- return 1;
- }
- }
- if(strcmp(tmp,"gun",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /give [playerid/PartOfName] [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give to yourself !"); return 1; }
- new WeaponName[65], weap;
- weap = GetPlayerWeapon(playerid);
- if (weap == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to hold a weapon to do this !"); return 1; }
- GetWeaponName(weap,WeaponName,64);
- TakeWeapon(playerid, weap);
- GivePlayerGun(giveplayerid, weap);
- format(string, sizeof(string), " You have given %s a %s.", PlayerName(giveplayerid), WeaponName);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved a %s from %s.", WeaponName, PlayerName(playerid));
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* %s takes out a Weapon and hands it to %s", PlayerName(playerid), PlayerName(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "%s has given %s a %s.", sendername, giveplayer, WeaponName);
- PayLog(string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, ".That player is Offline.");
- return 1;
- }
- }
- if(strcmp(tmp,"donuts",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /give [playerid/PartOfName] [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun, Donuts, Suitcase");
- return 1;
- }
- new amount = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give to yourself !"); return 1; }
- if(amount > PlayerInfo[playerid][pDonuts] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much !"); return 1; }
- if(amount > 10) { SendClientMessage(playerid, COLOR_GREY, " You can't give more than 10 at a time !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have given %s %d Donuts.", giveplayer, amount);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved %d Donuts from %s.", amount, sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* %s has given %s some Donuts.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pDonuts] -= amount;
- PlayerInfo[giveplayerid][pDonuts] += amount;
- format(string, sizeof(string), "%s has given %s %d Donuts.", sendername, giveplayer, amount);
- PayLog(string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- if(strcmp(tmp,"suitcase",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pSuitcase] == 1)
- {
- SendClientMessage(playerid,COLOR_GREY, "He already owns a suitcase !");
- return 1;
- }
- if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give to yourself !"); return 1; }
- if(PlayerInfo[playerid][pDonuts] == 0) { SendClientMessage(playerid, COLOR_GREY, " You don't have any suitcase !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have given your suitcase to %s.", giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved a suitcase from %s.", sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* %s has given %s his suitcase.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pSuitcase] = 1;
- PlayerInfo[giveplayerid][pSuitcasecash] = PlayerInfo[playerid][pSuitcasecash];
- PlayerInfo[giveplayerid][pSuitcasecrack] = PlayerInfo[playerid][pSuitcasecrack];
- PlayerInfo[giveplayerid][pSuitcasepot] = PlayerInfo[playerid][pSuitcasepot];
- PlayerInfo[giveplayerid][pSuitcasemats] = PlayerInfo[playerid][pSuitcasemats];
- PlayerInfo[playerid][pSuitcase] = 0;
- PlayerInfo[playerid][pSuitcasecash] = 0;
- PlayerInfo[playerid][pSuitcasecrack] = 0;
- PlayerInfo[playerid][pSuitcasepot] = 0;
- PlayerInfo[playerid][pSuitcasemats] = 0;
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid give name.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/agl", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 5)
- {
- new x_nr[256];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl [name] [PlayerID/PartOfName]");
- SendClientMessage(playerid, COLOR_WHITE, "Available Names: Driving, Flying, Sailing, Fishing, Weapon.");
- return 1;
- }
- if(strcmp(x_nr,"flying",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl flying [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've given a Flying License to %s.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has given you a flying License.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pFlyLic] = 1;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"sailing",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl sailing [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've given a Sailing License to %s.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has given you a sailing license.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pBoatLic] = 1;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"driving",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl driving [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've given a Driving License to %s.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has given you a driving license.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pCarLic] = 1;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"fishing",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl fishing [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've given a Fishing License to %s.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has given you a fishing license.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pFishLic] = 1;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"weapon",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl weapon [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've given a Weapon License to %s.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has given you a weapon license.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pGunLic] = 1;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/atl", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 5)
- {
- new x_nr[256];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl [Name] [PlayerID/PartOfName]");
- SendClientMessage(playerid, COLOR_WHITE, "Available Names: Driving, Flying, Sailing, Fishing, Weapon.");
- return 1;
- }
- if(strcmp(x_nr,"flying",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl flying [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've taken %s's Flying License.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has taken your Flying License.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pFlyLic] = 0;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"sailing",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl sailing [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've taken %s's Sailing License.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s taken your Sailing License.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pBoatLic] = 0;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"driving",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl driving [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've taken %s's Driving License.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has taken your Driving License.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pCarLic] = 0;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"fishing",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl fishing [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've taken %s's Fishing License.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has taken your Fishing License.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pFishLic] = 0;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"weapon",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl weapon [PlayerID/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You've taken %s's Weapon License.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has taken your Weapon License.",sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pGunLic] = 0;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/take", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 1)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your rank is not high enough !");
- return 1;
- }
- }
- else
- {
- if(PlayerInfo[playerid][pRank] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your rank is not high enough !");
- return 1;
- }
- }
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Driverslicense, Flyinglicense, Boatlicense, Gunlicense, Weapons, Pot, Crack, Materials, Cellphone");
- return 1;
- }
- if(strcmp(x_nr,"driverslicense",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't take from yourself !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pCarLic] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Drivers License !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have taken %s's Drivers License.", giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " %s has taken your Drivers License.", sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* Officer %s has taken %s's Drivers License.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pCarLic] = 0;
- format(string, sizeof(string), "%s has taken %s's Drivers License.", sendername, giveplayer);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"flyinglicense",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pFlyLic] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Flying License !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have taken %s's Flying License.", giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " %s has taken your Flying License.", sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* Officer %s has taken %s's Flying License.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pFlyLic] = 0;
- format(string, sizeof(string), "%s has taken %s's Flying License.", sendername, giveplayer);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"gunlicense",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pGunLic] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Weapon License !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have taken %s's Weapon License.", giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " %s has taken your Weapon License.", sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* Officer %s has taken %s's Weapon License.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pGunLic] = 0;
- format(string, sizeof(string), "%s has taken %s's Weapon License.", sendername, giveplayer);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"boatlicense",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pBoatLic] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Boat License !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have taken %s's Boat License.", giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " %s has taken your Boat License.", sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* Officer %s has taken %s's Boat License.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pBoatLic] = 0;
- format(string, sizeof(string), "%s has taken %s's Boat License.", sendername, giveplayer);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"weapons",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have taken %s's Weapons.", giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " %s has taken your Weapons.", sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* Officer %s has taken %s's Weapons.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- ClearGuns(giveplayerid);
- ResetPlayerWeapons(giveplayerid);
- format(string, sizeof(string), "%s has taken %s's Weapons.", sendername, giveplayer);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"pot",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pPot] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have any Pot !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have taken %d Pot from %s.", PlayerInfo[giveplayerid][pPot],giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " %s has taken your %d Pot.", sendername, PlayerInfo[giveplayerid][pPot]);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's Pot.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pPot] = 0;
- format(string, sizeof(string), "%s has taken %d Pot from %s.", sendername, PlayerInfo[giveplayerid][pPot], giveplayer);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"crack",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pCrack] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have any Crack !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have taken %d Crack from %s.", PlayerInfo[giveplayerid][pCrack],giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " %s has taken your %d Crack.", sendername, PlayerInfo[giveplayerid][pCrack]);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's Crack.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pCrack] = 0;
- format(string, sizeof(string), "%s has taken %d Crack from %s.", sendername, PlayerInfo[giveplayerid][pCrack], giveplayer);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"materials",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pMats] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have any Materials !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), " You have taken %d Materials from %s.", PlayerInfo[giveplayerid][pMats],giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " %s has taken your %d Materials.", sendername, PlayerInfo[giveplayerid][pMats]);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's Materials.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pMats] = 0;
- format(string, sizeof(string), "%s has taken %d Materials from %s.", sendername, PlayerInfo[giveplayerid][pMats], giveplayer);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else if(strcmp(x_nr,"cellphone",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pPnumber] == 0) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Cellphone !"); return 1; }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have taken away %s's Cellphone.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s as taken away your Cellphone.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's Cellphone.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pPnumber] = 0;
- format(string, sizeof(string), "%s has taken %s's Cellphone.", sendername, giveplayer);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid take name !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setchamp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setchamp [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- new nstring[MAX_PLAYER_NAME];
- format(nstring, sizeof(nstring), "%s", giveplayer);
- strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
- Titel[TitelWins] = PlayerInfo[giveplayerid][pWins];
- Titel[TitelLoses] = PlayerInfo[giveplayerid][pLoses];
- SaveBoxer();
- format(string, sizeof(string), "* You have made %s the new Boxing Champion.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/boxstats", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 12)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Boxer !");
- return 1;
- }
- new ttext[20];//Title
- new clevel = PlayerInfo[playerid][pBoxSkill];
- if(clevel >= 0 && clevel <= 49) { ttext = "Beginner"; }
- else if(clevel >= 50 && clevel <= 199) { ttext = "Amateur"; }
- else if(clevel >= 200 && clevel <= 399) { ttext = "Professional"; }
- new ntext[20];//NickName
- new level = PlayerInfo[playerid][pWins];
- if(level > 0 && PlayerInfo[playerid][pLoses] == 0)
- {
- ntext = "Undefeated";
- }
- else
- {
- if(level >= 0 && level <= 10) { ntext = "Newcomer"; }
- else if(level >= 11 && level <= 20) { ntext = "Touchy Fist"; }
- else if(level >= 21 && level <= 30) { ntext = "Nut Cracker"; }
- else if(level >= 31 && level <= 40) { ntext = "Tommygun"; }
- else if(level >= 41 && level <= 50) { ntext = "Skull Breaker"; }
- else if(level >= 51 && level <= 60) { ntext = "Light Speed"; }
- else if(level >= 61 && level <= 70) { ntext = "Unbroken Warrior"; }
- else if(level >= 71) { ntext = "Itallion Stallion"; }
- }
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Boxing Records __________________|");
- format(string, sizeof(string), "| Current Champion: %s, with [%d] Winnings and [%d] Losses.", Titel[TitelName],Titel[TitelWins],Titel[TitelLoses]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "| Current Title: %s.", ttext);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "| Current NickName: %s.", ntext);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "| Total Wins: %d.", PlayerInfo[playerid][pWins]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "| Total Losses: %d.", PlayerInfo[playerid][pLoses]);
- SendClientMessage(playerid, COLOR_GREY, string);
- SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________________|");
- }
- return 1;
- }
- if(strcmp(cmd, "/fight", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(InRing > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " There is already a Fight going on, wait for it to Finish !");
- return 1;
- }
- if(PlayerBoxing[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are already Fighting !");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid,20.0,765.9343,0.2761,1000.7173))
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not at the Ganton Gym !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fight [Playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Box with yourself !"); return 1; }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered a Boxing Challenge to %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Boxer %s wants to Fight with you (type /accept boxing) to accept.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- BoxOffer[giveplayerid] = playerid;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/music", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pCDPlayer])
- {
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /music [on/off/next]");
- return 1;
- }
- if(strcmp(x_nr,"on",true) == 0)
- {
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~CD Player On", 5000, 5);
- new channel = Music[playerid];
- PlayerPlaySound(playerid, Songs[channel][0], 0.0, 0.0, 0.0);
- }
- else if(strcmp(x_nr,"off",true) == 0)
- {
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~r~CD Player Off", 5000, 5);
- PlayerFixRadio(playerid);
- }
- else if(strcmp(x_nr,"next",true) == 0)
- {
- if(Music[playerid] == 0) { Music[playerid] = 1; }
- else if(Music[playerid] == 1) { Music[playerid] = 2; }
- else if(Music[playerid] == 2) { Music[playerid] = 3; }
- else if(Music[playerid] == 3) { Music[playerid] = 4; }
- else if(Music[playerid] == 4) { Music[playerid] = 5; }
- else if(Music[playerid] == 5) { Music[playerid] = 6; }
- else if(Music[playerid] == 6) { Music[playerid] = 0; }
- new channel = Music[playerid];
- PlayerPlaySound(playerid, Songs[channel][0], 0.0, 0.0, 0.0);
- }
- else
- {
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a CD-Player !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/service", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /service [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Taxi, Bus, Lawyer, Medic, Mechanic");
- return 1;
- }
- if(strcmp(x_nr,"taxi",true) == 0)
- {
- if(TaxiDrivers < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are no Taxi Drivers on Duty at the moment, try again later !");
- return 1;
- }
- if(TransportDuty[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't call for a Taxi now !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s is in need of a Taxi Driver. (use /accept taxi to accept the call)", sendername);
- SendFamilyMessage(10, TEAM_AZTECAS_COLOR, string);
- SendJobMessage(14, TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Taxi Driver, wait for a reply.");
- TaxiCall = playerid;
- return 1;
- }
- else if(strcmp(x_nr,"bus",true) == 0)
- {
- if(BusDrivers < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are no Bus Drivers On Duty at the moment, try again later !");
- return 1;
- }
- if(TransportDuty[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't call for a Bus now !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s is in need of a Bus Driver. (use /accept bus to accept the call)", sendername);
- SendJobMessage(14, TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Bus Driver, wait for a reply.");
- BusCall = playerid;
- return 1;
- }
- else if(strcmp(x_nr,"medic",true) == 0)
- {
- if(Medics < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are no Medics On Duty at the moment, try again later !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s is in need of a Medic. (use /accept medic to accept the call)", sendername);
- SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Medic, wait for a reply.");
- MedicCall = playerid;
- return 1;
- }
- else if(strcmp(x_nr,"lawyer",true) == 0)
- {
- if(Lawyers < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are no Lawyers On Duty at the moment, try again later !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s is in need of a Lawyer. (use /accept lawyer to accept the call)", sendername);
- SendJobMessage(2, TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Lawyer, wait for a reply.");
- LawyerCall = playerid;
- return 1;
- }
- else if(strcmp(x_nr,"mechanic",true) == 0)
- {
- if(Mechanics < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are no Mechanics On Duty at the moment, try again later !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s is in need of a Mechanic. (use /accept mechanic to accept the call)", sendername);
- SendJobMessage(7, TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Mechanic, wait for a reply.");
- MechanicCall = playerid;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Unknown service name !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/unblindfold", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unblindfold [Playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerBlinded[giveplayerid])
- {
- if(PlayerTied[playerid]) return SendClientMessage(playerid,COLOR_GREY," You cannot unblindfold anyone, your arms are tied up!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You were unblindfolded by Stranger.");
- }
- else
- {
- format(string, sizeof(string), "* You were unblindfolded by %s.", sendername);
- }
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You unblindfolded Stranger.");
- }
- else
- {
- format(string, sizeof(string), "* You unblindfolded %s.", giveplayer);
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger takes the blindfold off of Stranger.");
- }
- else if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger takes the blindfold off of %s.", giveplayer);
- }
- else if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* %s takes the blindfold off of Stranger.", sendername);
- }
- else
- {
- format(string, sizeof(string), "* %s takes the blindfold off of %s.", sendername,giveplayer);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GameTextForPlayer(giveplayerid, "~g~Unblindfolded", 2500, 3);
- SetCameraBehindPlayer(giveplayerid);
- PlayerBlinded[giveplayerid] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player isn't blindfolded !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/blindfold", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pBlindfolds] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have any blindfolds, buy some from the 24/7 !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /blindfold [Playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't Blindfold yourself !");
- return 1;
- }
- if(PlayerBlinded[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Player already Blindfolded !");
- return 1;
- }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerTied[giveplayerid] > 0)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You were blindfolded by Stranger.");
- }
- else
- {
- format(string, sizeof(string), "* You were blindfolded by %s.", sendername);
- }
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You blindfolded Stranger.");
- }
- else
- {
- format(string, sizeof(string), "* You blindfolded %s.", giveplayer);
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger ties a blindfold around Stranger's head.");
- }
- else if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger ties a blindfold around %s's head.", giveplayer);
- }
- else if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* %s ties a blindfold around Stranger's head.", sendername);
- }
- else
- {
- format(string, sizeof(string), "* %s ties a blindfold around %s's head.", sendername,giveplayer);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GameTextForPlayer(giveplayerid, "~r~Blindfolded", 2500, 3);
- PlayerBlinded[giveplayerid] = 1;
- SetPlayerCameraPos(giveplayerid, -833.5241,-1358.8575,86.9054);
- SetPlayerCameraLookAt(giveplayerid, -833.5241,-1358.8575,0);
- PlayerInfo[playerid][pBlindfolds]--;
- }
- else
- {
- if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger attempts to tie a blindfold around Stranger's head, but fails.");
- }
- else if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger attempts to tie a blindfold around %s's head, but fails.", PlayerName(giveplayerid));
- }
- else if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* %s attempts to tie a blindfold around Stranger's head, but fails.", PlayerName(playerid));
- }
- else
- {
- format(string, sizeof(string), "* %s attempts to tie a blindfold around %s's head, but fails.", PlayerName(playerid),PlayerName(giveplayerid));
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/tie", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pRope] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have any rope, buy some from the 24/7 !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /tie [Playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't Tie yourself !");
- return 1;
- }
- if(PlayerCuffed[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Cuffed !");
- return 1;
- }
- if(PlayerTied[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Player already Tied !");
- return 1;
- }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- new car = GetPlayerVehicleID(playerid);
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You were tied up by Stranger.");
- }
- else
- {
- format(string, sizeof(string), "* You were tied up by %s.", sendername);
- }
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You tied Stranger up.");
- }
- else
- {
- format(string, sizeof(string), "* You tied %s up.", giveplayer);
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger ties Stranger up, so he wont go anywhere.");
- }
- else if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger ties %s up, so he wont go anywhere.", giveplayer);
- }
- else if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* %s ties Stranger up, so he wont go anywhere.", sendername);
- }
- else
- {
- format(string, sizeof(string), "* %s ties %s up, so he wont go anywhere.", sendername,giveplayer);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GameTextForPlayer(giveplayerid, "~r~Tied", 2500, 3);
- TogglePlayerControllable(giveplayerid, 0);
- PlayerTied[giveplayerid] = 1;
- PlayerCuffedTime[giveplayerid] = 150;
- PlayerInfo[playerid][pRope]--;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Player not in your Car, or your not the Driver !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/usecigar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pCigars] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have any cigars, buy some from the 24/7 !");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger takes out a cigar and lights it.");
- }
- else
- {
- format(string, sizeof(string), "* %s takes out a cigar and lights it.", PlayerName(playerid));
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
- PlayerInfo[playerid][pCigars]--;
- }
- return 1;
- }
- if(strcmp(cmd, "/donuts", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pDonuts] == 1) format(string, sizeof(string), "You have %d donuts.", PlayerInfo[playerid][pDonuts]);
- else format(string, sizeof(string), "You have %d donuts.", PlayerInfo[playerid][pDonuts]);
- SendClientMessage(playerid,COLOR_GREY,string);
- }
- }
- if(strcmp(cmd, "/usesprunk", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pSprunk] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have any sprunk, buy some from the 24/7 !");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
- return 1;
- }
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger opens a can of sprunk.");
- }
- else
- {
- format(string, sizeof(string), "* %s opens a can of sprunk.", PlayerName(playerid));
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
- PlayerInfo[playerid][pSprunk]--;
- UserSprunk[playerid] = 0;
- }
- return 1;
- }
- if(strcmp(cmd, "/untie", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /untie [Playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't untie yourself !"); return 1; }
- if(PlayerTied[giveplayerid])
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You were untied by Stranger.");
- }
- else
- {
- format(string, sizeof(string), "* You were untied by %s.", sendername);
- }
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You untied Stranger.");
- }
- else
- {
- format(string, sizeof(string), "* You untied %s.", giveplayer);
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger loosens the ropes on Stranger.");
- }
- else if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger loosens the ropes on %s.", giveplayer);
- }
- else if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* %s loosens the ropes on Stranger.", sendername);
- }
- else
- {
- format(string, sizeof(string), "* %s loosens the ropes on %s.", sendername,giveplayer);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GameTextForPlayer(giveplayerid, "~g~Untied", 2500, 3);
- TogglePlayerControllable(giveplayerid, 1);
- PlayerTied[giveplayerid] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player isn't Tied up !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sellfish", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerInRangeOfPoint(playerid, 100, -30.875, -88.9609, 1004.53))
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in a 24-7 !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellfish [number]");
- return 1;
- }
- new price;
- new fishid = strvalEx(tmp);
- if(fishid < 1 || fishid > 5) { SendClientMessage(playerid, COLOR_GREY, " Fish can't be below 1 or above 5 !"); return 1; }
- else if(fishid == 1 && Fishes[playerid][pWeight1] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
- else if(fishid == 2 && Fishes[playerid][pWeight2] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
- else if(fishid == 3 && Fishes[playerid][pWeight3] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
- else if(fishid == 4 && Fishes[playerid][pWeight4] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
- else if(fishid == 5 && Fishes[playerid][pWeight5] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
- switch (fishid)
- {
- case 1:
- {
- if(Fishes[playerid][pWeight1] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighting 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid1]);
- price = price * Fishes[playerid][pWeight1];
- format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish1],Fishes[playerid][pWeight1],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
- GivePlayerMoney(playerid, price);
- ClearFishID(playerid, 1);
- }
- case 2:
- {
- if(Fishes[playerid][pWeight2] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighing 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid2]);
- price = price * Fishes[playerid][pWeight2];
- format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish2],Fishes[playerid][pWeight2],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
- GivePlayerMoney(playerid, price);
- ClearFishID(playerid, 2);
- }
- case 3:
- {
- if(Fishes[playerid][pWeight3] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighing 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid3]);
- price = price * Fishes[playerid][pWeight3];
- format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish3],Fishes[playerid][pWeight3],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
- GivePlayerMoney(playerid, price);
- ClearFishID(playerid, 3);
- }
- case 4:
- {
- if(Fishes[playerid][pWeight4] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighing 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid4]);
- price = price * Fishes[playerid][pWeight4];
- format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish4],Fishes[playerid][pWeight4],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
- GivePlayerMoney(playerid, price);
- ClearFishID(playerid, 4);
- }
- case 5:
- {
- if(Fishes[playerid][pWeight5] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighing 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid5]);
- price = price * Fishes[playerid][pWeight5];
- format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish5],Fishes[playerid][pWeight5],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
- GivePlayerMoney(playerid, price);
- ClearFishID(playerid, 5);
- }
- }
- Fishes[playerid][pLastFish] = 0;
- Fishes[playerid][pFishID] = 0;
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd,"/fare",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pJob] == 14)
- {
- if(TransportDuty[playerid] > 0)
- {
- if(TransportDuty[playerid] == 1)
- {
- TaxiDrivers -= 1;
- }
- else if(TransportDuty[playerid] == 2)
- {
- BusDrivers -= 1;
- }
- TransportDuty[playerid] = 0;
- format(string, sizeof(string), "* You are now Off Duty and earned $%d.", TransportMoney[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+TransportMoney[playerid];
- GivePlayerMoney(playerid, TransportMoney[playerid]);
- TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
- SetPlayerColor(playerid, TCOLOR_WHITE);
- PlayerPlaySound(playerid,1055,0.0,0.0,0.0);
- return 1;
- }
- new Veh = GetPlayerVehicleID(playerid);
- if(IsATaxiCar(Veh) || PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pRank] > 4 || PlayerInfo[playerid][pLeader] == 10)
- {
- if(GetPlayerState(playerid) == 2)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fare [price]");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(moneys < 1 || moneys > 500) { SendClientMessage(playerid, COLOR_GREY, " Fare price must be between $1 and $500 !"); return 1; }
- TaxiDrivers += 1; TransportDuty[playerid] = 1; TransportValue[playerid] = moneys;
- GetPlayerName(playerid,sendername,sizeof(sendername));
- format(string, sizeof(string), "Taxi Driver %s is On Duty, Fare: $%d, If you need a Taxi, type /service.", sendername, TransportValue[playerid]);
- SetPlayerColor(playerid, TCOLOR_YELLOW);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- OOCNews(TEAM_GROVE_COLOR,string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not the Driver !");
- return 1;
- }
- }
- else if(IsABus(Veh) || PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pRank] > 4 || PlayerInfo[playerid][pLeader] == 10)
- {
- if(GetPlayerState(playerid) == 2)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fare [price]");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(moneys < 1 || moneys > 500) { SendClientMessage(playerid, COLOR_GREY, " Fare price must be between $1 and $500 !"); return 1; }
- BusDrivers += 1; TransportDuty[playerid] = 2; TransportValue[playerid]= moneys;
- GetPlayerName(playerid,sendername,sizeof(sendername));
- format(string, sizeof(string), "Bus Driver %s is On Duty, fare: $%d, If you need a Bus, type /service.", sendername, TransportValue[playerid]);
- SetPlayerColor(playerid, TCOLOR_YELLOW);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- OOCNews(TEAM_GROVE_COLOR,string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not the Driver !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not in a Taxi / Bus, or a high enough Rank !");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," You are not a Taxi / Bus Driver !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/fish",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pFishes] > 5)
- {
- SendClientMessage(playerid, COLOR_GREY, " Caught to many fish, wait till its reduced !");
- return 1;
- }
- if(Fishes[playerid][pWeight1] > 0 && Fishes[playerid][pWeight2] > 0 && Fishes[playerid][pWeight3] > 0 && Fishes[playerid][pWeight4] > 0 && Fishes[playerid][pWeight5] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 5 Fish, sell or release them first !");
- return 1;
- }
- new Veh = GetPlayerVehicleID(playerid);
- if((IsAtFishPlace(playerid)) || IsABoat(Veh))
- {
- new Caught;
- new rand;
- new fstring[MAX_PLAYER_NAME];
- new Level = PlayerInfo[playerid][pFishSkill];
- if(Level >= 0 && Level <= 50) { Caught = random(35)-7; }
- else if(Level >= 51 && Level <= 100) { Caught = random(55)-20; }
- else if(Level >= 101 && Level <= 200) { Caught = random(105)-50; }
- else if(Level >= 201 && Level <= 400) { Caught = random(165)-60; }
- else if(Level >= 401) { Caught = random(185)-70; }
- rand = random(FishNamesNumber);
- if(Caught <= 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Line snapped !");
- return 1;
- }
- else if(rand == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You caught a Jacket and threw it away !");
- return 1;
- }
- else if(rand == 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " You caught some Pants and threw them away !");
- return 1;
- }
- else if(rand == 7)
- {
- SendClientMessage(playerid, COLOR_GREY, " You caught a Can and threw it away !");
- return 1;
- }
- else if(rand == 10)
- {
- SendClientMessage(playerid, COLOR_GREY, " You caught a pair of Shoes and threw them away !");
- return 1;
- }
- else if(rand == 13)
- {
- SendClientMessage(playerid, COLOR_GREY, " You caught some Garbage and threw it away !");
- return 1;
- }
- else if(rand == 20)
- {
- new mrand = random(500);
- format(string, sizeof(string), "* You caught a Money Bag, containing $%d.", mrand);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+mrand;
- GivePlayerMoney(playerid, mrand);
- return 1;
- }
- if(Fishes[playerid][pWeight1] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- PlayerInfo[playerid][pFishSkill] += 1;
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish1], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight1] = Caught;
- format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish1], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 1;
- Fishes[playerid][pFid1] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else if(Fishes[playerid][pWeight2] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- PlayerInfo[playerid][pFishSkill] += 1;
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish2], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight2] = Caught;
- format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish2], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 2;
- Fishes[playerid][pFid2] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else if(Fishes[playerid][pWeight3] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- PlayerInfo[playerid][pFishSkill] += 1;
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish3], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight3] = Caught;
- format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish3], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 3;
- Fishes[playerid][pFid3] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else if(Fishes[playerid][pWeight4] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- PlayerInfo[playerid][pFishSkill] += 1;
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish4], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight4] = Caught;
- format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish4], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 4;
- Fishes[playerid][pFid4] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else if(Fishes[playerid][pWeight5] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- PlayerInfo[playerid][pFishSkill] += 1;
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish5], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight5] = Caught;
- format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish5], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 5;
- Fishes[playerid][pFid5] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You dont have any space for your Fish !");
- return 1;
- }
- if(PlayerInfo[playerid][pFishSkill] == 50)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 2, you can now catch Heavier Fishes."); }
- else if(PlayerInfo[playerid][pFishSkill] == 250)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 3, you can now catch Heavier Fishes."); }
- else if(PlayerInfo[playerid][pFishSkill] == 500)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 4, you can now catch Heavier Fishes."); }
- else if(PlayerInfo[playerid][pFishSkill] == 1000)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 5, you can now catch Heavier Fishes."); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not in a fishing boat or at the pier !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/fishes",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Fishes __________________|");
- format(string, sizeof(string), "** (1) Fish: %s. Weight: %d.", Fishes[playerid][pFish1], Fishes[playerid][pWeight1]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** (2) Fish: %s. Weight: %d.", Fishes[playerid][pFish2], Fishes[playerid][pWeight2]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** (3) Fish: %s. Weight: %d.", Fishes[playerid][pFish3], Fishes[playerid][pWeight3]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** (4) Fish: %s. Weight: %d.", Fishes[playerid][pFish4], Fishes[playerid][pWeight4]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** (5) Fish: %s. Weight: %d.", Fishes[playerid][pFish5], Fishes[playerid][pWeight5]);
- SendClientMessage(playerid, COLOR_GREY, string);
- SendClientMessage(playerid, COLOR_WHITE, "|___________________________________________|");
- }
- return 1;
- }
- if(strcmp(cmd,"/releasefish",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /releasefish [fish]");
- return 1;
- }
- new fishid = strvalEx(tmp);
- if(fishid < 1 || fishid > 5) { SendClientMessage(playerid, COLOR_GREY, " Fish number cant be below 1 or above 5 !"); return 1; }
- else if(fishid == 1 && Fishes[playerid][pWeight1] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 1 !"); return 1; }
- else if(fishid == 2 && Fishes[playerid][pWeight2] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 2 !"); return 1; }
- else if(fishid == 3 && Fishes[playerid][pWeight3] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 3 !"); return 1; }
- else if(fishid == 4 && Fishes[playerid][pWeight4] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 4 !"); return 1; }
- else if(fishid == 5 && Fishes[playerid][pWeight5] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 5 !"); return 1; }
- ClearFishID(playerid, fishid);
- Fishes[playerid][pLastFish] = 0;
- Fishes[playerid][pFishID] = 0;
- format(string, sizeof(string), "* You have released Fish %d.", fishid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- return 1;
- }
- if(strcmp(cmd,"/throwback",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(Fishes[playerid][pLastFish] > 0)
- {
- ClearFishID(playerid, Fishes[playerid][pLastFish]);
- Fishes[playerid][pLastFish] = 0;
- Fishes[playerid][pFishID] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have thrown back your last Fish.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have any Fish to throw back !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/throwbackall",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(Fishes[playerid][pWeight1] > 0 || Fishes[playerid][pWeight2] > 0 || Fishes[playerid][pWeight3] > 0 || Fishes[playerid][pWeight4] > 0 || Fishes[playerid][pWeight5] > 0)
- {
- ClearFishes(playerid);
- Fishes[playerid][pLastFish] = 0;
- Fishes[playerid][pFishID] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have thrown back all of your Fish.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not carrying any fish !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/licenses",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new text1[20];
- new text2[20];
- new text3[20];
- new text4[20];
- new text5[20];
- if(PlayerInfo[playerid][pCarLic]) { text1 = "Passed"; } else { text1 = "Not Passed"; }
- if(PlayerInfo[playerid][pFlyLic]) { text4 = "Passed"; } else { text4 = "Not Passed"; }
- if(PlayerInfo[playerid][pBoatLic]) { text2 = "Passed"; } else { text2 = "Not Passed"; }
- if(PlayerInfo[playerid][pFishLic]) { text3 = "Passed"; } else { text3 = "Not Passed"; }
- if(PlayerInfo[playerid][pGunLic]) { text5 = "Passed"; } else { text5 = "Not Passed"; }
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Licenses __________________|");
- format(string, sizeof(string), "Drivers License: %s.", text1);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "Flying License: %s.", text4);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "Sailing License: %s.", text2);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "Fishing License: %s.", text3);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "Weapon License: %s.", text5);
- SendClientMessage(playerid, COLOR_GREY, string);
- SendClientMessage(playerid, COLOR_WHITE, "|_____________________________________________|");
- }
- return 1;
- }
- if(strcmp(cmd,"/showlicenses",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showlicenses [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Show Licenses to yourself, use /licenses !"); return 1; }
- new text1[20];
- new text2[20];
- new text3[20];
- new text4[20];
- new text5[20];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- if(PlayerInfo[playerid][pCarLic]) { text1 = "Passed"; } else { text1 = "Not Passed"; }
- if(PlayerInfo[playerid][pFlyLic]) { text4 = "Passed"; } else { text4 = "Not Passed"; }
- if(PlayerInfo[playerid][pBoatLic]) { text2 = "Passed"; } else { text2 = "Not Passed"; }
- if(PlayerInfo[playerid][pFishLic]) { text3 = "Passed"; } else { text3 = "Not Passed"; }
- if(PlayerInfo[playerid][pGunLic]) { text5 = "Passed"; } else { text5 = "Not Passed"; }
- format(string, sizeof(string), "|____________ Licenses of %s ____________|", sendername);
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Drivers License: %s.", text1);
- SendClientMessage(giveplayerid, COLOR_GREY, string);
- format(string, sizeof(string), "Flying License: %s.", text4);
- SendClientMessage(giveplayerid, COLOR_GREY, string);
- format(string, sizeof(string), "Sailing License: %s.", text2);
- SendClientMessage(giveplayerid, COLOR_GREY, string);
- format(string, sizeof(string), "Fishing License: %s.", text3);
- SendClientMessage(giveplayerid, COLOR_GREY, string);
- format(string, sizeof(string), "Weapon License: %s.", text5);
- SendClientMessage(giveplayerid, COLOR_GREY, string);
- format(string, sizeof(string), "* %s has shown their Licenses to you.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You have shown your Licenses to %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has shown their Licenses to %s.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/leofrisk",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsACop(playerid) && !IsAAgent(playerid) && !IsANG(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a LEO !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /leofrisk [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- // if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Frisk yourself !"); return 1; }
- new WeaponName[65];
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "*** %s's Items ***", giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(PlayerInfo[giveplayerid][pPot] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Marijuana"); }
- if(PlayerInfo[giveplayerid][pCrack] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Crack"); }
- if(PlayerInfo[giveplayerid][pMats] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Materials"); }
- if(Packages[playerid] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Materials Packages"); }
- if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Drug Crates"); }
- if(Fishes[giveplayerid][pWeight1] > 0 || Fishes[giveplayerid][pWeight2] > 0 || Fishes[giveplayerid][pWeight3] > 0 || Fishes[giveplayerid][pWeight4] > 0 || Fishes[giveplayerid][pWeight5] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Fish"); }
- if(PlayerInfo[giveplayerid][pPhoneBook] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Phone Book"); }
- if(PlayerInfo[giveplayerid][pWatch] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Watch"); }
- if(PlayerInfo[giveplayerid][pSuitcase] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Suitcase"); }
- if(PlayerInfo[giveplayerid][pCDPlayer] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "CD Player"); }
- if(PlayerInfo[giveplayerid][pPnumber] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Cellphone"); }
- if(PlayerInfo[giveplayerid][pSpraycan] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Spraycan"); }
- if(PlayerInfo[giveplayerid][pScrew] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Screwdriver"); }
- if(PlayerInfo[giveplayerid][pDice] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Dice"); }
- if(PlayerInfo[giveplayerid][pRope] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Rope"); }
- if(PlayerInfo[giveplayerid][pCigars] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Cigars"); }
- if(PlayerInfo[giveplayerid][pSprunk] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Sprunk"); }
- if(PlayerInfo[giveplayerid][pBombs] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "C4 Explosives"); }
- if(PlayerInfo[giveplayerid][pScope] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Sniper Scope"); }
- if(HasBoughtMask[giveplayerid] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Mask"); }
- if(PlayerInfo[giveplayerid][pBlindfolds] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Blindfold"); }
- if(PlayerInfo[giveplayerid][pGun0] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun0], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun1] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun1], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun2] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun2], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun3] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun3], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun4] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun4], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun5] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun5], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun6] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun6], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun7] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun7], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun8] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun8], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun9] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun9], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun10] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun10], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- if(PlayerInfo[giveplayerid][pGun11] == 44) { SendClientMessage(playerid, COLOR_GRAD3, "Nightvision Goggles"); }
- if(PlayerInfo[giveplayerid][pGun11] == 45) { SendClientMessage(playerid, COLOR_GRAD3, "Infared Goggles"); }
- if(PlayerInfo[giveplayerid][pGun12] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun12], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
- for (new weap = 1; weap < 47; weap++)
- {
- if(HaveAdminWeapon(giveplayerid, weap) == weap)
- {
- GetWeaponName(weap, WeaponName, 64);
- format(string, sizeof(string), "Admin Given %s", WeaponName);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- format(string, sizeof(string), "* %s has frisked %s for any illegal items.", sendername ,giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/frisk",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new st[126], st2[126];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /frisk [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- FriskOffer[giveplayerid] = playerid;
- format(st, sizeof(st), "** %s wants to frisk you, type '/accept frisk' to allow it",PlayerName(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, st);
- format(st2, sizeof(st2), "** You've offered to frisk %s",PlayerName(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, st2);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/wscan", true) == 0 || strcmp(cmd, "/ws", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 1))
- return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- SendClientMessage(playerid,COLOR_YELLOW,"Desynced weapons found:");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- new weapon[13], ammoignored;
- for(new j=12; j>0; j--)
- {
- // get weapon data
- GetPlayerWeaponData(i,j,weapon[j],ammoignored);
- if(weapon[j] > 0 && weapon[j] != 46)
- {
- if(!(HaveWeapon(playerid,weapon[j])) && !(HaveAdminWeapon(playerid,weapon[j])))
- {
- new WeaponName[65];
- GetWeaponName(weapon[j],WeaponName,64);
- format(string,sizeof(string),"%s (%d): %s",PlayerName(i),i,WeaponName);
- SendClientMessage(playerid,COLOR_GREY,string);
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/listguns",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /listguns [playerid/PartOfName]");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- new WeaponName[65];
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* %s's Weapons", giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- for (new weap = 1; weap < 47; weap++)
- {
- if(HaveWeapon(giveplayerid, weap) == weap)
- {
- GetWeaponName(weap, WeaponName, 64);
- format(string, sizeof(string), "%s", WeaponName);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- if(HaveAdminWeapon(giveplayerid, weap) == weap)
- {
- GetWeaponName(weap, WeaponName, 64);
- format(string, sizeof(string), "Admin Given %s", WeaponName);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/contracts",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
- {
- SearchingHits(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a Member of the Hitman Agency.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/disguise",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 8)
- {
- SetTimerEx("Disg", 1000, false, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the Hitman Agency !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/ranks",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Agency Ranks:");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMember] == 8 || PlayerInfo[i][pLeader] == 8)
- {
- new hitname[MAX_PLAYER_NAME];
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- if(GoChase[i] < 999)
- {
- GetPlayerName(GoChase[i], hitname, sizeof(hitname));
- }
- else
- {
- hitname = "Nobody";
- }
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Name: %s Rank: %d Completed Hits: %d Failed Hits: %d Chasing: %s", giveplayer, PlayerInfo[i][pRank], PlayerInfo[i][pCHits], PlayerInfo[i][pFHits], hitname);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the Hitman Agency !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/givehit",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givehit [hitmanid] [targetid]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givehit [hitmanid] [targetid]");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- new targetid = ReturnUser(tmp);
- if(IsPlayerConnected(targetid))
- {
- if(PlayerInfo[targetid][pHeadValue] != 0)
- {
- if(PlayerInfo[giveplayerid][pMember] != 8 && PlayerInfo[playerid][pLeader] != 8) //if giveplayer is not hitman and player is leader
- {
- SendClientMessage(playerid, COLOR_GREY, " You must be the leader to give hits to non-hitmen !");
- return 1;
- }
- new hitname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(targetid, hitname, sizeof(hitname));
- format(string, sizeof(string), "* You offered %s a contract to kill %s.", giveplayer, hitname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Hitman %s has offered you a contract to kill %s (type /accept contract), to accept it.", sendername, hitname);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- ContractOffer[giveplayerid] = playerid;
- ContractID[giveplayerid] = targetid;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is doesn't have a contract on their head !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the Hitman Agency !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/order",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
- {
- if(IsPlayerInRangeOfPoint(playerid,3,971.5425,-43.2693,1001.1172) || IsPlayerInRangeOfPoint(playerid,3,2323.4182,-1254.4391,22.5000) || IsPlayerInRangeOfPoint(playerid,3,433.7928,-1747.8757,9.2108) || IsPlayerInRangeOfPoint(playerid,3,374.0106,-1353.2639,14.6007) || IsPlayerInRangeOfPoint(playerid,3,2808.9482,-1102.1047,30.7188) || IsPlayerInRangeOfPoint(playerid,3,2000.8087,1522.8901,17.0682))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /order [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Rank 1: Knife($800), Sdpistol ($1000), Shotgun ($1500), Deagle ($5000), Mp5 ($2500), Vest ($6000");
- SendClientMessage(playerid, COLOR_GRAD2, "Rank 2: Rifle ($3000, AK47 ($10,000), M4 ($12,000)");
- SendClientMessage(playerid, COLOR_GRAD3, "Rank 3: Spas12 ($35,000), Sniper ($35,000), Blindfold ($2,500)");
- SendClientMessage(playerid, COLOR_GRAD3, "Rank 4: C4 ($100,000), Nightvision ($2000), Infared ($2000), Scope ($20,000), Mask ($5000)");
- return 1;
- }
- new weapon, price;
- if(strcmp(tmp,"knife",true) == 0) { if(PlayerInfo[playerid][pCash] > 799) { weapon = 4; price = 800; PlayerInfo[playerid][pGun1] = 4; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
- else if(strcmp(tmp,"sdpistol",true) == 0) { if(PlayerInfo[playerid][pCash] > 999) { weapon = 23; price = 1000; PlayerInfo[playerid][pGun2] = 23; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
- else if(strcmp(tmp,"shotgun",true) == 0) { if(PlayerInfo[playerid][pCash] > 1499) { weapon = 25; price = 1500; PlayerInfo[playerid][pGun3] = 25; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
- else if(strcmp(tmp,"mp5",true) == 0) { if(PlayerInfo[playerid][pCash] > 2499) { weapon = 29; price = 2500; PlayerInfo[playerid][pGun4] = 29; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
- else if(strcmp(tmp,"rifle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 2999) { weapon = 33; price = 3000; PlayerInfo[playerid][pGun6] = 33; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"deagle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 4999) { weapon = 24; price = 5000; PlayerInfo[playerid][pGun2] = 24; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"ak47",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 9999) { weapon = 30; price = 10000; PlayerInfo[playerid][pGun5] = 30; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"m4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 11999) { weapon = 31; price = 12000; PlayerInfo[playerid][pGun5] = 31; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"spas12",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 27; price = 35000; PlayerInfo[playerid][pGun3] = 27; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
- else if(strcmp(tmp,"sniper",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 34; price = 2500; PlayerInfo[playerid][pGun6] = 34; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
- else if(strcmp(tmp,"blindfold",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] >= 25000) { price = 25000; PlayerInfo[playerid][pBlindfolds] += 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
- else if(strcmp(tmp,"c4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 99999) { price = 100000; PlayerInfo[playerid][pBombs] += 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"scope",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 19999) { price = 20000; PlayerInfo[playerid][pScope] = 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"mask",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 4999) { price = 5000; HasBoughtMask[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"nightvision",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 44; price = 2000; PlayerInfo[playerid][pGun11] = 44; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"infared",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 45; price = 2000; PlayerInfo[playerid][pGun11] = 45; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"vest",true) == 0) { if(PlayerInfo[playerid][pRank] >= 1) { if(PlayerInfo[playerid][pCash] > 5999) { price = 6000; SetPlayerArmour(playerid, 100); } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 1 !"); return 1; } }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Invalid weapon name.");
- return 1;
- }
- if(PlayerInfo[playerid][pBlindfolds] > 3)
- {
- PlayerInfo[playerid][pBlindfolds] = 3;
- }
- if(PlayerInfo[playerid][pBombs] > 3)
- {
- PlayerInfo[playerid][pBombs] = 3;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
- GivePlayerMoney(playerid, (0 - price));
- if(weapon != 0)
- {
- GivePlayerWeapon(playerid, weapon, 999999);
- }
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* You have purchased a %s for $%d.", tmp, price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsPlayerInRangeOfPoint(playerid,3,1566.8365,23.2070,24.1641) || IsPlayerInRangeOfPoint(playerid,3,1566.8365,23.2070,24.1641) || IsPlayerInRangeOfPoint(playerid,3,1566.8365,23.2070,24.1641) || IsPlayerInRangeOfPoint(playerid,3,1566.8365,23.2070,24.1641))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /order [name]{FFFFFF}");
- SendClientMessage(playerid, COLOR_GRAD1, "Rank 1: Knife($800), Sdpistol ($1000), Shotgun ($1500), Deagle ($5000), Mp5 ($2500), Vest ($6000)");
- SendClientMessage(playerid, COLOR_GRAD2, "Rank 2: Rifle ($3000, AK47 ($10,000), M4 ($12,000)");
- SendClientMessage(playerid, COLOR_GRAD3, "Rank 3: Spas12 ($35,000), Sniper ($35,000), Blindfold ($2,500)");
- SendClientMessage(playerid, COLOR_GRAD3, "Rank 4: C4 ($100,000), Nightvision ($2000), Infared ($2000), Scope ($20,000), Mask ($5000)");
- return 1;
- }
- new weapon, price;
- if(strcmp(tmp,"knife",true) == 0) { if(PlayerInfo[playerid][pCash] > 799) { weapon = 4; price = 800; PlayerInfo[playerid][pGun1] = 4; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that."); return 1; } }
- else if(strcmp(tmp,"sdpistol",true) == 0) { if(PlayerInfo[playerid][pCash] > 999) { weapon = 23; price = 1000; PlayerInfo[playerid][pGun2] = 23; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that."); return 1; } }
- else if(strcmp(tmp,"shotgun",true) == 0) { if(PlayerInfo[playerid][pCash] > 1499) { weapon = 25; price = 1500; PlayerInfo[playerid][pGun3] = 25; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that."); return 1; } }
- else if(strcmp(tmp,"mp5",true) == 0) { if(PlayerInfo[playerid][pCash] > 2499) { weapon = 29; price = 2500; PlayerInfo[playerid][pGun4] = 29; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that."); return 1; } }
- else if(strcmp(tmp,"rifle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 2999) { weapon = 33; price = 3000; PlayerInfo[playerid][pGun6] = 33; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"deagle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 4999) { weapon = 24; price = 5000; PlayerInfo[playerid][pGun2] = 24; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"ak47",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 9999) { weapon = 30; price = 10000; PlayerInfo[playerid][pGun5] = 30; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"m4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 11999) { weapon = 31; price = 12000; PlayerInfo[playerid][pGun5] = 31; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"spas12",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 27; price = 35000; PlayerInfo[playerid][pGun3] = 27; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
- else if(strcmp(tmp,"sniper",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 34; price = 2500; PlayerInfo[playerid][pGun6] = 34; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
- else if(strcmp(tmp,"blindfold",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] >= 25000) { price = 25000; PlayerInfo[playerid][pBlindfolds] += 1; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
- else if(strcmp(tmp,"c4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 99999) { price = 100000; PlayerInfo[playerid][pBombs] += 1; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"scope",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 19999) { price = 20000; PlayerInfo[playerid][pScope] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"mask",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 4999) { price = 5000; HasBoughtMask[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"nightvision",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 44; price = 2000; PlayerInfo[playerid][pGun11] = 44; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"infared",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 45; price = 2000; PlayerInfo[playerid][pGun11] = 45; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"vest",true) == 0) { if(PlayerInfo[playerid][pRank] >= 1) { if(PlayerInfo[playerid][pCash] > 5999) { price = 6000; SetPlayerArmour(playerid, 100); } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 1 !"); return 1; } }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Invalid weapon name !");
- return 1;
- }
- if(PlayerInfo[playerid][pBlindfolds] > 3)
- {
- PlayerInfo[playerid][pBlindfolds] = 3;
- }
- if(PlayerInfo[playerid][pBombs] > 3)
- {
- PlayerInfo[playerid][pBombs] = 3;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
- GivePlayerMoney(playerid, (0 - price));
- if(weapon != 0)
- {
- GivePlayerWeapon(playerid, weapon, 999999);
- }
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* You have purchased a %s for $%d.", tmp, price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not at an order point !");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
- {
- if(IsPlayerInRangeOfPoint(playerid,3,210.5087,188.0434,1003.0313))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /order [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Rank 1: Sdpistol ($1000), Shotgun ($1500), Deagle ($5000), Mp5 ($2500), Vest ($6000)");
- SendClientMessage(playerid, COLOR_GRAD2, "Rank 2: Rifle ($3000, AK47 ($10,000), M4 ($12,000)");
- SendClientMessage(playerid, COLOR_GRAD3, "Rank 3: Spas12 ($35,000), Sniper ($35,000), Blindfold ($2,500)");
- SendClientMessage(playerid, COLOR_GRAD3, "Rank 4: Nightvision ($2000), Infared ($2000), Mask ($5000)");
- return 1;
- }
- new weapon, price;
- if(strcmp(tmp,"sdpistol",true) == 0) { if(PlayerInfo[playerid][pCash] > 999) { weapon = 23; price = 1000; PlayerInfo[playerid][pGun2] = 23; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
- else if(strcmp(tmp,"shotgun",true) == 0) { if(PlayerInfo[playerid][pCash] > 1499) { weapon = 25; price = 1500; PlayerInfo[playerid][pGun3] = 25; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
- else if(strcmp(tmp,"mp5",true) == 0) { if(PlayerInfo[playerid][pCash] > 2499) { weapon = 29; price = 2500; PlayerInfo[playerid][pGun4] = 29; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
- else if(strcmp(tmp,"rifle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 2999) { weapon = 33; price = 3000; PlayerInfo[playerid][pGun6] = 33; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"deagle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 4999) { weapon = 24; price = 5000; PlayerInfo[playerid][pGun2] = 24; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"ak47",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 9999) { weapon = 30; price = 10000; PlayerInfo[playerid][pGun5] = 30; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"m4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 11999) { weapon = 31; price = 12000; PlayerInfo[playerid][pGun5] = 31; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
- else if(strcmp(tmp,"spas12",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 27; price = 35000; PlayerInfo[playerid][pGun3] = 27; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
- else if(strcmp(tmp,"sniper",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 34; price = 2500; PlayerInfo[playerid][pGun6] = 34; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
- else if(strcmp(tmp,"blindfold",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] >= 25000) { price = 25000; PlayerInfo[playerid][pBlindfolds] += 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
- else if(strcmp(tmp,"mask",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 4999) { price = 5000; HasBoughtMask[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"nightvision",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 44; price = 2000; PlayerInfo[playerid][pGun11] = 44; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"infared",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 45; price = 2000; PlayerInfo[playerid][pGun11] = 45; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
- else if(strcmp(tmp,"vest",true) == 0) { if(PlayerInfo[playerid][pRank] >= 1) { if(PlayerInfo[playerid][pCash] > 5999) { price = 6000; SetPlayerArmour(playerid, 100); } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 1 !"); return 1; } }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Invalid weapon name !");
- return 1;
- }
- if(PlayerInfo[playerid][pBlindfolds] > 3)
- {
- PlayerInfo[playerid][pBlindfolds] = 3;
- }
- if(PlayerInfo[playerid][pBombs] > 3)
- {
- PlayerInfo[playerid][pBombs] = 3;
- }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
- GivePlayerMoney(playerid, (0 - price));
- if(weapon != 0)
- {
- GivePlayerWeapon(playerid, weapon, 999999);
- }
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* You have purchased a %s for $%d.", tmp, price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not at your headquaters !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the CIA / Hitman Agency !");
- return 1;
- }
- }
- return 1;
- }
- /*if(strcmp(cmd, "/order", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
- {
- if(IsPlayerInRangeOfPoint(playerid, 10.0,1566.8336,23.2645,24.1641))
- {
- ShowPlayerDialog(playerid, 9387, DIALOG_STYLE_LIST, "Order Menu", "Knife $800\nSD Pistol $1000\nShotgun $1500\nDeagle $5000\nMP5 $2500\nRifle $3000\nAK47 $10000\nm4 $12000\nVest $3000\nSpas12 $35000\nSniper $35000\nNight Vision $2000\nInfrared $2000\nC4 $300000", "Purchase", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not at your headquarters!");
- }
- }
- else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
- {
- if(IsPlayerInRangeOfPoint(playerid, 10.0,210.5087,188.0434,1003.0313))
- {
- ShowPlayerDialog(playerid, 9387, DIALOG_STYLE_LIST, "Order Menu", "Knife $800\nSD Pistol $1000\nShotgun $1500\nDeagle $5000\nMP5 $2500\nRifle $3000\nAK47 $10000\nm4 $12000\nVest $3000\nSpas12 $35000\nSniper $35000\nNight Vision $2000\nInfrared $2000\nC4 $300000", "Purchase", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not at your headquarters!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not a member of the CIA / Hitman Agency!");
- }
- }
- return 1;
- }*/
- if(strcmp(cmd,"/getmats",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 9 && PlayerInfo[playerid][pDonateRank] != 2)
- {
- SendClientMessage(playerid,COLOR_GREY,"You are not a Arms Dealer / Gold VIP.");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1423.6151, -1320.5438, 13.5546)) //materials pickup 1
- {
- if(Packages[playerid] >= 10) { SendClientMessage(playerid, COLOR_GREY, "You can't hold any more Materials Packages."); return 1; }
- if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You must drop your car at the crane first."); return 1; }
- if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY,"You must finish delivering your Drug Crates."); return 1; }
- if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that while in a Virtual World."); SetPlayerHealth(playerid, 0.0); return 1; }
- if(PlayerInfo[playerid][pCash] > 499)
- {
- GotMats[playerid] = 1;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-matprice;
- GivePlayerMoney(playerid, -matprice);
- Packages[playerid] = 10;
- CP[playerid] = 2;
- SetPlayerCheckpoint(playerid, 2172.1879, -2263.9683, 13.3362, 3.0); //materials factory 1
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You bought 10 Materials Packages for $500.");
- GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Packages", 5000, 1);
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford that ($500).");
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 765.1253,-1088.8364,24.0859)) //materials pickup 3
- {
- if(Packages[playerid] >= 10) { SendClientMessage(playerid, COLOR_GREY, "You can't hold any more Materials Packages."); return 1; }
- if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You must drop your car at the crane first."); return 1; }
- if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY,"You must finish delivering your Drug Crates."); return 1; }
- if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that while in a Virtual World."); SetPlayerHealth(playerid, 0.0); return 1; }
- if(PlayerInfo[playerid][pCash] > 9999)
- {
- GotMats[playerid] = 1;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-matprice2;
- GivePlayerMoney(playerid, -matprice2);
- Packages[playerid] = 20;
- CP[playerid] = 10;
- SetPlayerCheckpoint(playerid, -500.5291,-528.6747,25.5234, 3.0); //materials factory 3
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You bought 20 Materials Packages for $1000.");
- GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Packages", 5000, 1);
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford that ($1000).");
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2390.4053, -2008.2618, 13.5537)) //materials pickup 2
- {
- if(Packages[playerid] >= 10) { SendClientMessage(playerid, COLOR_GREY, "You can't hold any more Materials Packages."); return 1; }
- if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You must drop your car at the crane first."); return 1; }
- if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY,"You must finish delivering your Drug Crates."); return 1; }
- if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that while in a Virtual World."); SetPlayerHealth(playerid, 0.0); return 1; }
- if(PlayerInfo[playerid][pCash] > 499)
- {
- GotMats[playerid] = 1;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-matprice;
- GivePlayerMoney(playerid, -matprice);
- Packages[playerid] = 10;
- CP[playerid] = 3;
- SetPlayerCheckpoint(playerid, 2288.0730, -1105.4535, 37.9766, 3.0); //materials factory 2
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You bought 10 Materials Packages for $500.");
- GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Packages", 5000, 1);
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford that ($500).");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at a Materials Pickup.");
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/plantweed",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pJob] != 4 && PlayerInfo[playerid][pDonateRank] < 2)
- {
- SendClientMessage(playerid,COLOR_GREY, "You are not a Drug Dealer / Silver VIP.");
- return 1;
- }
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, "You must be on foot.");
- if(GetPlayerInterior(playerid) > 0) return SendClientMessage(playerid, COLOR_GREY, "You must be outside to plant your seeds.");
- if(PlayerInfo[playerid][pSeeds] == 0) return SendClientMessage(playerid, COLOR_GREY, "You don't have any Seeds.");
- if(PlayerInfo[playerid][pSeeds] < 10) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough Seeds.");
- if(HasPlantWeed[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "You have already planted a weed.");
- new Float:X, Float:Y, Float:Z;
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- GetPlayerPos(playerid, X, Y, Z);
- Weed_x[playerid] = X;
- Weed_y[playerid] = Y;
- Weed_z[playerid] = Z;
- Weed[playerid] = CreateDynamicObject(3409, X, Y, Z-1.8, 0, 0, 0);
- HasPlantWeed[playerid] = 1;
- PlayerInfo[playerid][pSeeds] -= 10;
- format(string, sizeof(string), "* %s plants some seeds.", name);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, COLOR_GREEN, "You have planted your seeds! Every minute, your plant will make one gram of weed.");
- SendClientMessage(playerid, COLOR_GREEN, "If your plant won't picked within 70 minutes, it will rot and you will lose it.");
- SendClientMessage(playerid, COLOR_GREEN, "Also remember that anyone can /pickweed if they find your plant, so be careful.");
- }
- return 1;
- }
- //==============================================================================
- if(strcmp(cmd,"/checkweed",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new count = 0;
- if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, "You must be on foot.");
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Weed_x[i], Weed_y[i], Weed_z[i]))
- {
- WeedForPlayer[playerid] = i;
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant_2Idle", 4.0, 0, 0, 0, 0, 0);
- format(string, sizeof(string), "* %s inspects the weed plant.", name);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "This plant has %d weed grams.", WeedGrams[i]);
- SendClientMessage(playerid, COLOR_GREEN, string);
- WeedForPlayer[playerid] = 999;
- count ++;
- return 1;
- }
- }
- if(count == 0) SendClientMessage(playerid, COLOR_GREY, "You are not near any plants.");
- }
- return 1;
- }
- //==============================================================================
- if(strcmp(cmd,"/pickweed",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new count = 0;
- new Error = 0;
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, " You must be on foot !");
- if(WeedIsPicked[playerid] > 0) return SendClientMessage(playerid, COLOR_GREY, " You have already started to picking a weed !");
- if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick weed.");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Weed_x[i], Weed_y[i], Weed_z[i]))
- {
- WeedForPlayer[playerid] = i;
- if(WeedGrams[i] < 1) { SendClientMessage(playerid, COLOR_GREY, " This plant is not ready to be picked, please wait at least 2 minutes for it to grow."); Error = 1; }
- if(Error == 0)
- {
- format(string, sizeof(string), "* %s begins picking a weed plant.", name);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GetPlayerPos(playerid, WeedStopPos[playerid][0], WeedStopPos[playerid][1], WeedStopPos[playerid][2]);
- WeedIsPicked[playerid] = 1;
- SetTimerEx("WeedPickup", 5000, false, "i", playerid);
- }
- count ++;
- return 1;
- }
- }
- if(count == 0) SendClientMessage(playerid, COLOR_GREY, "You are not near any plants.");
- }
- return 1;
- }
- if(strcmp(cmd,"/getcrate",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 17)
- {
- SendClientMessage(playerid,COLOR_GREY,"You are not a Drug Smuggler.");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,3.0,2205.9199,1582.2222,999.9766)) //drug factory
- {
- if(Crates[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 1 Crate at a time."); return 1; }
- if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You must drop your car at the crane first."); return 1; }
- if(Packages[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY,"You must finish delivering your Materials Packages."); return 1; }
- if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that while in a Virtual World."); SetPlayerHealth(playerid, 0.0); return 1; }
- SendClientMessage(playerid, COLOR_LIGHTRED,"What type of drugs would you like to smuggle? (Type crack or seeds)");
- SelectDrug[playerid] = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the Drug Factory in Blueberry.");
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/sellgun",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 9)
- {
- SendClientMessage(playerid,COLOR_GREY,"You are not a Arms Dealer.");
- return 1;
- }
- if(PlayerInfo[playerid][pConnectTime] == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE,"You must play longer before you can sell weapons.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_YELLOW, "« Available Weapons »");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 1: "CW"sdpistol (100) flowers (25) knuckles (25) shotgun (200) ");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 2: "CW"baseballbat (25) cane (25) mp5 (400) rifle (1000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 3: "CW"shovel (25) deagle (2000) nightvision (2500)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 4: "CW"poolcue (25) golfclub (25) ak47 (3500) mac10 (4000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 5: "CW"katana (25) dildo (25) m4 (5500) tec9 (6000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 6: "CW"sniper (8500) spas12 (10000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 7: "CW"chainsaw (20000) jetpack (30000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 8: "CW"rpg (200000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 9: "CW"minigun (400000)");
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellgun [playerid/PartOfName] [weaponname]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_YELLOW, "« Available Weapons »");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 1: "CW"sdpistol (100) flowers (25) knuckles (25) shotgun (200) ");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 2: "CW"baseballbat (25) cane (25) mp5 (400) rifle (1000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 3: "CW"shovel (25) deagle (2000) nightvision (2500)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 4: "CW"poolcue (25) golfclub (25) ak47 (3500) mac10 (4000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 5: "CW"katana (25) dildo (25) m4 (5500) tec9 (6000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 6: "CW"sniper (8500) spas12 (10000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 7: "CW"chainsaw (20000) jetpack (30000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 8: "CW"rpg (200000)");
- SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 9: "CW"minigun (400000)");
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellgun [playerid/PartOfName] [weaponname]");
- return 1;
- }
- }
- if(SellGunTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 10 seconds before selling another weapon !");
- if(ProxDetectorS(5.0, playerid, giveplayerid))
- {
- new weapon,price,loggun;
- if(strcmp(tmp,"sdpistol",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] > 99)
- {
- if(PlayerInfo[giveplayerid][pGun2] == 24)
- {
- SendClientMessage(playerid,COLOR_GREY," That player is carrying a Deagle !");
- return 1;
- }
- weapon = 23;
- price = 100;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
- return 1;
- }
- }
- else if(strcmp(tmp,"flowers",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 14; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } }
- else if(strcmp(tmp,"shotgun",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] > 199)
- {
- if(PlayerInfo[giveplayerid][pGun3] == 27)
- {
- SendClientMessage(playerid,COLOR_GREY," That player is carrying a SPAS12 !");
- return 1;
- }
- weapon = 25;
- price = 200;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
- return 1;
- }
- }
- else if(strcmp(tmp,"rpg",true) == 0)
- {
- new level = PlayerInfo[playerid][pArmsSkill];
- if(level >= 1300)
- {
- if(PlayerInfo[playerid][pMats] > 199999)
- {
- if(PlayerInfo[giveplayerid][pGun7] == 38)
- {
- SendClientMessage(playerid,COLOR_GREY," That player is carrying a Minigun !");
- return 1;
- }
- weapon = 35;
- price = 200000;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
- return 1;
- }
- } else {
- SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
- return 1;
- }
- }
- else if(strcmp(tmp,"minigun",true) == 0)
- {
- new level = PlayerInfo[playerid][pArmsSkill];
- if(level >= 2000)
- {
- if(PlayerInfo[playerid][pMats] > 399999)
- {
- if(PlayerInfo[giveplayerid][pGun7] == 35)
- {
- SendClientMessage(playerid,COLOR_GREY," That player is carrying an RPG !");
- return 1;
- }
- weapon = 38;
- price = 400000;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
- return 1;
- }
- } else {
- SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
- return 1;
- }
- }
- else if(strcmp(tmp,"knuckles",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 1; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } }
- else if(strcmp(tmp,"mp5",true) == 0)
- {
- new level = PlayerInfo[playerid][pArmsSkill];
- if(level >= 50)
- {
- if(PlayerInfo[playerid][pMats] > 399)
- {
- if(PlayerInfo[giveplayerid][pGun4] == 28 || PlayerInfo[giveplayerid][pGun4] == 32)
- {
- SendClientMessage(playerid,COLOR_GREY," That player is carrying a Mac10/Tec9 !");
- return 1;
- }
- weapon = 29;
- price = 400;
- } else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
- return 1;
- }
- } else {
- SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
- return 1;
- }
- }
- else if(strcmp(tmp,"baseballbat",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 50) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 5; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"rifle",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 50) { if(PlayerInfo[playerid][pMats] > 999) { weapon = 33; price = 1000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"cane",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 50) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 15; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"deagle",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 100) { if(PlayerInfo[playerid][pMats] > 1999) { weapon = 24; price = 2000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"nightvision",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 100) { if(PlayerInfo[playerid][pMats] > 2499) { weapon = 44; price = 2500; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"tec9",true) == 0)
- {
- new level = PlayerInfo[playerid][pArmsSkill];
- if(level >= 400)
- {
- if(PlayerInfo[playerid][pMats] > 5999)
- {
- if(PlayerInfo[giveplayerid][pGun4] == 29 || PlayerInfo[giveplayerid][pGun4] == 28)
- {
- SendClientMessage(playerid,COLOR_GREY," That player is carrying an MP5/Mac10 !");
- return 1;
- }
- weapon = 32;
- price = 6000;
- } else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
- return 1;
- }
- } else {
- SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
- return 1;
- }
- }
- else if(strcmp(tmp,"mac10",true) == 0)
- {
- new level = PlayerInfo[playerid][pArmsSkill];
- if(level >= 200)
- {
- if(PlayerInfo[playerid][pMats] > 3999)
- {
- if(PlayerInfo[giveplayerid][pGun4] == 29 || PlayerInfo[giveplayerid][pGun4] == 32)
- {
- SendClientMessage(playerid,COLOR_GREY," That player is carrying a MP5/Tec9 !");
- return 1;
- }
- weapon = 28;
- price = 4000;
- } else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
- return 1;
- }
- } else {
- SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
- return 1;
- }
- }
- else if(strcmp(tmp,"chainsaw",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 900) { if(PlayerInfo[playerid][pMats] > 19999) { weapon = 9; price = 20000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"jetpack",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 900) { if(PlayerInfo[playerid][pMats] > 29999) { weapon = 21; price = 30000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"shovel",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 100) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 6; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"ak47",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 200) { if(PlayerInfo[playerid][pMats] > 3499) { weapon = 30; price = 3500; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"poolcue",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 200) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 7; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"m4",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 400) { if(PlayerInfo[playerid][pMats] > 5499) { weapon = 31; price = 5500; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"golfclub",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 200) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 2; price = 25; } else {SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"sniper",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 600) { if(PlayerInfo[playerid][pMats] > 7499) { weapon = 34; price = 8500; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"katana",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 400) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 8; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");return 1; } }
- else if(strcmp(tmp,"spas12",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 600) { if(PlayerInfo[playerid][pMats] > 9999) { weapon = 27; price = 10000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else if(strcmp(tmp,"dildo",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 400) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 10; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
- else { SendClientMessage(playerid,COLOR_GREY," Invalid weapon name !"); return 1; }
- if(weapon==27||weapon==34||weapon==31||weapon==30||weapon==24||weapon==33||weapon==29||weapon==25||weapon==23||weapon==35||weapon==38||weapon==9||weapon==44||weapon==28||weapon==32||weapon==21)
- {
- if(weapon != 23 || weapon != 25)
- {
- loggun = 1;
- }
- PlayerInfo[playerid][pArmsSkill] ++;
- }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), " You have recieved a %s from %s.", tmp, sendername);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), "* %s created a Gun from Materials, and hands it to %s.", sendername ,giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(weapon != 0)
- {
- GivePlayerGun(giveplayerid, weapon);
- }
- if(loggun == 1)
- {
- format(string, sizeof(string), "%s has sold a %s to %s", sendername,tmp,giveplayer);
- PayLog(string);
- }
- PlayerInfo[playerid][pMats] -= price;
- SellGunTimer[playerid] = 1;
- SetTimerEx("SellGun",10*1000,0,"i",playerid);
- if(PlayerInfo[playerid][pArmsSkill] == 50)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 2, you have unlocked the MP5 & Rifle."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 100)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 3, you have unlocked the Desert Eagle & Nightvision Goggles."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 200)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 4, you have unlocked the AK47 & Mac10."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 400)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 5, you have unlocked the M4 Assault Rifles & Tec9."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 600)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 6, you have unlocked the Spas12 & Sniper Rifle."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 900)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 7, you have unlocked the Chainsaw & Jetpack."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 1300)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 8, you have unlocked the RPG."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 2000)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 9, you have unlocked the Minigun."); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are too far away !");
- return 1;
- }
- }
- else
- {
- format(string, sizeof(string), "%d is not an active player.", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/getseeds",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 4)
- {
- SendClientMessage(playerid,COLOR_GREY,"You are not a Drug Dealer.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid,2.0,323.0342,1118.5804,1083.8828))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the Drug House.");
- return 1;
- }
- if(PlayerInfo[playerid][pSeeds] > 10)
- {
- format(string, sizeof(string), "You still have %d seeds with you, sell or /drop them first.", PlayerInfo[playerid][pPot]);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getseeds [amount]");
- return 1;
- }
- new price;
- new ammount;
- //new level = PlayerInfo[playerid][pDrugsSkill];
- new drugs = PlayerInfo[playerid][pSeeds];
- ammount = strvalEx(tmp);
- if(ammount > dhstock)
- {
- SendClientMessage(playerid, COLOR_GREY, "The Drug House doesn't have that many seeds at this time.");
- return 1;
- }
- if(drugs > 9) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more pot."); return 1; }
- if(ammount < 1 || ammount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 10 seeds."); return 1; }
- if(drugs + ammount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 10 seeds."); return 1; }
- price = ammount * potgprice;
- if(PlayerInfo[playerid][pCash] > price)
- {
- format(string, sizeof(string), "You bought %d seeds for $%d.", ammount, price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
- GivePlayerMoney(playerid, -price);
- PlayerInfo[playerid][pSeeds] = ammount + drugs;
- dhstock = dhstock-ammount;
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford that.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/getcrack",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 4)
- {
- SendClientMessage(playerid,COLOR_GREY,"You are not a Drug Dealer.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid,2.0,2346.2937,-1185.2551,1027.9766))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the Crack Lab.");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] > 15)
- {
- format(string, sizeof(string), "You still have %d grams of crack with you, sell or /drop them first.", PlayerInfo[playerid][pCrack]);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getcrack [amount]");
- return 1;
- }
- new price;
- new ammount;
- new level = PlayerInfo[playerid][pDrugsSkill];
- new drugs = PlayerInfo[playerid][pCrack];
- ammount = strvalEx(tmp);
- if(ammount > chstock)
- {
- SendClientMessage(playerid, COLOR_GREY, "The Crack Lab doesn't have that much crack at this time.");
- return 1;
- }
- if(level >= 0 && level <= 49)
- {
- if(drugs > 4) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
- if(ammount < 1 || ammount > 5) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 5 at your current skill level."); return 1; }
- if(drugs + ammount > 5) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 5 at your current skill level."); return 1; }
- }
- else if(level >= 50 && level <= 99)
- {
- if(drugs > 9) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
- if(ammount < 1 || ammount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 10 at your current skill level."); return 1; }
- if(drugs + ammount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 10 at your current skill level."); return 1; }
- }
- else if(level >= 100 && level <= 199)
- {
- if(drugs > 14) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
- if(ammount < 1 || ammount > 15) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 15 at your current skill level."); return 1; }
- if(drugs + ammount > 15) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 15 at your current skill level."); return 1; }
- }
- else if(level >= 200 && level <= 399)
- {
- if(drugs > 19) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
- if(ammount < 1 || ammount > 20) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 20 at your current skill level."); return 1; }
- if(drugs + ammount > 20) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 20 at your current skill level."); return 1; }
- }
- else if(level >= 400)
- {
- if(drugs > 24) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
- if(ammount < 1 || ammount > 25) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 25 at your current skill level."); return 1; }
- if(drugs + ammount > 25) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 25 at your current skill level."); return 1; }
- }
- price = ammount * crackgprice;
- if(PlayerInfo[playerid][pCash] > price)
- {
- format(string, sizeof(string), "You bought %d grams of Crack for $%d.", ammount, price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
- GivePlayerMoney(playerid, -price);
- PlayerInfo[playerid][pCrack] = ammount + drugs;
- chstock = chstock-ammount;
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/jobhelp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- DisplayDialogForPlayer(playerid, 16);
- }
- return 1;
- }
- if(strcmp(cmd,"/getparts",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 7)
- {
- SendClientMessage(playerid,COLOR_GREY," You are not a Mechanic !");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid,2.0,2729.9077,-2451.4514,17.5937))
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not at the Auto Export Company !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getparts [amount]");
- return 1;
- }
- new price;
- new ammount;
- new level = PlayerInfo[playerid][pMechSkill];
- new parts = PlayerInfo[playerid][pCarParts];
- ammount = strvalEx(tmp);
- if(ammount > Carparts)
- {
- SendClientMessage(playerid, COLOR_GREY, " The Auto Export Company doesn't have that much carparts at this time !");
- return 1;
- }
- if(level >= 0 && level <= 49)
- {
- if(parts > 5000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
- if(ammount < 1 || ammount > 1000) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 1000 at your current skill level !"); return 1; }
- if(parts + ammount > 5000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 5000 at your current skill level !"); return 1; }
- }
- else if(level >= 50 && level <= 99)
- {
- if(parts > 10000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
- if(ammount < 1 || ammount > 10) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 2000 at your current skill level !"); return 1; }
- if(parts + ammount > 10000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 10000 at your current skill level !"); return 1; }
- }
- else if(level >= 100 && level <= 199)
- {
- if(parts > 15000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
- if(ammount < 1 || ammount > 15) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 15 at your current skill level !"); return 1; }
- if(parts + ammount > 15000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 15000 at your current skill level !"); return 1; }
- }
- else if(level >= 200 && level <= 399)
- {
- if(parts > 20000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
- if(ammount < 1 || ammount > 20) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 4000 at your current skill level !"); return 1; }
- if(parts + ammount > 20000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 20000 at your current skill level !"); return 1; }
- }
- else if(level >= 400)
- {
- if(parts > 25000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
- if(ammount < 1 || ammount > 25) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 6000 at your current skill level !"); return 1; }
- if(parts + ammount > 25000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 25000 at your current skill level !"); return 1; }
- }
- price = ammount * 2;
- if(PlayerInfo[playerid][pCash] > price)
- {
- format(string, sizeof(string), "* You bought %d carparts for $%d.", ammount, price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
- GivePlayerMoney(playerid, -price);
- PlayerInfo[playerid][pCarParts] = ammount + parts;
- Carparts = Carparts-ammount;
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/join", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] == 0)
- {
- if(GetPlayerState(playerid) == 1)
- {
- if(IsPlayerInRangeOfPoint(playerid,3.0,256.6144,69.6090,1003.6406))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Detective, type /accept job.");
- GettingJob[playerid] = 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,1381.0413,-1088.8511,27.3906))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Lawyer, type /accept job.");
- GettingJob[playerid] = 2;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2166.3772,-1675.3829,15.0859))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Drug Dealer, type /accept job.");
- GettingJob[playerid] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2329.4089,-2316.0996,13.5469))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Mechanic, type /accept job.");
- GettingJob[playerid] = 7;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2226.1716,-1718.1792,13.5165))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bodyguard, type /accept job.");
- GettingJob[playerid] = 8;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,1366.4325,-1275.2096,13.5469))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Arms Dealer, type /accept job.");
- GettingJob[playerid] = 9;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,1741.7062,-1863.6664,13.5748))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Taxi Driver, type /accept job.");
- GettingJob[playerid] = 14;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2354.2703,-1169.3293,28.0083))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Drug Smuggler, type /accept job.");
- GettingJob[playerid] = 17;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,545.6451,-1293.9248,17.2422))
- {
- if(PlayerInfo[playerid][pBizKey] != 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "* You can't get this job while you own a business.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Product Dealer, type /accept job.");
- GettingJob[playerid] = 3;
- }
- /* if(IsPlayerInRangeOfPoint(playerid,3.0,2194.2087,-1972.5421,13.5593)) // Trashman
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Trashman, type /accept job.");
- GettingJob[playerid] = 11;
- }*/
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not near a place to get a Job.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You must exit your vehicle before getting a Job.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You already have a Job, use /quitjob first.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/fill", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsAtGasStation(playerid))
- {
- GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3);
- SetTimer("Fillup",5000,0);
- Refueling[playerid] = 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY,"You are not at a Gas Station.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/tazer", true) ==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 7)
- {
- new x_job[20];
- x_job = strtok(cmdtext, idx);
- if(!strlen(x_job))
- tmp = strtok(cmdtext, idx);
- if(TazerHolster[playerid] == 1)
- {
- if(PlayerInfo[playerid][pGun2] == 24) PlayerHadDeagle[playerid] = 1;
- GivePlayerGun(playerid, 23);
- PlayerHasTazer[playerid] = 1;
- TazerHolster[playerid] = 0;
- format(string, sizeof(string), "* %s unholsters his tazer.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(TazerHolster[playerid] == 0)
- {
- if(PlayerHasTazer[playerid] == 0) return SendClientMessage(playerid,COLOR_GREY,"You don't have a tazer out!");
- TakeWeapon(playerid, 23);
- if(PlayerHadDeagle[playerid] == 1) GivePlayerGun(playerid, 24);
- PlayerHasTazer[playerid] = 0;
- PlayerHadDeagle[playerid] = 0;
- TazerHolster[playerid] = 1;
- format(string, sizeof(string), "* %s holsters his tazer back.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a member of the LSPD / SASD / FBI / DoC / SS");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/backshield", true) ==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 7)
- {
- if(BShield[playerid] == 0)
- {
- if (AShield[playerid] == 1) { RemovePlayerAttachedObject(playerid, 7); }
- BShield[playerid] = 1;
- if(IsPlayerAttachedObjectSlotUsed(playerid,bankbag)) RemovePlayerAttachedObject(playerid,bankbag);
- SetPlayerAttachedObject(playerid, bankbag , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1);
- }
- else if(BShield[playerid] == 1)
- {
- RemovePlayerAttachedObject(playerid, bankbag);
- BShield[playerid] = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST / NG / SS !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/armshield", true) ==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 7)
- {
- if(AShield[playerid] == 0)
- {
- if (BShield[playerid] == 1) { RemovePlayerAttachedObject(playerid, bankbag); }
- AShield[playerid] = 1;
- if(IsPlayerAttachedObjectSlotUsed(playerid,7)) RemovePlayerAttachedObject(playerid,7);
- SetPlayerAttachedObject(playerid, 7, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
- }
- else if(AShield[playerid] == 1)
- {
- RemovePlayerAttachedObject(playerid, 7);
- AShield[playerid] = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST / NG / SS !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/detain", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " Cannot use this while being in the Car !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /detain [playerid/PartOfName] [seatid]");
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /detain [playerid/PartOfName] [seatid]");
- new seat = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(seat < 1 || seat > 3)
- {
- SendClientMessage(playerid, COLOR_GREY, " Seat cannot be below 1 or above 3 !");
- return 1;
- }
- if(IsACop(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't Detain Cops !");
- return 1;
- }
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " Suspect is in a Car, get him out first !");
- return 1;
- }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Detain yourself !"); return 1; }
- if(PlayerCuffed[giveplayerid] == 2)
- {
- new carid = gLastCar[playerid];
- if(IsInvalidDetainVehicle(carid)) { SendClientMessage(playerid, COLOR_GREY, " You can't Detain someone in that vehicle !"); return 1; }
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInAnyVehicle(i))
- {
- if(GetPlayerVehicleID(i) == gLastCar[playerid])
- {
- if(GetPlayerVehicleSeat(i) == seat)
- {
- format(string, sizeof(string), " That seat is occupied by %s !", PlayerName(i));
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- }
- }
- }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You were detained by %s.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You have detained A Stranger.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s grabs A Stranger and throws him in his car.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- format(string, sizeof(string), "* You have detained %s.", PlayerName(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s grabs %s and throws him in the car.", sendername, PlayerName(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- GameTextForPlayer(giveplayerid, "~r~Detained", 2500, 3);
- ClearAnimations(giveplayerid);
- TogglePlayerControllable(giveplayerid, 0);
- if(IsInvalidDetainSeat(carid))
- {
- PutPlayerInVehicle(giveplayerid,carid,1);
- }
- else
- {
- PutPlayerInVehicle(giveplayerid,carid,seat);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player needs to be restrained first !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/stretcher", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 4)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " Cannot use this while being in the Car !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stretcher [playerid/PartOfName] [seatid]");
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stretcher [playerid/PartOfName] [seatid]");
- new seat = strvalEx(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(seat < 1 || seat > 3)
- {
- SendClientMessage(playerid, COLOR_GREY, " Seat cannot be below 1 or above 3 !");
- return 1;
- }
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is in a Car, get him out first !");
- return 1;
- }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot put yourself in a stretcher !"); return 1; }
- if(PlayerHurt[giveplayerid])
- {
- new carid = gLastCar[playerid];
- if(IsInvalidDetainVehicle(carid)) { SendClientMessage(playerid, COLOR_GREY, " You can't put someone in that vehicle !"); return 1; }
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInAnyVehicle(i))
- {
- if(GetPlayerVehicleID(i) == gLastCar[playerid])
- {
- if(GetPlayerVehicleSeat(i) == seat)
- {
- format(string, sizeof(string), " That seat is occupied by %s !", PlayerName(i));
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- }
- }
- }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You were put into a stretcher by %s.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You have put A Stranger into a stretcher.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s puts A Stranger into a stretcher and puts him in the vehicle.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- format(string, sizeof(string), "* You put %s into a stretcher.", PlayerName(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s puts %s into a stretcher and puts him in the vehicle.", sendername, PlayerName(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- ClearAnimations(giveplayerid);
- if(IsInvalidDetainSeat(carid))
- {
- PutPlayerInVehicle(giveplayerid,carid,1);
- }
- else
- {
- PutPlayerInVehicle(giveplayerid,carid,seat);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player needs to be restrained first !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Paramedic / Fireman !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/cuff", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cuff [Playerid/PartOfName]");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " Cannot use this while in a Car !");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(IsACop(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't Cuff Cops !");
- return 1;
- }
- if(IsANG(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't Cuff National Guards !");
- return 1;
- }
- if(PlayerTied[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Tied up !");
- return 1;
- }
- if(PlayerCuffed[giveplayerid] > 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is already Cuffed !");
- return 1;
- }
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " Suspect is in a car, get him out first !");
- return 1;
- }
- if(PlayerCuffed[giveplayerid] == 1 || GetPlayerSpecialAction(giveplayerid) == SPECIAL_ACTION_HANDSUP)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't Cuff yourself !"); return 1; }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You were Cuffed by Officer %s.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You Cuffed A Stranger.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s Hand Cuffs A Stranger, so he wont go anywhere.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- format(string, sizeof(string), "* You Cuffed %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s Hand Cuffs %s, so he wont go anywhere.", sendername ,giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- GameTextForPlayer(giveplayerid, "~r~Cuffed", 2500, 3);
- TogglePlayerControllable(giveplayerid, 0);
- ClearAnimations(giveplayerid);
- ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0);
- ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0);
- PlayerCuffed[giveplayerid] = 2;
- PlayerCuffedTime[giveplayerid] = 300;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player needs to be restrained first !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/uncuff", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /uncuff [Playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't Uncuff yourself !"); return 1; }
- if(PlayerCuffed[giveplayerid])
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You were Uncuffed by %s.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- if(PlayerInfo[giveplayerid][pMask] == 1)
- {
- format(string, sizeof(string), "* You uncuffed A Stranger.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has uncuffed A Stranger.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- format(string, sizeof(string), "* You uncuffed %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has uncuffed %s.", sendername ,giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- GameTextForPlayer(giveplayerid, "~g~Uncuffed", 2500, 3);
- TogglePlayerControllable(giveplayerid, 1);
- ClearAnimations(giveplayerid);
- PlayerCuffed[giveplayerid] = 0;
- PlayerCuffedTime[giveplayerid] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player isn't Cuffed !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/handsup", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
- return 1;
- }
- else
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/piss", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
- return 1;
- }
- else
- {
- SetPlayerSpecialAction(playerid, 68);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/find", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Detective !");
- return 1;
- }
- if(UsedFind[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You've already searched for someone, you must wait your reload time !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /find [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid) SendClientMessage(playerid, COLOR_GREY, " You cannot Find yourself !");
- if(GetPlayerInterior(giveplayerid) != 0) SendClientMessage(playerid, COLOR_GREY, " That player is currently inside !");
- if(PlayerInfo[giveplayerid][pMask] == 1) SendClientMessage(playerid, COLOR_GREY, " That player is currently inside !");
- new points;
- new zone[MAX_ZONE_NAME];
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayer2DZone(giveplayerid, zone, MAX_ZONE_NAME);
- new level = PlayerInfo[playerid][pDetSkill];
- if(level >= 0 && level <= 49) { points = 4; FReloadTime[playerid] = 120; }
- else if(level >= 50 && level <= 99) { points = 6; FReloadTime[playerid] = 80; }
- else if(level >= 100 && level <= 199) { points = 8; FReloadTime[playerid] = 60; }
- else if(level >= 200 && level <= 399) { points = 10; FReloadTime[playerid] = 30; }
- else if(level >= 400) { points = 12; FReloadTime[playerid] = 20; }
- SetPlayerMarkerForPlayer(playerid, giveplayerid, 0x9B0000AA);
- format(string, sizeof(string), "%s has been spotted last in %s.", giveplayer, zone);
- SendClientMessage(playerid, COLOR_GREY, string);
- FindingID[playerid] = giveplayerid;
- FindTime[playerid] = 1;
- UsedFind[playerid] = 1;
- FindTimePoints[playerid] = points;
- PlayerInfo[playerid][pDetSkill] ++;
- if(PlayerInfo[playerid][pDetSkill] == 50) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 2, you now have a 80 second reload time."); }
- else if(PlayerInfo[playerid][pDetSkill] == 100) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 3, you now have a 60 second reload time."); }
- else if(PlayerInfo[playerid][pDetSkill] == 200) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 4, you now have a 30 second reload time."); }
- else if(PlayerInfo[playerid][pDetSkill] == 400) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 5, you now have a 20 second reload time."); }
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- }
- return 1;
- }
- if(strcmp(cmd, "/sellvest", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 8)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Bodyguard !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellvest [playerid/PartOfName] [price]");
- return 1;
- }
- new money;
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellvest [playerid/PartOfName] [price]");
- return 1;
- }
- money = strvalEx(tmp);
- if(money < 2000 || money > 10000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $2000, or above $10,000 !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't offer protection to yourself !"); return 1; }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered protection to %s for $%d.", giveplayer, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Bodyguard %s wants to protect you for $%d, (type /accept vest) to accept.", sendername, money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- GuardOffer[giveplayerid] = playerid;
- GuardPrice[giveplayerid] = money;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/free", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Lawyer !");
- return 1;
- }
- if(PlayerInfo[playerid][pLawyerFreeTime] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You must wait 2 minutes before you can free someone again !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /free [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(5.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't free yourself !"); return 1; }
- if(PlayerInfo[giveplayerid][pAdminJailed] == 1)
- {
- return SendClientMessage(playerid, COLOR_LIGHTBLUE, " This player was admin prisoned, you cannot decrease their time.");
- }
- if(PlayerInfo[giveplayerid][pJailed] == 1)
- {
- new minutes;
- new level = PlayerInfo[playerid][pLawSkill];
- if(level >= 0 && level <= 49) { minutes = 1; }
- else if(level >= 50 && level <= 99) { minutes = 2; }
- else if(level >= 100 && level <= 199) { minutes = 3; }
- else if(level >= 200 && level <= 399) { minutes = 4; }
- else if(level >= 400) { minutes = 5; }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have reduced %s's jail time by %d minutes.", giveplayer,minutes);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Lawyer %s has reduced your jail time by %d minutes.", sendername,minutes);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- WantLawyer[giveplayerid] = 0;
- CallLawyer[giveplayerid] = 0;
- JailPrice[giveplayerid] = 0;
- PlayerInfo[giveplayerid][pJailTime] = PlayerInfo[giveplayerid][pJailTime] -minutes * 60;
- PlayerInfo[playerid][pLawSkill] ++;
- PlayerInfo[playerid][pLawyerFreeTime] = 120;
- if(PlayerInfo[playerid][pLawSkill] == 50) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 2, you will now earn more Money and have a quicker Reload Time."); }
- else if(PlayerInfo[playerid][pLawSkill] == 100) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 3, you will now earn more Money and have a quicker Reload Time."); }
- else if(PlayerInfo[playerid][pLawSkill] == 200) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 4, you will now earn more Money and have a quicker Reload Time."); }
- else if(PlayerInfo[playerid][pLawSkill] == 400) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 5, you will now earn more Money and have a quicker Reload Time."); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Player is not Jailed !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're too far away !");
- return 1;
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- }
- return 1;
- }
- if(strcmp(cmd,"/biz",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pBizKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't own a business.");
- return 1;
- }
- if(PlayerInfo[playerid][pInBiz] != PlayerInfo[playerid][pBizKey])
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be inside your business to do this.");
- return 1;
- }
- new biz = PlayerInfo[playerid][pBizKey];
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Withdraw, EntryFee, Restock");
- if(BizInfo[biz][bType] == 8)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: AddJackpot, Startlotto");
- }
- if(BizInfo[biz][bType] == 6)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Mass");
- }
- return 1;
- }
- if(strcmp(x_job,"Withdraw",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new withdraw = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz Withdraw [amount]");
- format(string, sizeof(string), "You currently have $%d in your business till", BizInfo[biz][bTill]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- if(withdraw > BizInfo[biz][bTill])
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have that much in your business till");
- return 1;
- }
- new left = BizInfo[biz][bTill]-withdraw;
- BizInfo[biz][bTill] = left;
- format(string, sizeof(string), "You took $%d from your business", withdraw);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- PlayerInfo[playerid][pCash] += withdraw;
- GivePlayerMoney(playerid,withdraw);
- return 1;
- }
- else if(strcmp(x_job,"EntryFee",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new fee = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz EntryFee [amount]");
- return 1;
- }
- if(fee > 10000 || fee < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " The entry fee must be between $0 - $10,000");
- return 1;
- }
- BizInfo[biz][bFee] = fee;
- DestroyDynamic3DTextLabel(BizLabel[biz]);
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, BizInfo[biz][bOwner], 0, strlen(BizInfo[biz][bOwner]), 255);
- strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
- format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[biz][bFee]);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- format(string, sizeof(string), "You have set your business entry fee to $%d", fee);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Restock",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new prod = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz Restock [amount]");
- format(string, sizeof(string), "You currently have %d products in your business", BizInfo[biz][bProducts]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- new calc = prod+BizInfo[biz][bProducts];
- if(calc > 500)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't restock that much");
- return 1;
- }
- if(prod > PlayerInfo[playerid][pProducts])
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have that much");
- return 1;
- }
- BizInfo[biz][bProducts] = calc;
- format(string, sizeof(string), "You have restocked your business.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- PlayerInfo[playerid][pProducts] -= prod;
- return 1;
- }
- else if(strcmp(x_job,"AddJackpot",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new jpot = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz AddJackpot [amount]");
- SendClientMessage(playerid, COLOR_YELLOW, "Note that you can't take your cash back once you added it to the Jackpot");
- format(string, sizeof(string), "You currently have $%d in your hand", PlayerInfo[playerid][pCash]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- if(jpot < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Yeah sure..");
- return 1;
- }
- if(jpot > PlayerInfo[playerid][pCash])
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have that much");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= jpot;
- GivePlayerMoney(playerid,-jpot);
- format(string, sizeof(string), "You added $%d to the jackpot", jpot);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- BizInfo[biz][bLottoJackpot] += jpot;
- return 1;
- }
- else if(strcmp(x_job,"StartLotto",true) == 0)
- {
- if(PlayerInfo[playerid][pBizKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't own a lotto agency");
- return 1;
- }
- if(BizInfo[PlayerInfo[playerid][pBizKey]][bType] != 8 )
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't own a lotto agency");
- return 1;
- }
- if(BizInfo[PlayerInfo[playerid][pBizKey]][bLottoTime] > 0 )
- {
- SendClientMessage(playerid, COLOR_GREY, " You already had a draw recently");
- return 1;
- }
- new bizname[25];
- strmid(bizname, BizInfo[PlayerInfo[playerid][pBizKey]][bName], 0, strlen(BizInfo[PlayerInfo[playerid][pBizKey]][bName]), 255);
- new location[MAX_ZONE_NAME];
- Get2DZone(location, MAX_ZONE_NAME, BizInfo[PlayerInfo[playerid][pBizKey]][bLocation_x], BizInfo[PlayerInfo[playerid][pBizKey]][bLocation_y], BizInfo[PlayerInfo[playerid][pBizKey]][bLocation_z]);
- format(string, sizeof(string), "Lottery: %s will have a draw in 5 minutes. Jackpot: %d", bizname, BizInfo[PlayerInfo[playerid][pBizKey]][bLottoJackpot]);
- SendClientMessageToAll(COLOR_RED, string);
- format(string, sizeof(string), "Lottery: Buy your tickets from the lotto agency located in %s",location);
- SendClientMessageToAll(COLOR_RED, string);
- // SetTimerEx("StartLotto", 3000, 0, "d", PlayerInfo[playerid][pBizKey]);
- SetTimerEx("StartLotto", 300000, 0, "d", PlayerInfo[playerid][pBizKey]);
- BizInfo[biz][bLottoTime] = 1;
- return 1;
- }
- else if(strcmp(x_job,"Mass",true) == 0)
- {
- new number;
- if(PlayerInfo[playerid][pBizKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't own a phone company");
- return 1;
- }
- if(BizInfo[PlayerInfo[playerid][pBizKey]][bType] != 6 )
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't own a phone company");
- return 1;
- }
- if(BizInfo[PlayerInfo[playerid][pBizKey]][bLottoTime] > 0 )
- {
- SendClientMessage(playerid, COLOR_GREY, " You already sent a mass recently");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /biz Mass [Number] [Message]");
- return 1;
- }
- number = strvalEx(tmp);
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /mass [Number] [Message]");
- return 1;
- }
- format(string, sizeof(string), "["CB"SMS Inbox"CW"] "CB" Sender:"CW" %d",number);
- SendClientMessageToAll(COLOR_WHITE, string);
- format(string, sizeof(string), ""CB"Message:"CW" %s",result);
- SendClientMessageToAll(COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_STEELBLUE, "Text Message Delivered");
- BizInfo[biz][bLottoTime] = 1;
- return 1;
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/houseupgrade",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pHouseKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't own a house");
- return 1;
- }
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Alarm ($50,000), TagName ($25,000), SafeCode ($10,000)");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Safe ($100,000), Rentable (0/1), RentPrice");
- return 1;
- }
- new house = PlayerInfo[playerid][pHouseKey];
- if(strcmp(x_job,"Alarm",true) == 0)
- {
- if(HouseInfo[house][hAlarm] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This house already got an alarm");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < 50000)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford this");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= 50000;
- GivePlayerMoney(playerid,-50000);
- HouseInfo[house][hAlarm] = 1;
- SendClientMessage(playerid,COLOR_YELLOW, "You have bought an alarm for your house. Type /alarm to turn it on/off");
- return 1;
- }
- else if(strcmp(x_job,"TagName",true) == 0)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[20];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade TagName [Name]");
- return 1;
- }
- if(InvalidChar(result) == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " ERROR: cannot contain invalid characters !");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < 25000)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford this");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= 25000;
- GivePlayerMoney(playerid,-25000);
- strmid(HouseInfo[house][hName], result, 0, strlen(result), 25);
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- if(HouseInfo[house][hRentable] == 1)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
- strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[house][hRentable] == 0)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
- strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- format(string, sizeof(string), "You have set this house tag name to %s.", result);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- return 1;
- }
- else if(strcmp(x_job,"Rentable",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new rentable = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade Rentable [0/1]");
- return 1;
- }
- if(rentable > 1 || rentable < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Use 0 for no and 1 for yes");
- return 1;
- }
- HouseInfo[house][hRentable] = rentable;
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- if(rentable == 1)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
- strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(rentable == 0)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
- strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- format(string, sizeof(string), "You have set this house renting options");
- SendClientMessage(playerid,COLOR_YELLOW,string);
- return 1;
- }
- else if(strcmp(x_job,"RentPrice",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new rent = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade RentPrice [Price]");
- return 1;
- }
- if(HouseInfo[house][hRentable] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This house is not rentable");
- return 1;
- }
- if(rent > 20000 || rent < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " The price must be between $1 and $20,000");
- return 1;
- }
- HouseInfo[house][hRent] = rent;
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
- strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- format(string, sizeof(string), "You have set this house rent price to %d.", rent);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- return 1;
- }
- else if(strcmp(x_job,"SafeCode",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new code = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade SafeCode [Code]");
- return 1;
- }
- if(HouseInfo[house][hSafe] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This house doesn't have a safe");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < 10000)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford this");
- return 1;
- }
- if(code > 9999 || code < 1000)
- {
- SendClientMessage(playerid, COLOR_GREY, " The code must have 4 numbers");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= 10000;
- GivePlayerMoney(playerid,-10000);
- HouseInfo[house][hSafeCode] = code;
- format(string, sizeof(string), "You have set this house safe code to %d.", code);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- return 1;
- }
- else if(strcmp(x_job,"Safe",true) == 0)
- {
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- new Float:safex, Float:safey, Float:safez;
- GetPlayerPos(playerid, safex, safey, safez);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_YELLOW,"The safe will be placed in your current possition.");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade Safe [confirm]");
- return 1;
- }
- if(PlayerInfo[playerid][pInHouse] != PlayerInfo[playerid][pHouseKey])
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be inside your house to do this.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < 100000)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford this.");
- return 1;
- }
- if(strcmp(x_nr,"confirm",true) == 0)
- {
- if(HouseInfo[house][hOwned] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "This house is not owned.");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= 100000;
- GivePlayerMoney(playerid,-100000);
- HouseInfo[house][hSafex] = safex;
- HouseInfo[house][hSafey] = safey;
- HouseInfo[house][hSafez] = safez;
- HouseInfo[house][hSafe] = 1;
- DestroyDynamicPickup(HouseSafe[house]);
- HouseSafe[house] = CreateDynamicPickup(1210, 23, HouseInfo[house][hSafex],HouseInfo[house][hSafey], HouseInfo[house][hSafez], HouseInfo[house][hVirtualWorld], -1, -1, 100.0 );
- SendClientMessage(playerid,COLOR_YELLOW, "Safe bought !");
- }
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/safe",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pInHouse] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
- return 1;
- }
- new house = PlayerInfo[playerid][pInHouse];
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
- return 1;
- }
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /safe [Open/Close]");
- return 1;
- }
- if(strcmp(x_job,"Open",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new code = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /safe Open [Code]");
- return 1;
- }
- if(PlayerInfo[playerid][pHSafeattempt] >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "You already have too many attempts to open a safe. Wait until next paycheck");
- return 1;
- }
- if(HouseInfo[house][hSafeOpen] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "The safe is already opened");
- return 1;
- }
- if(code != HouseInfo[house][hSafeCode])
- {
- PlayerInfo[playerid][pHSafeattempt] += 1;
- SendClientMessage(playerid, COLOR_RED, "Wrong Code");
- return 1;
- }
- if(code == HouseInfo[house][hSafeCode])
- {
- PlayerInfo[playerid][pHSafeattempt] = 0;
- HouseInfo[house][hSafeOpen] = 1;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have opened the safe");
- return 1;
- }
- }
- else if(strcmp(x_job,"Close",true) == 0)
- {
- if(HouseInfo[house][hSafeOpen] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The safe is already closed");
- return 1;
- }
- HouseInfo[house][hSafeOpen] = 0;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have closed the safe");
- return 1;
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/stake",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pInHouse] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
- return 1;
- }
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake [Cash/Mats/Crack/Pot]");
- return 1;
- }
- new house = PlayerInfo[playerid][pInHouse];
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
- return 1;
- }
- if(HouseInfo[house][hSafeOpen] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
- return 1;
- }
- if(strcmp(x_job,"Cash",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new amount = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake Cash [Amount]");
- return 1;
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't take negative amounts");
- return 1;
- }
- if(HouseInfo[house][hCash] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have any cash");
- return 1;
- }
- if(amount > HouseInfo[house][hCash])
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have that much");
- return 1;
- }
- new cash = HouseInfo[house][hCash] - amount;
- HouseInfo[house][hCash] = cash;
- PlayerInfo[playerid][pCash] += amount;
- GivePlayerMoney(playerid,amount);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have taken some money from the safe");
- return 1;
- }
- else if(strcmp(x_job,"Mats",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new amount = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake Mats [Amount]");
- return 1;
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't take negative amounts");
- return 1;
- }
- if(HouseInfo[house][hMaterials] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have any materials");
- return 1;
- }
- if(amount > HouseInfo[house][hMaterials])
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have that much");
- return 1;
- }
- new mats = HouseInfo[house][hMaterials] - amount;
- HouseInfo[house][hMaterials] = mats;
- PlayerInfo[playerid][pMats] += amount;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have taken some materials from the safe");
- return 1;
- }
- else if(strcmp(x_job,"Crack",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new amount = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake Crack [Amount]");
- return 1;
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't take negative amounts");
- return 1;
- }
- if(HouseInfo[house][hCrack] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have any crack");
- return 1;
- }
- if(amount > HouseInfo[house][hCrack])
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have that much");
- return 1;
- }
- new samount = PlayerInfo[playerid][pCrack] + amount;
- if(samount > 25)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't take that much");
- return 1;
- }
- new crack = HouseInfo[house][hCrack] - amount;
- HouseInfo[house][hCrack] = crack;
- PlayerInfo[playerid][pCrack] += amount;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have taken some crack from the safe");
- return 1;
- }
- else if(strcmp(x_job,"Pot",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new amount = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake Pot [Amount]");
- return 1;
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't take negative amounts");
- return 1;
- }
- if(HouseInfo[house][hPot] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have any pot");
- return 1;
- }
- if(amount > HouseInfo[house][hPot])
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have that much");
- return 1;
- }
- new samount = PlayerInfo[playerid][pPot] + amount;
- if(samount > 50)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't take that much");
- return 1;
- }
- new pot = HouseInfo[house][hPot] - amount;
- HouseInfo[house][hPot] = pot;
- PlayerInfo[playerid][pPot] += amount;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have taken some pot from the safe");
- return 1;
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/takegun",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pInHouse] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
- return 1;
- }
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /takegun [Slot 1-4]");
- return 1;
- }
- new house = PlayerInfo[playerid][pInHouse];
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
- return 1;
- }
- if(HouseInfo[house][hSafeOpen] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
- return 1;
- }
- if(strcmp(x_job,"1",true) == 0)
- {
- if(HouseInfo[house][hGun1] != 0)
- {
- new buffer[512];
- new gunName[100];
- GivePlayerGun(playerid, HouseInfo[house][hGun1]);
- GetWeaponName(HouseInfo[house][hGun1], gunName, sizeof(gunName));
- format(buffer, sizeof(buffer), "You've taken a %s from the safe.", gunName);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- HouseInfo[house][hGun1] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
- return 1;
- }
- }
- else if(strcmp(x_job,"2",true) == 0)
- {
- if(HouseInfo[house][hGun2] != 0)
- {
- new buffer[512];
- new gunName[100];
- GivePlayerGun(playerid, HouseInfo[house][hGun2]);
- GetWeaponName(HouseInfo[house][hGun2], gunName, sizeof(gunName));
- format(buffer, sizeof(buffer), "You've taken a %s from the safe.", gunName);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- HouseInfo[house][hGun2] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
- return 1;
- }
- }
- else if(strcmp(x_job,"3",true) == 0)
- {
- if(HouseInfo[house][hGun3] != 0)
- {
- new buffer[512];
- new gunName[100];
- GivePlayerGun(playerid, HouseInfo[house][hGun3]);
- GetWeaponName(HouseInfo[house][hGun3], gunName, sizeof(gunName));
- format(buffer, sizeof(buffer), "You've taken a %s from the safe.", gunName);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- HouseInfo[house][hGun3] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
- return 1;
- }
- }
- else if(strcmp(x_job,"4",true) == 0)
- {
- if(HouseInfo[house][hGun4] != 0)
- {
- new buffer[512];
- new gunName[100];
- GivePlayerGun(playerid, HouseInfo[house][hGun4]);
- GetWeaponName(HouseInfo[house][hGun4], gunName, sizeof(gunName));
- format(buffer, sizeof(buffer), "You've taken a %s from the safe.", gunName);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- HouseInfo[house][hGun4] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
- return 1;
- }
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/storegun",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pInHouse] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
- return 1;
- }
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /storegun [Slot 1-4]");
- return 1;
- }
- new house = PlayerInfo[playerid][pInHouse];
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
- return 1;
- }
- if(HouseInfo[house][hSafeOpen] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
- return 1;
- }
- if(strcmp(x_job,"1",true) == 0)
- {
- if(HouseInfo[house][hGun1] == 0)
- {
- new buffer[512];
- new gunname[100];
- new gunID = GetPlayerWeapon(playerid);
- if(gunID != 0)
- {
- if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
- if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
- if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
- GetWeaponName(gunID, gunname, sizeof(gunname));
- HouseInfo[house][hGun1] = gunID;
- format(buffer, sizeof(buffer), "You have put your %s in the safe.", gunname);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- RemovePlayerWeapon(playerid, gunID);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
- return 1;
- }
- }
- else if(strcmp(x_job,"2",true) == 0)
- {
- if(HouseInfo[house][hGun2] == 0)
- {
- new buffer[512];
- new gunname[100];
- new gunID = GetPlayerWeapon(playerid);
- if(gunID != 0)
- {
- if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
- if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
- if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
- GetWeaponName(gunID, gunname, sizeof(gunname));
- HouseInfo[house][hGun2] = gunID;
- format(buffer, sizeof(buffer), "You have put your %s in the safe.", gunname);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- RemovePlayerWeapon(playerid, gunID);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
- return 1;
- }
- }
- else if(strcmp(x_job,"3",true) == 0)
- {
- if(HouseInfo[house][hGun3] == 0)
- {
- new buffer[512];
- new gunname[100];
- new gunID = GetPlayerWeapon(playerid);
- if(gunID != 0)
- {
- if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
- if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
- if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
- GetWeaponName(gunID, gunname, sizeof(gunname));
- HouseInfo[house][hGun3] = gunID;
- format(buffer, sizeof(buffer), "You have put your %s in the safe.", gunname);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- RemovePlayerWeapon(playerid, gunID);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
- return 1;
- }
- }
- else if(strcmp(x_job,"4",true) == 0)
- {
- if(HouseInfo[house][hGun4] == 0)
- {
- new buffer[512];
- new gunname[100];
- new gunID = GetPlayerWeapon(playerid);
- if(gunID != 0)
- {
- if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
- if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
- if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
- if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
- if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
- if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
- if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
- if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
- if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
- if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
- if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
- if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
- if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
- if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
- GetWeaponName(gunID, gunname, sizeof(gunname));
- HouseInfo[house][hGun4] = gunID;
- format(buffer, sizeof(buffer), "You have put your %s in the safe.", gunname);
- SendClientMessage(playerid, COLOR_WHITE, buffer);
- RemovePlayerWeapon(playerid, gunID);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
- return 1;
- }
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/sput",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pInHouse] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
- return 1;
- }
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput [Cash/Mats/Crack/Pot]");
- return 1;
- }
- new house = PlayerInfo[playerid][pInHouse];
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
- return 1;
- }
- if(HouseInfo[house][hSafeOpen] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
- return 1;
- }
- if(strcmp(x_job,"Cash",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new amount = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput Cash [Amount]");
- return 1;
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't put negative amounts");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any cash on you");
- return 1;
- }
- if(amount > PlayerInfo[playerid][pCash])
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that much");
- return 1;
- }
- new cash = HouseInfo[house][hCash] + amount;
- HouseInfo[house][hCash] = cash;
- PlayerInfo[playerid][pCash] -= amount;
- GivePlayerMoney(playerid,-amount);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have deposited some money in the safe");
- return 1;
- }
- else if(strcmp(x_job,"Mats",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new amount = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput Mats [Amount]");
- return 1;
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't put negative amounts");
- return 1;
- }
- if(PlayerInfo[playerid][pMats] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any mats on you");
- return 1;
- }
- if(amount > PlayerInfo[playerid][pMats])
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that much");
- return 1;
- }
- new mats = HouseInfo[house][hMaterials] + amount;
- HouseInfo[house][hMaterials] = mats;
- PlayerInfo[playerid][pMats] -= amount;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have deposited some materials in the safe");
- return 1;
- }
- else if(strcmp(x_job,"Crack",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new amount = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput Crack [Amount]");
- return 1;
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't put negative amounts");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any crack on you");
- return 1;
- }
- if(amount > PlayerInfo[playerid][pCrack])
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that much");
- return 1;
- }
- if(amount > 25)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't store that much in one time");
- return 1;
- }
- new calc = amount + HouseInfo[house][hCrack];
- if(calc > 500)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe already have too much crack");
- return 1;
- }
- new crack = HouseInfo[house][hCrack] + amount;
- HouseInfo[house][hCrack] = crack;
- PlayerInfo[playerid][pCrack] -= amount;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have deposited some crack in the safe");
- return 1;
- }
- else if(strcmp(x_job,"Pot",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new amount = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput Pot [Amount]");
- return 1;
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't put negative amounts");
- return 1;
- }
- if(PlayerInfo[playerid][pPot] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any pot on you");
- return 1;
- }
- if(amount > PlayerInfo[playerid][pPot])
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that much");
- return 1;
- }
- if(amount > 50)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't store that much in one time");
- return 1;
- }
- new calc = amount + HouseInfo[house][hPot];
- if(calc > 500)
- {
- SendClientMessage(playerid, COLOR_GREY, "This safe already have too much pot");
- return 1;
- }
- new pot = HouseInfo[house][hPot] + amount;
- HouseInfo[house][hPot] = pot;
- PlayerInfo[playerid][pPot] -= amount;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have deposited some pot in the safe");
- return 1;
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd, "/evict", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pHouseKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY," You don't have a house !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /evict [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pRenthouse] != PlayerInfo[playerid][pHouseKey])
- {
- SendClientMessage(playerid, COLOR_GREY," This player is not renting your house !");
- return 1;
- }
- HouseInfo[PlayerInfo[playerid][pHouseKey]][hRenters] -= 1;
- PlayerInfo[giveplayerid][pRenthouse] = 999;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You evicted one of your renters");
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "You have been evicted from the house by it's owner");
- }
- }
- }
- return 1;
- }
- /* if(strcmp(cmd, "/oevict", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pHouseKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY," You don't have a house !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /oevict [full name(case sensative)]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- format(string, sizeof(string), "%s.ini",tmp);
- if(!dini_Exists(string))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That player does not exist !");
- return 1;
- }
- if(dini_Int(string, "Renthouse") == PlayerInfo[playerid][pHouseKey])
- {
- HouseInfo[PlayerInfo[playerid][pHouseKey]][hRenters] -= 1;
- dini_IntSet(string, "Renthouse", 999);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You evicted one of your renters");
- if(IsPlayerConnected(giveplayerid))
- {
- PlayerInfo[giveplayerid][pRenthouse] = 999;
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "You have been evicted from the house by it's owner");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "This player is not renting your house");
- return 1;
- }
- }
- return 1;
- }*/
- if(strcmp(cmd,"/alarm",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pHouseKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't own a house");
- return 1;
- }
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /alarm [On/Off]");
- return 1;
- }
- new house = PlayerInfo[playerid][pHouseKey];
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z]))
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be outside your house to do this");
- return 1;
- }
- if(strcmp(x_job,"On",true) == 0)
- {
- if(HouseInfo[house][hAlarm] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This house doesn't have an alarm");
- return 1;
- }
- if(HouseInfo[house][hAlarmON] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "The alarm is already turned on");
- return 1;
- }
- HouseInfo[house][hAlarmON] = 1;
- SendClientMessage(playerid,COLOR_YELLOW, "You have turned on the alarm");
- return 1;
- }
- else if(strcmp(x_job,"Off",true) == 0)
- {
- if(HouseInfo[house][hAlarm] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This house doesn't have an alarm");
- return 1;
- }
- if(HouseInfo[house][hAlarmON] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The alarm is already turned off");
- return 1;
- }
- HouseInfo[house][hAlarmON] = 0;
- SendClientMessage(playerid,COLOR_YELLOW, "You have turned off the alarm");
- return 1;
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/renters",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pHouseKey] != 999)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Renters Online:");
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pRenthouse] == PlayerInfo[playerid][pHouseKey])
- {
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "%s", giveplayer);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't own a house");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/carinfo",true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_RED, "You are not authorised to use this command.");
- return 1;
- }
- new vehicle = GetPlayerVehicleID(playerid);
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] == vehicle)
- {
- return 1;
- }
- }
- new owner[255];
- strmid(owner, CarInfo[vehicle][tOwner], 0, strlen(CarInfo[vehicle][tOwner]), 255);
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, "You need to be in a car to do this.");
- return 1;
- }
- format(string, sizeof(string), "Veh ID: %d | Faction: %d | VIP: %d | Owner: %s",vehicle,CarInfo[vehicle][tFaction], CarInfo[vehicle][tVIP], owner);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- if(strcmp(cmd,"/houseinfo",true)==0)
- {
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 1, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_RED, "You are not authorised to use that command.");
- return 1;
- }
- new houseid = h;
- format(string, sizeof(string), "House ID: %d | Level: %d.",houseid,HouseInfo[houseid][hLevel]);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/bizinfo",true)==0)
- {
- for(new h = 0; h < sizeof(BizInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 1, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_RED, "You are not authorised to use this command.");
- return 1;
- }
- new bizid = h;
- format(string, sizeof(string), "Biz ID: %d | Type: %d.",bizid,BizInfo[bizid][bType]);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/plateinfo",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsACop(playerid) && !IsAAgent(playerid) && !IsANG(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / Prison Guard !");
- return 1;
- }
- new tmpcar = GetPlayerVehicleID(playerid);
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[24];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /checkplate [license plate]");
- return 1;
- }
- if(CarInfo[tmpcar][tFaction] == 1 || CarInfo[tmpcar][tFaction] == 2 || IsPlayerInRangeOfPoint(playerid,5.0,253.9280,69.6094,1003.6406))
- {
- new countplates = 0;
- for(new h = 1; h < 2000; h++)
- {
- new plate[9];
- format(plate,sizeof(plate),"%s",CarInfo[h][tLicensePlate]);
- if(strcmp(result, plate, true) == 0)
- {
- new owner[32];
- format(owner,sizeof(owner),"%s",CarInfo[h][tOwner]);
- new platefound[256];
- format(platefound,sizeof(platefound),"Results found: {2E9AFE}License plate: {FFFFFF}%s {2E9AFE}Vehicle owner: {FFFFFF}%s {2E9AFE}Vehicle type: {FFFFFF}%s", plate, owner, GetVehicleFriendlyName(h));
- SendClientMessage(playerid, COLOR_WHITE, platefound);
- countplates++;
- return 1;
- }
- }
- if(countplates == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "No results found.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Police Vehicle or in the Police Department.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/editbiz",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new biz = BizEditID[playerid];
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_RED, "You are not authorised to use this command");
- return 1;
- }
- if(!strlen(x_job)) {
- if(BizEditID[playerid] == 999)
- {
- SendClientMessage(playerid, COLOR_RED, "Use /editbiz ID [BizID] to choose the business to edit");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: ID, Interior, Intmenu, Exterior, Price, Type, Name, Sellbiz, Reset, VW, Products");
- return 1;
- }
- }
- if(strcmp(x_job,"Interior",true) == 0)
- {
- new interior = GetPlayerInterior(playerid);
- new vw = 1000 + random(199999999999999999);
- new Float:posx, Float:posy, Float:posz, Float:posa;
- GetPlayerPos(playerid, posx, posy, posz);
- GetPlayerFacingAngle(playerid, posa);
- new Float:angle = posa + 180.0000;
- BizInfo[biz][bIntLocationx] = posx;
- BizInfo[biz][bIntLocationy] = posy;
- BizInfo[biz][bIntLocationz] = posz;
- BizInfo[biz][bInterior] = interior;
- BizInfo[biz][bVirtualWorld] = vw;
- BizInfo[biz][bExitAngle] = angle;
- SetPlayerVirtualWorld(playerid, vw);
- PlayerInfo[playerid][pVirtualWorld] = vw;
- PlayerInfo[playerid][pInBiz] = biz;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this business interior.");
- return 1;
- }
- else if(strcmp(x_job,"intmenu",true) == 0)
- {
- ShowPlayerDialog(playerid, 9974,DIALOG_STYLE_LIST, "Business Interior Menu", "Bank\nCity Hall\nLSPD\nGym\nDrug House\nCrack Lab\n24/7\nAmmunation 1\nAmmunation 2\nAmmunation 3\nAmmunation 4\nAmmunation 5\nBinco\nDidier sachs\nProlaps\nSuburban\nVictim\nZip\nClub\nBar\nResturant\nPhone Company\nLottery\nCJ's House\nBallas HQ", "Set Interior", "Cancel");
- return 1;
- }
- else if(strcmp(x_job,"Reset",true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] < 7)
- {
- SendClientMessage(playerid, COLOR_GREY, "This command is only for the Server Owner.");
- return 1;
- }
- BizInfo[biz][bLocation_x] = 0.0000;
- BizInfo[biz][bLocation_y] = 0.0000;
- BizInfo[biz][bLocation_z] = 0.0000;
- BizInfo[biz][bInterior] = 0;
- BizInfo[biz][bVirtualWorld] = 0;
- BizInfo[biz][bExitAngle] = 0.0000;
- BizInfo[biz][bEnterAngle] = 0.0000;
- BizInfo[biz][bIntLocationx] = 0.0000;
- BizInfo[biz][bIntLocationy] = 0.0000;
- BizInfo[biz][bIntLocationz] = 0.0000;
- strmid(BizInfo[biz][bOwner], "The State", 0, strlen("The State"), 255);
- strmid(BizInfo[biz][bName], "None", 0, strlen("None"), 255);
- BizInfo[biz][bLocked] = 0;
- BizInfo[biz][bOwned] = 0;
- BizInfo[biz][bType] = 0;
- BizInfo[biz][bCameras] = 0;
- BizInfo[biz][bTill] = 0;
- BizInfo[biz][bFee] = 0;
- DestroyDynamicMapIcon(BizIcon[biz]);
- DestroyDynamicPickup(BizPickup[biz]);
- DestroyDynamic3DTextLabel(BizLabel[biz]);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have reseted this business.");
- return 1;
- }
- else if(strcmp(x_job,"Exterior",true) == 0)
- {
- new pickup;
- if(BizInfo[biz][bType] == 0) { pickup = 1239; }
- else if(BizInfo[biz][bType] != 0) { pickup = 1272; }
- new Float:posx, Float:posy, Float:posz, Float:posa;
- GetPlayerPos(playerid, posx, posy, posz);
- new interiorz = GetPlayerInterior(playerid);
- new pvw = GetPlayerVirtualWorld(playerid);
- GetPlayerFacingAngle(playerid, posa);
- new Float:angle = posa + 180.0000;
- BizInfo[biz][bLocation_x] = posx;
- BizInfo[biz][bLocation_y] = posy;
- BizInfo[biz][bLocation_z] = posz;
- BizInfo[biz][bEnterAngle] = angle;
- BizInfo[biz][bPInt] = interiorz;
- BizInfo[biz][bPVW] = pvw;
- DestroyDynamicPickup(BizPickup[biz]);
- DestroyDynamic3DTextLabel(BizLabel[biz]);
- BizPickup[biz] = CreateDynamicPickup(pickup, 1, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this business entrance.");
- if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] != 0)
- {
- new VString[255];
- new price = BizInfo[biz][bPrice];
- format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- DestroyDynamicMapIcon(BizIcon[biz]);
- if(BizInfo[biz][bType] == 1)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 17, 0);
- else if(BizInfo[biz][bType] == 2)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 49, 0);
- else if(BizInfo[biz][bType] == 3)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 18, 0);
- else if(BizInfo[biz][bType] == 4)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 50, 0);
- else if(BizInfo[biz][bType] == 5)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 45, 0);
- else if(BizInfo[biz][bType] == 6)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 25, 0);
- else if(BizInfo[biz][bType] == 7)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 62, 0);
- else if(BizInfo[biz][bType] == 8)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 36, 0);
- }
- if(BizInfo[biz][bOwned] == 1 && BizInfo[biz][bType] != 0)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, BizInfo[biz][bOwner], 0, strlen(BizInfo[biz][bOwner]), 255);
- strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
- format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[biz][bFee]);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- DestroyDynamicMapIcon(BizIcon[biz]);
- if(BizInfo[biz][bType] == 1)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 17, 0);
- else if(BizInfo[biz][bType] == 2)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 49, 0);
- else if(BizInfo[biz][bType] == 3)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 18, 0);
- else if(BizInfo[biz][bType] == 4)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 50, 0);
- else if(BizInfo[biz][bType] == 5)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 45, 0);
- else if(BizInfo[biz][bType] == 6)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 25, 0);
- else if(BizInfo[biz][bType] == 7)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 62, 0);
- else if(BizInfo[biz][bType] == 8)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 36, 0);
- }
- if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] == 0)
- {
- new VString[255];
- new name[25];
- strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
- format(VString,sizeof(VString),"%s", name);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- }
- return 1;
- }
- else if(strcmp(x_job,"Price",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new price = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Price [price]");
- return 1;
- }
- if(BizInfo[biz][bOwned] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " The business is owned");
- return 1;
- }
- if(BizInfo[biz][bType] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " The business is not buyable");
- return 1;
- }
- if(price > 50000000 || price < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " The price must be between $1 - $50,000,000 !");
- return 1;
- }
- BizInfo[biz][bPrice] = price;
- DestroyDynamic3DTextLabel(BizLabel[biz]);
- new VString[255];
- format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- format(string, sizeof(string), "You have set this business price to %d.", price);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Type",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new type = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Type [0-5]");
- SendClientMessage(playerid, COLOR_GREY, "Available types: 0 - Normal building | 1 - 24/7 | 2 - Club | 3 - Ammunation | 4 - Restaurant");
- SendClientMessage(playerid, COLOR_GREY, "Available types: 5 - Clothing store | 6 - Phone company | 7 - Ad Company | 8 - Lottery");
- return 1;
- }
- if(type < 0 || type > 8)
- {
- SendClientMessage(playerid, COLOR_GREY, " The biz type must be between 0 - 8 !");
- return 1;
- }
- BizInfo[biz][bType] = type;
- DestroyDynamic3DTextLabel(BizLabel[biz]);
- DestroyDynamicPickup(BizPickup[biz]);
- if(type == 0)
- {
- BizPickup[biz] = CreateDynamicPickup(1239, 1, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- }
- else if(type != 0)
- {
- if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] != 0)
- {
- new VString[255];
- new price = BizInfo[biz][bPrice];
- format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- DestroyDynamicMapIcon(BizIcon[biz]);
- if(BizInfo[biz][bType] == 1)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 17, 0);
- else if(BizInfo[biz][bType] == 2)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 49, 0);
- else if(BizInfo[biz][bType] == 3)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 18, 0);
- else if(BizInfo[biz][bType] == 4)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 50, 0);
- else if(BizInfo[biz][bType] == 5)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 45, 0);
- else if(BizInfo[biz][bType] == 6)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 25, 0);
- else if(BizInfo[biz][bType] == 7)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 62, 0);
- else if(BizInfo[biz][bType] == 8)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 36, 0);
- }
- if(BizInfo[biz][bOwned] == 1 && BizInfo[biz][bType] != 0)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, BizInfo[biz][bOwner], 0, strlen(BizInfo[biz][bOwner]), 255);
- strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
- format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[biz][bFee]);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- DestroyDynamicMapIcon(BizIcon[biz]);
- if(BizInfo[biz][bType] == 1)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 17, 0);
- else if(BizInfo[biz][bType] == 2)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 49, 0);
- else if(BizInfo[biz][bType] == 3)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 18, 0);
- else if(BizInfo[biz][bType] == 4)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 50, 0);
- else if(BizInfo[biz][bType] == 5)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 45, 0);
- else if(BizInfo[biz][bType] == 6)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 25, 0);
- else if(BizInfo[biz][bType] == 7)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 62, 0);
- else if(BizInfo[biz][bType] == 8)
- BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 36, 0);
- }
- if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] == 0)
- {
- new VString[255];
- new name[25];
- strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
- format(VString,sizeof(VString),"%s", name);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- DestroyDynamicMapIcon(BizIcon[biz]);
- }
- BizPickup[biz] = CreateDynamicPickup(1272, 1, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- }
- format(string, sizeof(string), "You have set this business type to %d.", type);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"ID",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new bid = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz ID [BizID]");
- return 1;
- }
- if(bid < 0 || bid > 199)
- {
- SendClientMessage(playerid, COLOR_GREY, " The id must be between 0 - 199 !");
- return 1;
- }
- BizEditID[playerid] = bid;
- format(string, sizeof(string), "You are now editing the biz id %d.", bid);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Name",true) == 0)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Name [Name]");
- return 1;
- }
- if(InvalidChar(result) == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " ERROR: cannot contain invalid characters !");
- return 1;
- }
- strmid(BizInfo[biz][bName], result, 0, strlen(result), 25);
- DestroyDynamic3DTextLabel(BizLabel[biz]);
- if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] != 0)
- {
- new VString[255];
- new price = BizInfo[biz][bPrice];
- format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- }
- if(BizInfo[biz][bOwned] == 1 && BizInfo[biz][bType] != 0)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, BizInfo[biz][bOwner], 0, strlen(BizInfo[biz][bOwner]), 255);
- strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
- format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[biz][bFee]);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- }
- if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] == 0)
- {
- new VString[255];
- new name[25];
- strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
- format(VString,sizeof(VString),"%s", name);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- }
- format(string, sizeof(string), "You have set this biz name to %s.", result);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"VW",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new vw = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz VW [VirtualWorld]");
- return 1;
- }
- BizInfo[biz][bVirtualWorld] = vw;
- format(string, sizeof(string), "You have set this biz virtual world to %d.", vw);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Products",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new prod = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Products [amount]");
- return 1;
- }
- BizInfo[biz][bProducts] = prod;
- format(string, sizeof(string), "You have set this biz products to %d.", prod);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Jackpot",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new jpot = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Jackpot [jackpot]");
- return 1;
- }
- BizInfo[biz][bLottoJackpot] = jpot;
- format(string, sizeof(string), "You have set this biz jackpot to %d.", jpot);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"LottoTime",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new ltime = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz LottoTime [0/1]");
- return 1;
- }
- BizInfo[biz][bLottoTime] = ltime;
- format(string, sizeof(string), "You have set this biz lotto time to %d.", ltime);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Sellbiz",true) == 0)
- {
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Sellbiz [confirm]");
- return 1;
- }
- if(strcmp(x_nr,"confirm",true) == 0)
- {
- if(BizInfo[biz][bOwned] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "This biz is not owned.");
- return 1;
- }
- BizInfo[biz][bOwned] = 0;
- BizInfo[biz][bLocked] = 0;
- DestroyDynamic3DTextLabel(BizLabel[biz]);
- strmid(BizInfo[biz][bOwner], "The State", 0, strlen("The State"), 255);
- new VString[255];
- new price = BizInfo[biz][bPrice];
- format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
- BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW, "Biz sold !");
- }
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/edithouse",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new house = HouseEditID[playerid];
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_RED, " You are not authorised to use that command.");
- return 1;
- }
- if(!strlen(x_job)) {
- if(HouseEditID[playerid] == 999)
- {
- SendClientMessage(playerid, COLOR_RED, "Use /edithouse ID [HouseID] to choose the house to edit");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: ID, Interior, Intmenu, Exterior, Price, Level, Name, Vulnerable, Sellhouse, Reset");
- return 1;
- }
- }
- if(strcmp(x_job,"Interior",true) == 0)
- {
- new interior = GetPlayerInterior(playerid);
- new vw = 1000 + random(199999999999999999);
- new Float:posx, Float:posy, Float:posz, Float:posa;
- GetPlayerPos(playerid, posx, posy, posz);
- GetPlayerFacingAngle(playerid, posa);
- new Float:angle = posa + 180.0000;
- HouseInfo[house][hIntLocationx] = posx;
- HouseInfo[house][hIntLocationy] = posy;
- HouseInfo[house][hIntLocationz] = posz;
- HouseInfo[house][hInterior] = interior;
- HouseInfo[house][hVirtualWorld] = vw;
- HouseInfo[house][hExitAngle] = angle;
- SetPlayerVirtualWorld(playerid, vw);
- PlayerInfo[playerid][pVirtualWorld] = vw;
- PlayerInfo[playerid][pInHouse] = house;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(strcmp(x_job,"intmenu",true) == 0)
- {
- ShowPlayerDialog(playerid, 9973,DIALOG_STYLE_LIST, "House Interior Menu", "Woozie's Apartment\nCj's House\nMadd Doggs Mansion\nBig Smoke's House\nRyders House\nColonel Furhberger's\nBurglary House 1\nBurglary House 2\nBurglary House 3\nBurglary House 4\nBurglary House 5\nBurglary House 6\nBurglary House 7\nHashbury House\nRed Bed Motel Room\nVerdant Bluffs Safehouse", "Set Interior", "Cancel");
- return 1;
- }
- else if(strcmp(x_job,"Reset",true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] <5)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- HouseInfo[house][hLocation_x] = 0.0000;
- HouseInfo[house][hLocation_y] = 0.0000;
- HouseInfo[house][hLocation_z] = 0.0000;
- HouseInfo[house][hInterior] = 0;
- HouseInfo[house][hVirtualWorld] = 0;
- HouseInfo[house][hExitAngle] = 0.0000;
- HouseInfo[house][hEnterAngle] = 0.0000;
- HouseInfo[house][hIntLocationx] = 0.0000;
- HouseInfo[house][hIntLocationy] = 0.0000;
- HouseInfo[house][hIntLocationz] = 0.0000;
- strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
- strmid(HouseInfo[house][hName], "None", 0, strlen("None"), 255);
- HouseInfo[house][hLocked] = 0;
- HouseInfo[house][hOwned] = 0;
- HouseInfo[house][hAlarm] = 0;
- HouseInfo[house][hAlarmON] = 0;
- HouseInfo[house][hGun1] = 0;
- HouseInfo[house][hGun2] = 0;
- HouseInfo[house][hGun3] = 0;
- HouseInfo[house][hGun4] = 0;
- HouseInfo[house][hPot] = 0;
- HouseInfo[house][hCrack] = 0;
- HouseInfo[house][hPrice] = 0;
- HouseInfo[house][hLevel] = 0;
- HouseInfo[house][hSafe] = 0;
- HouseInfo[house][hSafeCode] = 0;
- HouseInfo[house][hCameras] = 0;
- HouseInfo[house][hCash] = 0;
- HouseInfo[house][hMaterials] = 0;
- HouseInfo[house][hVulnerable] = 5;
- HouseInfo[house][hSafex] = 0.0000;
- HouseInfo[house][hSafey] = 0.0000;
- HouseInfo[house][hSafez] = 0.0000;
- HouseInfo[house][hRenters] = 0;
- HouseInfo[house][hRent] = 0;
- HouseInfo[house][hRentable] = 0;
- DestroyDynamicPickup(HousePickup[house]);
- //DestroyDynamicMapIcon(HouseIcon[house]);
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have reseted this house.");
- return 1;
- }
- else if(strcmp(x_job,"Exterior",true) == 0)
- {
- // new icon;
- // if(HouseInfo[house][hOwned] == 1) { icon = 32; }
- // else if(HouseInfo[house][hOwned] == 0) { icon = 31; }
- new Float:posx, Float:posy, Float:posz, Float:posa;
- GetPlayerPos(playerid, posx, posy, posz);
- GetPlayerFacingAngle(playerid, posa);
- new Float:angle = posa + 180.0000;
- HouseInfo[house][hLocation_x] = posx;
- HouseInfo[house][hLocation_y] = posy;
- HouseInfo[house][hLocation_z] = posz;
- HouseInfo[house][hEnterAngle] = angle;
- DestroyDynamicPickup(HousePickup[house]);
- //DestroyDynamicMapIcon(HouseIcon[house]);
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- HousePickup[house] = CreateDynamicPickup(1273, 1, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]);
- //HouseIcon[house] = CreateDynamicMapIcon(HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z], icon, 0);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house entrance.");
- if(HouseInfo[house][hOwned] == 0)
- {
- new VString[255];
- format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[house][hOwned] == 1)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
- strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
- if(HouseInfo[house][hRentable] == 0)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[house][hRentable] == 1)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- }
- return 1;
- }
- else if(strcmp(x_job,"Price",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new price = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse Price [price]");
- return 1;
- }
- if(HouseInfo[house][hOwned] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " The house is owned");
- return 1;
- }
- if(price > 50000000 || price < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " The price must be between $1 - $50,000,000 !");
- return 1;
- }
- HouseInfo[house][hPrice] = price;
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- if(HouseInfo[house][hOwned] == 0)
- {
- new VString[255];
- format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[house][hOwned] == 1)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
- strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
- if(HouseInfo[house][hRentable] == 0)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[house][hRentable] == 1)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- }
- format(string, sizeof(string), "You have set this house price to %d.", price);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Level",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new level = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse level [level]");
- return 1;
- }
- if(level < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " The level can't be below 1 !");
- return 1;
- }
- HouseInfo[house][hLevel] = level;
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- if(HouseInfo[house][hOwned] == 0)
- {
- new VString[255];
- format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[house][hOwned] == 1)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
- strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
- if(HouseInfo[house][hRentable] == 0)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[house][hRentable] == 1)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- }
- format(string, sizeof(string), "You have set this house level to %d.", level);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"ID",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new hid = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse ID [HouseID]");
- return 1;
- }
- if(hid < 0 || hid > 199)
- {
- SendClientMessage(playerid, COLOR_GREY, " The id must be between 0 - 199 !");
- return 1;
- }
- HouseEditID[playerid] = hid;
- format(string, sizeof(string), "You are now editing the house id %d.", hid);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Vulnerable",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new vul = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse Vulnerable [0-9]");
- return 1;
- }
- if(vul < 0 || vul > 9)
- {
- SendClientMessage(playerid, COLOR_GREY, " The value must be between 0-9 !");
- return 1;
- }
- HouseInfo[house][hVulnerable] = vul;
- format(string, sizeof(string), "You have set this house to be vulnerable in %d hours.", vul);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Name",true) == 0)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse Name [Name]");
- return 1;
- }
- if(InvalidChar(result) == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " ERROR: cannot contain invalid characters !");
- return 1;
- }
- strmid(HouseInfo[house][hName], result, 0, strlen(result), 25);
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- if(HouseInfo[house][hOwned] == 0)
- {
- new VString[255];
- format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[house][hOwned] == 1)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
- strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
- if(HouseInfo[house][hRentable] == 0)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[house][hRentable] == 1)
- {
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- }
- format(string, sizeof(string), "You have set this house name to %s.", result);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Sellhouse",true) == 0)
- {
- new x_nr[32];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse Sellhouse [confirm]");
- return 1;
- }
- if(strcmp(x_nr,"confirm",true) == 0)
- {
- if(HouseInfo[house][hOwned] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "This house is not owned.");
- return 1;
- }
- HouseInfo[house][hOwned] = 0;
- HouseInfo[house][hLocked] = 0;
- DestroyDynamic3DTextLabel(HouseLabel[house]);
- strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
- new VString[255];
- format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
- HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- //DestroyDynamicMapIcon(HouseIcon[house]);
- //HouseIcon[house] = CreateDynamicMapIcon(HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z], 31, 0);
- SendClientMessage(playerid,COLOR_YELLOW, "House sold !");
- }
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/editcar",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_RED, "You are not authorised to use that command.");
- return 1;
- }
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, "You need to be in a car to do this.");
- return 1;
- }
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] == GetPlayerVehicleID(playerid))
- {
- return 1;
- }
- }
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Model, Spawn, Color, Ownable, Rentable, Faction, VIP, Price, Plate, Disabled, Sellcar");
- return 1;
- }
- if(strcmp(x_job,"Model",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new vehicle = GetPlayerVehicleID(playerid);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Model [Model ID (400-611)]");
- return 1;
- }
- new model = ReturnVehicleModelID(tmp);
- if(!model)
- return SendClientMessage(playerid, COLOR_GREY, " Invalid vehicle model name/ID.");
- if(IsATrain(model))
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid vehicle model name/ID.");
- return 1;
- }
- if(GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to change the car's model");
- return 1;
- }
- if(model > 611 || model < 400)
- {
- SendClientMessage(playerid, COLOR_GREY, " The model must be between 400 and 611 !");
- return 1;
- }
- CarInfo[vehicle][tModel] = model;
- CarInfo[vehicle][tTrunkOpened] = 0;
- CarInfo[vehicle][tHoodOpened] = 0;
- CarInfo[vehicle][tAlarmStarted] = 0;
- format(string, sizeof(string), "You have set this car's model to %d.", model);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- ClearVehicleComponents(vehicle);
- DestroyVehicle(vehicle);
- CarSys[vehicle] = CreateVehicle(CarInfo[vehicle][tModel],CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz],CarInfo[vehicle][tAngle],CarInfo[vehicle][tColorOne],CarInfo[vehicle][tColorTwo],60000);
- PutPlayerInVehicle(playerid, vehicle, 0);
- return 1;
- }
- else if(strcmp(x_job,"Spawn",true) == 0)
- {
- new interior = GetPlayerInterior(playerid);
- new vw = GetPlayerVirtualWorld(playerid);
- new Float:vehx, Float:vehy, Float:vehz;
- new Float:z_rot;
- new vehicle = GetPlayerVehicleID(playerid);
- GetVehicleZAngle(vehicle, z_rot);
- GetVehiclePos(vehicle, vehx, vehy, vehz);
- if(PlayerInfo[playerid][pInt] != 0 && interior != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do this in another interior !");
- return 1;
- }
- if(GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to change the car's model");
- return 1;
- }
- if(PlayerInfo[playerid][pVirtualWorld] != 0 && vw != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do this in another virtual world !");
- return 1;
- }
- if(GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to change the car's spawn place");
- return 1;
- }
- CarInfo[vehicle][tLocationx] = vehx;
- CarInfo[vehicle][tLocationy] = vehy;
- CarInfo[vehicle][tLocationz] = vehz;
- CarInfo[vehicle][tAngle] = z_rot;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have set this car's spawn place.");
- return 1;
- }
- else if(strcmp(x_job,"Color",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Color [0-126] [0-126]");
- return 1;
- }
- new color1;
- color1 = strvalEx(tmp);
- if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color can't be below 0 or above 126 !"); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Color [0-126] [0-126]");
- return 1;
- }
- new vehicle = GetPlayerVehicleID(playerid);
- new color2;
- color2 = strvalEx(tmp);
- if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color can't be below 0 or above 126 !"); return 1; }
- ChangeVehicleColor(vehicle, color1, color2);
- CarInfo[vehicle][tColorOne] = color1;
- CarInfo[vehicle][tColorTwo] = color2;
- CarInfo[vehicle][tTrunkOpened] = 0;
- CarInfo[vehicle][tHoodOpened] = 0;
- CarInfo[vehicle][tAlarmStarted] = 0;
- DestroyVehicle(vehicle);
- CarSys[vehicle] = AddStaticVehicleEx(CarInfo[vehicle][tModel],CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz],CarInfo[vehicle][tAngle],CarInfo[vehicle][tColorOne],CarInfo[vehicle][tColorTwo],60000);
- PutPlayerInVehicle(playerid, vehicle, 0);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have set this car's colors.");
- return 1;
- }
- else if(strcmp(x_job,"Ownable",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new own = strvalEx(tmp);
- new vehicle = GetPlayerVehicleID(playerid);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Ownable [0-1]");
- return 1;
- }
- if(CarInfo[vehicle][tRentable] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to set rentable to 0");
- return 1;
- }
- if(CarInfo[vehicle][tOwned] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This car is already owned");
- return 1;
- }
- if(own > 1 || own < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " It can be only 1 or 0 !");
- return 1;
- }
- DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
- if(own == 1)
- {
- new VString[255];
- new price = CarInfo[vehicle][tPrice];
- format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
- VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
- CarInfo[vehicle][tInsured] = 0;
- CarInfo[vehicle][tAlarm] = 0;
- }
- CarInfo[vehicle][tOwnable] = own;
- format(string, sizeof(string), "You have set this car's ownership to %d.", own);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Rentable",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new own = strvalEx(tmp);
- new vehicle = GetPlayerVehicleID(playerid);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Rentable [0-1]");
- return 1;
- }
- if(CarInfo[vehicle][tOwnable] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to set ownable to 0");
- return 1;
- }
- if(CarInfo[vehicle][tOwned] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This car is already owned");
- return 1;
- }
- if(own > 1 || own < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " It can be only 1 or 0 !");
- return 1;
- }
- if(CarInfo[vehicle][tPrice] == 0 && own > 1)
- return SendClientMessage(playerid, COLOR_GREY, " You need to set the vehicle price first!");
- DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
- if(own == 1)
- {
- new VString[255];
- new price = CarInfo[vehicle][tPrice];
- format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
- VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
- CarInfo[vehicle][tInsured] = 1;
- CarInfo[vehicle][tAlarm] = 1;
- }
- CarInfo[vehicle][tRentable] = own;
- format(string, sizeof(string), "You have set this car's rentable to %d.", own);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Faction",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new faction = strvalEx(tmp);
- new vehicle = GetPlayerVehicleID(playerid);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Faction [0-10]");
- return 1;
- }
- if(CarInfo[vehicle][tVIP] != 0 || CarInfo[vehicle][tGang] != 0 || CarInfo[vehicle][tOwnable] != 0 || CarInfo[vehicle][tDisabled] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " This car is already a VIP/Gang/Ownable/Disabled car !");
- return 1;
- }
- if(faction > 10 || faction < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Faction can't be higer than 10 and lower than 0 !");
- return 1;
- }
- CarInfo[vehicle][tFaction] = faction;
- format(string, sizeof(string), "You have set this car's faction to %d.", faction);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"VIP",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new level = strvalEx(tmp);
- new vehicle = GetPlayerVehicleID(playerid);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar VIP [0-3]");
- return 1;
- }
- if(CarInfo[vehicle][tFaction] != 0 || CarInfo[vehicle][tGang] != 0 || CarInfo[vehicle][tOwnable] != 0 || CarInfo[vehicle][tDisabled] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " This car is already a Faction/Gang/Ownable/Disabled car !");
- return 1;
- }
- if(level > 3 || level < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " VIP level can't be higer than 3 !");
- return 1;
- }
- CarInfo[vehicle][tVIP] = level;
- format(string, sizeof(string), "You have set this car's VIP level to %d.", level);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Price",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new price = strvalEx(tmp);
- new vehicle = GetPlayerVehicleID(playerid);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Price [Price]");
- return 1;
- }
- if(CarInfo[vehicle][tOwned] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This car is owned, you can't do this right now");
- return 1;
- }
- if(price > 25000000 || price < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $0 or higer than $25,000,000 !");
- return 1;
- }
- CarInfo[vehicle][tPrice] = price;
- DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
- new VString[255];
- if(CarInfo[vehicle][tOwnable] == 1)
- {
- format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
- VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
- }
- else if(CarInfo[vehicle][tRentable] == 1)
- {
- format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
- VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
- }
- format(string, sizeof(string), "You have set this car's price to %d.", price);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Plate",true) == 0)
- {
- new length = strlen(cmdtext);
- new vehicle = GetPlayerVehicleID(playerid);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[9];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Plate [PlateNumber]");
- return 1;
- }
- if(InvalidChar(result) == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " ERROR: cannot contain invalid characters !");
- return 1;
- }
- strmid(CarInfo[vehicle][tLicensePlate], result, 0, strlen(result), 9);
- format(string, sizeof(string), "You have set this vehicle plate to %s.", result);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Disabled",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new disabled = strvalEx(tmp);
- new vehicle = GetPlayerVehicleID(playerid);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Disabled [0-1]");
- return 1;
- }
- if(CarInfo[vehicle][tOwned] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This car is owned, you can't do this right now");
- return 1;
- }
- if(disabled > 1 || disabled < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "It can be only 1 or 0.");
- return 1;
- }
- CarInfo[vehicle][tDisabled] = disabled;
- format(string, sizeof(string), "You have set this car's disable option to %d.", disabled);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- return 1;
- }
- else if(strcmp(x_job,"Sellcar",true) == 0)
- {
- new x_nr[32];
- new vehicle = GetPlayerVehicleID(playerid);
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Sellcar [confirm]");
- return 1;
- }
- if(strcmp(x_nr,"confirm",true) == 0)
- {
- if(CarInfo[vehicle][tOwned] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "This car is not owned.");
- return 1;
- }
- DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
- new VString[255];
- new price = CarInfo[vehicle][tPrice];
- if(CarInfo[vehicle][tOwnable] == 1)
- {
- format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
- VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
- }
- else if(CarInfo[vehicle][tRentable] == 1)
- {
- format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
- VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
- }
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicle,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- CarInfo[vehicle][tOwned] = 0;
- strmid(CarInfo[vehicle][tOwner], "The State", 0, strlen("The State"), 255);
- strmid(CarInfo[vehicle][tLicensePlate], "RG:RP", 0, strlen("RG:RP"), 255);
- CarInfo[vehicle][tLock] = 0;
- CarInfo[vehicle][tEngine] = 0;
- ClearVehicleComponents(vehicle);
- SendClientMessage(playerid,COLOR_YELLOW, "Car sold !");
- }
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd,"/sellcartomarket",true) == 0)
- {
- new x_nr[32];
- new vehicle = GetPlayerVehicleID(playerid);
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcartomarket [confirm]");
- SendClientMessage(playerid, COLOR_YELLOW,"You will get 80 percent from your vehicle price. Are you sure you wanna do this ?");
- return 1;
- }
- if(!IsAtDealership(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, "You need to be at a dealership to do this.");
- return 1;
- }
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, "You need to be in a car to do this.");
- return 1;
- }
- if(GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be on the driver seat to sell the car.");
- return 1;
- }
- if(CarInfo[vehicle][tRentable] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't sell this car.");
- return 1;
- }
- if(strcmp(x_nr,"confirm",true) == 0)
- {
- if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3])
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- new ownvehkey;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1]) { ownvehkey = PlayerInfo[playerid][pCarKey1]; }
- else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2]) { ownvehkey = PlayerInfo[playerid][pCarKey2]; }
- else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3]) { ownvehkey = PlayerInfo[playerid][pCarKey3]; }
- if(strcmp(sendername, CarInfo[ownvehkey][tOwner], true) == 0)
- {
- if(CarInfo[ownvehkey][Neon] == 1)
- {
- DestroyObject(ObjectSelect[ownvehkey][0]);
- DestroyObject(ObjectSelect[ownvehkey][1]);
- CarInfo[ownvehkey][Neon] = 0;
- }
- new Float:vehx, Float:vehy, Float:vehz;
- new Float:z_rot;
- GetVehicleZAngle(ownvehkey, z_rot);
- GetVehiclePos(ownvehkey, vehx, vehy, vehz);
- new VString[255];
- new price = CarInfo[ownvehkey][tPrice];
- DestroyDynamic3DTextLabel(VehicleLabel[ownvehkey]);
- format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
- VehicleLabel[ownvehkey] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[ownvehkey][tLocationx],CarInfo[ownvehkey][tLocationy],CarInfo[ownvehkey][tLocationz], 20, INVALID_PLAYER_ID, ownvehkey, 0, -1, -1, -1, 100.0);
- new percent = CarInfo[ownvehkey][tPrice] / 100 * 80;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+percent;
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
- GetVehicleParamsEx(ownvehkey,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(ownvehkey,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- CarInfo[ownvehkey][tOwned] = 0;
- CarInfo[ownvehkey][tInsured] = 0;
- CarInfo[ownvehkey][tAlarm] = 0;
- CarInfo[ownvehkey][tVehRemote] = 0;
- CarInfo[ownvehkey][tLock] = 0;
- CarInfo[ownvehkey][tEngine] = 0;
- CarInfo[ownvehkey][tLocationx] = vehx;
- CarInfo[ownvehkey][tLocationy] = vehy;
- CarInfo[ownvehkey][tLocationz] = vehz;
- CarInfo[ownvehkey][tAngle] = z_rot;
- strmid(CarInfo[ownvehkey][tOwner], "The State", 0, strlen("The State"), 255);
- format(string, sizeof(string), "You have sold your car for $%d.", percent);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- RemovePlayerFromVehicle(playerid);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- ClearVehicleComponents(ownvehkey);
- if(vehicle == PlayerInfo[playerid][pCarKey1]) { PlayerInfo[playerid][pCarKey1] = 0; }
- if(vehicle == PlayerInfo[playerid][pCarKey2]) { PlayerInfo[playerid][pCarKey2] = 0; }
- if(vehicle == PlayerInfo[playerid][pCarKey3]) { PlayerInfo[playerid][pCarKey3] = 0; }
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't own this car.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/unrentcar",true) == 0)
- {
- new x_nr[32];
- new vehicle = GetPlayerVehicleID(playerid);
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unrentcar [confirm]");
- return 1;
- }
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, "You need to be in a car to do this.");
- return 1;
- }
- if(GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to sell the car");
- return 1;
- }
- if(CarInfo[vehicle][tOwnable] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't sell this car");
- return 1;
- }
- if(strcmp(x_nr,"confirm",true) == 0)
- {
- if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey])
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- new ownvehkey = PlayerInfo[playerid][pRentKey];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strcmp(sendername, CarInfo[ownvehkey][tOwner], true) == 0)
- {
- new Float:vehx, Float:vehy, Float:vehz;
- new Float:z_rot;
- GetVehicleZAngle(ownvehkey, z_rot);
- GetVehiclePos(ownvehkey, vehx, vehy, vehz);
- new VString[255];
- new price = CarInfo[ownvehkey][tPrice];
- DestroyDynamic3DTextLabel(VehicleLabel[ownvehkey]);
- format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
- VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
- GetVehicleParamsEx(ownvehkey,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(ownvehkey,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- CarInfo[ownvehkey][tOwned] = 0;
- CarInfo[ownvehkey][tVehRemote] = 0;
- CarInfo[ownvehkey][tLock] = 0;
- CarInfo[ownvehkey][tEngine] = 0;
- CarInfo[ownvehkey][tLocationx] = vehx;
- CarInfo[ownvehkey][tLocationy] = vehy;
- CarInfo[ownvehkey][tLocationz] = vehz;
- CarInfo[ownvehkey][tAngle] = z_rot;
- strmid(CarInfo[ownvehkey][tOwner], "The State", 0, strlen("The State"), 255);
- format(string, sizeof(string), "You do not rent this car anymore");
- SendClientMessage(playerid, COLOR_YELLOW, string);
- RemovePlayerFromVehicle(playerid);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- ClearVehicleComponents(ownvehkey);
- PlayerInfo[playerid][pRentKey] = 0;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You don't own this car !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/lock", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0 && PlayerInfo[playerid][pRentKey] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a vehicle !");
- return 1;
- }
- new engine,lights,alarm,doors,bonnet,boot,objective;
- new carlock = PlayerInfo[playerid][pCarKey1];
- new carlock2 = PlayerInfo[playerid][pCarKey2];
- new carlock3 = TempKey[playerid];
- new carlock4 = PlayerInfo[playerid][pCarKey3];
- new carlock5 = PlayerInfo[playerid][pRentKey];
- new Float:cX, Float:cY, Float:cZ;
- new Float:cX2, Float:cY2, Float:cZ2;
- new Float:cX3, Float:cY3, Float:cZ3;
- new Float:cX4, Float:cY4, Float:cZ4;
- new Float:cX5, Float:cY5, Float:cZ5;
- GetVehiclePos(carlock, cX, cY, cZ);
- GetVehiclePos(carlock2, cX2, cY2, cZ2);
- GetVehiclePos(carlock3, cX3, cY3, cZ3);
- GetVehiclePos(carlock4, cX4, cY4, cZ4);
- GetVehiclePos(carlock5, cX5, cY5, cZ5);
- if(IsPlayerInRangeOfPoint(playerid, 4, cX, cY, cZ))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(CarInfo[carlock][tLock] == 0)
- {
- GetVehicleParamsEx(carlock,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
- CarInfo[carlock][tLock] = 1;
- CarInfo[carlock][tAlarmStarted] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- lock1(playerid, carlock);
- return 1;
- }
- else if(CarInfo[carlock][tLock] == 1)
- {
- GetVehicleParamsEx(carlock,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- CarInfo[carlock][tLock] = 0;
- CarInfo[carlock][tAlarmStarted] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- lock1(playerid, carlock);
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4, cX2, cY2, cZ2))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(CarInfo[carlock2][tLock] == 0)
- {
- GetVehicleParamsEx(carlock2,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock2,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
- CarInfo[carlock2][tLock] = 1;
- CarInfo[carlock][tAlarmStarted] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- lock1(playerid, carlock2);
- return 1;
- }
- else if(CarInfo[carlock2][tLock] == 1)
- {
- GetVehicleParamsEx(carlock2,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock2,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- CarInfo[carlock2][tLock] = 0;
- CarInfo[carlock2][tAlarmStarted] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- lock1(playerid, carlock2);
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4, cX3, cY3, cZ3))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(CarInfo[carlock3][tLock] == 0)
- {
- GetVehicleParamsEx(carlock3,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock3,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
- CarInfo[carlock3][tLock] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(CarInfo[carlock3][tLock] == 1)
- {
- GetVehicleParamsEx(carlock3,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock3,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- CarInfo[carlock3][tLock] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4, cX4, cY4, cZ4))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(CarInfo[carlock4][tLock] == 0)
- {
- GetVehicleParamsEx(carlock4,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock4,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
- CarInfo[carlock4][tLock] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(CarInfo[carlock4][tLock] == 1)
- {
- GetVehicleParamsEx(carlock4,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock4,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- CarInfo[carlock4][tLock] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4, cX5, cY5, cZ5))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(CarInfo[carlock5][tLock] == 0)
- {
- GetVehicleParamsEx(carlock5,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock5,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
- CarInfo[carlock5][tLock] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(CarInfo[carlock5][tLock] == 1)
- {
- GetVehicleParamsEx(carlock5,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carlock5,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
- CarInfo[carlock5][tLock] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/park",true) == 0)
- {
- new vehicle = GetPlayerVehicleID(playerid);
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, " You need to be in a car to do this");
- return 1;
- }
- if(GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to park the car");
- return 1;
- }
- if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey])
- {
- new mycar;
- new Float:health;
- GetVehicleHealth(vehicle, health);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(health < 200)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do this if your vehicle health is less than 200");
- return 1;
- }
- if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1]) { mycar = PlayerInfo[playerid][pCarKey1]; }
- else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2]) { mycar = PlayerInfo[playerid][pCarKey2]; }
- else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3]) { mycar = PlayerInfo[playerid][pCarKey3]; }
- else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey]) { mycar = PlayerInfo[playerid][pRentKey]; }
- if(strcmp(sendername, CarInfo[mycar][tOwner], true) == 0)
- {
- new Float:vehx, Float:vehy, Float:vehz;
- new Float:z_rot;
- new plate[9];
- strmid(plate, CarInfo[vehicle][tLicensePlate], 0, strlen(CarInfo[vehicle][tLicensePlate]), 255);
- GetVehicleZAngle(mycar, z_rot);
- GetVehiclePos(mycar, vehx, vehy, vehz);
- CarInfo[mycar][tLocationx] = vehx;
- CarInfo[mycar][tLocationy] = vehy;
- CarInfo[mycar][tLocationz] = vehz;
- CarInfo[mycar][tAngle] = z_rot;
- SaveVehicleComponents(vehicle);
- SendClientMessage(playerid, COLOR_YELLOW, "Your vehicle has been successfully parked. It will respawn in this place");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You don't own this car !");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd,"/clearmods",true) == 0)
- {
- new vehicle = GetPlayerVehicleID(playerid);
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_RED, " You need to be in a car to do this");
- return 1;
- }
- if(GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to sell the car");
- return 1;
- }
- if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey])
- {
- new mycar;
- new Float:health;
- GetVehicleHealth(vehicle, health);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(health < 200)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do this if your vehicle health is less than 200");
- return 1;
- }
- if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1]) { mycar = PlayerInfo[playerid][pCarKey1]; }
- else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2]) { mycar = PlayerInfo[playerid][pCarKey2]; }
- else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3]) { mycar = PlayerInfo[playerid][pCarKey3]; }
- else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey]) { mycar = PlayerInfo[playerid][pRentKey]; }
- if(strcmp(sendername, CarInfo[mycar][tOwner], true) == 0)
- {
- ClearVehicleComponents(vehicle);
- SendClientMessage(playerid, COLOR_YELLOW, "Your vehicle will be removed after the next respawn.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You don't own this car !");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd,"/lights",true) == 0)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
- {
- GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
- if(lights==1)
- {
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,0,alarm,doors,bonnet,boot,objective);
- return 1;
- }
- else
- {
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,1,alarm,doors,bonnet,boot,objective);
- return 1;
- }
- }
- }
- if(strcmp(cmd,"/engine",true) == 0)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- new vehid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
- {
- if(vehid == 481 || vehid == 509 || vehid == 510)
- return 1;
- GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(engine<=0)
- {
- GameTextForPlayer(playerid, "~g~Starting the engine...", 1200, 1);
- SetTimerEx("StartEngine", 1500, 0, "ii", playerid, vehid);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Stopping the engine...", 1200, 1);
- SetTimerEx("StopEngine", 1500, 0, "ii", playerid, vehid);
- }
- }
- }
- if(strcmp(cmd,"/hood",true) == 0)
- {
- new counter = 0;
- new result;
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- new plyName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
- for(new i; i != MAX_VEHICLES; i++)
- {
- new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
- if(dist)
- {
- result = i;
- counter++;
- }
- }
- switch(counter)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREY, " No cars with hood near you");
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't open the hood from a passenger seat");
- return 1;
- }
- if(GetPlayerState(playerid) == 2 && CarInfo[result][tVehRemote] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " This car doesn't have a remote for the hood");
- return 1;
- }
- if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a hood !");
- return 1;
- }
- if(CarInfo[result][tHoodOpened] == 0)
- {
- GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(result,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
- CarInfo[result][tHoodOpened] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "Hood {2F991A}open!");
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has opened the hood.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(CarInfo[result][tHoodOpened] == 1)
- {
- GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(result,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
- CarInfo[result][tHoodOpened] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Hood {E31919}closed!");
- GetPlayerNameEx(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has closed the hood.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sellcar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a vehicle !");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't sell your vehicle while you're inside it");
- return 1;
- }
- new carlock = PlayerInfo[playerid][pCarKey1];
- new carlock2 = PlayerInfo[playerid][pCarKey2];
- new carlock3 = PlayerInfo[playerid][pCarKey3];
- new Float:cX, Float:cY, Float:cZ;
- new Float:cX2, Float:cY2, Float:cZ2;
- new Float:cX3, Float:cY3, Float:cZ3;
- GetVehiclePos(carlock, cX, cY, cZ);
- GetVehiclePos(carlock2, cX2, cY2, cZ2);
- GetVehiclePos(carlock3, cX3, cY3, cZ3);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcar [playerid/PartOfName] [price]");
- return 1;
- }
- new money;
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcar [playerid/PartOfName] [price]");
- return 1;
- }
- money = strvalEx(tmp);
- if(money < 0 || money > 50000000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $0, or above $50,000,000 !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(4.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't sell the car to yourself !");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid, 4, cX, cY, cZ))
- {
- if(PlayerInfo[giveplayerid][pCarKey1] != 0 && PlayerInfo[giveplayerid][pCarKey2] != 0)
- {
- SendClientMessage(playerid, COLOR_RED, "** This player already got 2 vehicles");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_RED, "** This player is not level 2 or higher");
- return 1;
- }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered to sell your car to %s for $%d.", giveplayer, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s offered you the contract of his vehicle for $%d, (type /accept vehicle) to accept.", sendername, money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- VehicleOffer[giveplayerid] = playerid;
- VehiclePrice[giveplayerid] = money;
- VehicleSellID[giveplayerid] = carlock;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4, cX2, cY2, cZ2))
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered to sell your car to %s for $%d.", giveplayer, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s offered you the contract of his vehicle for $%d, (type /accept vehicle) to accept.", sendername, money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- VehicleOffer[giveplayerid] = playerid;
- VehiclePrice[giveplayerid] = money;
- VehicleSellID[giveplayerid] = carlock2;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4, cX3, cY3, cZ3))
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered to sell your car to %s for $%d.", giveplayer, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s offered you the contract of his vehicle for $%d, (type /accept vehicle) to accept.", sendername, money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- VehicleOffer[giveplayerid] = playerid;
- VehiclePrice[giveplayerid] = money;
- VehicleSellID[giveplayerid] = carlock3;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sellhouse", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pHouseKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a house !");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouseKey]][hRenters] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY,"You need to evict the current renters before doing this");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellhouse [playerid/PartOfName] [price]");
- return 1;
- }
- new money;
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellhouse [playerid/PartOfName] [price]");
- return 1;
- }
- money = strvalEx(tmp);
- if(money < 0 || money > 50000000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $0, or above $50,000,000 !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(4.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't sell the house to yourself !");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pHouseKey] != 999 || PlayerInfo[giveplayerid][pRenthouse] != 999)
- {
- SendClientMessage(playerid, COLOR_RED, "** This player already got a house / has rented one");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_RED, "** This player is not level 2 or higher");
- return 1;
- }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered to sell your house to %s for $%d.", giveplayer, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s offered you the contract of his house for $%d, (type /accept house) to accept.", sendername, money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- HouseOffer[giveplayerid] = playerid;
- HousePrice[giveplayerid] = money;
- HouseSellID[giveplayerid] = PlayerInfo[playerid][pHouseKey];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sellbiz", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pBizKey] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a business !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellbiz [playerid/PartOfName] [price]");
- return 1;
- }
- new money;
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellbiz [playerid/PartOfName] [price]");
- return 1;
- }
- money = strvalEx(tmp);
- if(money < 0 || money > 100000000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $0, or above $100,000,000 !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(4.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't sell the business to yourself !");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pBizKey] != 999)
- {
- SendClientMessage(playerid, COLOR_RED, "** This player already got a business");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_RED, "** This player is not level 2 or higher");
- return 1;
- }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered to sell your business to %s for $%d.", giveplayer, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s offered you the contract of his business for $%d, (type /accept business) to accept.", sendername, money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- BizOffer[giveplayerid] = playerid;
- BizPrice[giveplayerid] = money;
- BizSellID[giveplayerid] = PlayerInfo[playerid][pBizKey];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/editcarmodel", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcarmodel [vehid] [model]");
- return 1;
- }
- new carid;
- carid = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcarmodel [vehid] [model]");
- return 1;
- }
- new newmodel = ReturnVehicleModelID(tmp);
- if(!newmodel)
- return SendClientMessage(playerid, COLOR_GREY, " Invalid vehicle model name/ID.");
- if(IsATrain(newmodel))
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid vehicle model name/ID.");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You changed the car's model to %d.", newmodel);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- CarInfo[carid][tModel] = newmodel;
- DestroyVehicle(carid);
- CarSys[carid] = CreateVehicle(CarInfo[carid][tModel],CarInfo[carid][tLocationx],CarInfo[carid][tLocationy],CarInfo[carid][tLocationz],CarInfo[carid][tAngle],CarInfo[carid][tColorOne],CarInfo[carid][tColorTwo],60000);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/getcarhere", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getcarhere [vehid]");
- return 1;
- }
- new Float:plocx,Float:plocy,Float:plocz;
- new carid;
- carid = strvalEx(tmp);
- format(string, sizeof(string), "* You you teleported car id %d to you.", carid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GetPlayerPos(playerid, plocx, plocy, plocz);
- SetVehiclePos(carid, plocx, plocy+4, plocz);
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd, "/sethouseint", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- new houseid = strvalEx(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sethouseint [HouseID] [Number (1-39)]");
- SendClientMessage(playerid, COLOR_GREY, "Level 1: 1-4 | Level 3: 5-14 | Level 6: 13-24 | Level 9: 25-32 | Level 12: 30-36 | Level 15: 36-38");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sethouseint [HouseID] [Number (1-38)]");
- SendClientMessage(playerid, COLOR_GREY, "Level 1: 1-4 | Level 3: 5-14 | Level 6: 13-24 | Level 9: 25-32 | Level 12: 30-36 | Level 15: 36-38");
- return 1;
- }
- new interior = strvalEx(tmp);
- if(interior < 1 || interior > 38) { SendClientMessage(playerid, COLOR_GREY, " The number must be between 1 - 38 !"); return 1; }
- if(interior == 1)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2233.5900;
- HouseInfo[houseid][hIntLocationy] = -1115.2609;
- HouseInfo[houseid][hIntLocationz] = 1050.8828;
- HouseInfo[houseid][hInterior] = 5;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 2)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 243.7221;
- HouseInfo[houseid][hIntLocationy] = 305.0240;
- HouseInfo[houseid][hIntLocationz] = 999.1484;
- HouseInfo[houseid][hInterior] = 1;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 3)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 266.4985;
- HouseInfo[houseid][hIntLocationy] = 304.9835;
- HouseInfo[houseid][hIntLocationz] = 999.1484;
- HouseInfo[houseid][hInterior] = 2;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 4)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 343.7192;
- HouseInfo[houseid][hIntLocationy] = 305.0291;
- HouseInfo[houseid][hIntLocationz] = 999.1484;
- HouseInfo[houseid][hInterior] = 6;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 5)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2259.3930;
- HouseInfo[houseid][hIntLocationy] = -1135.8746;
- HouseInfo[houseid][hIntLocationz] = 1050.6402;
- HouseInfo[houseid][hInterior] = 10;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 6)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2282.9777;
- HouseInfo[houseid][hIntLocationy] = -1140.2847;
- HouseInfo[houseid][hIntLocationz] = 1050.8984;
- HouseInfo[houseid][hInterior] = 11;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 7)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2218.3999;
- HouseInfo[houseid][hIntLocationy] = -1076.2231;
- HouseInfo[houseid][hIntLocationz] = 1050.4843;
- HouseInfo[houseid][hInterior] = 1;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 8)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2807.5756;
- HouseInfo[houseid][hIntLocationy] = -1174.7543;
- HouseInfo[houseid][hIntLocationz] = 1025.5703;
- HouseInfo[houseid][hInterior] = 8;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 9)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 223.1762;
- HouseInfo[houseid][hIntLocationy] = 1287.0762;
- HouseInfo[houseid][hIntLocationz] = 1082.1406;
- HouseInfo[houseid][hInterior] = 1;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 10)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = -68.8836;
- HouseInfo[houseid][hIntLocationy] = 1351.2192;
- HouseInfo[houseid][hIntLocationz] = 1080.2109;
- HouseInfo[houseid][hInterior] = 6;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 11)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = -42.6845;
- HouseInfo[houseid][hIntLocationy] = 1405.4793;
- HouseInfo[houseid][hIntLocationz] = 1084.4296;
- HouseInfo[houseid][hInterior] = 8;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 12)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 260.9575;
- HouseInfo[houseid][hIntLocationy] = 1284.3038;
- HouseInfo[houseid][hIntLocationz] = 1080.2578;
- HouseInfo[houseid][hInterior] = 4;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 13)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 226.7381;
- HouseInfo[houseid][hIntLocationy] = 1239.9285;
- HouseInfo[houseid][hIntLocationz] = 1082.1406;
- HouseInfo[houseid][hInterior] = 2;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 14)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 387.2211;
- HouseInfo[houseid][hIntLocationy] = 1471.7757;
- HouseInfo[houseid][hIntLocationz] = 1080.1875;
- HouseInfo[houseid][hInterior] = 15;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 15)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2495.9848;
- HouseInfo[houseid][hIntLocationy] = -1692.0913;
- HouseInfo[houseid][hIntLocationz] = 1014.7421;
- HouseInfo[houseid][hInterior] = 3;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 16)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2196.8471;
- HouseInfo[houseid][hIntLocationy] = -1204.3968;
- HouseInfo[houseid][hIntLocationz] = 1049.0234;
- HouseInfo[houseid][hInterior] = 6;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 17)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2468.8386;
- HouseInfo[houseid][hIntLocationy] = -1698.3994;
- HouseInfo[houseid][hIntLocationz] = 1013.5078;
- HouseInfo[houseid][hInterior] = 2;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 18)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = -2170.1291;
- HouseInfo[houseid][hIntLocationy] = 639.5379;
- HouseInfo[houseid][hIntLocationz] = 1052.3750;
- HouseInfo[houseid][hInterior] = 1;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 19)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2365.3041;
- HouseInfo[houseid][hIntLocationy] = -1135.5950;
- HouseInfo[houseid][hIntLocationz] = 1050.8825;
- HouseInfo[houseid][hInterior] = 8;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 20)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 22.8334;
- HouseInfo[houseid][hIntLocationy] = 1403.3395;
- HouseInfo[houseid][hIntLocationz] = 1084.4370;
- HouseInfo[houseid][hInterior] = 5;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 21)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 260.7826;
- HouseInfo[houseid][hIntLocationy] = 1237.2430;
- HouseInfo[houseid][hIntLocationz] = 1084.2578;
- HouseInfo[houseid][hInterior] = 9;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 22)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 447.0823;
- HouseInfo[houseid][hIntLocationy] = 1397.0650;
- HouseInfo[houseid][hIntLocationz] = 1084.3046;
- HouseInfo[houseid][hInterior] = 2;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 23)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 327.9917;
- HouseInfo[houseid][hIntLocationy] = 1477.7338;
- HouseInfo[houseid][hIntLocationz] = 1084.4375;
- HouseInfo[houseid][hInterior] = 15;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 24)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 295.1070;
- HouseInfo[houseid][hIntLocationy] = 1472.2603;
- HouseInfo[houseid][hIntLocationz] = 1080.2578;
- HouseInfo[houseid][hInterior] = 15;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 25)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 250.8242;
- HouseInfo[houseid][hIntLocationy] = 1034.8929;
- HouseInfo[houseid][hIntLocationz] = 1084.7333;
- HouseInfo[houseid][hInterior] = 7;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 26)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2324.4147;
- HouseInfo[houseid][hIntLocationy] = -1149.5428;
- HouseInfo[houseid][hIntLocationz] = 1050.7100;
- HouseInfo[houseid][hInterior] = 12;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 27)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 226.3068;
- HouseInfo[houseid][hIntLocationy] = 1114.2946;
- HouseInfo[houseid][hIntLocationz] = 1080.9929;
- HouseInfo[houseid][hInterior] = 5;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 27)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 226.3068;
- HouseInfo[houseid][hIntLocationy] = 1114.2946;
- HouseInfo[houseid][hIntLocationz] = 1080.9929;
- HouseInfo[houseid][hInterior] = 5;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 28)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 239.3817;
- HouseInfo[houseid][hIntLocationy] = 1084.2050;
- HouseInfo[houseid][hIntLocationz] = 1084.1875;
- HouseInfo[houseid][hInterior] = 6;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 29)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 964.5637;
- HouseInfo[houseid][hIntLocationy] = -53.2487;
- HouseInfo[houseid][hIntLocationz] = 1001.1171;
- HouseInfo[houseid][hInterior] = 3;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 30)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 235.3029;
- HouseInfo[houseid][hIntLocationy] = 1186.6839;
- HouseInfo[houseid][hIntLocationz] = 1080.2578;
- HouseInfo[houseid][hInterior] = 3;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 31)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 23.9488;
- HouseInfo[houseid][hIntLocationy] = 1340.1629;
- HouseInfo[houseid][hIntLocationz] = 1084.3750;
- HouseInfo[houseid][hInterior] = 10;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 32)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 83.0232;
- HouseInfo[houseid][hIntLocationy] = 1322.3015;
- HouseInfo[houseid][hIntLocationz] = 1083.8662;
- HouseInfo[houseid][hInterior] = 9;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 33)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2317.7895;
- HouseInfo[houseid][hIntLocationy] = -1026.7598;
- HouseInfo[houseid][hIntLocationz] = 1050.2177;
- HouseInfo[houseid][hInterior] = 9;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 34)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = -260.4846;
- HouseInfo[houseid][hIntLocationy] = 1456.7402;
- HouseInfo[houseid][hIntLocationz] = 1084.3671;
- HouseInfo[houseid][hInterior] = 4;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 35)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = -283.4513;
- HouseInfo[houseid][hIntLocationy] = 1471.0104;
- HouseInfo[houseid][hIntLocationz] = 1084.3750;
- HouseInfo[houseid][hInterior] = 15;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 36)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 140.3275;
- HouseInfo[houseid][hIntLocationy] = 1365.9403;
- HouseInfo[houseid][hIntLocationz] = 1083.8593;
- HouseInfo[houseid][hInterior] = 5;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 37)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 1260.6484;
- HouseInfo[houseid][hIntLocationy] = -785.3823;
- HouseInfo[houseid][hIntLocationz] = 1091.9062;
- HouseInfo[houseid][hInterior] = 5;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- else if(interior == 38)
- {
- new vw = 1000 + random(199999999999999999);
- HouseInfo[houseid][hIntLocationx] = 2548.7995;
- HouseInfo[houseid][hIntLocationy] = -1294.8330;
- HouseInfo[houseid][hIntLocationz] = 1060.9843;
- HouseInfo[houseid][hInterior] = 2;
- HouseInfo[houseid][hVirtualWorld] = vw;
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmdtext,"/rentroom",true)==0)
- {
- if(PlayerInfo[playerid][pHouseKey] == 999 && PlayerInfo[playerid][pRenthouse] == 999)
- {
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- new owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
- giveplayerid = ReturnUser(owner);
- if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(HouseInfo[h][hOwned] == 0)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This house doesn't have an owner!");
- return 1;
- }
- if(HouseInfo[h][hRentable] == 0)
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This house is not rentable!");
- return 1;
- }
- if(HouseInfo[h][hRenters] == HouseInfo[h][hLevel])
- {
- SendClientMessage(playerid,COLOR_GRAD1,"This house already have too many renters!");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < HouseInfo[h][hRent])
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You can't afford this!");
- return 1;
- }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You requested to rent a room in %s's house.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s is requesting to rent a room in your house, (type /accept rent) to accept.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- RentOffer[giveplayerid] = playerid;
- RentPrice[giveplayerid] = HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hRent] ;
- RentHouseID[giveplayerid] = PlayerInfo[giveplayerid][pHouseKey];
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"The owner of this house is not online!");
- return 1;
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You already have bought/rented a house. Sell your house or /unrent before doing this!");
- return 1;
- }
- }
- if(strcmp(cmd,"/cancel",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cancel [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Sex, Pot, Crack, Repair, Lawyer, Bodyguard, Live, Refill, Boxing");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: Taxi, Bus, Medic, Mechanic, Ticket, Handshake, Witness, Marriage, Divorce");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: Family, Faction, Contract, Vehicle, House, Rent, Business, Products");
- return 1;
- }
- if(strcmp(x_job,"sex",true) == 0) { SexOffer[playerid] = 999; SexPrice[playerid] = 0; }
- else if(strcmp(x_job,"pot",true) == 0) { PotOffer[playerid] = 999; PotPrice[playerid] = 0; PotGram[playerid] = 0; }
- else if(strcmp(x_job,"crack",true) == 0) { CrackOffer[playerid] = 999; CrackPrice[playerid] = 0; CrackGram[playerid] = 0; }
- else if(strcmp(x_job,"repair",true) == 0) { RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; }
- else if(strcmp(x_job,"lawyer",true) == 0) { WantLawyer[playerid] = 0; CallLawyer[playerid] = 0; }
- else if(strcmp(x_job,"bodyguard",true) == 0) { GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; }
- else if(strcmp(x_job,"live",true) == 0) { LiveOffer[playerid] = 999; }
- else if(strcmp(x_job,"refill",true) == 0) { RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; }
- else if(strcmp(x_job,"products",true) == 0) { ProdOffer[playerid] = 999; ProdPrice[playerid] = 0; ProdAmount[playerid] = 0; }
- else if(strcmp(x_job,"boxing",true) == 0) { BoxOffer[playerid] = 999; }
- else if(strcmp(x_job,"witness",true) == 0) { MarryWitnessOffer[playerid] = 999; }
- else if(strcmp(x_job,"marriage",true) == 0) { ProposeOffer[playerid] = 999; }
- else if(strcmp(x_job,"keys",true) == 0) { TempKey[KeysOffer[playerid]] = 0; KeysOfferTo[KeysOffer[playerid]] = 999; KeysOffer[playerid] = 999; }
- else if(strcmp(x_job,"divorce",true) == 0) { DivorceOffer[playerid] = 999; }
- else if(strcmp(x_job,"family",true) == 0) { FamilyOffer[playerid] = 999; }
- else if(strcmp(x_job,"faction",true) == 0) { FactionOffer[playerid] = 999; }
- else if(strcmp(x_job,"rent",true) == 0) { RentOffer[playerid] = 999; }
- else if(strcmp(x_job,"business",true) == 0) { BizOffer[playerid] = 999; BizPrice[playerid] = 0; BizSellID[playerid] = 0; }
- else if(strcmp(x_job,"house",true) == 0) { HouseOffer[playerid] = 999; HousePrice[playerid] = 0; HouseSellID[playerid] = 0; }
- else if(strcmp(x_job,"vehicle",true) == 0) { VehicleOffer[playerid] = 999; VehiclePrice[playerid] = 0; VehicleSellID[playerid] = 0; }
- else if(strcmp(x_job,"ticket",true) == 0) { TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; }
- else if(strcmp(x_job,"handshake",true) == 0) { HandshakeOffer[playerid] = 999; HandshakeType[playerid] = 0; }
- else if(strcmp(x_job,"contract",true) == 0) { ContractOffer[playerid] = 999; ContractID[playerid] = 999; GoChase[playerid] = 999; }
- else if(strcmp(x_job,"medic",true) == 0) { if(IsPlayerConnected(MedicCall)) { if(MedicCall == playerid) { MedicCall = 999; } else { SendClientMessage(playerid, COLOR_GREY, " You are not the current Caller !"); return 1; } } }
- else if(strcmp(x_job,"mechanic",true) == 0) { if(IsPlayerConnected(MechanicCall)) { if(MechanicCall == playerid) { MechanicCall = 999; } else { SendClientMessage(playerid, COLOR_GREY, " You are not the current Caller !"); return 1; } } }
- else if(strcmp(x_job,"taxi",true) == 0)
- {
- if(TaxiCall < 999)
- {
- if(TransportDuty[playerid] == 1 && TaxiCallTime[playerid] > 0)
- {
- TaxiAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~You have~n~~r~Canceled the call", 5000, 1);
- TaxiCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- TaxiCall = 999;
- }
- else
- {
- if(IsPlayerConnected(TaxiCall)) { if(TaxiCall == playerid) { TaxiCall = 999; } }
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(TaxiAccepted[i] < 999)
- {
- if(TaxiAccepted[i] == playerid)
- {
- TaxiAccepted[i] = 999;
- GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Canceled the call", 5000, 1);
- TaxiCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- }
- }
- }
- }
- }
- else if(strcmp(x_job,"bus",true) == 0)
- {
- if(BusCall < 999)
- {
- if(TransportDuty[playerid] == 2 && BusCallTime[playerid] > 0)
- {
- BusAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~You have~n~~r~Canceled the call", 5000, 1);
- BusCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- BusCall = 999;
- }
- else
- {
- if(IsPlayerConnected(BusCall)) { if(BusCall == playerid) { BusCall = 999; } }
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(BusAccepted[i] < 999)
- {
- if(BusAccepted[i] == playerid)
- {
- BusAccepted[i] = 999;
- GameTextForPlayer(i, "~w~Bus Caller~n~~r~Canceled the call", 5000, 1);
- BusCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- }
- }
- }
- }
- }
- else { return 1; }
- format(string, sizeof(string), "* You have canceled the %s.", x_job);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/accent", true) == 0)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[16];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /accent [accent type] (set your accent as 'none' for no accent)");
- return 1;
- }
- strmid(Accent[playerid], result, 0, strlen(result), 255);
- format(string, sizeof(string), "You have changed your accent to '%s'.", Accent[playerid]);
- SendClientMessage(playerid,COLOR_WHITE,string);
- return 1;
- }
- if(strcmp(cmd,"/accept",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_job[128];
- x_job = strtok(cmdtext, idx);
- if(!strlen(x_job)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /accept [name]");
- SendClientMessage(playerid, COLOR_GRAD1, "Available names: Sex, Pot, Crack, Repair, Lawyer, Vest, Job, Live, Refill, Frisk, Products");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: Taxi, Bus, Boxing, Medic, Mechanic, Ticket, Family, Business, Vehicle, House, Rent");
- return 1;
- }
- else if(strcmp(x_job,"frisk",true) == 0)
- {
- if(FriskOffer[playerid] < 999)
- {
- if(IsPlayerConnected(FriskOffer[playerid]))
- {
- if(ProxDetectorS(10.0, playerid, FriskOffer[playerid]))
- {
- GetPlayerName(FriskOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have accepted %s's request to frisk you", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your request to frisk them", sendername);
- SendClientMessage(FriskOffer[playerid], COLOR_LIGHTBLUE, string);
- new WeaponName[65];
- SendClientMessage(FriskOffer[playerid], COLOR_GREEN,"_______________________________________");
- format(string, sizeof(string), "*** %s's Items ***", sendername);
- SendClientMessage(FriskOffer[playerid], COLOR_WHITE, string);
- if(PlayerInfo[playerid][pPot] > 0) { format(string, sizeof(string), "Marijuana [%dg]",PlayerInfo[playerid][pPot]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pCrack] > 0) { format(string, sizeof(string), "Crack [%dg]",PlayerInfo[playerid][pCrack]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pMats] > 0) { format(string, sizeof(string), "Materials [%d]",PlayerInfo[playerid][pMats]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(Packages[playerid] > 0) { format(string, sizeof(string), "Material Packages [%d]",Packages[playerid]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pCigars] > 0) { format(string, sizeof(string), "Cigars [%d]",PlayerInfo[playerid][pCigars]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pSpraycan] > 0) { format(string, sizeof(string), "Spraycan [%d]",PlayerInfo[playerid][pSpraycan]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(Crates[playerid] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_BITEM, "Drug Crates"); }
- if(Fishes[playerid][pWeight1] > 0 || Fishes[giveplayerid][pWeight2] > 0 || Fishes[giveplayerid][pWeight3] > 0 || Fishes[giveplayerid][pWeight4] > 0 || Fishes[giveplayerid][pWeight5] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Fish"); }
- if(PlayerInfo[playerid][pPhoneBook] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Phone Book"); }
- if(PlayerInfo[playerid][pWatch] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Watch"); }
- if(PlayerInfo[playerid][pSuitcase] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Suitcase"); }
- if(PlayerInfo[playerid][pCDPlayer] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "CD Player"); }
- if(PlayerInfo[playerid][pPnumber] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Cellphone"); }
- if(PlayerInfo[playerid][pScrew] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Screwdriver"); }
- if(PlayerInfo[playerid][pDice] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Dice"); }
- if(PlayerInfo[playerid][pRope] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Rope"); }
- if(PlayerInfo[playerid][pSprunk] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Sprunk"); }
- if(PlayerInfo[playerid][pBombs] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "C4 Explosives"); }
- if(PlayerInfo[playerid][pScope] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Sniper Scope"); }
- if(HasBoughtMask[playerid] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Mask"); }
- if(PlayerInfo[playerid][pBlindfolds] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Blindfold"); }
- if(PlayerInfo[playerid][pGun0] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun0], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun1] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun1], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun2] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun2], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun3] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun3], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun4] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun4], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun5] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun5], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun6] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun6], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun7] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun7], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun8] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun8], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun9] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun9], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun10] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun10], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- if(PlayerInfo[playerid][pGun11] == 44) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Nightvision Goggles"); }
- if(PlayerInfo[playerid][pGun11] == 45) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Infared Goggles"); }
- if(PlayerInfo[playerid][pGun12] != 0) { GetWeaponName(PlayerInfo[playerid][pGun12], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
- for (new weap = 1; weap < 47; weap++)
- {
- if(HaveAdminWeapon(giveplayerid, weap) == weap)
- {
- GetWeaponName(weap, WeaponName, 64);
- format(string, sizeof(string), "Admin Given %s", WeaponName);
- SendClientMessage(FriskOffer[playerid], COLOR_WHITE, string);
- }
- }
- SendClientMessage(FriskOffer[playerid], COLOR_GREEN,"_______________________________________");
- format(string, sizeof(string), "* %s has frisked %s for any illegal items.", PlayerName(FriskOffer[playerid]), PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- FriskOffer[playerid] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The frisk offerer is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody sent you a frisk offer !");
- return 1;
- }
- }
- else if(strcmp(x_job,"divorce",true) == 0)
- {
- if(DivorceOffer[playerid] < 999)
- {
- if(IsPlayerConnected(DivorceOffer[playerid]))
- {
- if(ProxDetectorS(10.0, playerid, DivorceOffer[playerid]))
- {
- GetPlayerName(DivorceOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have accepted %s's request to be their Marriage Witness.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername);
- SendClientMessage(DivorceOffer[playerid], COLOR_LIGHTBLUE, string);
- ClearMarriage(playerid);
- ClearMarriage(DivorceOffer[playerid]);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The player that sent you the Divorce Papers is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody sent you any Divorce Papers !");
- return 1;
- }
- }
- else if(strcmp(x_job,"family",true) == 0)
- {
- if(FamilyOffer[playerid] < 999)
- {
- if(IsPlayerConnected(FamilyOffer[playerid]))
- {
- if(PlayerInfo[FamilyOffer[playerid]][pFMember] != 255)
- {
- if(PlayerInfo[playerid][pFMember] != 255)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are already in a Family !");
- return 1;
- }
- new family = PlayerInfo[FamilyOffer[playerid]][pFMember];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(FamilyOffer[playerid], giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted %s's request to join %s, you are now a Member of it.", giveplayer, FamilyInfo[family][FamilyName]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your request and is now a Member of your Family.", sendername);
- SendClientMessage(FamilyOffer[playerid], COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the char you want to use.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
- TogglePlayerControllable(playerid, 0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pFMember] = family;
- PlayerInfo[playerid][pFRank] = 1;
- SelectChar[playerid] = 255;
- SelectCharPlace[playerid] = 1;
- ChosenSkin[playerid] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySkin1];
- SetPlayerSkin(playerid, ChosenSkin[playerid]);
- PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
- SelectCharID[playerid] = 11;
- FamilyOffer[playerid] = 999;
- FamilyInfo[family][FamilyMembers] ++;
- SaveFamilies();
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The Player who invited you is no longer a Member of a Family !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody sent you a Family Invite !");
- return 1;
- }
- }
- else if(strcmp(x_job,"faction",true) == 0)
- {
- if(FactionOffer[playerid] < 999)
- {
- if(IsPlayerConnected(FactionOffer[playerid]))
- {
- if(PlayerInfo[FactionOffer[playerid]][pLeader] != 0)
- {
- if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are already in a Faction !");
- return 1;
- }
- new ftext[20];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(FactionOffer[playerid], giveplayer, sizeof(giveplayer));
- new faction = PlayerInfo[FactionOffer[playerid]][pLeader];
- if(faction == 1) { ftext = "Police Force"; ChosenSkin[playerid] = 141; }
- else if(faction == 2) { ftext = "FBI"; ChosenSkin[playerid] = 286; }
- else if(faction == 3) { ftext = "SAST"; ChosenSkin[playerid] = 34; }
- else if(faction == 4) { ftext = "Firemen/Ambulance"; ChosenSkin[playerid] = 279;}
- else if(faction == 5) { ftext = "National Guards"; ChosenSkin[playerid] = 287; }
- else if(faction == 6) { ftext = "Senate"; ChosenSkin[playerid] = 147; }
- else if(faction == 7) { ftext = "CIA"; ChosenSkin[playerid] = 294; }
- else if(faction == 8) { ftext = "Hitman Agency"; ChosenSkin[playerid] = 294; }
- else if(faction == 9) { ftext = "News Agency"; ChosenSkin[playerid] = 150; }
- else if(faction == 10) { ftext = "Taxi Cab Company"; ChosenSkin[playerid] = 61; }
- format(string, sizeof(string), "* You have accepted %s's request to join the %s, you are now a Member of it.", giveplayer, ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your request and is now a Member of the %s.", sendername, ftext);
- SendClientMessage(FactionOffer[playerid], COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the char you want to use.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
- PlayerInfo[playerid][pMember] = PlayerInfo[FactionOffer[playerid]][pLeader];
- PlayerInfo[playerid][pRank] = 0;
- TogglePlayerControllable(playerid, 0);
- SetPlayerInterior(playerid, 0);
- SelectChar[playerid] = 255;
- SelectCharPlace[playerid] = 1;
- SelectCharID[playerid] = faction;
- SetPlayerSkin(playerid, ChosenSkin[playerid]);
- PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
- FactionOffer[playerid] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The Player who invited you is no longer a Faction Leader !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody sent you a Faction Invite !");
- return 1;
- }
- }
- else if(strcmp(x_job,"witness",true) == 0)
- {
- if(MarryWitnessOffer[playerid] < 999)
- {
- if(IsPlayerConnected(MarryWitnessOffer[playerid]))
- {
- if(ProxDetectorS(10.0, playerid, MarryWitnessOffer[playerid]))
- {
- GetPlayerName(MarryWitnessOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have accepted %s's request to be their Marriage Witness.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername);
- SendClientMessage(MarryWitnessOffer[playerid], COLOR_LIGHTBLUE, string);
- MarryWitness[MarryWitnessOffer[playerid]] = playerid;
- MarryWitnessOffer[playerid] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The player that requested you to be their Marriage Witness is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody has asked you to be their Marriage Witness !");
- return 1;
- }
- }
- else if(strcmp(x_job,"marriage",true) == 0)
- {
- if(ProposeOffer[playerid] < 999)
- {
- if(!IsPlayerInRangeOfPoint(playerid,10.0,-1988.6638,1117.8837,54.4726))
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not at the Church in San Fierro !");
- return 1;
- }
- if(IsPlayerConnected(ProposeOffer[playerid]))
- {
- if(ProxDetectorS(10.0, playerid, ProposeOffer[playerid]))
- {
- if(MarryWitness[ProposeOffer[playerid]] == 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " The proposer doesn't have a Marriage Witness !");
- return 1;
- }
- if(IsPlayerConnected(MarryWitness[ProposeOffer[playerid]]))
- {
- if(ProxDetectorS(12.0, ProposeOffer[playerid], MarryWitness[ProposeOffer[playerid]]))
- {
- GetPlayerName(ProposeOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have accepted %s's request to be your Husband.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your request to be your Wife.", sendername);
- SendClientMessage(ProposeOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Priest: %s do you take %s as your lovely Husband? (type 'yes', anything else will reject the Marriage)", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- MarriageCeremoney[playerid] = 1;
- ProposedTo[ProposeOffer[playerid]] = playerid;
- GotProposedBy[playerid] = ProposeOffer[playerid];
- MarryWitness[ProposeOffer[playerid]] = 999;
- ProposeOffer[playerid] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The Marriage Witness is not near your proposer !");
- return 1;
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The player that proposed to you is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody Proposed to you !");
- return 1;
- }
- }
- else if(strcmp(x_job,"ticket",true) == 0)
- {
- if(TicketOffer[playerid] < 999)
- {
- if(IsPlayerConnected(TicketOffer[playerid]))
- {
- if(ProxDetectorS(5.0, playerid, TicketOffer[playerid]))
- {
- if(PlayerInfo[playerid][pCash] < TicketMoney[playerid])
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- GetPlayerName(TicketOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have paid the Ticket of $%d to Officer %s.", TicketMoney[playerid], giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has paid your Ticket of $%d.", sendername, TicketMoney[playerid]);
- SendClientMessage(TicketOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has paid the Ticket.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-TicketMoney[playerid];
- GivePlayerMoney(playerid, -TicketMoney[playerid]);
- PlayerInfo[TicketOffer[playerid]][pCash] = PlayerInfo[TicketOffer[playerid]][pCash]+TicketMoney[playerid];
- GivePlayerMoney(TicketOffer[playerid], TicketMoney[playerid]);
- TicketOffer[playerid] = 999;
- TicketMoney[playerid] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The Officer is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered you a Ticket !");
- return 1;
- }
- }
- else if(strcmp(x_job,"handshake",true) == 0)
- {
- if(HandshakeOffer[playerid] < 999)
- {
- if(IsPlayerConnected(HandshakeOffer[playerid]))
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- if(ProxDetectorS(2.0, playerid, HandshakeOffer[playerid]))
- {
- GetPlayerName(HandshakeOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have shaken %s's hand.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted the Handshake.", sendername);
- SendClientMessage(HandshakeOffer[playerid], COLOR_LIGHTBLUE, string);
- ClearAnimations(playerid);
- ClearAnimations(HandshakeOffer[playerid]);
- SetPlayerFacingPlayer(playerid, HandshakeOffer[playerid]);
- SetPlayerFacingPlayer(HandshakeOffer[playerid], playerid);
- if(HandshakeType[playerid] == 1)
- {
- ApplyAnimation(playerid, "GANGS","hndshkaa", 4.0,0,0,0,0,0);
- ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkaa",4.0,0,0,0,0,0);
- }
- else if(HandshakeType[playerid] == 2)
- {
- ApplyAnimation(playerid,"GANGS","hndshkba",4.0,0,0,0,0,0);
- ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkba",4.0,0,0,0,0,0);
- }
- else if(HandshakeType[playerid] == 3)
- {
- ApplyAnimation(playerid,"GANGS","hndshkda",4.0,0,0,0,0,0);
- ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkda",4.0,0,0,0,0,0);
- }
- else if(HandshakeType[playerid] == 4)
- {
- ApplyAnimation(playerid,"GANGS","hndshkea",4.0,0,0,0,0,0);
- ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkea",4.0,0,0,0,0,0);
- }
- else if(HandshakeType[playerid] == 5)
- {
- ApplyAnimation(playerid,"GANGS","hndshkfa",4.0,0,0,0,0,0);
- ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkfa",4.0,0,0,0,0,0);
- }
- else if(HandshakeType[playerid] == 6)
- {
- ApplyAnimation(playerid,"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
- ApplyAnimation(HandshakeOffer[playerid],"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
- }
- HandshakeOffer[playerid] = 999;
- HandshakeType[playerid] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You must be standing closer !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You must exit the vehicle !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered to shake your hand !");
- return 1;
- }
- }
- else if(strcmp(x_job,"contract",true) == 0)
- {
- if(ContractOffer[playerid] < 999)
- {
- if(GoChase[playerid] == 999)
- {
- if(IsPlayerConnected(ContractOffer[playerid]))
- {
- if(PlayerInfo[ContractID[playerid]][pHeadValue] != 0)
- {
- new hitname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(ContractOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(ContractID[playerid], hitname, sizeof(hitname));
- format(string, sizeof(string), "* You have accepted the contract to kill %s, you will recieve $%d when completed.", hitname, PlayerInfo[ContractID[playerid]][pHeadValue]/2);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted the contract to kill %s.", sendername, hitname);
- SendClientMessage(ContractOffer[playerid], COLOR_LIGHTBLUE, string);
- GoChase[playerid] = ContractID[playerid];
- ContractOffer[playerid] = 999;
- ContractID[playerid] = 999;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The contract has expired !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are currently busy with a contract !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered you a contract !");
- return 1;
- }
- }
- else if(strcmp(x_job,"boxing",true) == 0)
- {
- if(BoxOffer[playerid] < 999)
- {
- if(IsPlayerConnected(BoxOffer[playerid]))
- {
- new points;
- new mypoints;
- GetPlayerName(BoxOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new level = PlayerInfo[BoxOffer[playerid]][pBoxSkill];
- if(level >= 0 && level <= 49) { points = 40; }
- else if(level >= 50 && level <= 99) { points = 50; }
- else if(level >= 100 && level <= 199) { points = 60; }
- else if(level >= 200 && level <= 399) { points = 70; }
- else if(level >= 400) { points = 80; }
- if(PlayerInfo[playerid][pJob] == 12)
- {
- new clevel = PlayerInfo[playerid][pBoxSkill];
- if(clevel >= 0 && clevel <= 49) { mypoints = 40; }
- else if(clevel >= 50 && clevel <= 99) { mypoints = 50; }
- else if(clevel >= 100 && clevel <= 199) { mypoints = 60; }
- else if(clevel >= 200 && clevel <= 399) { mypoints = 70; }
- else if(clevel >= 400) { mypoints = 80; }
- }
- else
- {
- mypoints = 30;
- }
- format(string, sizeof(string), "* You have accepted the Boxing Challenge from %s, and will fight with %d Health.",giveplayer,mypoints);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your Boxing Challenge Request, you will fight with %d Health.",sendername,points);
- SendClientMessage(BoxOffer[playerid], COLOR_LIGHTBLUE, string);
- SetPlayerHealth(playerid, mypoints);
- SetPlayerHealth(BoxOffer[playerid], points);
- SetPlayerInterior(playerid, 5); SetPlayerInterior(BoxOffer[playerid], 5);
- SetPlayerPos(playerid, 762.9852,2.4439,1001.5942); SetPlayerFacingAngle(playerid, 131.8632);
- SetPlayerPos(BoxOffer[playerid], 758.7064,-1.8038,1001.5942); SetPlayerFacingAngle(BoxOffer[playerid], 313.1165);
- TogglePlayerControllable(playerid, 0); TogglePlayerControllable(BoxOffer[playerid], 0);
- SetCameraBehindPlayer(playerid);
- SetCameraBehindPlayer(BoxOffer[playerid]);
- GameTextForPlayer(playerid, "~r~Waiting", 3000, 1); GameTextForPlayer(BoxOffer[playerid], "~r~Waiting", 3000, 1);
- new name[MAX_PLAYER_NAME];
- new dstring[MAX_PLAYER_NAME];
- new wstring[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(dstring, sizeof(dstring), "%s", name);
- strmid(wstring, dstring, 0, strlen(dstring), 255);
- if(strcmp(Titel[TitelName] ,wstring, true ) == 0 )
- {
- format(string, sizeof(string), "Boxing News: Boxing Champion %s will fight VS %s, in 60 seconds (Grove Street Gym).", sendername, giveplayer);
- OOCOff(COLOR_WHITE,string);
- TBoxer = playerid;
- BoxDelay = 60;
- }
- GetPlayerName(BoxOffer[playerid], name, sizeof(name));
- format(dstring, sizeof(dstring), "%s", name);
- strmid(wstring, dstring, 0, strlen(dstring), 255);
- if(strcmp(Titel[TitelName] ,wstring, true ) == 0 )
- {
- format(string, sizeof(string), "Boxing News: Boxing Champion %s will fight VS %s, in 60 seconds (Grove Street Gym).", giveplayer, sendername);
- OOCOff(COLOR_WHITE,string);
- TBoxer = BoxOffer[playerid];
- BoxDelay = 60;
- }
- BoxWaitTime[playerid] = 1; BoxWaitTime[BoxOffer[playerid]] = 1;
- if(BoxDelay < 1) { BoxDelay = 20; }
- InRing = 1;
- Boxer1 = BoxOffer[playerid];
- Boxer2 = playerid;
- PlayerBoxing[playerid] = 1;
- PlayerBoxing[BoxOffer[playerid]] = 1;
- BoxOffer[playerid] = 999;
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered you a Boxing Challenge !");
- return 1;
- }
- }
- else if(strcmp(x_job,"taxi",true) == 0)
- {
- if(TransportDuty[playerid] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Taxi Driver !");
- return 1;
- }
- if(TaxiCallTime[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Taxi Call !");
- return 1;
- }
- if(TaxiCall < 999)
- {
- if(IsPlayerConnected(TaxiCall))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(TaxiCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the Taxi Call from %s, you will see the marker untill you have reached it.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Taxi Driver %s has accepted your Taxi Call please wait at your current Position.",sendername);
- SendClientMessage(TaxiCall, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(playerid, "~w~Taxi Caller~n~~r~Goto redmarker", 5000, 1);
- TaxiCallTime[playerid] = 1;
- TaxiAccepted[playerid] = TaxiCall;
- TaxiCall = 999;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Taxi yet !");
- return 1;
- }
- }
- else if(strcmp(x_job,"bus",true) == 0)
- {
- if(TransportDuty[playerid] != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Bus Driver !");
- return 1;
- }
- if(BusCallTime[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Bus Call !");
- return 1;
- }
- if(BusCall < 999)
- {
- if(IsPlayerConnected(BusCall))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(BusCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the Bus Call from %s, you will see the marker untill you have reached it.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Bus Driver %s has accepted your Bus Call please wait at your current Position.",sendername);
- SendClientMessage(BusCall, COLOR_LIGHTBLUE, string);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(BusCall, X, Y, Z);
- SetPlayerCheckpoint(playerid, X, Y, Z, 5);
- GameTextForPlayer(playerid, "~w~Bus Caller~n~~r~Goto redmarker", 5000, 1);
- BusCallTime[playerid] = 1;
- BusAccepted[playerid] = BusCall;
- BusCall = 999;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Bus yet !");
- return 1;
- }
- }
- else if(strcmp(x_job,"medic",true) == 0)
- {
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- if(MedicCallTime[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Medic Call !");
- return 1;
- }
- if(MedicCall < 999)
- {
- if(IsPlayerConnected(MedicCall))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(MedicCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the Medic Call from %s, you have 30 Seconds to get there.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will disappear.");
- format(string, sizeof(string), "* Medic %s has accepted your Medic Call please wait at your current Position.",sendername);
- SendClientMessage(MedicCall, COLOR_LIGHTBLUE, string);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(MedicCall, X, Y, Z);
- SetPlayerCheckpoint(playerid, X, Y, Z, 5);
- GameTextForPlayer(playerid, "~w~Medic Caller~n~~r~Goto redmarker", 5000, 1);
- MedicCallTime[playerid] = 1;
- MedicCall = 999;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Medic yet !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Medic !");
- return 1;
- }
- }
- else if(strcmp(x_job,"lawyer",true) == 0)
- {
- if(PlayerInfo[playerid][pJob] == 2)
- {
- if(LawyerCallTime[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Lawyer Call !");
- return 1;
- }
- if(LawyerCall < 999)
- {
- if(IsPlayerConnected(LawyerCall))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(LawyerCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the Lawyer Call from %s, you have 30 Seconds to get there.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will disappear.");
- format(string, sizeof(string), "* Lawyer %s has accepted your Lawyer Call please wait at your current Position.",sendername);
- SendClientMessage(LawyerCall, COLOR_LIGHTBLUE, string);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(LawyerCall, X, Y, Z);
- SetPlayerCheckpoint(playerid, X, Y, Z, 5);
- GameTextForPlayer(playerid, "~w~Lawyer Caller~n~~r~Goto redmarker", 5000, 1);
- LawyerCallTime[playerid] = 1;
- LawyerCall = 999;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Lawyer yet !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Lawyer !");
- return 1;
- }
- }
- else if(strcmp(x_job,"mechanic",true) == 0)
- {
- if(PlayerInfo[playerid][pJob] != 7)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !");
- return 1;
- }
- if(MechanicCallTime[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Mechanic Call !");
- return 1;
- }
- if(MechanicCall < 999)
- {
- if(IsPlayerConnected(MechanicCall))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(MechanicCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the Mechanic Call from %s, you have 30 Seconds to get there.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will disappear.");
- format(string, sizeof(string), "* Mechanic %s has accepted your Mechanic Call please wait at your current Position.",sendername);
- SendClientMessage(MechanicCall, COLOR_LIGHTBLUE, string);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(MechanicCall, X, Y, Z);
- SetPlayerCheckpoint(playerid, X, Y, Z, 5);
- GameTextForPlayer(playerid, "~w~Mechanic Caller~n~~r~Goto redmarker", 5000, 1);
- MechanicCallTime[playerid] = 1;
- MechanicCall = 999;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Mechanic yet !");
- return 1;
- }
- }
- else if(strcmp(x_job,"job",true) == 0)
- {
- if(GettingJob[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new commands.");
- PlayerInfo[playerid][pJob] = GettingJob[playerid];
- GettingJob[playerid] = 0;
- if(PlayerInfo[playerid][pJob] == 9)
- {
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find materials packages behind ammunations.");
- }
- if(PlayerInfo[playerid][pJob] == 3)
- {
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find products behind this building.");
- }
- if(PlayerInfo[playerid][pJob] == 17)
- {
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find drug crates at the drug factory in Blueberry.");
- if(CP[playerid] == 0)
- {
- SetPlayerCheckpoint(playerid, 51.9720,-292.6349,1.7031, 3.0); //drug factory
- CP[playerid] = 7;
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You haven't even been at a Job place yet!");
- return 1;
- }
- }
- else if(strcmp(x_job,"refill",true) == 0)
- {
- if(RefillOffer[playerid] < 999)
- {
- if(IsPlayerConnected(RefillOffer[playerid]))
- {
- if(PlayerInfo[playerid][pCash] > RefillPrice[playerid])
- {
- if(UseAcceptTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds !");
- GetPlayerName(RefillOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new car = gLastCar[playerid];
- new fuel;
- PlayerInfo[RefillOffer[playerid]][pMechSkill] ++;
- if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 50)
- { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 2, you can now add more Fuel to Cars."); }
- else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 100)
- { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 3, you can now add more Fuel to Cars."); }
- else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 200)
- { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 4, you can now add more Fuel to Cars."); }
- else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 400)
- { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 5, you can now add more Fuel to Cars."); }
- new level = PlayerInfo[RefillOffer[playerid]][pMechSkill];
- if(level >= 0 && level <= 49)
- { fuel = 15; }
- else if(level >= 50 && level <= 99)
- { fuel = 40; }
- else if(level >= 100 && level <= 199)
- { fuel = 60; }
- else if(level >= 200 && level <= 399)
- { fuel = 80; }
- else if(level >= 400)
- { fuel = 100; }
- format(string, sizeof(string), "* You refilled your car with %d, for $%d by Mechanic %s.",fuel,RefillPrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You refilled %s's car with %d, the $%d has been added to your Bank Account.",sendername,fuel,RefillPrice[playerid]);
- SendClientMessage(RefillOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s has accepted the refill from %s for %d", sendername,giveplayer,RefillPrice[playerid]);
- PayLog(string);
- PlayerInfo[RefillOffer[playerid]][pAccount] += RefillPrice[playerid];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-RefillPrice[playerid];
- GivePlayerMoney(playerid, -RefillPrice[playerid]);
- if(Gas[car] < 110) { Gas[car] += fuel; }
- RefillOffer[playerid] = 999;
- RefillPrice[playerid] = 0;
- UseAcceptTimer[playerid] = 1;
- SetTimerEx("UseAccept",60*1000,0,"i",playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered to Refill your Car !");
- return 1;
- }
- }
- else if(strcmp(x_job,"live",true) == 0)
- {
- if(LiveOffer[playerid] < 999)
- {
- if(IsPlayerConnected(LiveOffer[playerid]))
- {
- if(ProxDetectorS(5.0, playerid, LiveOffer[playerid]))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are frozen till the Live Conversation ends.");
- SendClientMessage(LiveOffer[playerid], COLOR_LIGHTBLUE, "* You are frozen till the Live Conversation ends (use /live again).");
- TogglePlayerControllable(playerid, 0);
- TogglePlayerControllable(LiveOffer[playerid], 0);
- TalkingLive[playerid] = LiveOffer[playerid];
- TalkingLive[LiveOffer[playerid]] = playerid;
- LiveOffer[playerid] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are to far away from the News Reporter !");
- return 1;
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody gave you a Live Conversation offer !");
- return 1;
- }
- }
- else if(strcmp(x_job,"keys",true) == 0)
- {
- if(KeysOffer[playerid] < 999)
- {
- if(IsPlayerConnected(KeysOffer[playerid]))
- {
- if(ProxDetectorS(10.0, playerid, KeysOffer[playerid]))
- {
- new car = KeysID[KeysOffer[playerid]];
- format(string, sizeof(string), "* %s has accepteed the keys of your %s.", PlayerName(playerid), GetVehicleFriendlyName(car));
- SendClientMessage(KeysOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You accepted %s's keys of his %s, now you can lock/unlock it.", PlayerName(KeysOffer[playerid]), GetVehicleFriendlyName(car));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- TempKey[playerid] = car;
- KeysOfferTo[KeysOffer[playerid]] = 999;
- KeysOffer[playerid] = 999;
- KeysID[KeysOffer[playerid]] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The player that sent you the keys is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody sent you any keys !");
- return 1;
- }
- }
- else if(strcmp(x_job,"vehicle",true) == 0)
- {
- if(VehicleOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > VehiclePrice[playerid])
- {
- if(IsPlayerConnected(VehicleOffer[playerid]))
- {
- if(PlayerInfo[playerid][pDonateRank] <= 1 && PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You already got 2 vehicle's");
- return 1;
- }
- GetPlayerName(VehicleOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has sold you his vehicle for $%d.",giveplayer,VehiclePrice[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid,COLOR_YELLOW, "Use /carhelp to see the commands.");
- format(string, sizeof(string), "* %s accepted the vehicle contract, the $%d was transferred to your Bank Account.",sendername,VehiclePrice[playerid]);
- SendClientMessage(VehicleOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s has accepted the vehicle contract from %s for $%d", sendername,giveplayer,VehiclePrice[playerid]);
- PayLog(string);
- PlayerInfo[VehicleOffer[playerid]][pAccount] += VehiclePrice[playerid];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-VehiclePrice[playerid];
- GivePlayerMoney(playerid, -VehiclePrice[playerid]);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0)
- {
- PlayerInfo[playerid][pCarKey1] = VehicleSellID[playerid];
- }
- else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0)
- {
- PlayerInfo[playerid][pCarKey2] = VehicleSellID[playerid];
- }
- else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] == 0)
- {
- PlayerInfo[playerid][pCarKey3] = VehicleSellID[playerid];
- }
- else if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] != 0)
- {
- PlayerInfo[playerid][pCarKey1] = VehicleSellID[playerid];
- }
- else if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] != 0)
- {
- PlayerInfo[playerid][pCarKey1] = VehicleSellID[playerid];
- }
- else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] != 0)
- {
- PlayerInfo[playerid][pCarKey2] = VehicleSellID[playerid];
- }
- strmid(CarInfo[VehicleSellID[playerid]][tOwner], sendername, 0, strlen(sendername), 255);
- if(VehicleSellID[playerid] == PlayerInfo[VehicleOffer[playerid]][pCarKey1]) { PlayerInfo[VehicleOffer[playerid]][pCarKey1] = 0; }
- if(VehicleSellID[playerid] == PlayerInfo[VehicleOffer[playerid]][pCarKey2]) { PlayerInfo[VehicleOffer[playerid]][pCarKey2] = 0; }
- VehicleOffer[playerid] = 999;
- VehiclePrice[playerid] = 0;
- VehicleSellID[playerid] = 0;
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody has offered you a vehicle contract !");
- return 1;
- }
- }
- else if(strcmp(x_job,"house",true) == 0)
- {
- if(HouseOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > HousePrice[playerid])
- {
- if(IsPlayerConnected(HouseOffer[playerid]))
- {
- GetPlayerName(HouseOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has sold you his house for $%d.",giveplayer,HousePrice[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid,COLOR_YELLOW, "Use /househelp to see the commands.");
- format(string, sizeof(string), "* %s accepted the house contract, the $%d was transferred to your Bank Account.",sendername,HousePrice[playerid]);
- SendClientMessage(HouseOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s has accepted the house contract from %s for $%d", sendername,giveplayer,HousePrice[playerid]);
- PayLog(string);
- PlayerInfo[HouseOffer[playerid]][pAccount] += HousePrice[playerid];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-HousePrice[playerid];
- GivePlayerMoney(playerid, -HousePrice[playerid]);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- PlayerInfo[playerid][pHouseKey] = HouseSellID[playerid];
- strmid(HouseInfo[HouseSellID[playerid]][hOwner], sendername, 0, strlen(sendername), 255);
- strmid(HouseInfo[HouseSellID[playerid]][hName], "House", 0, strlen("House"), 255);
- PlayerInfo[HouseOffer[playerid]][pHouseKey] = 999;
- DestroyDynamic3DTextLabel(HouseLabel[HouseSellID[playerid]]);
- if(HouseInfo[HouseSellID[playerid]][hRentable] == 1)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[HouseSellID[playerid]][hOwner], 0, strlen(HouseInfo[HouseSellID[playerid]][hOwner]), 255);
- strmid(name, HouseInfo[HouseSellID[playerid]][hName], 0, strlen(HouseInfo[HouseSellID[playerid]][hName]), 255);
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[HouseSellID[playerid]][hLevel],owner,HouseInfo[HouseSellID[playerid]][hRent]);
- HouseLabel[HouseSellID[playerid]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[HouseSellID[playerid]][hLocation_x], HouseInfo[HouseSellID[playerid]][hLocation_y], HouseInfo[HouseSellID[playerid]][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- if(HouseInfo[HouseSellID[playerid]][hRentable] == 0)
- {
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, HouseInfo[HouseSellID[playerid]][hOwner], 0, strlen(HouseInfo[HouseSellID[playerid]][hOwner]), 255);
- strmid(name, HouseInfo[HouseSellID[playerid]][hName], 0, strlen(HouseInfo[HouseSellID[playerid]][hName]), 255);
- format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[HouseSellID[playerid]][hLevel],owner);
- HouseLabel[HouseSellID[playerid]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[HouseSellID[playerid]][hLocation_x], HouseInfo[HouseSellID[playerid]][hLocation_y], HouseInfo[HouseSellID[playerid]][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
- }
- HouseOffer[playerid] = 999;
- HousePrice[playerid] = 0;
- HouseSellID[playerid] = 999;
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody has offered you a house contract !");
- return 1;
- }
- }
- else if(strcmp(x_job,"business",true) == 0)
- {
- if(BizOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > BizPrice[playerid])
- {
- if(IsPlayerConnected(BizOffer[playerid]))
- {
- GetPlayerName(BizOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s has sold you his business for $%d.",giveplayer,BizPrice[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid,COLOR_YELLOW, "Use /bizhelp to see the commands.");
- format(string, sizeof(string), "* %s accepted the business contract, the $%d was transferred to your Bank Account.",sendername,BizPrice[playerid]);
- SendClientMessage(BizOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s has accepted the business contract from %s for $%d", sendername,giveplayer,BizPrice[playerid]);
- PayLog(string);
- PlayerInfo[BizOffer[playerid]][pAccount] += BizPrice[playerid];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-BizPrice[playerid];
- GivePlayerMoney(playerid, -BizPrice[playerid]);
- PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
- PlayerInfo[playerid][pBizKey] = BizSellID[playerid];
- strmid(BizInfo[BizSellID[playerid]][bOwner], sendername, 0, strlen(sendername), 255);
- PlayerInfo[BizOffer[playerid]][pBizKey] = 999;
- DestroyDynamic3DTextLabel(BizLabel[BizSellID[playerid]]);
- new VString[255];
- new name[25], owner[MAX_PLAYER_NAME];
- strmid(owner, BizInfo[BizSellID[playerid]][bOwner], 0, strlen(BizInfo[BizSellID[playerid]][bOwner]), 255);
- strmid(name, BizInfo[BizSellID[playerid]][bName], 0, strlen(BizInfo[BizSellID[playerid]][bName]), 255);
- format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[BizSellID[playerid]][bFee]);
- BizLabel[BizSellID[playerid]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[BizSellID[playerid]][bLocation_x], BizInfo[BizSellID[playerid]][bLocation_y], BizInfo[BizSellID[playerid]][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[BizSellID[playerid]][bPVW], BizInfo[BizSellID[playerid]][bPInt], -1, 100.0);
- BizOffer[playerid] = 999;
- BizPrice[playerid] = 0;
- BizSellID[playerid] = 999;
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody has offered you a business contract !");
- return 1;
- }
- }
- else if(strcmp(x_job,"rent",true) == 0)
- {
- if(RentOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > RentPrice[playerid])
- {
- if(IsPlayerConnected(RentOffer[playerid]))
- {
- new money = HouseInfo[RentHouseID[playerid]][hCash] + RentPrice[playerid];
- GetPlayerName(RentOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have accepted %s's rent request.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(RentOffer[playerid],COLOR_YELLOW, "Use /househelp to see the commands.");
- format(string, sizeof(string), "* %s has accepted your rent request.",sendername);
- SendClientMessage(RentOffer[playerid], COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Do not forget his name, you will need it if you want to sell the house.");
- format(string, sizeof(string), "%s has accepted %s's rent request", sendername,giveplayer);
- PayLog(string);
- HouseInfo[RentHouseID[playerid]][hCash] = money;
- PlayerInfo[RentOffer[playerid]][pCash] = PlayerInfo[RentOffer[playerid]][pCash]-RentPrice[playerid];
- GivePlayerMoney(RentOffer[playerid], -RentPrice[playerid]);
- PlayerInfo[RentOffer[playerid]][pRenthouse] = RentHouseID[playerid];
- HouseInfo[RentHouseID[playerid]][hRenters] += 1;
- RentOffer[playerid] = 999;
- RentPrice[playerid] = 0;
- RentHouseID[playerid] = 999;
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody has offered you a vehicle contract !");
- return 1;
- }
- }
- else if(strcmp(x_job,"vest",true) == 0)
- {
- if(GuardOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > GuardPrice[playerid])
- {
- if(IsPlayerConnected(GuardOffer[playerid]))
- {
- if(ProxDetectorS(3.0, playerid, GuardOffer[playerid]))
- {
- if(UseAcceptTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds !");
- GetPlayerName(GuardOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You accepted the Protection for $%d from Bodyguard %s.",GuardPrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s accepted your Protection, and the $%d was added to your Bank Account.",sendername,GuardPrice[playerid]);
- SendClientMessage(GuardOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s has accepted the protection from %s for $%d", sendername,giveplayer,GuardPrice[playerid]);
- PayLog(string);
- PlayerInfo[GuardOffer[playerid]][pAccount] += GuardPrice[playerid];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-GuardPrice[playerid];
- GivePlayerMoney(playerid, -GuardPrice[playerid]);
- GuardOffer[playerid] = 999;
- GuardPrice[playerid] = 0;
- SetPlayerArmour(playerid, 50.0);
- UseAcceptTimer[playerid] = 1;
- SetTimerEx("UseAccept",60*1000,0,"i",playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're too far away !");
- return 1;
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered you any Protection !");
- return 1;
- }
- }
- else if(strcmp(x_job,"pot",true) == 0)
- {
- if(PotOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > PotPrice[playerid])
- {
- if(PlayerInfo[playerid][pPot] < 7)
- {
- if(IsPlayerConnected(PotOffer[playerid]))
- {
- GetPlayerName(PotOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You bought %d grams of pot for $%d from Drug Dealer %s.",PotGram[playerid],PotPrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has bought your %d grams, the $%d was added to your Bank Account.",sendername,PotGram[playerid],PotPrice[playerid]);
- SendClientMessage(PotOffer[playerid], COLOR_LIGHTBLUE, string);
- PlayerInfo[PotOffer[playerid]][pAccount] += PotPrice[playerid];
- PlayerInfo[PotOffer[playerid]][pDrugsSkill] ++;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-PotPrice[playerid];
- GivePlayerMoney(playerid, -PotPrice[playerid]);
- PlayerInfo[playerid][pPot] += PotGram[playerid];
- PlayerInfo[PotOffer[playerid]][pPot] -= PotGram[playerid];
- if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 50)
- { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams."); }
- else if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 100)
- { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams."); }
- else if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 200)
- { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams."); }
- else if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 400)
- { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams."); }
- PotOffer[playerid] = 999;
- PotPrice[playerid] = 0;
- PotGram[playerid] = 0;
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are fully loaded with Pot, /usepot or /drop it first !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered you any Pot !");
- return 1;
- }
- }
- else if(strcmp(x_job,"products",true) == 0)
- {
- if(ProdOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > ProdPrice[playerid])
- {
- new calc = ProdAmount[playerid] + PlayerInfo[playerid][pProducts];
- if(calc <= 500)
- {
- if(IsPlayerConnected(ProdOffer[playerid]))
- {
- GetPlayerName(ProdOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You bought %d products for $%d from %s.",ProdAmount[playerid],ProdPrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has bought your %d products, the $%d was added to your Bank Account.",sendername,ProdAmount[playerid],ProdPrice[playerid]);
- SendClientMessage(ProdOffer[playerid], COLOR_LIGHTBLUE, string);
- PlayerInfo[ProdOffer[playerid]][pAccount] += ProdPrice[playerid];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-ProdPrice[playerid];
- GivePlayerMoney(playerid, -ProdPrice[playerid]);
- PlayerInfo[playerid][pProducts] += ProdAmount[playerid];
- PlayerInfo[ProdOffer[playerid]][pProducts] -= ProdAmount[playerid];
- ProdOffer[playerid] = 999;
- ProdPrice[playerid] = 0;
- ProdAmount[playerid] = 0;
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are fully loaded products !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered you any Products !");
- return 1;
- }
- }
- else if(strcmp(x_job,"crack",true) == 0)
- {
- if(CrackOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > CrackPrice[playerid])
- {
- if(PlayerInfo[playerid][pCrack] < 7)
- {
- if(IsPlayerConnected(CrackOffer[playerid]))
- {
- GetPlayerName(CrackOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You bought %d grams of crack for $%d from Drug Dealer %s.",CrackGram[playerid],CrackPrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has bought your %d grams, the $%d was added to your Bank Account.",sendername,CrackGram[playerid],CrackPrice[playerid]);
- SendClientMessage(CrackOffer[playerid], COLOR_LIGHTBLUE, string);
- PlayerInfo[CrackOffer[playerid]][pAccount] += CrackPrice[playerid];
- PlayerInfo[CrackOffer[playerid]][pDrugsSkill] ++;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-CrackPrice[playerid];
- GivePlayerMoney(playerid, -CrackPrice[playerid]);
- PlayerInfo[playerid][pCrack] += CrackGram[playerid];
- PlayerInfo[CrackOffer[playerid]][pCrack] -= CrackGram[playerid];
- if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 50)
- { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams."); }
- else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 100)
- { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams."); }
- else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 200)
- { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams."); }
- else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 400)
- { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams."); }
- CrackOffer[playerid] = 999;
- CrackPrice[playerid] = 0;
- CrackGram[playerid] = 0;
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are fully loaded with Crack, /usecrack or /drop it first !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered you any Pot !");
- return 1;
- }
- }
- else if(strcmp(x_job,"sex",true) == 0)
- {
- if(SexOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > SexPrice[playerid])
- {
- if(IsPlayerConnected(SexOffer[playerid]))
- {
- new Car = GetPlayerVehicleID(playerid);
- if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(SexOffer[playerid], Car))
- {
- if(UseAcceptTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds !");
- GetPlayerName(SexOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You had sex with %s, for $%d.", giveplayer, SexPrice[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s had sex with you, the $%d was added to your Bank Account.", sendername, SexPrice[playerid]);
- SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s has accepted the sex from %s for $%d", sendername,giveplayer,SexPrice[playerid]);
- PayLog(string);
- PlayerInfo[SexOffer[playerid]][pAccount] += SexPrice[playerid];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-SexPrice[playerid];
- GivePlayerMoney(playerid, -SexPrice[playerid]);
- PlayerInfo[SexOffer[playerid]][pSexSkill] ++;
- if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 50)
- { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 2, you offer better Sex (health) and less chance on STD."); }
- else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 100)
- { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 3, you offer better Sex (health) and less chance on STD."); }
- else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 200)
- { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 4, you offer better Sex (health) and less chance on STD."); }
- else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 400)
- { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 5, you offer better Sex (health) and less chance on STD."); }
- UseAcceptTimer[playerid] = 1;
- SetTimerEx("UseAccept",60*1000,0,"i",playerid);
- if(STDPlayer[playerid] == 0)
- {
- if(Condom[playerid] < 1)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- new level = PlayerInfo[SexOffer[playerid]][pSexSkill];
- if(level >= 0 && level <= 49)
- {
- if(health > 95) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, health + 5.0); }
- new rand = random(sizeof(STD1));
- STDPlayer[playerid] = STD1[rand];
- STDPlayer[SexOffer[playerid]] = STD1[rand];
- if(STD1[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
- else if(STD1[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
- else if(STD1[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
- else if(STD1[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
- }
- else if(level >= 50 && level <= 99)
- {
- if(health > 90) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, health + 10.0); }
- new rand = random(sizeof(STD2));
- STDPlayer[playerid] = STD2[rand];
- STDPlayer[SexOffer[playerid]] = STD2[rand];
- if(STD2[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
- else if(STD2[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
- else if(STD2[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
- else if(STD2[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
- }
- else if(level >= 100 && level <= 199)
- {
- if(health > 85) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, health + 15.0); }
- new rand = random(sizeof(STD3));
- STDPlayer[playerid] = STD3[rand];
- STDPlayer[SexOffer[playerid]] = STD3[rand];
- if(STD3[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
- else if(STD3[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
- else if(STD3[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
- else if(STD3[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
- }
- else if(level >= 200 && level <= 399)
- {
- if(health > 80) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, health + 20.0); }
- new rand = random(sizeof(STD1));
- STDPlayer[playerid] = STD1[rand];
- STDPlayer[SexOffer[playerid]] = STD1[rand];
- if(STD1[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
- else if(STD1[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
- else if(STD1[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
- else if(STD1[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
- }
- else if(level >= 400)
- {
- if(health > 75) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, health + 25.0); }
- new rand = random(sizeof(STD4));
- STDPlayer[playerid] = STD4[rand];
- STDPlayer[SexOffer[playerid]] = STD4[rand];
- if(STD4[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
- else if(STD4[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
- else if(STD4[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
- else if(STD4[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
- }
- }
- else
- {
- SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* The player used a Condom.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You used a Condom.");
- Condom[playerid] --;
- }
- }
- else
- {
- SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* That player was already infected with a STD, can't get another one.");
- return 1;
- }
- SexOffer[playerid] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You or the Whore are not both in a Car !");
- return 1;
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You dont have any Sex offered by a Whore !");
- return 1;
- }
- }
- else if(strcmp(x_job,"repair",true) == 0)
- {
- if(RepairOffer[playerid] < 999)
- {
- if(PlayerInfo[playerid][pCash] > RepairPrice[playerid])
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(IsPlayerConnected(RepairOffer[playerid]))
- {
- if(UseAcceptTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds !");
- GetPlayerName(RepairOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- RepairCar[playerid] = GetPlayerVehicleID(playerid);
- SetVehicleHealth(RepairCar[playerid], 1000.0);
- format(string, sizeof(string), "* Mechanic %s has repaired your vehicle for %d.",giveplayer,RepairPrice[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You fixed %s's vehicle, the $%d has been added to your Bank Account.",sendername,RepairPrice[playerid]);
- SendClientMessage(RepairOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has repaired %s's vehicle.", giveplayer, sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "%s has accepted the repairs from %s for $%d", sendername,giveplayer,RepairPrice[playerid]);
- PayLog(string);
- PlayerInfo[RepairOffer[playerid]][pMechSkill] ++;
- if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 50)
- { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 2, you can add more Fuel to Players Cars."); }
- else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 100)
- { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 3, you can add more Fuel to Players Cars."); }
- else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 200)
- { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 4, you can add more Fuel to Players Cars."); }
- else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 400)
- { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 5, you can add more Fuel to Players Cars."); }
- PlayerInfo[RepairOffer[playerid]][pAccount] += RepairPrice[playerid];
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-RepairPrice[playerid];
- GivePlayerMoney(playerid, -RepairPrice[playerid]);
- RepairOffer[playerid] = 999;
- RepairPrice[playerid] = 0;
- UseAcceptTimer[playerid] = 1;
- SetTimerEx("UseAccept",60*1000,0,"i",playerid);
- return 1;
- }
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered you to Repair your Car !");
- return 1;
- }
- }
- else { return 1; }
- }
- return 1;
- }
- if(strcmp(cmd, "/refill", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 7)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic!");
- return 1;
- }
- if(PlayerInfo[playerid][pMechTime] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You must wait 1 minute before you can offer another refill !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /refill [playerid/PartOfName] [price]");
- return 1;
- }
- new playa;
- new money;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- money = strvalEx(tmp);
- if(money < 1 || money > 20000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower then $1, or above $20,000 !"); return 1; }
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, playa)&& IsPlayerInAnyVehicle(playa))
- {
- if(playa == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't do offer to refill your own car ! ");
- return 1;
- }
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered %s to refill their car for $%d .",giveplayer,money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Mechanic %s wants to refill your car for $%d, (type /accept refill) to accept.",sendername,money);
- SendClientMessage(playa, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pMechTime] = 60;
- RefillOffer[playa] = playerid;
- RefillPrice[playa] = money;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you / not in a car.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/trunk", true) == 0)
- {
- ShowPlayerDialog(playerid,TRUNKDIALOG,DIALOG_STYLE_LIST,"Trunk","Open / Close\nCheck\nPut stuff\nTake stuff","Ok","Cancel"); //Trunk
- return 1;
- }
- if(strcmp(cmd, "/neon", true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3) { }
- else if(PlayerInfo[playerid][pJob] != 7)
- return SendClientMessage(playerid, COLOR_GREY, "You have to be a mechanic");
- if(!IsPlayerInVehicle(playerid, GetPlayerVehicleID(playerid)))
- return SendClientMessage(playerid, COLOR_GREY, "You have to be in a vehicle!");
- new vehicle = GetPlayerVehicleID(playerid);
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] == vehicle)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't install neons on this vehicle!");
- return 1;
- }
- }
- if(InvaildCar(GetPlayerVehicleID(playerid)))
- return SendClientMessage(playerid, COLOR_GREY, "You can't have neon on this vehicle!");
- ShowPlayerDialog(playerid, 9012, DIALOG_STYLE_LIST, "Select Neon Color", "{0000FF}Blue Neon\n{FF0000}Red Neon\n{008000}Green Neon\n{FFFFFF}White Neon\n{FF00FF}Pink Neon\n{FFFF00}Yellow Neon\n{FFFFFF}-->{FF8C00}Remove Neon{FFFFFF}<--", "Select", "Cancel");
- }
- return 1;
- }
- if(strcmp(cmd, "/carupgrade", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,20,2270.0977,-2340.3416,13.5469))
- {
- new cars[256];
- new carname[255];
- new carname2[255];
- new carname3[255];
- new upcarid = PlayerInfo[playerid][pCarKey1];
- new upcarid2 = PlayerInfo[playerid][pCarKey2];
- new upcarid3 = PlayerInfo[playerid][pCarKey3];
- new lp[9], lp2[9], lp3[9];
- strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
- strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
- strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
- if(PlayerInfo[playerid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
- else { carname = "Empty slot";}
- if(PlayerInfo[playerid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
- else { carname2 = "Empty slot";}
- if(PlayerInfo[playerid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
- else { carname3 = "Empty slot";}
- format(cars,sizeof(cars),"%s (License plate: %s)\n%s (License plate: %s)\n%s (License plate: %s)",carname,lp,carname2,lp2,carname3,lp3);
- ShowPlayerDialog(playerid,CARDIALOG,DIALOG_STYLE_LIST,"Vehicle upgrade",cars,"Upgrade","Cancel"); //Car upgrade
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "** You need to be at the garage located near the Ocean Docks to upgrade your vehicle");
- }
- return 1;
- }
- if(strcmp(cmd, "/trackcar", true) == 0)
- {
- new cars[256];
- new carname[255];
- new carname2[255];
- new carname3[255];
- new carname4[255];
- new upcarid = PlayerInfo[playerid][pCarKey1];
- new upcarid2 = PlayerInfo[playerid][pCarKey2];
- new upcarid3 = PlayerInfo[playerid][pCarKey3];
- new upcarid4 = PlayerInfo[playerid][pRentKey];
- new lp[9], lp2[9], lp3[9], lp4[9];
- strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
- strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
- strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
- strmid(lp4, CarInfo[upcarid4][tLicensePlate], 0, strlen(CarInfo[upcarid4][tLicensePlate]), 9);
- if(PlayerInfo[playerid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
- else { carname = "None";}
- if(PlayerInfo[playerid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
- else { carname2 = "None";}
- if(PlayerInfo[playerid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
- else { carname3 = "None";}
- if(PlayerInfo[playerid][pRentKey] != 0) { carname4 = GetVehicleFriendlyName(upcarid4); }
- else { carname4 = "None";}
- format(cars,sizeof(cars),"%s (License plate: %s)\n%s (License plate: %s)\n%s (License plate: %s)\nRent Vehicle: %s (License plate: %s)",carname,lp,carname2,lp2,carname3,lp3,carname4, lp4);
- ShowPlayerDialog(playerid,CARTRACK,DIALOG_STYLE_LIST,"Vehicle upgrade",cars,"Upgrade","Cancel"); //Car upgrade
- return 1;
- }
- if(strcmp(cmd, "/towcar", true) == 0)
- {
- new cars[256];
- new carname[255];
- new carname2[255];
- new carname3[255];
- new upcarid = PlayerInfo[playerid][pCarKey1];
- new upcarid2 = PlayerInfo[playerid][pCarKey2];
- new upcarid3 = PlayerInfo[playerid][pCarKey3];
- new lp[9], lp2[9], lp3[9];
- strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
- strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
- strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
- if(PlayerInfo[playerid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
- else { carname = "None";}
- if(PlayerInfo[playerid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
- else { carname2 = "None";}
- if(PlayerInfo[playerid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
- else { carname3 = "None";}
- format(cars,sizeof(cars),"%s (License plate: %s)\n%s (License plate: %s)\n%s (License plate: %s)",carname,lp,carname2,lp2,carname3,lp3);
- ShowPlayerDialog(playerid,TOWCAR,DIALOG_STYLE_LIST,"Vehicle tow",cars,"Upgrade","Cancel"); //Car upgrade
- return 1;
- }
- if(strcmp(cmd, "/givekeys", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givekeys [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give the keys to yourself !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- KeysOffer[giveplayerid] = playerid;
- KeysOfferTo[playerid] = giveplayerid;
- new cars[256];
- new carname[255];
- new carname2[255];
- new carname3[255];
- new upcarid = PlayerInfo[playerid][pCarKey1];
- new upcarid2 = PlayerInfo[playerid][pCarKey2];
- new upcarid3 = PlayerInfo[playerid][pCarKey3];
- new lp[9], lp2[9], lp3[9];
- strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
- strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
- strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
- if(PlayerInfo[playerid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
- else { carname = "None";}
- if(PlayerInfo[playerid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
- else { carname2 = "None";}
- if(PlayerInfo[playerid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
- else { carname3 = "None";}
- format(cars,sizeof(cars),"%s (License plate: %s)\n%s (License plate: %s)\n%s (License plate: %s)",carname,lp,carname2,lp2,carname3,lp3);
- ShowPlayerDialog(playerid,GIVEKEYS,DIALOG_STYLE_LIST,"Give a temporary key",cars,"Give keys","Cancel"); //Give keys
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/dealerships", true) == 0)
- {
- ShowPlayerDialog(playerid,DEALERSHIPDIALOG,DIALOG_STYLE_LIST,"Dealership list","Sport cars/bikes\nBoats\n4x4 cars\nBycicles/Quads/Faggios\nPlanes\nLowriders\nLow Class\nCar Rental","Find","Cancel"); //Dealerships
- return 1;
- }
- if(strcmp(cmd, "/paintball", true) == 0)
- {
- if(!IsPlayerInRangeOfPoint(playerid, 2, 1310.2244,-1368.6892,13.5526))
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You are not at Paintball entrance !");
- return 1;
- }
- ShowPlayerDialog(playerid,PAINTBALLDIALOG,DIALOG_STYLE_LIST,"Choose your guns","Deagle + Spas\nSpas + M4\nDeagle + MP5\nShawnoff + Sniper\nDeagle + Tec9","Done","Cancel"); //Paintball
- return 1;
- }
- if(strcmp(cmd, "/gethp", true) == 0)//PaNoULiS
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 1, -2665.2717,1425.9445,906.4609) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP HP
- {
- if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
- {
- SetPlayerHealth(playerid, 60);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s fills their Health up.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
- {
- SetPlayerHealth(playerid, 80);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s fills their Health up.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
- {
- SetPlayerHealth(playerid, 100);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s fills their Health up.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the HP Pickup.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/buyvest", true) == 0)//PaNoULiS
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 1, -2670.8728,1429.4496,906.4609) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP VEST
- {
- if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 9999)
- {
- PlayerInfo[playerid][pCash] -= 10000;
- SetPlayerArmour(playerid, 100);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s fills their Vest up.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($10,000).");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 4999)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- SetPlayerArmour(playerid, 100);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s fills their Vest up.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($5,000).");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 2499)
- {
- PlayerInfo[playerid][pCash] -= 2500;
- SetPlayerArmour(playerid, 100);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s fills their Vest up.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($2,500).");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the Vest Pickup !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/buycrack", true) == 0)//PaNoULiS
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 1, -2673.5171,1398.4757,918.3516) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP CRACK
- {
- if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 14999 && PlayerInfo[playerid][pCrack] < 15)
- {
- PlayerInfo[playerid][pCash] -= 15000;
- PlayerInfo[playerid][pCrack] += 10;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s grabs some Crack from the Locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($15,000) or you already have too much crack.");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
- {
- if(PlayerInfo[playerid][pCash] > 9999 && PlayerInfo[playerid][pCrack] < 15)
- {
- PlayerInfo[playerid][pCash] -= 10000;
- PlayerInfo[playerid][pCrack] += 10;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s grabs some Crack from the Locker.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($10,000) or you already have too much crack.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, " You are not a Silver VIP ! !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the Crack Pickup !");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/gates", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,9,660.24749756,-1309.48803711,16.37491798))
- { //Wu Gate
- if(PlayerInfo[playerid][pFMember] != 7) return SendClientMessage(playerid,COLOR_GREY," You can't open this gate!");
- if(wugate1==0)
- {
- wugate1 = 1;
- MoveDynamicObject(wu[0], 655.09918213,-1309.44506836,16.37491798, 1.50);
- MoveDynamicObject(wu[1], 675.17913818,-1309.45532227,16.37491798, 1.50);
- }
- else if(wugate1==1)
- {
- wugate1 = 0;
- MoveDynamicObject(wu[0], 660.24749756,-1309.48803711,16.37491798, 1.50);
- MoveDynamicObject(wu[1], 669.65338135,-1309.48315430,16.37491798, 1.50);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,9,787.27789307,-1157.14477539,26.50273514))
- { //Wu Gate
- if(PlayerInfo[playerid][pFMember] != 7) return SendClientMessage(playerid,COLOR_GREY," You can't open this gate!");
- if(wugate2==0)
- {
- wugate2 = 1;
- MoveDynamicObject(wu[2], 787.19366455,-1162.24584961,26.50273514, 1.50);
- MoveDynamicObject(wu[3], 787.29956055,-1142.17907715,26.54718781, 1.50);
- }
- else if(wugate2==1)
- {
- wugate2 = 0;
- MoveDynamicObject(wu[2], 787.27789307,-1157.14477539,26.50273514, 1.50);
- MoveDynamicObject(wu[3], 787.28015137,-1147.75488281,26.54718781, 1.50);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,9,660.94030762,-1222.54565430,19.04576492))
- { //Wu Gate
- if(PlayerInfo[playerid][pFMember] != 7) return SendClientMessage(playerid,COLOR_GREY," You can't open this gate!");
- if(wugate3==0)
- {
- wugate3 = 1;
- MoveDynamicObject(wu[4], 663.29870605,-1217.85449219,19.04576492, 1.50);
- MoveDynamicObject(wu[5], 654.34063721,-1235.80322266,19.04576492, 1.50);
- }
- else if(wugate3==1)
- {
- wugate3 = 0;
- MoveDynamicObject(wu[4], 660.94030762,-1222.54565430,19.04576492, 1.50);
- MoveDynamicObject(wu[5], 656.51580811,-1230.86401367,19.04576492, 1.50);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not near a gate !");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmdtext, "/vipgate", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,9,364.95495605,-1469.17004395,31.39999962))
- { //VIP Gate
- if(PlayerInfo[playerid][pDonateRank] == 0) return SendClientMessage(playerid,COLOR_GREY,"You are not a VIP.");
- if(vipgate1==0)
- {
- vipgate1 = 1;
- MoveDynamicObject(vipgateob1, 364.95495605,-1469.17004395,26.0, 1.50);
- }
- else if(vipgate1==1)
- {
- vipgate1 = 0;
- MoveDynamicObject(vipgateob1, 364.95495605,-1469.17004395,31.39999962, 1.50);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,9,310.11669922,-1556.11083984,31.39999962))
- { //VIP Gate
- if(PlayerInfo[playerid][pDonateRank] == 0) return SendClientMessage(playerid,COLOR_GREY,"You are not a VIP.");
- if(vipgate2==0)
- {
- vipgate2 = 1;
- MoveDynamicObject(vipgateob2, 310.11669922,-1556.11083984,26.0, 1.50);
- }
- else if(vipgate2==1)
- {
- vipgate2 = 0;
- MoveDynamicObject(vipgateob2, 310.11669922,-1556.11083984,31.39999962, 1.50);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not near a gate !");
- return 1;
- }
- return 1;
- }
- if(strcmp("/affa", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 7, 700.2618,-476.8615,16.3359) && PlayerInfo[playerid][pFMember] == 5)
- {
- if(Bariera2 == 0) {
- MoveDynamicObject(bariera, 705.099609375, -475.2548828125, 16.14999961853, 1, 0.00000000,0.00000000,0.00000000);
- Bariera2 = 1;
- }
- else if(Bariera2 == 1)
- {
- MoveDynamicObject(bariera, 705.09997559,-475.25500488,16.14999962, 1, 0.00000000,270.00000000,0.00000000);
- Bariera2 = 0;
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/gate", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,9,1588.3058,-1637.9652,13.4227))
- { //POLICE GATE
- if(!IsACop(playerid)) return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST !");
- if(pdgategar==0)
- {
- pdgategar = 1;
- MoveDynamicObject(pdgaragegateobj, 1588.965698, -1637.882690, 7.710285, 1.50);
- }
- else if(pdgategar==1)
- {
- pdgategar = 0;
- MoveDynamicObject(pdgaragegateobj, 1588.965698, -1637.882690, 15.260185, 1.50);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,9,1544.4913,-1627.2817,13.3828))
- { //POLICE BAR
- if(!IsACop(playerid)) return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST !");
- if(pdgatebar==0)
- {
- pdgatebar = 1;
- SetDynamicObjectRot( pdbarriergateobj, 0.0000, 360.0000, 90.0000);
- SetDynamicObjectPos( pdbarriergateobj, 1544.682495, -1630.953003, 13.079567 );
- }
- else if(pdgatebar==1)
- {
- pdgatebar = 0;
- SetDynamicObjectRot( pdbarriergateobj, 0.0000, 90.0000, 90.0000);
- SetDynamicObjectPos( pdbarriergateobj, 1544.682495, -1630.980000, 13.215000 );
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,9,96.8500, 1923.4334, 15.3518))
- { //PRISON GATE
- if(!IsACop(playerid) && PlayerInfo[playerid][pMember] != 5) return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST / NG !");
- if(Prison_Buttons[GateOpened] == 0)
- {
- MoveDynamicObject(Prison_Buttons[PrisonGate], 96.808670, 1923.5, 16.234968, 1.50);
- Prison_Buttons[GateOpened] = 1;
- Prison_Buttons[GateTimerID]= SetTimer("PrisonGateCheck", 60000, 0);
- }
- else
- {
- MoveDynamicObject(Prison_Buttons[PrisonGate], 96.808670, 1920.512817, 16.234968, 1.50);
- Prison_Buttons[GateOpened] = 0;
- KillTimer(Prison_Buttons[GateTimerID]);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 12.0, 1027.46203613, 1183.29357910, 12.45144653))
- { //CIA Gate
- if(!(PlayerInfo[playerid][pMember] == 7)) return SendClientMessage(playerid,COLOR_GREY," You are not a member of the CIA !");
- if(ciagateopen == 0)
- {
- ciagateopen = 1;
- MoveDynamicObject(CIAGate, 1038.17248535, 1183.50256348, 12.45144653, 1.500000);
- }
- else
- {
- ciagateopen = 0;
- MoveDynamicObject(CIAGate, 1027.46203613,1183.29357910,12.45144653, 1.500000);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 6, 618.12, -1294.68, 15.48))
- {
- if(PDOpen == 0)
- {
- MoveDynamicObject(PDGate, 617.70, -1298.70, 15.00, 3, 0.00, 0.00, 268.00);
- PDOpen = 1;
- }
- else if(PDOpen == 1)
- {
- MoveDynamicObject(PDGate, 617.70, -1298.70, 15.00, 3, 0.00, 273.25, 267.99);
- PDOpen = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not near a gate !");
- return 1;
- }
- return 1;
- }
- /*if(strcmp(cmdtext, "/sgate", true) == 0)
- {
- if(PlayerInfo[playerid][pFMember] == 6)
- {
- if(IsPlayerInRangeOfPoint(playerid,20,320.6423, -1487.3715, 27.1573))
- {
- if(sygate1 == 0)
- {
- MoveDynamicObject(SajiGate1,328.440826, -1493.048461, 27.050348, 2.0);
- sygate1 = 1;
- SendClientMessage(playerid, COLOR_GREY, " The gate is opening !");
- return 1;
- }
- else if(sygate1 == 1)
- {
- MoveDynamicObject(SajiGate1,320.642395, -1487.371582, 27.157367, 2.0);
- sygate1 = 0;
- SendClientMessage(playerid, COLOR_GREY, " The gate is closing !");
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,20.0,283.56, -1543.01, 27.21))
- {
- if(sygate2 == 0)
- {
- MoveDynamicObject(SajiGate2,275.843261, -1537.967895, 27.164390,5.0);
- sygate2 = 1;
- SendClientMessage(playerid, COLOR_GREY, " The gate is opening !");
- return 1;
- }
- if(sygate2 == 1)
- {
- MoveDynamicObject(SajiGate2,283.568115, -1543.011352, 27.216995, 5.0);
- sygate2 = 0;
- SendClientMessage(playerid, COLOR_GREY, " The gate is closing !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not near a gate !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a member of the Saji Yakuza !");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/sdoor", true) == 0)
- {
- if(PlayerInfo[playerid][pFMember] == 6)
- {
- if(IsPlayerInRangeOfPoint(playerid,4,2143.7202,1627.3839,993.7603))
- {
- if(SajiSafeDoor == 0)
- {
- MoveDynamicObject(SafeDoor, 2144.99, 1627.85, 994.25, 20.0);
- SetDynamicObjectRot(SafeDoor, 0.0, 0.0, 90.0);
- SajiSafeDoor = 1;
- SendClientMessage(playerid, COLOR_GREY, " The safe door is opening !");
- return 1;
- }
- else if(SajiSafeDoor == 1)
- {
- MoveDynamicObject(SafeDoor, 2144.18, 1627.10, 994.25, 25.0);
- SetDynamicObjectRot(SafeDoor, 0.0, 0.0, 180.0);
- SajiSafeDoor = 0;
- SendClientMessage(playerid, COLOR_GREY, " The safe door is closing !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not near the safe door !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a member of the Saji Yakuza !");
- }
- return 1;
- }*/
- if(strcmp(cmd, "/repair", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 7)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic!");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /repair [playerid/PartOfName] [price]");
- return 1;
- }
- new playa;
- new money;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- money = strvalEx(tmp);
- if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower then $1, or above $99,999 !"); return 1; }
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, playa)&& IsPlayerInAnyVehicle(playa))
- {
- if(playa == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't offer to repair your own car !"); return 1; }
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered %s to fix their car for $%d .",giveplayer,money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Mechanic %s wants to repair your car for $%d, (type /accept repair) to accept.",sendername,money);
- SendClientMessage(playa, COLOR_LIGHTBLUE, string);
- RepairOffer[playa] = playerid;
- RepairPrice[playa] = money;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you / not in a car.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/family", true) == 0 || strcmp(cmd, "/f", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!(PlayerInfo[playerid][pMember] >= 8 && PlayerInfo[playerid][pMember] <= 10 || PlayerInfo[playerid][pFMember] != 255))
- return SendClientMessage(playerid,COLOR_GREY,"You are not part of a Family.");
- if(gFam[playerid]) return 1;
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[256];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/f)amily [family chat]");
- return 1;
- }
- if(PlayerInfo[playerid][pFMember] != 255)
- {
- format(string, sizeof(string), "* (%d) %s %s: %s", PlayerInfo[playerid][pFRank],GetPlayerFRank(playerid),PlayerName(playerid), result);
- SendNewFamilyMessage(PlayerInfo[playerid][pFMember], TEAM_AZTECAS_COLOR, string);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/news", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
- {
- new newcar = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pMuted] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cannot speak, you have been silenced !");
- return 1;
- }
- if(!IsANewsCar(newcar))
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not in the News Van or Chopper !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[96];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /news [newstext]");
- return 1;
- }
- format(string, sizeof(string), "NR %s: %s", sendername, result);
- OOCNews(COLOR_NEWS,string);
- PlayerInfo[playerid][pNewsSkill] ++;
- if(PlayerInfo[playerid][pNewsSkill] == 50)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 2, soon you are able to Fly the News Chopper and talk Live."); }
- else if(PlayerInfo[playerid][pNewsSkill] == 100)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 3, soon you are able to Fly the News Chopper and talk Live."); }
- else if(PlayerInfo[playerid][pNewsSkill] == 200)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 4, you can fly the News Chopper now."); }
- else if(PlayerInfo[playerid][pNewsSkill] == 400)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 5, you can now talk Live with any person you want."); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a News Reporter !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/live", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
- {
- if(PlayerInfo[playerid][pRank] >= 3)
- {
- if(TalkingLive[playerid] != 255)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Live Conversation ended.");
- SendClientMessage(TalkingLive[playerid], COLOR_LIGHTBLUE, "* Live Conversation ended.");
- TogglePlayerControllable(playerid, 1);
- TogglePlayerControllable(TalkingLive[playerid], 1);
- TalkingLive[TalkingLive[playerid]] = 255;
- TalkingLive[playerid] = 255;
- return 1;
- }
- if(PlayerInfo[playerid][pNewsSkill] < 400)
- {
- SendClientMessage(playerid, COLOR_GREY, " Your News Reporter Skill is to low to talk Live with people !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /live [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(5.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Talk Live with yourself !"); return 1; }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered %s to have a Live Conversation.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s offered you to have a Live Conversation, type (/accept live) to accept.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- LiveOffer[giveplayerid] = playerid;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are to far away from that player !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid ID/Name !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Your rank is not high enough !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a News Reporter !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sellproducts", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 3)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Product Dealer !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellproducts [playerid/PartOfName] [amount] [price]");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellproducts [playerid/PartOfName] [amount] [price]");
- return 1;
- }
- new needed;
- needed = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellproducts [playerid/PartOfName] [amount] [price]");
- return 1;
- }
- new money;
- money = strvalEx(tmp);
- if(needed > 500 || needed < 1) { SendClientMessage(playerid, COLOR_GREY, " The amount must be between 1 and 500 !"); return 1; }
- if(needed > PlayerInfo[playerid][pProducts]) { SendClientMessage(playerid, COLOR_GREY, " You don't have that many products with you !"); return 1; }
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, playa))
- {
- if(playa == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't sell to yourself !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You offered %s to buy %d Products for $%d .", giveplayer, needed, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Product Dealer %s wants to sell you %d Products for $%d, (type /accept products) to buy.", sendername, needed, money);
- SendClientMessage(playa, COLOR_LIGHTBLUE, string);
- ProdOffer[playa] = playerid;
- ProdPrice[playa] = money;
- ProdAmount[playa] = needed;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sellpot", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Drug Dealer !");
- return 1;
- }
- if(PlayerInfo[playerid][pDrugsTime] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You must wait 1 minute before selling again !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellpot [playerid/PartOfName] [amount] [price]");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellpot [playerid/PartOfName] [amount] [price]");
- return 1;
- }
- new needed;
- needed = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellpot [playerid/PartOfName] [amount] [price]");
- return 1;
- }
- new money;
- money = strvalEx(tmp);
- if(needed < 1 || needed > 99) { SendClientMessage(playerid, COLOR_GREY, " Grams can't be lower than 1, or above 99 !"); return 1; }
- if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $1, or above $99,999 !"); return 1; }
- if(needed > PlayerInfo[playerid][pPot]) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much Pot with you !"); return 1; }
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, playa))
- {
- if(playa == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't sell to yourself !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You offered %s to buy %d grams of Pot for $%d .", giveplayer, needed, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Drug Dealer %s wants to sell you %d grams of Pot for $%d, (type /accept pot) to buy.", sendername, needed, money);
- SendClientMessage(playa, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pDrugsTime] = 60;
- PotOffer[playa] = playerid;
- PotPrice[playa] = money;
- PotGram[playa] = needed;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sellcrack", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] != 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Drug Dealer !");
- return 1;
- }
- if(PlayerInfo[playerid][pDrugsTime] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You must wait 1 minute before selling again !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcrack [playerid/PartOfName] [amount] [price]");
- return 1;
- }
- new playa;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcrack [playerid/PartOfName] [amount] [price]");
- return 1;
- }
- new needed;
- needed = strvalEx(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcrack [playerid/PartOfName] [amount] [price]");
- return 1;
- }
- new money;
- money = strvalEx(tmp);
- if(needed < 1 || needed > 99) { SendClientMessage(playerid, COLOR_GREY, " Grams can't be lower than 1, or above 99 !"); return 1; }
- if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $1, or above $99,999 !"); return 1; }
- if(needed > PlayerInfo[playerid][pCrack]) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much Crack with you !"); return 1; }
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, playa))
- {
- if(playa == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't sell to yourself !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You offered %s to buy %d grams of Crack for $%d .", giveplayer, needed, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Drug Dealer %s wants to sell you %d grams of Crack for $%d, (type /accept crack) to buy.", sendername, needed, money);
- SendClientMessage(playa, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pDrugsTime] = 60;
- CrackOffer[playa] = playerid;
- CrackPrice[playa] = money;
- CrackGram[playa] = needed;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline.");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/usepot", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(UseDrugsTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 5 seconds !");
- if(PlayerBoxing[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't use Pot while you are Boxing !");
- return 1;
- }
- if(PlayerStoned[playerid] >= 6)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are too stoned to use Pot !");
- return 1;
- }
- if(PlayerInfo[playerid][pPot] > 1)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(health > 80) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, health + 20.0); }
- PlayerStoned[playerid] += 1;
- if(PlayerStoned[playerid] >= 6)
- {
- GameTextForPlayer(playerid, "~w~You are~n~~p~Stoned", 4000, 1);
- SetPlayerDrunkLevel(playerid, 500000);
- }
- SendClientMessage(playerid, COLOR_GRAD1, " You used 2 grams of pot !");
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger has used some pot.");
- }
- else
- {
- format(string, sizeof(string), "* %s has used some pot.", sendername);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(!IsPlayerInAnyVehicle(playerid)) { ApplyAnimation(playerid,"SMOKING","M_smkstnd_loop",4.0,0,0,0,0,0); }
- UseDrugsTimer[playerid] = 1; PlayerInfo[playerid][pPot] -= 2;
- SetTimerEx("UseDrugs",5*1000,0,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You dont have any pot left !");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/usecrack", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(UseDrugsTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 5 seconds !");
- if(PlayerBoxing[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't use Crack while you are Boxing !");
- return 1;
- }
- if(PlayerStoned[playerid] >= 6)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are too stoned to use Crack !");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] > 1)
- {
- new Float:armor;
- GetPlayerArmour(playerid, armor);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(armor > 80) { SetPlayerArmour(playerid, 100.0); }
- else { SetPlayerArmour(playerid, armor + 10.0); }
- PlayerStoned[playerid] += 1;
- if(PlayerStoned[playerid] >= 6)
- {
- GameTextForPlayer(playerid, "~w~You are~n~~p~Stoned", 4000, 1);
- SetPlayerDrunkLevel(playerid, 500000);
- }
- SendClientMessage(playerid, COLOR_GRAD1, " You used 2 grams of crack !");
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger has used some crack.");
- }
- else
- {
- format(string, sizeof(string), "* %s has used some crack.", sendername);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(!IsPlayerInAnyVehicle(playerid)) { ApplyAnimation(playerid,"SMOKING","M_smk_in",4.0,0,0,0,0,0); }
- UseDrugsTimer[playerid] = 1; PlayerInfo[playerid][pCrack] -= 2;
- SetTimerEx("UseDrugs",5*1000,0,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You dont have any crack left !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/healme", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,3,1205.7174,-1368.5072,1029.4792)||IsPlayerInRangeOfPoint(playerid,3,2029.5945,-1404.6426,17.2512))
- {
- if(STDPlayer[playerid] > 0)
- {
- STDPlayer[playerid] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are no longer infected with an STD !");
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
- GivePlayerMoney(playerid, -1000);
- SendClientMessage(playerid, COLOR_DOC, "DOC: Your medical bill comes to $1000, Have a nice day.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You dont have a STD to heal !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not at a Hospital !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/eject", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetPlayerState(playerid) != 2)
- {
- SendClientMessage(playerid,COLOR_GREY," You can only eject people as the driver !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /eject [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Eject yourself !"); return 1; }
- new vehid;
- vehid = GetPlayerVehicleID(playerid);
- if(IsPlayerInVehicle(giveplayerid, vehid))
- {
- GetPlayerName(playerid,sendername,sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have thrown %s out of the car.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You have been thrown out the car by %s.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has thrown %s out of the vehicle.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerFromVehicle(giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not in your Car !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid ID/Name !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be in a Vehicle to use this !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sex", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pSexTime] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You must wait 1 minute before you can offer to have sex !");
- return 1;
- }
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You must be in a car to have Sex with someone !");
- return 1;
- }
- new Car = GetPlayerVehicleID(playerid);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sex [playerid/PartOfName] [price]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- new money;
- money = strvalEx(tmp);
- if(money < 1 || money > 20000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $1, or above $20,000 !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot have Sex with yourself !"); return 1; }
- if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(giveplayerid, Car))
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered %s to have Sex with you, for $%d.", giveplayer, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Whore %s has offered you to have Sex with her, for $%d (type /accept sex) to accept.", sendername, money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pSexTime] = 60;
- SexOffer[giveplayerid] = playerid;
- SexPrice[giveplayerid] = money;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You and the other player must be in a Car together !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/wanted", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid) || PlayerInfo[playerid][pJob] == 2)
- {
- new x;
- SendClientMessage(playerid, COLOR_GREEN, "Current Wanted Suspects:");
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pWantedLevel] > 0)
- {
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "%s%s: %d", string,giveplayer,PlayerInfo[i][pWantedLevel]);
- x++;
- if(x > 3) {
- SendClientMessage(playerid, COLOR_YELLOW, string);
- x = 0;
- format(string, sizeof(string), "");
- } else {
- format(string, sizeof(string), "%s, ", string);
- }
- }
- }
- }
- if(x <= 3 && x > 0) {
- string[strlen(string)-2] = '.';
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI / SAST / Lawyer !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/dropcar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] > 0)
- {
- if(Packages[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY," You must finish delivering your Materials Packages !");
- return 1;
- }
- if(Crates[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY," You must finish delivering your Drug Crates !");
- return 1;
- }
- if(PlayerInfo[playerid][pCarTime] == 0)
- {
- PlayerInfo[playerid][pCarTime] = 0;
- GameTextForPlayer(playerid, "~w~Car Selling ~n~~r~Drop the car at the Crane", 5000, 1);
- CP[playerid] = 1;
- SetPlayerCheckpoint(playerid, 2696.0520,-2225.8101,13.2554,8.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You already sold a car, wait till your reload time is over !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not logged in !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/nos", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] == 7)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not in a vehicle !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new vehid = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pCash] < 200) { SendClientMessage(playerid, COLOR_GREY, " You cant afford the nos !"); return 1; }
- if(IsValidNosVehicle(vehid))
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
- GivePlayerMoney(playerid,-200);
- AddVehicleComponent(vehid, 1009); //2x nos
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger slaps a nos canister onto the engine feed.");
- }
- else
- {
- format(string, sizeof(string), "* %s slaps a nos canister onto the engine feed.", sendername);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/hyd", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] == 7)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not in a vehicle !");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new vehid = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pCash] < 500) { SendClientMessage(playerid, COLOR_GREY, " You cant afford the hydraulics !"); return 1; }
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
- GivePlayerMoney(playerid,-500);
- AddVehicleComponent(vehid, 1087); //hydraulics
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger has modified the vehicle with hydraulics.");
- }
- else
- {
- format(string, sizeof(string), "* %s has modified the vehicle with hydraulics.", sendername);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !");
- }
- }
- return 1;
- }
- /*
- new engine,lights,alarm,doors,bonnet,boot,objective;
- new vehid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER && IsAValidVehicle(GetPlayerVehicleID(playerid)))
- {
- GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(engine<=0)
- {
- GameTextForPlayer(playerid, "~g~Starting the engine...", 1200, 1);
- SetTimerEx("StartEngine", 1500, 0, "ii", playerid, vehid);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Stopping the engine...", 1200, 1);
- SetTimerEx("StopEngine", 1500, 0, "ii", playerid, vehid);
- }
- }*/
- if(strcmp("/fix", cmdtext, true, 10) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] == 7)
- {
- if(FixCarTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds to repair your vehicle !");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new vehid = GetPlayerVehicleID(playerid);
- if(vehid)
- {
- if(PlayerInfo[playerid][pWrench] >= 1)
- {
- if(wrench[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not holding a wrench (( /wrench ))!");
- return 1;
- }
- if(CarInfo[vehid][tEngine] == 0)
- {
- RepairVehicle(vehid);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger has repaired the vehicle.");
- }
- else
- {
- format(string, sizeof(string), "* %s has repaired the vehicle.", sendername);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- FixCarTimer[playerid] = 1;
- PlayerInfo[playerid][pWrench]--;
- SetTimerEx("FixCar",60*1000,0,"i",playerid);
- }
- else { SendClientMessage(playerid, COLOR_GREY, " You have to turn off the vehicle engine !"); }
- }
- else { SendClientMessage(playerid, COLOR_GREY, " You have to buy a wrench !"); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not in a vehicle !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/quitjob", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] > 0)
- {
- if(PlayerInfo[playerid][pJob] == 17 && CP[playerid] != 0)
- {
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You quit your Job.");
- PlayerInfo[playerid][pJob] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a Job to quit.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/bail", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJailed] == 1)
- {
- if(JailPrice[playerid] > 0)
- {
- if(PlayerInfo[playerid][pCash] > JailPrice[playerid])
- {
- format(string, sizeof(string), "* You bailed yourself out for: $%d", JailPrice[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-JailPrice[playerid];
- GivePlayerMoney(playerid, -JailPrice[playerid]);
- JailPrice[playerid] = 0;
- WantLawyer[playerid] = 0;
- CallLawyer[playerid] = 0;
- PlayerInfo[playerid][pJailTime] = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You can't afford that !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You don't have a Bail Price !");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not in Jail !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/changepass", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not Logged in !");
- return 1;
- }
- if(ChangePassTimer[playerid]) return 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s.ini", sendername);
- new tmppass[64];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /changepass [password]");
- return 1;
- }
- format(string, sizeof(string), "You have changed your account password to %s.", tmp);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
- Encrypt(tmppass);
- OnPlayerRegister(playerid,tmppass);
- ChangePassTimer[playerid] = 1;
- SetTimerEx("ChangePass",5*1000,0,"i",playerid);
- }
- return 1;
- }
- if(strcmp(cmd, "/fine", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [playerid/PartOfName] [price] [reason]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [playerid/PartOfName] [price] [reason]");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(moneys < 1) { SendClientMessage(playerid, COLOR_GREY, " Fine Money can't be below 1 !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [playerid/PartOfName] [price] [reason]");
- return 1;
- }
- if(UseAdmCmdTimer[playerid] > 3)
- {
- new IP[16];
- new year, month, day;
- getdate(year, month, day);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(string, sizeof(string), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
- BanLog(string);
- format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBand] = 3;
- PlayerInfo[playerid][pPermBand] = 1;
- BanEx(playerid, "Banned By: Autoban Reason: Spam");
- return 1;
- }
- PlayerInfo[giveplayerid][pCash] = PlayerInfo[giveplayerid][pCash]-moneys;
- GivePlayerMoney(giveplayerid,-moneys);
- format(string, sizeof(string), "Info: %s has been fined $%d by an Admin, reason: %s", giveplayer, moneys, (result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- UseAdmCmdTimer[playerid]++;
- SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/shakehand", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, 0xFF0000FF, "USAGE: /shakehand [playerid/PartOfName] [1-6]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, 0xFF0000FF, "USAGE: /shakehand [playerid/PartOfName] [1-6]");
- return 1;
- }
- new snumber;
- snumber = strval(tmp);
- if(snumber < 1 || snumber > 6) { SendClientMessage(playerid, 0xFF0000FF, "USAGE: /shakehand [playerid/PartOfName] [1-6]"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(2.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot offer to shake your own hand !"); return 1; }
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You offered to shake %s's hand.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has offered to shake your hand (type /accept handshake), to accept it.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- HandshakeOffer[giveplayerid] = playerid;
- HandshakeType[giveplayerid] = snumber;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ticket", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
- {
- if(IsACop(playerid) && PlayerInfo[playerid][pOnDuty] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not on Duty !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ticket [playerid/PartOfName] [price] [reason]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ticket [playerid/PartOfName] [price] [reason]");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(moneys < 1 || moneys > 99999) { SendClientMessage(playerid, COLOR_GREY, " Ticket Money can't be below 1 or higher then 99999 !"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ticket [playerid/PartOfName] [price] [reason]");
- return 1;
- }
- format(string, sizeof(string), "* You gave %s a Ticket costing $%d, reason: %s.", giveplayer, moneys, (result));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has given you a Ticket costing $%d, reason: %s.", sendername, moneys, (result));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s writes up a Ticket and gives it to %s.", sendername, giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Type /accept ticket, to accept it.");
- TicketOffer[giveplayerid] = playerid;
- TicketMoney[giveplayerid] = moneys;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
- return 1;
- }
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/sattelite", true))
- {
- if(PlayerInfo[playerid][pMember] != 7)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a member of the CIA !");
- return 1;
- }
- if(UsingSate[playerid] == 1)
- {
- SetCameraBehindPlayer(playerid);
- PutPlayerInVehicle(playerid, gLastCar[playerid], 2);
- TogglePlayerControllable(playerid, 1);
- UsingSate[playerid] = 0;
- oldsposx[playerid] = 0.0; oldsposy[playerid] = 0.0; oldsposz[playerid] = 0.0;
- newsposx[playerid] = 0.0; newsposy[playerid] = 0.0; newsposz[playerid] = 0.0;
- ZOOM[playerid] = 0;
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- new playervehid = GetPlayerVehicleID(playerid);
- new playervehmodel = GetVehicleModel(playervehid);
- if(playervehmodel != 482 && CarInfo[playervehmodel][tFaction] != 7)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not in a CIA burrito !");
- return 1;
- }
- if(GetPlayerVehicleSeat(playerid) == 2 || GetPlayerVehicleSeat(playerid) == 3)
- {
- if(UsingSate[playerid] == 0)
- {
- SetPlayerFacingAngle(playerid, 0.0);
- GetPlayerPos(playerid, oldsposx[playerid], oldsposy[playerid], oldsposz[playerid]);
- SetPlayerPos(playerid, oldsposx[playerid], oldsposy[playerid], oldsposz[playerid]+500);
- gLastCar[playerid] = playervehid;
- TogglePlayerControllable(playerid, 0);
- GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
- SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]+200);
- SendClientMessage(playerid, COLOR_GREY, " Use up, down, left, right to navigate and fire key to adjust the zoom !");
- SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]);
- UsingSate[playerid] = 1;
- ZOOM[playerid] = 1;
- return 1;
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREY, " You are not in a CIA burrito !");
- return 1;
- }
- if(strcmp(cmd, "/arrest", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid))
- {
- if(IsACop(playerid) && PlayerInfo[playerid][pOnDuty] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not on Duty !");
- return 1;
- }
- new interior = GetPlayerInterior(playerid);
- if(!IsPlayerInRangeOfPoint(playerid,6.0,1528.3268,-1677.8229,5.8906) && !IsPlayerInRangeOfPoint(playerid,8.0,1565.1511,-1658.2452,28.3956) && interior != 6)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not inside the Police Department or at an Arrest Point !");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
- moneys = strvalEx(tmp);
- if(moneys < 1 || moneys > 20000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be below $1 or above $20,000 !"); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
- new time = strvalEx(tmp);
- if(time < 1 || time > 20) { SendClientMessage(playerid, COLOR_GREY, " Minutes can't be below 1 or above 20 !"); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
- new bail = strvalEx(tmp);
- if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, " Bail can't be below 0 or above 1 !"); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
- new bailprice = strvalEx(tmp);
- if(bailprice < 0 || bailprice > 1000000) { SendClientMessage(playerid, COLOR_GREY, " Bail Price can't be below $0 or above $1,000,000 !"); return 1; }
- new suspect = GetClosestPlayer(playerid);
- if(IsPlayerConnected(suspect))
- {
- if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
- {
- if(PlayerInfo[suspect][pWantedLevel] < 1) { SendClientMessage(playerid, COLOR_GREY, " Player must be at least Wanted Level 1 !"); return 1; }
- GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You arrested %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You were arrested by %s, $%d", sendername, moneys);
- SendClientMessage(suspect,COLOR_LIGHTRED,string);
- PlayerInfo[suspect][pCash] = PlayerInfo[suspect][pCash]-moneys;
- GivePlayerMoney(suspect, -moneys);
- ClearGuns(suspect);
- ResetPlayerWeapons(suspect);
- if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
- {
- format(string, sizeof(string), "<< Officer %s arrested suspect %s >>", sendername, giveplayer);
- OOCNews(COLOR_LIGHTRED, string);
- }
- else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
- {
- format(string, sizeof(string), "<< FBI Agent %s arrested suspect %s >>", sendername, giveplayer);
- OOCNews(COLOR_LIGHTRED, string);
- }
- else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
- {
- format(string, sizeof(string), "<< Deputy %s arrested suspect %s >>", sendername, giveplayer);
- OOCNews(COLOR_LIGHTRED, string);
- }
- else if(PlayerInfo[playerid][pMember]==7||PlayerInfo[playerid][pLeader]==7)
- {
- format(string, sizeof(string), "<< Agent %s arrested suspect %s >>", sendername, giveplayer);
- OOCNews(COLOR_LIGHTRED, string);
- }
- SetPlayerInterior(suspect,6); PlayerInfo[playerid][pInt] = 6;
- SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
- PlayerCuffed[suspect] = 0;
- TogglePlayerControllable(suspect, 1);
- SetCameraBehindPlayer(suspect);
- PlayerInfo[suspect][pJailTime] = time * 60;
- if(bail == 1)
- {
- JailPrice[suspect] = bailprice;
- format(string, sizeof(string), "* You are jailed for %d seconds, Bail: $%d.", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
- SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
- }
- else
- {
- JailPrice[suspect] = 0;
- format(string, sizeof(string), "* You are jailed for %d seconds, Bail: Unavailable.", PlayerInfo[suspect][pJailTime]);
- SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
- }
- if(LoadingCashType[suspect] != 0)
- {
- LoadingCashType[suspect] = 0;
- LoadingCashTime[suspect] = 0;
- LoadedCash[suspect] = 0;
- BankRobbery = 0;
- LoadingCash = 0;
- DisablePlayerCheckpoint(suspect);
- RemovePlayerAttachedObject(suspect,bankbag);
- SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
- SetTimer("CloseTheVault", 30000, 0);
- VPass = 100000 + random(899999);
- BankRobberyTime = 2;
- SaveStuff();
- }
- PlayerInfo[suspect][pJailed] = 1;
- PlayerInfo[suspect][pArrested] += 1;
- SetPlayerFree(suspect,playerid, "Got Arrested");
- PlayerInfo[suspect][pWantedLevel] = 0;
- SetPlayerWantedLevel(suspect, 0);
- SetPlayerToTeamColor(suspect);
- WantLawyer[suspect] = 1;
- OnPlayerSave(suspect);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nobody close enough to arrest !");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/contract", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLevel] >= 2)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /contract [playerid/PartOfName] [amount]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /contract [playerid/PartOfName] [amount]");
- return 1;
- }
- moneys = strvalEx(tmp);
- if(moneys < 10000 || moneys > 100000) { SendClientMessage(playerid, COLOR_GREY, "Contract money must be at least $10,000, and not more then $100,000."); return 1; }
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SendClientMessage(playerid, COLOR_GREY, "Hitmen cannot place contracts on people."); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Contract yourself."); return 1; }
- if(PlayerInfo[giveplayerid][pHeadValue] > 500000) { SendClientMessage(playerid, COLOR_GREY, "That player has the maximum amount on their head."); return 1; }
- if(IsACop(giveplayerid) && moneys < 100000) { SendClientMessage(playerid, COLOR_GREY, "Contract price must be atleast $100,000 for Cops."); return 1; }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time."); return 1; }
- new playermoney = PlayerInfo[playerid][pCash];
- if(moneys > 0 && playermoney >= moneys)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "%s", sendername);
- strmid(PlayerInfo[giveplayerid][pContractBy], string, 0, strlen(string), 255);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-moneys;
- GivePlayerMoney(playerid, (0 - moneys));
- PlayerInfo[giveplayerid][pHeadValue] +=moneys;
- format(string, sizeof(string), "%s has placed a contract on %s, for $%d.",sendername, giveplayer, moneys);
- SendFamilyMessage(8, COLOR_YELLOW, string);
- ABroadCast(COLOR_YELLOW,string,4);
- format(string, sizeof(string), "* You placed a contract on %s, for $%d.",giveplayer, moneys);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid transaction ammount.");
- }
- }
- }
- else
- {
- format(string, sizeof(string), " %d is not an active player !", giveplayerid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You must be atleast level 2 to place a Contract !");
- }
- }
- return 1;
- }
- return 1;
- }
- dcmd_duel(playerid, params[])
- {
- new id, id2, weapon;
- if(PlayerInfo[playerid][pAdmin] >=4)
- {
- if (sscanf(params, "uii", id, id2, weapon)) SendClientMessage(playerid, COLOR_GREY, "* [Usage]: /duel [playerid/name] [playerid/name] [Weapon]");
- else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: Player One not found");
- else if (id2 == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: Player Two not found");
- else
- {
- SetPlayerPos(playerid, 1374.0948,5.5511,1008.1563);
- SetPlayerPos(id, 1413.1495,-15.9198,1000.9246);
- SetPlayerPos(id2, 1367.6084,-17.7317,1000.9219);
- SetPlayerHealth(id, 100);
- SetPlayerHealth(id2, 100);
- SetPlayerArmour(id, 100);
- SetPlayerArmour(id2, 100);
- ResetPlayerWeapons(id);
- ResetPlayerWeapons(id2);
- GivePlayerAdminGun(id, weapon);
- GivePlayerAdminGun(id2, weapon);
- GameTextForPlayer(id, "~r~DUEL ON", 2000, 4);
- GameTextForPlayer(id2, "~r~DUEL ON", 2000, 4);
- SetPlayerInterior(id, 1);
- SetPlayerInterior(id2, 1);
- SetPlayerInterior(playerid, 1);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerVirtualWorld(id, 0);
- SetPlayerVirtualWorld(id2, 0);
- return 1;
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "*You are not authorized to use that command.");
- return 1;
- }
- }
- dcmd_setbankreload(playerid, params[])
- {
- new type, string[126];
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if (sscanf(params, "d", type)) return SendClientMessage(playerid, COLOR_GREY, "* [Usage]: /setbankreload [0-2]");
- else
- {
- BankRobberyTime = type;
- format(string, sizeof(string), "AdmWarning: %s has set the bank reload to %d hours",PlayerName(playerid), type);
- ABroadCast(COLOR_YELLOW,string, 1);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You are NOT a Level 4 admin");
- return 1;
- }
- }
- dcmd_mass(playerid, params[])
- {
- new message[100], number[10], string[126];
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if (sscanf(params, "dz",number,message)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /mass [Number] [Message]");
- else
- {
- for (new i = 0; i < MAX_PLAYER_NAME; i++)
- format(string, sizeof(string), "["CB"SMS Inbox"CW"] "CB" Sender:"CW" %d",number);
- SendClientMessageToAll(COLOR_WHITE, string);
- format(string, sizeof(string), ""CB"Message:"CW" %s",message);
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
- return 1;
- }
- return 1;
- }
- dcmd_subf(playerid, params[])
- {
- new type[24], id, string[126], sub[16];
- if(IsPlayerConnected(playerid))
- {
- if (sscanf(params, "su", type, id)) SendClientMessage(playerid, COLOR_GREY, "** [Usage]: /subf [invite/uninvite] [playername/id]");
- else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "** Invalid player id/name");
- else
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pSFMember] == 0) { sub = "Default"; }
- if(PlayerInfo[playerid][pSFMember] == 1) { sub = "SWAT"; }
- if(PlayerInfo[playerid][pSFMember] == 2) { sub = "IA"; }
- if(PlayerInfo[playerid][pSFMember] == 3) { sub = "SIU"; }
- if(PlayerInfo[playerid][pSFMember] == 4) { sub = "ACU"; }
- if(PlayerInfo[playerid][pSFMember] == 5) { sub = "GHOST"; }
- if(strcmp(type, "invite", true) == 0)
- {
- if(PlayerInfo[playerid][pSFLeader] > 0)
- {
- if(PlayerInfo[playerid][pMember] == PlayerInfo[id][pMember])
- {
- if(PlayerInfo[id][pSFMember] == 0)
- {
- PlayerInfo[id][pSFMember] = PlayerInfo[playerid][pSFMember];
- format(string, sizeof(string), "** You've invited %s into the %s",PlayerName(id), sub);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "** You've been invited into the %s by %s",sub, PlayerName(id));
- SendClientMessage(id, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** That member is already in a sub-faction");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** That member is not in your faction");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You're not a sub-faction Commander");
- return 1;
- }
- }
- else if(strcmp(type, "uninvite", true) == 0)
- {
- if(PlayerInfo[playerid][pSFLeader] > 0)
- {
- if(PlayerInfo[playerid][pMember] == PlayerInfo[id][pMember])
- {
- if(PlayerInfo[id][pSFMember] == PlayerInfo[playerid][pSFMember])
- {
- PlayerInfo[id][pSFMember] = 0;
- format(string, sizeof(string), "** You've uninvited %s from the %s",PlayerName(id), sub);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "** You've been uninvited from the %s by %s",sub, PlayerName(id));
- SendClientMessage(id, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** That member is not in your sub-faction");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** That member is not in your faction");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You're not a sub-faction Commander");
- return 1;
- }
- }
- }
- else
- {
- return 1;
- }
- }
- }
- else
- {
- return 1;
- }
- return 1;
- }
- dcmd_assigncommander(playerid, params[])
- {
- new id, subf, string[126];
- if(PlayerInfo[playerid][pLeader] > 0)
- {
- if(sscanf(params, "ud", id, subf))
- {
- SendClientMessage(playerid, COLOR_GREY, "** [Usage]: /assigncommander [playerid/name] [Subf]");
- SendClientMessage(playerid, COLOR_GREY, "** 1 = SWAT, 2 = IA, 3 = SIU, 4 = ACU, 5 = GHOST");
- return 1;
- }
- else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "** Invalid player id/name");
- else
- {
- if(PlayerInfo[playerid][pLeader] > 0)
- {
- if(PlayerInfo[playerid][pMember] == PlayerInfo[id][pMember])
- {
- new sub[15];
- if(subf == 0) { sub = "Default"; }
- if(subf == 1) { sub = "SWAT"; }
- if(subf == 2) { sub = "IA"; }
- if(subf == 3) { sub = "SIU"; }
- if(subf == 4) { sub = "ACU"; }
- if(subf == 5) { sub = "GHOST"; }
- if(subf == 0)
- {
- PlayerInfo[id][pSFLeader] = 0;
- PlayerInfo[id][pSFMember] = 0;
- format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id), sub);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub, PlayerName(playerid));
- SendClientMessage(id, COLOR_LIGHTBLUE, string);
- }
- else if(subf == 1)
- {
- if(PlayerInfo[playerid][pMember] == 1)
- {
- PlayerInfo[id][pSFLeader] = 1;
- PlayerInfo[id][pSFMember] = 1;
- format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id),sub);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
- SendClientMessage(id, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You're not the Police Chief");
- return 1;
- }
- }
- else if(subf == 2)
- {
- if(PlayerInfo[playerid][pMember] == 1)
- {
- PlayerInfo[id][pSFLeader] = 2;
- PlayerInfo[id][pSFMember] = 2;
- format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id),sub);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
- SendClientMessage(id, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You're not the Police Chief");
- return 1;
- }
- }
- else if(subf == 3)
- {
- if(PlayerInfo[playerid][pMember] == 1)
- {
- PlayerInfo[id][pSFLeader] = 3;
- PlayerInfo[id][pSFMember] = 3;
- format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id),sub);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
- SendClientMessage(id, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You're not the Police Chief");
- return 1;
- }
- }
- else if(subf == 4)
- {
- if(PlayerInfo[playerid][pMember] == 2)
- {
- PlayerInfo[id][pSFLeader] = 4;
- PlayerInfo[id][pSFMember] = 4;
- format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id),sub);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
- SendClientMessage(id, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You're not the FBI Director");
- return 1;
- }
- }
- else if(subf == 5)
- {
- if(PlayerInfo[playerid][pMember] == 7)
- {
- PlayerInfo[id][pSFLeader] = 5;
- PlayerInfo[id][pSFMember] = 5;
- format(string, sizeof(string), "* You've made %s the %s Commander",PlayerName(id),sub);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
- SendClientMessage(id, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: You're not the SS Director");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* Invalid sub-faction ID");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* That member is not in your faction");
- return 1;
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "");
- return 1;
- }
- return 1;
- }
- dcmd_givedonuts(playerid, params[])
- {
- new id, donuts, reason[256], string[128];
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if (sscanf(params, "uds", id, donuts, reason)) return SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}Usage: /givedonuts [playerid/name] [amount] [reason]{7DAEFF}");
- else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "* Invalid player id/name");
- else
- {
- format(string, sizeof(string), "Info: %s has been given %d donuts by %s, reason: %s", PlayerName(id), donuts, PlayerName(playerid), reason);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- PlayerInfo[id][pDonuts] += donuts;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are not authorized to use that command.");
- return 1;
- }
- return 1;
- }
- dcmd_givedonutstoall(playerid, params[])
- {
- new donuts, reason[256], string[128];
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if (sscanf(params, "ds", donuts, reason)) return SendClientMessage(playerid, COLOR_GREY, "** [Usage]: /givedonutstoall [amount] [reason]");
- else
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- PlayerInfo[i][pDonuts] += donuts;
- }
- format(string, sizeof(string), "Info: %s has given %d donuts to everybody, reason: %s", PlayerName(playerid), donuts, reason);
- SendClientMessageToAll(COLOR_PURPLE, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You are NOT a Level 4 admin");
- return 1;
- }
- return 1;
- }
- /*dcmd_exchange(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,6,379.169189,-188.803024,1000.63))
- {
- ShowPlayerDialog(playerid,donutshopdiag1,DIALOG_STYLE_LIST,"-= Donuts Shop =-","Aspirin(Full health) [3 Donuts]\nKevlar(Full Armor) [3 Donuts]\n25g crack [4 Donuts]\n25g pot [4 Donuts]\nWeapon - Deagle [5 Donuts]\nWeapon - MP5 [6 Donuts]\nWeapon - M4 [7 Donuts]\nWeapon - AK47 [7 Donuts]\nWeapon - Spas12 [10 Donuts]\nWeapon Sniper [10 Donuts]\nMore...","Exchange","Cancel"); //Donuts shop
- }
- else { SendClientMessage(playerid, COLOR_GREY, "You are not at the Donuts Shop"); return 1; }
- }
- return 1;
- }*/
- dcmd_removedonuts(playerid, params[])
- {
- new id, donuts, reason[256], string[128];
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if (sscanf(params, "uds", id, donuts, reason)) return SendClientMessage(playerid, COLOR_GREY, "** [Usage]: /removedonuts [playerid/name] [amount] [reason]");
- else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "** Invalid player id/name");
- else if(donuts > PlayerInfo[id][pDonuts]) return SendClientMessage(playerid, COLOR_GREY, "*** This player doesn't have enoght Donuts");
- else
- {
- format(string, sizeof(string), "Info: %s has been taken %d donuts from %s, reason: %s", PlayerName(playerid), donuts, PlayerName(id), reason);
- SendClientMessageToAll(COLOR_PURPLE, string);
- PlayerInfo[id][pDonuts] -= donuts;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: You are NOT a Level 4 admin");
- return 1;
- }
- return 1;
- }
- dcmd_setaccent(playerid, params[])
- {
- new id, accent[16], string[126];
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if (sscanf(params, "us", id, accent)) return SendClientMessage(playerid, COLOR_GREY, "* {7DAEFF}USAGE:{FFFFFF} /setaccent [playerid/name] [accent]");
- else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "* Invalid player id/name");
- else
- {
- format(string, sizeof(string), "* You've set %s's accent to %s",PlayerName(id), accent);
- SendClientMessage(playerid,COLOR_GREY, string);
- strmid(Accent[id], accent, 0, strlen(accent), 255);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are not authorized to use that command.");
- return 1;
- }
- }
- dcmd_deleteaccount(playerid, params[])
- {
- new name[120], file[126],string[100];
- if(PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pBanAppealer] == 1)
- {
- if (sscanf(params, "s", name)) return SendClientMessage(playerid, COLOR_GREY, "* {7DAEFF}USAGE:{7DAEFF} /deleteaccount [Account Name]");
- format(file,sizeof(file),"%s.ini",name);
- if(!fexist(file))
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: Invalid player Account");
- return 1;
- }
- else
- {
- format(file, sizeof(file), "%s.ini", name);
- new File: hFile = fopen(file, io_write);
- if(hFile)
- {
- fremove(file);
- format(string, 256, "Info: %s has deleted account '%s'",PlayerName(playerid),name);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You are NOT an admin");
- return 1;
- }
- }
- stock ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:posx, Float:posy, Float:posz;
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- new invehicle[MAX_PLAYERS];
- new virtualworld = GetPlayerVirtualWorld(playerid);
- new interior = GetPlayerInterior(playerid);
- new vehicleid = GetPlayerVehicleID(playerid);
- new ivehicleid;
- if(vehicleid)
- {
- GetVehiclePos(vehicleid,oldposx,oldposy,oldposz);
- }
- else
- {
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- vehicleid = GetPlayerVehicleID(playerid);
- }
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(!BigEar[i])
- {
- if(GetPlayerVirtualWorld(i) == virtualworld)
- {
- if((GetPlayerInterior(i) == interior))
- {
- if(vehicleid)
- {
- if(IsPlayerInVehicle(i,vehicleid))
- {
- invehicle[i] = 1;
- }
- }
- if(!invehicle[i])
- {
- if(IsPlayerInAnyVehicle(i))
- {
- ivehicleid = GetPlayerVehicleID(i);
- GetVehiclePos(ivehicleid,posx,posy,posz);
- } else {
- GetPlayerPos(i,posx,posy,posz);
- }
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
- {
- SendClientMessage(i, col1, string);
- }
- else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
- {
- SendClientMessage(i, col2, string);
- }
- else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
- {
- SendClientMessage(i, col3, string);
- }
- else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
- {
- SendClientMessage(i, col4, string);
- }
- else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- SendClientMessage(i, col5, string);
- }
- }
- else
- {
- SendClientMessage(i, col1, string);
- }
- }
- }
- } else {
- SendClientMessage(i, col1, string);
- }
- }
- }
- }
- return 1;
- }
- public ProxDetectorS(Float:radi, playerid, targetid)
- {
- if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
- {
- new Float:posx, Float:posy, Float:posz;
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- GetPlayerPos(targetid, posx, posy, posz);
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
- public CustomPickups()
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- //foreach(Player, i)
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(GetPlayerState(i) == 1)
- {
- GetPlayerPos(i, oldposx, oldposy, oldposz);
- if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
- {
- for(new h = 0; h < sizeof(FamilyInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(i, 2.0, FamilyInfo[h][FamilySafePos][0], FamilyInfo[h][FamilySafePos][1], FamilyInfo[h][FamilySafePos][2]))
- {
- if(FamilyInfo[h][FamilySafe] == 1)
- {
- GameTextForPlayer(i, "~y~Gang Safe~n~~w~type ~r~/safehelp~w~ for more information", 5000, 3);
- }
- return 1;
- }
- }
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new sendername[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- new tmp[128];
- new string[128];
- if(PlayerInfo[playerid][pHospital] == 1 || CanTalk[playerid] == 0)
- {
- return 0;
- }
- if(PlayerInfo[playerid][pMuted] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't speak, you're muted.");
- return 0;
- }
- if(SelectChar[playerid] == 255)
- {
- new idx;
- tmp = strtok(text, idx);
- if((strcmp("next", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("next")))
- {
- switch (SelectCharID[playerid])
- {
- case 1: //Police Force
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins1[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins1[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins1[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins1[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins1[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins1[2][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins1[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins1[3][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins1[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins1[4][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins1[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = FactSkins1[5][0]; }
- else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, FactSkins1[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = FactSkins1[6][0]; }
- else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, FactSkins1[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = FactSkins1[7][0]; }
- else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, FactSkins1[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = FactSkins1[8][0]; }
- else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, FactSkins1[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = FactSkins1[9][0]; }
- else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, FactSkins1[10][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins1[10][0]; }
- }
- case 2: //FBI
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins2[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins2[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins2[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins2[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins2[2][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins2[2][0]; }
- }
- case 3: //Sheriffs Department
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins3[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins3[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins3[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins3[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins3[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins3[2][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins3[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins3[3][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins3[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins3[4][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins3[5][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins3[5][0]; }
- }
- case 4: //Fire&Ambulance
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins4[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins4[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins4[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins4[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins4[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins4[2][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins4[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins4[3][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins4[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins4[4][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins4[5][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins4[5][0]; }
- }
- case 5: //National Guards
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins5[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins5[0][0]; }
- }
- case 6: //Senate
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins6[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins6[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins6[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins6[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins6[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins6[2][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins6[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins6[3][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins6[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins6[4][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins6[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = FactSkins6[5][0]; }
- else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, FactSkins6[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = FactSkins6[6][0]; }
- else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, FactSkins6[7][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins6[7][0]; }
- }
- case 7: //SS
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins7[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins7[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins7[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins7[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins7[2][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins7[2][0]; }
- }
- case 8: //Hitman Agency
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins8[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins8[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins8[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins8[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins8[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins8[2][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins8[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins8[3][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins8[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins8[4][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins8[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = FactSkins8[5][0]; }
- else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, FactSkins8[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = FactSkins8[6][0]; }
- else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, FactSkins8[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = FactSkins8[7][0]; }
- else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, FactSkins8[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = FactSkins8[8][0]; }
- else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, FactSkins8[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = FactSkins8[9][0]; }
- else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, FactSkins8[10][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = FactSkins8[10][0]; }
- else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, FactSkins8[11][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = FactSkins8[11][0]; }
- else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, FactSkins8[12][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = FactSkins8[12][0]; }
- else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, FactSkins8[13][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = FactSkins8[13][0]; }
- else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, FactSkins8[14][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = FactSkins8[14][0]; }
- else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, FactSkins8[15][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = FactSkins8[15][0]; }
- else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, FactSkins8[16][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = FactSkins8[16][0]; }
- else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, FactSkins8[17][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = FactSkins8[17][0]; }
- else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, FactSkins8[18][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = FactSkins8[18][0]; }
- else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, FactSkins8[19][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = FactSkins8[19][0]; }
- else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, FactSkins8[20][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = FactSkins8[20][0]; }
- else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, FactSkins8[21][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = FactSkins8[21][0]; }
- else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, FactSkins8[22][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = FactSkins8[22][0]; }
- else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, FactSkins8[23][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = FactSkins8[23][0]; }
- else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, FactSkins8[24][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins8[24][0]; }
- }
- case 9: //News Reporters
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins9[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins9[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins9[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins9[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins9[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins9[2][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins9[3][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins9[3][0]; }
- }
- case 10: //Taxi Cab Company
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins10[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins10[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins10[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins10[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins10[2][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins10[2][0]; }
- }
- case 11: //Families
- {
- new family = PlayerInfo[playerid][pFMember];
- if(SelectCharPlace[playerid] < FamilyInfo[family][FamilySkins])
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin2]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin2]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin3]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin3]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin4]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin4]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin5]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin5]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin6]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin6]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin7]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin7]; }
- else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin8]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin8]; }
- else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin1]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin1]; }
- }
- else
- {
- SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin1]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin1];
- }
- }
- }
- return 0;
- }
- else if((strcmp("done", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("done")))
- {
- if(ChangeUniform[playerid] == 1) //lspd
- {
- PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
- SelectCharPlace[playerid] = 0;
- SelectCharID[playerid] = 0;
- SelectChar[playerid] = 0;
- ChangeUniform[playerid] = 0;
- TogglePlayerControllable(playerid,1);
- return 0;
- }
- PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
- SelectCharPlace[playerid] = 0;
- SelectCharID[playerid] = 0;
- SelectChar[playerid] = 0;
- SetPlayerToTeamColor(playerid);
- TogglePlayerControllable(playerid,1);
- //SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
- //SpawnPlayer(playerid);
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use 'next', or 'done'.");
- return 0;
- }
- }
- if(RegistrationStep[playerid] > 0)
- {
- if(RegistrationStep[playerid] == 1)
- {
- new idx;
- tmp = strtok(text, idx);
- if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
- {
- PlayerInfo[playerid][pSex] = 1;
- SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are a Male.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use date/month/years) (dd/mm/yyyy");
- RegistrationStep[playerid] = 2;
- return 0;
- }
- else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female")))
- {
- PlayerInfo[playerid][pSex] = 2;
- SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are a Female.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
- RegistrationStep[playerid] = 2;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "Are you a Male or Female? (Type in what you are).");
- }
- return 0;
- }
- else if(RegistrationStep[playerid] == 2)
- {
- new year, month, day;
- getdate(year, month, day);
- new DateInfo[3][20];
- split(text, DateInfo, '/');
- if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
- return 0;
- }
- new check = year - strvalEx(DateInfo[2]);
- if(check == year)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
- return 0;
- }
- if(strvalEx(DateInfo[1]) > month)
- {
- check -= 1;
- }
- else if(strvalEx(DateInfo[1]) == month && strvalEx(DateInfo[0]) > day)
- {
- check -= 1;
- }
- PlayerInfo[playerid][pAge] = check;
- format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
- SendClientMessage(playerid, COLOR_YELLOW2, string);
- SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information and welcome to Reality Gaming RolePlay. Type /faq for a list of frequently asked questions and their answers.");
- CanTalk[playerid] = 1;
- TutTime[playerid] = 1;
- PlayerInfo[playerid][pSafeSpawn] = 1;
- PlayerInfo[playerid][pTut] = 1;
- gOoc[playerid] = 0; gNewbie[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
- TogglePlayerControllable(playerid, 1);
- PlayerInfo[playerid][pHealth] = 100;
- PlayerInfo[playerid][pArmor] = 0;
- SetPlayerSpawn(playerid);
- RegistrationStep[playerid] = 0;
- PlayerInfo[playerid][pOrigin] = 1;
- return 0;
- }
- return 0;
- }
- if(MarriageCeremoney[playerid] > 0)
- {
- new idx;
- tmp = strtok(text, idx);
- if((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
- {
- if(GotProposedBy[playerid] < 999)
- {
- if(IsPlayerConnected(GotProposedBy[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Priest: %s do you take %s as your lovely Wife? (type 'yes', anything else will reject the Marriage).", giveplayer,sendername);
- SendClientMessage(GotProposedBy[playerid], COLOR_WHITE, string);
- MarriageCeremoney[GotProposedBy[playerid]] = 1;
- MarriageCeremoney[playerid] = 0;
- GotProposedBy[playerid] = 999;
- return 0;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- GotProposedBy[playerid] = 999;
- return 0;
- }
- }
- else if(ProposedTo[playerid] < 999)
- {
- if(IsPlayerConnected(ProposedTo[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
- if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
- {
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Bride.", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Groom.", giveplayer, sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
- format(string, sizeof(string), "Marriage News: We have a new lovely couple, %s & %s have been married.", sendername, giveplayer);
- OOCNews(COLOR_WHITE, string);
- }
- else if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 1)
- {
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Bride.", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Groom.", giveplayer, sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
- format(string, sizeof(string), "Marriage News: We have a new Gay couple, %s & %s have been married.", sendername, giveplayer);
- OOCNews(COLOR_WHITE, string);
- Accent[playerid] = "Gay";
- Accent[ProposedTo[playerid]] = "Gay";
- }
- else if(PlayerInfo[playerid][pSex] == 2 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
- {
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Bride.", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Groom.", giveplayer, sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
- format(string, sizeof(string), "Marriage News: We have a new Lesbian couple, %s & %s have been married.", sendername, giveplayer);
- OOCNews(COLOR_WHITE, string);
- }
- //MarriageCeremoney[ProposedTo[playerid]] = 1;
- MarriageCeremoney[ProposedTo[playerid]] = 0;
- MarriageCeremoney[playerid] = 0;
- format(string, sizeof(string), "%s", sendername);
- strmid(PlayerInfo[ProposedTo[playerid]][pMarriedTo], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s", giveplayer);
- strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100000;
- GivePlayerMoney(playerid, - 100000);
- PlayerInfo[playerid][pMarried] = 1;
- PlayerInfo[ProposedTo[playerid]][pMarried] = 1;
- ProposedTo[playerid] = 999;
- MarriageCeremoney[playerid] = 0;
- return 1;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- ProposedTo[playerid] = 999;
- return 0;
- }
- }
- }
- else
- {
- if(GotProposedBy[playerid] < 999)
- {
- if(IsPlayerConnected(GotProposedBy[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s did't want to Marry you, no 'yes' was said.",sendername);
- SendClientMessage(GotProposedBy[playerid], COLOR_YELLOW, string);
- return 0;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- GotProposedBy[playerid] = 999;
- return 0;
- }
- }
- else if(ProposedTo[playerid] < 999)
- {
- if(IsPlayerConnected(ProposedTo[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s didn't want to Marry you, no 'yes' was said.",sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_YELLOW, string);
- return 0;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- ProposedTo[playerid] = 999;
- return 0;
- }
- }
- }
- return 0;
- }
- if(LSPDClearing[playerid] != 0)
- {
- if(LSPDClearing[playerid] == 1)
- {
- new idx;
- tmp = strtok(text, idx);
- new playa;
- playa = ReturnUser(tmp);
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[playa][pWantedLevel] > 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- PlayerInfo[playa][pWantedLevel] = 0;
- SetPlayerWantedLevel(playa, 0);
- SetPlayerToTeamColor(playa);
- LSPDClearing[playerid] = 0;
- TogglePlayerControllable(playerid, 1);
- format(string, sizeof(string), "* You cleared the Records and Wanted Points of %s.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has cleared your Records and Wanted Points.", sendername);
- SendClientMessage(playa, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "HQ: %s has cleared %s's Records and Wanted Points.", sendername, giveplayer);
- SendDepartmentMessage(TEAM_BLUE_COLOR, string);
- ClearCrime(playa);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is currently not wanted !");
- LSPDClearing[playerid] = 0;
- TogglePlayerControllable(playerid, 1);
- return 0;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid ID !");
- LSPDClearing[playerid] = 0;
- TogglePlayerControllable(playerid, 1);
- return 0;
- }
- return 0;
- }
- if(LSPDClearing[playerid] == 2)
- {
- new idx;
- tmp = strtok(text, idx);
- new playa;
- playa = ReturnUser(tmp);
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[playa][pJailed] > 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- PlayerInfo[playa][pWantedLevel] = 0;
- SetPlayerWantedLevel(playa, 0);
- SetPlayerToTeamColor(playa);
- LSPDClearing[playerid] = 0;
- if (PlayerInfo[playa][pAdminJailed] == 1)
- {
- if (PlayerInfo[playa][pJailed] >= 1)
- {
- format(string, sizeof(string), "This player was jailed by an admin, you may not release them.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "AdmWarning: %s has attempted to release %s from admin jail/prison.",sendername,giveplayer);
- ABroadCast(COLOR_LIGHTRED,string, 1);
- LSPDClearing[playerid] = 0;
- TogglePlayerControllable(playerid, 1);
- PlayerInfo[playa][pAdminJailed] = 1;
- return 0;
- }
- }
- else if(PlayerInfo[playa][pJailed] == 1)
- {
- SetPlayerInterior(playa, 6);
- SetPlayerPos(playa,268.0903,77.6489,1001.0391);
- format(string, sizeof(string), "* You have cleared %s's Wanted Points and released them from Jail.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has cleared your Wanted Points and released you from Jail.", sendername);
- SendClientMessage(playa, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "HQ: %s has cleared %s's Wanted Points and released them from Jail.", sendername, giveplayer);
- SendDepartmentMessage(TEAM_BLUE_COLOR, string);
- format(string, sizeof(string), "~g~Released~n~~w~Try to be a better citizen");
- GameTextForPlayer(playa, string, 5000, 1);
- }
- else if(PlayerInfo[playa][pJailed] == 2)
- {
- SetPlayerInterior(playa, 1);
- SetPlayerPos(playa, 1773.7007,-1577.5149,1636.9736);
- SetPlayerFacingAngle( playerid, 0.0);
- format(string, sizeof(string), "* You have cleared %s's Wanted Points and released them from Prison.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has cleared your Wanted Points and released you from Prison.", sendername);
- SendClientMessage(playa, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "HQ: %s has cleared %s's Wanted Points and released them from Prison.", sendername, giveplayer);
- SendDepartmentMessage(TEAM_BLUE_COLOR, string);
- format(string, sizeof(string), "~g~Released~n~~w~Try to be a better citizen");
- GameTextForPlayer(playa, string, 5000, 1);
- }
- PlayerInfo[playa][pJailed] = 0;
- PlayerInfo[playa][pJailTime] = 0;
- TogglePlayerControllable(playerid, 1);
- ClearCrime(playa);
- SetPlayerToTeamColor(playa);
- SetCameraBehindPlayer(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is currently not in jail !");
- LSPDClearing[playerid] = 0;
- TogglePlayerControllable(playerid, 1);
- return 0;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid ID !");
- LSPDClearing[playerid] = 0;
- TogglePlayerControllable(playerid, 1);
- return 0;
- }
- return 0;
- }
- }
- if(SelectDrug[playerid] != 0)
- {
- new idx;
- tmp = strtok(text, idx);
- if((strcmp("Crack", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Crack"))) //crack
- {
- if(!IsPlayerInRangeOfPoint(playerid,3.0,2205.9199,1582.2222,999.9766)) //drug factory
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not at the Drug Factory in Blueberry !");
- return 0;
- }
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- SelectDrug[playerid] = 0;
- return 0;
- }
- new crackcprice = 1000;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-crackcprice;
- GivePlayerMoney(playerid, -crackcprice);
- Crates[playerid] = 1;
- CP[playerid] = 5;
- SetPlayerCheckpoint(playerid, 2354.2703,-1169.3293,28.0083, 3.0); //cracklab
- format(string, sizeof(string), "* You bought a Drug Crate for $%d.", crackcprice);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Crates", 5000, 1);
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- SelectDrug[playerid] = 0;
- return 0;
- }
- if((strcmp("Seeds", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Seeds"))) //pot
- {
- if(!IsPlayerInRangeOfPoint(playerid,3.0,2205.9199,1582.2222,999.9766)) //drug factory
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not at the Drug Factory in Blueberry !");
- return 0;
- }
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
- SelectDrug[playerid] = 0;
- return 0;
- }
- new potcprice = 1000;
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-potcprice;
- GivePlayerMoney(playerid, -potcprice);
- Crates[playerid] = 1;
- CP[playerid] = 6;
- SetPlayerCheckpoint(playerid, 2166.3772,-1675.3829,15.0859, 3.0); //drug house
- format(string, sizeof(string), "* You bought a Drug Crate for $%d.", potcprice);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Crates", 5000, 1);
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- SelectDrug[playerid] = 0;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED,"What type of drugs would you like to smuggle? (Type crack or seeds)");
- return 0;
- }
- }
- if(CallLawyer[playerid] == 111)
- {
- new idx;
- tmp = strtok(text, idx);
- if((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s is in Jail, and needs a Lawyer. Go to the Police Station.", sendername);
- SendJobMessage(2, TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTRED, "A message has been sent to all available Lawyers, please wait.");
- WantLawyer[playerid] = 0;
- CallLawyer[playerid] = 0;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "There is no Lawyer available to you anymore, Jail Time started.");
- WantLawyer[playerid] = 0;
- CallLawyer[playerid] = 0;
- return 0;
- }
- }
- if(TutTime[playerid] > 0)
- {
- new idx;
- tmp = strtok(text, idx);
- if((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s (%d) is requesting help, ( /gotonewbie [PlayerID] ).", sendername, playerid);
- SendHelperMessage(TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_GREEN, "A message has been sent to all available helpers, please wait.");
- TutTime[playerid] = 0;
- Reqhelp[playerid] = 1;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "There is no helper available to you anymore.");
- TutTime[playerid] = 0;
- return 0;
- }
- }
- if(TalkingLive[playerid] != 255)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pJob] == 6)
- {
- format(string, sizeof(string), "LiveNR %s: %s", sendername, text);
- OOCNews(COLOR_LIGHTGREEN, string);
- }
- else
- {
- format(string, sizeof(string), "LiveBroadcast %s: %s", sendername, text);
- OOCNews(COLOR_LIGHTGREEN, string);
- }
- return 0;
- }
- if(Mobile[playerid] != 255)
- {
- new idx;
- tmp = strtok(text, idx);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pMask] == 1)
- {
- if(strcmp(Accent[playerid],"none",true,3))
- format(string, sizeof(string), "Stranger says (cellphone): [%s Accent] %s",Accent[playerid],text);
- else
- format(string, sizeof(string), "Stranger says (cellphone): %s",text);
- }
- else
- {
- if(strcmp(Accent[playerid],"none",true,3))
- format(string, sizeof(string), "%s says (cellphone): [%s Accent] %s",sendername,Accent[playerid],text);
- else
- format(string, sizeof(string), "%s says (cellphone): %s",sendername,text);
- }
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- if(Mobile[playerid] == 914)
- {
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Paramedic Dispatch: Sorry I don't understand.");
- return 0;
- }
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Paramedic Dispatch: We have alerted all units in the area.");
- format(string,sizeof(string),"911 Call - Caller: %s",PlayerName(playerid));
- SendParaMessage(COLOR_DOC,string);
- format(string,sizeof(string),"Situation: %s",text);
- SendParaMessage(COLOR_DOC,string);
- SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
- Mobile[playerid] = 999;
- SetAllFiremanCheckpoint(playerid);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 5);
- return 0;
- }
- if(Mobile[playerid] == 913)
- {
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: Sorry I don't understand.");
- return 0;
- }
- if((strcmp("no", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("no")))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: We have alerted all units in the area, a police officer should be with you shortly.");
- format(string,sizeof(string),"911 Call - Caller: %s",PlayerName(playerid));
- SendCopMessage(COLOR_DBLUE,string);
- format(string,sizeof(string),"Crime: %s, Suspect: Unknown",CallDescription[playerid]);
- SendCopMessage(COLOR_DBLUE,string);
- SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
- Mobile[playerid] = 999;
- if(PlayerInfo[playerid][pWantedLevel] < 6)
- {
- Called911[playerid] = 1;
- SetAllCopCheckpoint(playerid);
- }
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 5);
- return 0;
- }
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: We have alerted all units in the area, a police officer should be with you shortly.");
- format(string,sizeof(string),"911 Call - Caller: %s",PlayerName(playerid));
- SendCopMessage(COLOR_DBLUE,string);
- format(string,sizeof(string),"Crime: %s, Suspect: %s",CallDescription[playerid],text);
- SendCopMessage(COLOR_DBLUE,string);
- SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
- Mobile[playerid] = 999;
- if(PlayerInfo[playerid][pWantedLevel] != 6)
- {
- Called911[playerid] = 1;
- SetAllCopCheckpoint(playerid);
- }
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 5);
- return 0;
- }
- if(Mobile[playerid] == 912)
- {
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: Sorry I don't understand.");
- return 0;
- }
- strmid(CallDescription[playerid], text, 0, strlen(text), 255);
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: If you know the suspect's name or what he/she looks like, say it now or just say no.");
- Mobile[playerid] = 913;
- return 0;
- }
- if(Mobile[playerid] == 911)
- {
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) 911 Operator: Sorry I don't understand, police or paramedic?");
- return 0;
- }
- else if((strcmp("police", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("police")))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) 911 Operator: I am patching you to Police HQ, please hold.");
- Mobile[playerid] = 912;
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: Please give me a short description of the crime.");
- return 0;
- }
- else if((strcmp("paramedic", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("paramedic")))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) 911 Operator: I am patching you to Paramedic HQ, please hold.");
- Mobile[playerid] = 914;
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Paramedic Dispatch: Please give me a short description of the Incident.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) 911 Operator: Sorry I don't understand, police or paramedic?");
- return 0;
- }
- }
- if(IsPlayerConnected(Mobile[playerid]))
- {
- if(Mobile[Mobile[playerid]] == playerid)
- {
- if (PlayerInfo[playerid][pSex] == 1)
- {
- if(strcmp(Accent[playerid],"none",true,3))
- format(string, sizeof(string), "[Male Voice] (cellphone): [%s Accent] %s",Accent[playerid],text);
- else
- format(string, sizeof(string), "[Male Voice] (cellphone): %s",text);
- if(PlayerInfo[Mobile[playerid]][pSpeakPhone] == 1)
- {
- ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- }
- else
- {
- SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
- }
- }
- else if (PlayerInfo[playerid][pSex] == 2)
- {
- if(strcmp(Accent[playerid],"none",true,3))
- format(string, sizeof(string), "[Female Voice] (cellphone): [%s Accent] %s",Accent[playerid],text);
- else
- format(string, sizeof(string), "[Female Voice] (cellphone): %s",text);
- if(PlayerInfo[Mobile[playerid]][pSpeakPhone] == 1)
- {
- ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- }
- else
- {
- SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," Theres nobody there !");
- }
- return 0;
- }
- if(realchat)
- {
- if(gPlayerLogged[playerid] == 0)
- {
- return 0;
- }
- new str[160];
- GetPlayerName(playerid, str, MAX_PLAYER_NAME);
- for (new i = 0; i < MAX_PLAYER_NAME; i++)
- if (str[i] == '_')
- str[i] = ' ';
- else if(PlayerInfo[playerid][pMask] == 1)
- {
- if(strcmp(Accent[playerid],"none",true,3))
- {
- format(string, sizeof(string), "Stranger says: [%s Accent] %s",Accent[playerid],text);
- }
- else
- {
- format(string, sizeof(string), "Stranger says: %s",text);
- }
- }
- else
- {
- if(strcmp(Accent[playerid],"none",true,3))
- {
- format(string, sizeof(string), "%s says: [%s Accent] %s",str,Accent[playerid],text);
- }
- else
- {
- format(string, sizeof(string), "%s says: %s",str,text);
- }
- }
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- return 0;
- }
- return 1;
- }
- public ClosePDDoor()
- {
- if(DoorOpened == 1)
- {
- MoveDynamicObject(door, 222.09, 70.57, 1004.00, 3);
- DoorOpened = 0;
- }
- return 1;
- }
- public FixHour(hour)
- {
- hour = timeshift+hour;
- if(hour < 0)
- {
- hour = hour+24;
- }
- else if(hour > 23)
- {
- hour = hour-24;
- }
- shifthour = hour;
- return 1;
- }
- public AddsOn()
- {
- adds=1;
- return 1;
- }
- public StopAni(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(StopAniTimer[playerid])
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- if(PlayerPosition[playerid][PosX] == X && PlayerPosition[playerid][PosY] == Y && PlayerPosition[playerid][PosZ] == Z)
- {
- StopAniTimer[playerid] = 0;
- ClearAnimations(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, "Animations have been cleared.");
- }
- else
- {
- StopAniTimer[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREY, " You have moved from your position !");
- }
- }
- return 1;
- }
- public FixCar(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(FixCarTimer[playerid])
- {
- FixCarTimer[playerid] = 0;
- }
- return 1;
- }
- public ChangePass(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(ChangePassTimer[playerid])
- {
- ChangePassTimer[playerid] = 0;
- }
- return 1;
- }
- public SellCar(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(SellCarTimer[playerid])
- {
- SellCarTimer[playerid] = 0;
- }
- return 1;
- }
- public UseDrugs(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(UseDrugsTimer[playerid])
- {
- UseDrugsTimer[playerid] = 0;
- }
- return 1;
- }
- public UseBM(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(UseBMTimer[playerid]) { UseBMTimer[playerid] = 0; BMPurchased[playerid] = 0; }
- return 1;
- }
- public SellGun(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(SellGunTimer[playerid])
- {
- SellGunTimer[playerid] = 0;
- }
- return 1;
- }
- public UseTazer(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(UseTazerTimer[playerid])
- {
- UseTazerTimer[playerid] = 0;
- }
- return 1;
- }
- public UseDrink(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(UseDrinkTimer[playerid])
- {
- UseDrinkTimer[playerid] = 0;
- }
- return 1;
- }
- public ApplyNPCAnims()
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerNPC(i))
- {
- new sendername[MAX_PLAYER_NAME];
- GetPlayerName(i, sendername, sizeof(sendername));
- if(!strcmp(sendername, "Janet", true))
- {
- new rand = random(3);
- if(rand == 0) { LoopingAnim(i,"DANCING","DAN_Down_A",4.0,1,0,0,0,0); }
- else if(rand == 1) { LoopingAnim(i,"DANCING","DAN_Left_A",4.0,1,0,0,0,0); }
- else if(rand == 2) { LoopingAnim(i,"DANCING","DAN_Loop_A",4.0,1,0,0,0,0); }
- }
- else if(!strcmp(sendername, "Denise", true))
- {
- new rand = random(3);
- if(rand == 0) { LoopingAnim(i,"DANCING","DAN_Down_A",4.0,1,0,0,0,0); }
- else if(rand == 1) { LoopingAnim(i,"DANCING","DAN_Left_A",4.0,1,0,0,0,0); }
- else if(rand == 2) { LoopingAnim(i,"DANCING","DAN_Loop_A",4.0,1,0,0,0,0); }
- }
- else if(!strcmp(sendername, "Boxer", true))
- {
- LoopingAnim(i,"GYMNASIUM","GYMshadowbox",4.0,1,0,0,0,0); //shadow boxing
- }
- }
- }
- return 1;
- }
- public UseNewbie(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(UseNewbieTimer[playerid])
- {
- UseNewbieTimer[playerid] = 0;
- }
- return 1;
- }
- public UseAccept(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(UseAcceptTimer[playerid])
- {
- UseAcceptTimer[playerid] = 0;
- }
- return 1;
- }
- public UseAdmCmd(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0;
- if(UseAdmCmdTimer[playerid])
- {
- UseAdmCmdTimer[playerid] = 0;
- }
- return 1;
- }
- public Delete(objectid)
- {
- DestroyDynamicObject(objectid);
- return 1;
- }
- public DeleteGun(objectid)
- {
- DestroyDynamicObject(objectid);
- new f = 100+1;
- for(new a = 0; a < sizeof(ObjCoords); a++)
- {
- f = a;
- break;
- }
- ObjCoords[f][0] = 0.0;
- ObjCoords[f][1] = 0.0;
- ObjCoords[f][2] = 0.0;
- return 1;
- }
- public StartLotto(biz)
- {
- new string[128];
- new randlotto = random(15);
- new randlotto2 = random(15);
- new randlotto3 = random(15);
- while(randlotto == 0) randlotto = random(15);
- while(randlotto2 == 0 || randlotto2 == randlotto) randlotto2 = random(15);
- while(randlotto3 == 0 || randlotto3 == randlotto2 || randlotto3 == randlotto) randlotto3 = random(15);
- new bizname[25];
- strmid(bizname, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
- format(string, sizeof(string), "Lottery: %s winning numbers are %d, %d and %d",bizname, randlotto, randlotto2, randlotto3);
- SendClientMessageToAll(COLOR_RED, string);
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pPlayLotto] == biz)
- {
- new giveplayer[MAX_PLAYER_NAME];
- new threenumberwin = BizInfo[biz][bLottoJackpot] / 100 * 75;
- new twonumberwin = BizInfo[biz][bLottoJackpot] / 100 * 25;
- new lotto = PlayerInfo[i][pLottoNr];
- new lotto2 = PlayerInfo[i][pLottoNr2];
- new lotto3 = PlayerInfo[i][pLottoNr3];
- new lotto4 = PlayerInfo[i][pLottoNr4];
- new lotto5 = PlayerInfo[i][pLottoNr5];
- new lotto6 = PlayerInfo[i][pLottoNr6];
- new takejackpot31 = 0;
- new takejackpot32 = 0;
- new takejackpot21 = 0;
- new takejackpot22 = 0;
- if(((randlotto == lotto || randlotto2 == lotto || randlotto3 == lotto) && (randlotto == lotto2 || randlotto2 == lotto2 || randlotto3 == lotto2) && (randlotto == lotto3 || randlotto2 == lotto3 || randlotto3 == lotto3)))
- {
- PlayerInfo[i][pCash] += threenumberwin;
- GivePlayerMoney(i, threenumberwin);
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Lottery: %s has won $%d with 3 numbers",giveplayer, threenumberwin);
- SendClientMessageToAll(COLOR_RED, string);
- takejackpot31 += threenumberwin;
- }
- if(((randlotto == lotto4 || randlotto2 == lotto4 || randlotto3 == lotto4) && (randlotto == lotto5 || randlotto2 == lotto5 || randlotto3 == lotto5) && (randlotto == lotto6 || randlotto2 == lotto6 || randlotto3 == lotto6)))
- {
- PlayerInfo[i][pCash] += threenumberwin;
- GivePlayerMoney(i, threenumberwin);
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Lottery: %s has won $%d with 3 numbers",giveplayer, threenumberwin);
- SendClientMessageToAll(COLOR_RED, string);
- if(takejackpot31 == 0) { takejackpot32 += threenumberwin; }
- }
- if(((randlotto == lotto || randlotto2 == lotto || randlotto3 == lotto) && (randlotto == lotto2 || randlotto2 == lotto2 || randlotto3 == lotto2)) || ((randlotto == lotto || randlotto2 == lotto || randlotto3 == lotto) && (randlotto == lotto3 || randlotto2 == lotto3 || randlotto3 == lotto3)) || ((randlotto == lotto3 || randlotto2 == lotto3 || randlotto3 == lotto3) && (randlotto == lotto2 || randlotto2 == lotto2 || randlotto3 == lotto2)))
- {
- if(!((randlotto == lotto || randlotto2 == lotto || randlotto3 == lotto) && (randlotto == lotto2 || randlotto2 == lotto2 || randlotto3 == lotto3) && (randlotto == lotto3 || randlotto2 == lotto3 || randlotto3 == lotto3)))
- {
- PlayerInfo[i][pCash] += twonumberwin;
- GivePlayerMoney(i, twonumberwin);
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Lottery: %s has won $%d with 2 numbers",giveplayer, twonumberwin);
- SendClientMessageToAll(COLOR_RED, string);
- takejackpot21 += twonumberwin;
- }
- }
- if(((randlotto == lotto4 || randlotto2 == lotto4 || randlotto3 == lotto4) && (randlotto == lotto5 || randlotto2 == lotto5 || randlotto3 == lotto5)) || ((randlotto == lotto4 || randlotto2 == lotto4 || randlotto3 == lotto4) && (randlotto == lotto6 || randlotto2 == lotto6 || randlotto3 == lotto6)) || ((randlotto == lotto6 || randlotto2 == lotto6 || randlotto3 == lotto6) && (randlotto == lotto5 || randlotto2 == lotto5 || randlotto3 == lotto5)))
- {
- if(!((randlotto == lotto4 || randlotto2 == lotto4 || randlotto3 == lotto4) && (randlotto == lotto5 || randlotto2 == lotto5 || randlotto3 == lotto5) && (randlotto == lotto6 || randlotto2 == lotto6 || randlotto3 == lotto6)))
- {
- PlayerInfo[i][pCash] += twonumberwin;
- GivePlayerMoney(i, twonumberwin);
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Lottery: %s has won $%d with 2 numbers",giveplayer, twonumberwin);
- SendClientMessageToAll(COLOR_RED, string);
- if(takejackpot21 == 0) { takejackpot22 += twonumberwin; }
- }
- }
- PlayerInfo[i][pLottoNr] = 0;
- PlayerInfo[i][pLottoNr2] = 0;
- PlayerInfo[i][pLottoNr3] = 0;
- PlayerInfo[i][pLottoNr4] = 0;
- PlayerInfo[i][pLottoNr5] = 0;
- PlayerInfo[i][pLottoNr6] = 0;
- PlayerInfo[i][pPlayLotto] = 999;
- new takejackpot = takejackpot21 + takejackpot22 + takejackpot31 + takejackpot32;
- BizInfo[biz][bLottoJackpot] -= takejackpot;
- }
- }
- }
- BizInfo[biz][bLottoTime] = 1;
- BizInfo[biz][bLottoJackpot] += BizInfo[biz][bNewLottoJackpot];
- BizInfo[biz][bNewLottoJackpot] = 0;
- format(string, sizeof(string), "Lottery: %s new jackpot is %d",bizname, BizInfo[biz][bLottoJackpot]);
- SendClientMessageToAll(COLOR_RED, string);
- return 1;
- }
- stock GetPlayer2DZone(playerid, zone[], len)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- for(new i = 0; i != sizeof(gSAZones); i++ )
- {
- if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
- {
- return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
- }
- }
- for(new i = 0; i != sizeof(SanAndreasZones); i++ )
- {
- if(x >= SanAndreasZones[i][Zone_Area][0] && x <= SanAndreasZones[i][Zone_Area][3] && y >= SanAndreasZones[i][Zone_Area][1] && y <= SanAndreasZones[i][Zone_Area][4])
- {
- return format(zone, len, SanAndreasZones[i][Zone_Name], 0);
- }
- }
- return 0;
- }
- //===========================[Zone Functions]===================================
- stock GetPlayer3DZone(playerid, zone[], len)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- for(new i = 0; i != sizeof(gSAZones); i++ )
- {
- if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5])
- {
- return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
- }
- }
- for(new i = 0; i != sizeof(SanAndreasZones); i++ ){
- if(x >= SanAndreasZones[i][Zone_Area][0] && x <= SanAndreasZones[i][Zone_Area][3] && y >= SanAndreasZones[i][Zone_Area][1] && y <= SanAndreasZones[i][Zone_Area][4] && z >= SanAndreasZones[i][Zone_Area][2] && z <= SanAndreasZones[i][Zone_Area][5]){return format(zone, len, SanAndreasZones[i][Zone_Name], 0);
- }
- }
- return 0;
- }
- //==============================================================================
- stock GetVehicle3DZone(vehicleid, zone[], len)
- {
- new Float:x, Float:y, Float:z;
- GetVehiclePos(vehicleid, x, y, z);
- for(new i = 0; i != sizeof(gSAZones); i++ )
- {
- if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5])
- {
- return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
- }
- }
- return 0;
- }
- //==============================================================================
- stock IsPlayerInZone(playerid, zone[])
- {
- new TmpZone[MAX_ZONE_NAME];
- GetPlayer3DZone(playerid, TmpZone, sizeof(TmpZone));
- for(new i = 0; i != sizeof(gSAZones); i++) { if(strfind(TmpZone, zone, true) != -1) return 1; }
- return 0;
- }
- public AntiSpam(playerid)
- {
- RecentlyShot[playerid] = 0;
- return 1;
- }
- /*enum sInfo
- {
- sCreated,
- Float:sX,
- Float:sY,
- Float:sZ,
- sObject,
- };
- new SpikeInfo[MAX_SPIKESTRIPS][sInfo];*/
- //RoadBlock
- enum rInfo
- {
- sCreated,
- Float:sX,
- Float:sY,
- Float:sZ,
- sObject,
- };
- new Roadblocks[MAX_ROADBLOCKS][rInfo];
- stock CreateRoadblock(Object,Float:x,Float:y,Float:z,Float:Angle)
- {
- for(new i = 0; i < sizeof(Roadblocks); i++)
- {
- if(Roadblocks[i][sCreated] == 0)
- {
- Roadblocks[i][sCreated] = 1;
- Roadblocks[i][sX] = x;
- Roadblocks[i][sY] = y;
- Roadblocks[i][sZ] = z-0.7;
- Roadblocks[i][sObject] = CreateDynamicObject(Object, x, y, z-0.9, 0, 0, Angle);
- return 1;
- }
- }
- return 0;
- }
- stock DeleteAllRoadblocks(playerid)
- {
- for(new i = 0; i < sizeof(Roadblocks); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 100, Roadblocks[i][sX], Roadblocks[i][sY], Roadblocks[i][sZ]))
- {
- if(Roadblocks[i][sCreated] == 1)
- {
- Roadblocks[i][sCreated] = 0;
- Roadblocks[i][sX] = 0.0;
- Roadblocks[i][sY] = 0.0;
- Roadblocks[i][sZ] = 0.0;
- DestroyDynamicObject(Roadblocks[i][sObject]);
- }
- }
- }
- return 0;
- }
- stock DeleteClosestRoadblock(playerid)
- {
- for(new i = 0; i < sizeof(Roadblocks); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, Roadblocks[i][sX], Roadblocks[i][sY], Roadblocks[i][sZ]))
- {
- if(Roadblocks[i][sCreated] == 1)
- {
- Roadblocks[i][sCreated] = 0;
- Roadblocks[i][sX] = 0.0;
- Roadblocks[i][sY] = 0.0;
- Roadblocks[i][sZ] = 0.0;
- DestroyDynamicObject(Roadblocks[i][sObject]);
- return 1;
- }
- }
- }
- return 0;
- }
- stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
- {
- for(new i = 0; i < sizeof(SpikeInfo); i++)
- {
- if(SpikeInfo[i][sCreated] == 0)
- {
- SpikeInfo[i][sCreated]=1;
- SpikeInfo[i][sX]=x;
- SpikeInfo[i][sY]=y;
- SpikeInfo[i][sZ]=z-0.7;
- SpikeInfo[i][sObject] = CreateDynamicObject(2899, x, y, z-0.9, 0, 0, Angle-90, 0, -1, -1, 100.0);
- return 1;
- }
- }
- return 0;
- }
- stock DeleteAllStrip()
- {
- for(new i = 0; i < sizeof(SpikeInfo); i++)
- {
- if(SpikeInfo[i][sCreated] == 1)
- {
- SpikeInfo[i][sCreated]=0;
- SpikeInfo[i][sX]=0.0;
- SpikeInfo[i][sY]=0.0;
- SpikeInfo[i][sZ]=0.0;
- DestroyDynamicObject(SpikeInfo[i][sObject]);
- }
- }
- return 0;
- }
- stock DeleteClosestStrip(playerid)
- {
- for(new i = 0; i < sizeof(SpikeInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
- {
- if(SpikeInfo[i][sCreated] == 1)
- {
- new string[256];
- new location[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
- format(string, sizeof(string), "HQ: %s %s has deleted a spike strip at %s.", GetPlayerRank(playerid),PlayerName(playerid), location);
- SendRadioMessage(1, TEAM_BLUE_COLOR, string);
- SendRadioMessage(2, TEAM_BLUE_COLOR, string);
- SendRadioMessage(3, TEAM_BLUE_COLOR, string);
- SendRadioMessage(5, TEAM_BLUE_COLOR, string);
- SpikeInfo[i][sCreated]=0;
- SpikeInfo[i][sX]=0.0;
- SpikeInfo[i][sY]=0.0;
- SpikeInfo[i][sZ]=0.0;
- DestroyDynamicObject(SpikeInfo[i][sObject]);
- return 1;
- }
- }
- }
- return 0;
- }
- encode_tires(tires1, tires2, tires3, tires4) {
- return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);
- }
- /*----------------------------------------------------------------------------*
- Function:
- sscanf
- Params:
- string[] - String to extract parameters from.
- format[] - Parameter types to get.
- {Float,_}:... - Data return variables.
- Return:
- 0 - Successful, not 0 - fail.
- Notes:
- A fail is either insufficient variables to store the data or insufficient
- data for the format string - excess data is disgarded.
- A string in the middle of the input data is extracted as a single word, a
- string at the end of the data collects all remaining text.
- The format codes are:
- c - A character.
- d, i - An integer.
- h, x - A hex number (e.g. a colour).
- f - A float.
- s - A string.
- z - An optional string.
- pX - An additional delimiter where X is another character.
- '' - Encloses a litteral string to locate.
- u - User, takes a name, part of a name or an id and returns the id if they're connected.
- Now has IsNumeric integrated into the code.
- Added additional delimiters in the form of all whitespace and an
- optioanlly specified one in the format string.
- -*----------------------------------------------------------------------------*/
- public WeedTimer()
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(HasPlantWeed[i] != 0)
- {
- WeedTime[i] ++;
- if(WeedTime[i] == 60)
- {
- WeedGrams[i] ++;
- WeedTime[i] = 0;
- WeedMin[i] ++;
- }
- if(WeedMin[i] == 70)
- {
- DestroyObject(Weed[i]);
- HasPlantWeed[i] = 0;
- WeedGrams[i] = 0;
- WeedTime[i] = 0;
- }
- }
- }
- return 1;
- }
- public WeedPickup(playerid)
- {
- new string[256];
- new Float: X, Float: Y, Float: Z;
- GetPlayerPos(playerid, X, Y, Z);
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- if(X == WeedStopPos[playerid][0] && Y == WeedStopPos[playerid][1] && Z == WeedStopPos[playerid][2])
- {
- if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick weed.");
- format(string, sizeof(string), "* %s picks a weed plant.", name);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pPot] += WeedGrams[WeedForPlayer[playerid]];
- format(string, sizeof(string), "~w~FOUND %d GRAMS OF POT", WeedGrams[WeedForPlayer[playerid]]);
- GameTextForPlayer(playerid, string, 3000, 3);
- DestroyObject(Weed[WeedForPlayer[playerid]]);
- WeedGrams[WeedForPlayer[playerid]] = 0;
- WeedTime[WeedForPlayer[playerid]] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, " You have moved from your weed picking position, picking failed!");
- }
- HasPlantWeed[WeedForPlayer[playerid]] = 0;
- WeedForPlayer[playerid] = 999;
- WeedIsPicked[playerid] = 0;
- return 1;
- }
- public Random(min, max)
- {
- new a = random(max - min) + min;
- return a;
- }
Add Comment
Please, Sign In to add comment