Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //GIsland By Guest123 (c) 2013
- //
- #include <a_samp>//tnx to sa-mp
- #include <zcmd> //tnx to zeek
- #include <streamer>//tnx to Incognito
- #pragma tabsize 0 // zzz
- //=============defined===========================================
- #define DialogF 4576 // you can change this if your server bug with dialog
- #define COLOR_BRIGHTRED 0xE60000FF
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_PURPLE 0x9900FFAA
- #define COLOR_BROWN 0x993300AA
- #define COLOR_ORANGE 0xFF9933AA
- #define COLOUR_PINK 0xFF00FFFF
- #define COLOUR_PURPLE 0x800080FF
- #define COLOUR_BLACK 0x000000FF
- #define COLOR_CYAN 0x99FFFFAA
- #define COLOR_TAN 0xFFFFCCAA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_KHAKI 0x999900AA
- #define COLOR_LIME 0x99FF00AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_TURQ 0x00A3C0AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_DARKRED 0xAA993333
- #define COLOR_VIOLET 0x9955DEEE
- #define NICE_BLUE 0xa0d3ffAA
- #define GREEN 0x21DD00FF
- #define RED 0xE60000FF
- #define ADMIN_RED 0xFB0000FF
- #define YELLOW 0xFFFF00FF
- #define ORANGE 0xF97804FF
- #define LIGHTRED 0xFF8080FF
- #define LIGHTBLUE 0x00C2ECFF
- #define PURPLE 0xB360FDFF
- #define PLAYER_COLOR 0xFFFFFFFF
- #define LIGHTGREEN 0x38FF06FF
- #define DARKPINK 0xE100E1FF
- #define DARKGREEN 0x008040FF
- #define ANNOUNCEMENT 0x00CACAFB
- #define COLOR_SYSTEM 0xEFEFF7AA
- #define NICESKY 0x99FFFFAA
- #define GRAY 0xCECECEFF
- #define red 0xE60000FF
- #define yellow 0xFFFF00FF
- #define COLOR_ANTIHAX 0xE60000FF
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_VIOLET 0x9955DEEE
- #define COLOR_LIGHTRED 0xFF99AADD
- #define COLOR_SEAGREEN 0x00EEADDF
- #define COLOR_GRAYWHITE 0xEEEEFFC4
- #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
- #define COLOR_GREENISHGOLD 0xCCFFDD56
- #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
- #define COLOR_NEUTRALBLUE 0xABCDEF01
- #define COLOR_LIGHTCYAN 0xAAFFCC33
- #define COLOR_LEMON 0xDDDD2357
- #define COLOR_MEDIUMBLUE 0x63AFF00A
- #define COLOR_NEUTRAL 0xABCDEF97
- #define COLOR_NEUTRALGREEN 0x81CFAB00
- #define COLOR_DARKGREEN 0x12900BBF
- #define COLOR_DARKBLUE 0x300FFAAB
- #define COLOR_BLUEGREEN 0x46BBAA00
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BROWN 0x993300AA
- #define COLOR_CYAN 0x99FFFFAA
- #define COLOR_TAN 0xFFFFCCAA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_KHAKI 0x999900AA
- #define COLOR_LIME 0x99FF00AA
- #define COLOR_SYSTEM 0xEFEFF7AA
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GILE 0x924161FF
- // ADDED 6-2-2012 Embed 0.3c
- #define COL_EASY "{FFF1AF}"
- #define COL_WHITE "{FFFFFF}"
- #define COL_BLACK "{0E0101}"
- #define COL_GREY "{C3C3C3}"
- #define COL_GREEN "{6EF83C}"
- #define COL_RED "{F81414}"
- #define COL_YELLOW "{F3FF02}"
- #define COL_ORANGE "{FFAF00}"
- #define COL_LIME "{B7FF00}"
- #define ORAN "{FF5500}"
- #define GREE "{94ED40}"
- #define BLUE "{4097ED}"
- #define W "{FFFFFF}"
- #define GREY "{C3C3C3}"
- #define COL_CYAN "{00FFEE}"
- #define COL_LIGHTBLUE "{00C0FF}"
- #define COL_BLUE "{0049FF}"
- #define COL_MAGENTA "{F300FF}"
- #define COL_VIOLET "{B700FF}"
- #define COL_PINK "{FF00EA}"
- #define COL_MARONE "{A90202}"
- #define COL_CMD "{B8FF02}"
- #define COL_PARAM "{3FCD02}"
- #define COL_SERVER "{AFE7FF}"
- #define COL_VALUE "{A3E4FF}"
- #define COL_RULE "{F9E8B7}"
- #define COL_RULE2 "{FBDF89}"
- #define COL_RWHITE "{FFFFFF}"
- #define COL_LGREEN "{C9FFAB}"
- #define COL_LRED "{FFA1A1}"
- #define COL_LRED2 "{C77D87}"
- #define ADMINFS_MESSAGE_COLOR 0xFF444499
- #define PM_INCOMING_COLOR 0xFFFF22AA
- #define PM_OUTGOING_COLOR 0xFFCC2299
- /*
- (C)2013
- GGGGGGGGGGGGGGGGGGGGGGGG GG GG GGGGGGGGGGGGG GGGGGGG GGGGGGGGGGGGGGGGGGG
- GG GG GG GG GG GG
- GG GG GG GG GG GG
- GG GG GG GG GG GG
- GG GG GG GG GG GG
- GGGGGGGGGGGGGGGGGGGGGGGG GG GG GGGGGGGGGGGGG GG GG
- GG GG GG GG GG GG GG
- GG GG GG GG GG GG GG
- GG GG GG GG GG GG GG
- GGGGGGGGGGGGGGGGGG GG GG GG GG GG GG
- GGGGGGGGGGGGGGGGGG GG GGGGGGGGGGGGGGGGGGG GGGGGGGGGGGGG GGGGGGGG GG 123
- */
- new
- SuperPower[MAX_PLAYERS];
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #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)
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Admin Island By Guest123 Loaded");
- print("--------------------------------------\n");
- Create3DTextLabel("{B7FF00}get in to buy\n{FFFFFF}Superpower", 0x008080FF, 3933.9521,7047.5146,12.8733, 40.0, 0, 0);
- CreateDynamicCP(3933.5000,7047.4087,11.5582+0.4, 1.0);//superpower
- CreateDynamicCP(3928.3694,7004.1636,15.2896-0.9, 1.0);//drinks
- CreateDynamicObject(19376, 3896.152587, 7067.757812, 11.663183, 0.000000, 90.000000, 0.000000);
- CreateDynamicObject(19450, 3880.467773, 7075.007812, 9.963175, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18765, 3885.330322, 7075.101074, 6.446872, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3906.336914, 6874.632324, 10.470684, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(739, 3922.720703, 6958.213867, -3.071799, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3868.837158, 7056.904785, 6.030786, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(739, 3886.421630, 6983.674804, 3.628458, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(740, 3916.976318, 7051.419921, -29.582838, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(708, 3899.555175, 7043.199707, 8.958831, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18751, 3911.152832, 7027.870117, 7.958878, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18751, 3911.152832, 7006.668945, 8.758884, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(708, 3871.141845, 6985.745117, 24.124078, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(7979, 3962.604980, 6920.159667, 15.073265, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(18228, 3868.837158, 6986.904785, 6.030786, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 3868.837158, 7016.904785, 6.030786, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 3909.837158, 7056.904785, 6.030786, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(18228, 3898.837158, 6840.904785, 6.030786, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(19450, 3900.132080, 7075.213378, 9.946868, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19376, 3896.152587, 7077.357421, 11.663183, 0.000000, 90.000000, 0.000000);
- CreateDynamicObject(19450, 3900.132080, 7065.612792, 9.946868, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18649, 3881.412353, 7072.856445, 8.046867, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1645, 3890.542968, 7079.708007, 12.119426, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(1645, 3892.542968, 7079.708007, 12.119426, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(1609, 3921.208984, 7027.319335, 13.786706, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1637, 3921.111816, 7021.955566, 14.511653, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19128, 3886.476562, 7080.145996, 11.749116, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19128, 3886.476562, 7076.246093, 11.749116, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19128, 3882.476562, 7080.149902, 11.749116, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(10766, 3962.823242, 6963.056640, 9.927944, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18765, 3930.395019, 7048.404296, 9.277166, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18765, 3930.395019, 7054.404296, 9.277166, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18765, 3920.395019, 7054.404296, 9.277166, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18765, 3895.330322, 7075.101074, 6.446872, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19450, 3880.467773, 7065.408203, 9.963175, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18765, 3920.395019, 7046.404296, 9.277166, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18765, 3910.496093, 7046.404296, 9.277166, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3906.336914, 6964.632324, 10.470684, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 3906.336914, 6914.632324, 10.470684, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 4003.161132, 7053.759277, 2.855803, 0.000000, 0.000000, 70.000000);
- CreateDynamicObject(18228, 4003.161132, 7023.759277, 2.855803, 0.000000, 0.000000, 70.000000);
- CreateDynamicObject(18228, 4003.161132, 6993.759277, 2.855803, 0.000000, 0.000000, 70.000000);
- CreateDynamicObject(18228, 4003.161132, 6963.759277, 2.855803, 0.000000, 0.000000, 70.000000);
- CreateDynamicObject(18228, 4003.161132, 6963.759277, 12.855804, 0.000000, 0.000000, 70.000000);
- CreateDynamicObject(19376, 3895.531494, 7065.405761, 8.877243, 0.000000, 90.000000, 0.000000);
- CreateDynamicObject(18228, 4003.161132, 6933.759277, 5.855803, 0.000000, 0.000000, 70.000000);
- CreateDynamicObject(18228, 4003.161132, 6903.759277, 5.855803, 0.000000, 0.000000, 70.000000);
- CreateDynamicObject(19450, 3885.871826, 7080.088378, 9.946868, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(19376, 3884.802246, 7077.357421, 11.663183, 0.000000, 90.000000, 0.000000);
- CreateDynamicObject(19128, 3882.476562, 7076.145996, 11.749116, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19431, 3881.141357, 7079.954101, 9.946868, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(19376, 3885.753173, 7067.757812, 11.643180, 0.000000, 90.000000, 0.000000);
- CreateDynamicObject(18648, 3899.659423, 7072.891601, 7.946865, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19450, 3895.470458, 7080.088378, 9.946868, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 4003.161132, 6854.259765, 5.855803, 0.000000, 0.000000, 70.000000);
- CreateDynamicObject(18228, 4003.161132, 6873.759277, 5.855803, 0.000000, 0.000000, 70.000000);
- CreateDynamicObject(19376, 3885.031005, 7065.405761, 8.877243, 0.000000, 90.000000, 0.000000);
- CreateDynamicObject(19128, 3890.415771, 7076.246582, 11.749114, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19128, 3890.415771, 7080.146484, 11.749114, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19128, 3890.415771, 7072.246582, 11.749114, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19128, 3886.415771, 7072.246582, 11.749114, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(19128, 3882.415771, 7072.246582, 11.749114, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1641, 3889.968750, 7065.510742, 11.729117, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(3267, 3881.155761, 7081.332031, 11.236557, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(3593, 3928.093017, 7052.062988, 12.177164, 0.000000, 0.000000, -90.000000);
- CreateDynamicObject(1025, 3926.009521, 7050.855468, 11.977163, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(1025, 3926.009521, 7053.254882, 11.977163, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(1025, 3930.109619, 7053.254882, 11.977163, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(1025, 3930.109619, 7050.854492, 11.977163, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(1010, 3926.773437, 7052.062988, 12.583029, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(3267, 3928.281005, 7051.952636, 11.256845, 0.000000, 0.000000, -90.000000);
- CreateDynamicObject(1016, 3924.979492, 7051.980957, 12.497245, 0.000000, 0.000000, -90.000000);
- CreateDynamicObject(3461, 3881.125244, 7081.374023, 12.819432, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(3461, 3920.340820, 7024.458007, 17.510089, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3913.699951, 6890.208496, 9.168780, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3915.966552, 6934.701660, 4.420173, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3926.047851, 6900.091796, 1.122084, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 4005.827636, 6855.205566, 1.564278, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 4000.495117, 6908.136718, -1.637786, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 4000.495117, 6878.136718, -1.637786, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 4000.495117, 6848.136718, -1.637786, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 4000.495117, 6818.136718, -1.637786, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 3885.811279, 6955.847656, 5.465898, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3865.534179, 6942.634765, 6.242496, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3820.024902, 6924.856445, -0.598994, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3883.180175, 6907.135253, -2.208491, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3901.900634, 6855.564453, 2.103995, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3884.182617, 6859.702636, 2.631325, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3884.383544, 6874.688476, -3.878170, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3786.369140, 6897.225097, -21.496034, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3784.922119, 6898.096191, -3.910963, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18228, 3774.571044, 6869.906738, -3.937015, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 3799.895019, 6845.703125, -3.022330, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 3841.406250, 6830.990722, -5.565233, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 3835.800537, 6836.468261, -9.743188, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(18228, 3830.732666, 6828.148925, -1.292073, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(1730, 3881.306640, 7079.229003, 8.946869, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1767, 3889.798583, 7073.509765, 8.946869, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1767, 3890.819091, 7069.752441, 8.963177, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(980, 3962.848876, 6918.198242, 12.078866, 90.000000, 90.000000, 90.000000);
- CreateDynamicObject(18765, 3925.262695, 7007.398925, 11.789644, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(18765, 3925.262695, 6997.398925, 11.789644, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(16151, 3926.471923, 7006.456054, 14.589640, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(19377, 3925.054687, 7007.489746, 15.289644, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(3860, 3931.412109, 7047.473144, 12.777166, 0.000000, 0.000000, 90.000000);
- return 1;
- }
- //auto off superpowers
- public OnPlayerConnect(playerid)
- {
- SuperPower[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- SuperPower[playerid] = 0;
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 3933.5000,7047.4087,11.5582+0.4))
- {
- ShowPlayerDialog(playerid, DialogF, DIALOG_STYLE_LIST, "Buy A Superpower", "Trade<$9999999>(superpower)\nSell<+250000>", "Select", "Cancel");
- }
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 3928.3694,7004.1636,15.2896-0.9))
- {
- ShowPlayerDialog(playerid, DialogF+1, DIALOG_STYLE_LIST, "Buy A Drinks", "Drunk$191\nWine$192\nSprunk$193\nWeed$194\nCiggy$195\nStop Drunk(free)", "Select", "Cancel");
- }
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(!IsPlayerAdmin(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 200.0 ,3933.9521,7047.5146,12.8733))
- {
- SetTimerEx("Kill",1000,0,"i",playerid);
- return 1;
- }
- }
- return 1;
- }
- CMD:gisland(playerid,params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- SetPlayerPos(playerid,3933.9521,7047.5146,12.8733);
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case DialogF: // The case = our dialog id
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // If he selects the first option
- {
- if(GetPlayerMoney(playerid) < 9999999) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this superpower!");
- SendClientMessage(playerid, -1, "you have buy superpower in 5 mins >:O");
- SuperPower[playerid] = 1;
- SetPlayerHealth(playerid,999999.0);//can't die while using superpower lol
- SetPlayerArmour(playerid,999999.0);//can't die while using superpower lol
- SendClientMessage(playerid, -1, "Superpower has been {00ffff}enabled{ffffff}!");
- SetPlayerAttachedObject( playerid, 4, 2976, 15, 0.000000, 0.100000, -0.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SetPlayerAttachedObject( playerid, 2, 18688, 5, -0.300000, 0.200000, -1.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SetTimerEx("cancle1",90000,0,"i",playerid);
- }
- case 1: // If the user selects the second option
- {
- if(SuperPower[playerid] == 1)
- {
- GivePlayerMoney(playerid,25000);
- SuperPower[playerid] = 0;
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
- }
- else return SendClientMessage(playerid,-1,"you Must Buy superpower to sell it !");
- }
- }
- }
- }
- case DialogF+1:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // If he selects the first option
- {
- if(GetPlayerMoney(playerid) < 191) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
- SetPlayerDrunkLevel(playerid,50000);
- SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Drunk For $191 ");
- SetTimerEx("StopDrunk",10000,0,"i",playerid);
- }
- case 1: // If the user selects the second option
- {
- if(GetPlayerMoney(playerid) < 192) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
- SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Wine For $192");
- }
- case 2: // If the user selects the second option
- {
- if(GetPlayerMoney(playerid) < 193) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
- SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Sprunk For $193");
- }
- case 3: // If the user selects the second option
- {
- if(GetPlayerMoney(playerid) < 194) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
- SetPlayerHoldingObject(playerid, 3027,2,0.0,0.1,0.0,90.0,180.0,90.0);
- SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Weed For $194");
- }
- case 4: // If the user selects the second option
- {
- if(GetPlayerMoney(playerid) < 195) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
- SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Ciggy For $195");
- }
- case 5: // If the user selects the second option
- {
- SetPlayerDrunkLevel(playerid,0);
- SendClientMessage(playerid, -1, "{FFFFFF}You Are Not Drunk Anymore !!");
- }
- }
- }
- }
- }
- return 1;
- }
- forward cancle1(playerid);
- public cancle1(playerid)
- {
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
- SendClientMessage(playerid, -1, "your trade was disable (out date)");
- SuperPower[playerid] = 0;
- }
- forward StopDrunk(playerid);
- public StopDrunk(playerid)
- {
- SetPlayerDrunkLevel(playerid,0);
- }
- forward Kill(playerid);
- public Kill(playerid)
- {
- SetPlayerHealth(playerid,0);
- SetPlayerArmour(playerid,0);
- SendClientMessage(playerid,-1,"you was killed by Ghost At Admin Island");
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SuperPower[playerid] = 0;
- return 1;
- }
- CMD:superon(playerid,params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- SuperPower[playerid] = 1;
- SetPlayerHealth(playerid,999999.0);//can't die while using superpower lol
- SetPlayerArmour(playerid,999999.0);//can't die while using superpower lol
- SendClientMessage(playerid, -1, "Superpower has been {00ffff}enabled{ffffff}!");
- SetPlayerAttachedObject( playerid, 4, 2976, 15, 0.000000, 0.100000, -0.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SetPlayerAttachedObject( playerid, 2, 18688, 5, -0.300000, 0.200000, -1.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- }
- else
- SendClientMessage(playerid,-1,"You Got A Superpower !");
- SetPlayerAttachedObject( playerid, 4, 2976, 15, 0.000000, 0.100000, -0.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SetPlayerAttachedObject( playerid, 2, 18688, 5, -0.300000, 0.200000, -1.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- return 1;
- }
- CMD:superoff(playerid,params[])
- {
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
- SuperPower[playerid] = 0;
- SetPlayerHealth(playerid,100.0);
- SetPlayerArmour(playerid,100.0);
- SendClientMessage(playerid, -1, "Superpower has been {00ffff}disable{ffffff}!");
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if (PRESSED(KEY_JUMP))
- {
- if(SuperPower[playerid] == 1)
- {
- new Float:x , Float:y , Float:z ,Float:x1 , Float:y1 , Float:x2 , Float:y2;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerPos(playerid,x1,y1,z);
- GetPlayerPos(playerid,x2,y2,z);
- GetXYInFrontOfPlayer(playerid, x,y, 20);
- GetXYInFrontOfPlayer(playerid, x,y, 40);
- GetXYInFrontOfPlayer(playerid, x,y, 60);
- SetPlayerPos(playerid, x, y, z+1.0);
- CreateExplosion(x, y, z, 0, 10.0);
- CreateExplosion(x, y, z, 1, 10.0);
- CreateExplosion(x, y, z, 2, 10.0);
- CreateExplosion(x, y, z, 3, 10.0);
- CreateExplosion(x, y, z, 4, 10.0);
- CreateExplosion(x, y, z, 4, 10.0);
- CreateExplosion(x, y, z, 5, 10.0);
- CreateExplosion(x, y, z, 6, 10.0);
- CreateExplosion(x, y, z, 7, 10.0);
- CreateExplosion(x, y, z, 8, 10.0);
- CreateExplosion(x, y, z, 9, 10.0);
- CreateExplosion(x, y, z, 10, 10.0);
- CreateExplosion(x, y, z, 11, 10.0);
- CreateExplosion(x, y, z, 12, 10.0);
- CreateExplosion(x, y, z, 13, 10.0);
- }
- }
- return 1;
- }
- /*
- Tnx To Aryzal
- */
- stock GetXYInFrontOfPlayer(playerid, &Float:x2, &Float:y2, Float:distance)
- {
- new Float:a;
- GetPlayerPos(playerid, x2, y2, a);
- GetPlayerFacingAngle(playerid, a);
- if(GetPlayerVehicleID(playerid))
- {
- GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
- }
- x2 += (distance * floatsin(-a, degrees));
- y2 += (distance * floatcos(-a, degrees));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement