Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This Filterscript is scripted by : Mark_Samp
- //This is Tuxedo Filterscript
- //Do Not Re-Release This Script Without My Permission.
- //DO Not Claim This Script As Your Own.
- //Do Not Sell This Script.
- //Don't Remove The Credits.
- //This Script Is Made From Scratch.
- //Version 2.0
- //http://forum.sa-mp.com/showthread.php?t=606589
- //********************************
- //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
- //* Tuxedo Suit *
- //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
- //********************************
- //Filterscript Define
- #define FILTERSCRIPT
- // Include files
- #include <a_samp>
- #include <streamer>
- #include <zcmd>
- #include <sscanf>
- #include <YSI\y_ini>
- #include <mSelection>
- //==============================================================================
- //Defines
- #define SUIT 1000
- #define TDialog 2000
- #define WDialog 3000
- #define UDialog 4000
- #define CDialog 5000
- #define GDialog 6000
- #define RDialog 7000
- #define FDialog 8000
- #define KDialog 9000
- #define CUSTOM_SPORT_MENU 1
- #define CUSTOM_BIKE_MENU 2
- #define CUSTOM_HELICOPTER_MENU 3
- #define CUSTOM_BOAT_MENU 4
- #define CUSTOM_OFFROAD_MENU 5
- //News
- new Tuxedo[MAX_PLAYERS];
- new God[MAX_PLAYERS];
- new Kangaroo[MAX_PLAYERS];
- new Flash[MAX_PLAYERS];
- new Slow[MAX_PLAYERS];
- new Average[MAX_PLAYERS];
- new High[MAX_PLAYERS];
- new Armored[MAX_PLAYERS];
- new Invisible[MAX_PLAYERS];
- new Nothing[MAX_PLAYERS];
- new HealthIncrease[MAX_PLAYERS];
- new HealthDecrease[MAX_PLAYERS];
- new DeliverTimer[MAX_PLAYERS];
- new DeliverVehicleTimer[MAX_PLAYERS];
- new DetectionTimer[MAX_PLAYERS];
- new DetectionVehicleTimer[MAX_PLAYERS];
- new DetectionHealthTimer[MAX_PLAYERS];
- new Text3D:TuxedoLabel[MAX_PLAYERS];
- //==============================================================================
- //Color Defines
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_BLUE 0x2641FEAA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_CYAN 0x1DBCEBFF
- #define COLOR_GREEN 0x008000AA
- #define COLOR_ORANGE 0xFF8000FF
- //==============================================================================
- //Filterscript Start
- public OnFilterScriptInit()
- {
- print("\n-----------------------------------------");
- print(" Tuxedo FilterScript Loaded! ");
- print("-------------------------------------------\n");
- return 1;
- }
- //Filterscript Exit
- public OnFilterScriptExit()
- {
- print("\n-----------------------------------------");
- print(" Tuxedo FilterScript UnLoaded! ");
- print("-------------------------------------------\n");
- return 1;
- }
- //==============================================================================
- public OnPlayerConnect(playerid)
- {
- Tuxedo[playerid] = 0;
- God[playerid] = 0;
- Kangaroo[playerid] = 0;
- Flash[playerid] = 0;
- Armored[playerid] = 0;
- Invisible[playerid] = 0;
- HealthIncrease[playerid] = 0;
- HealthDecrease[playerid] = 0;
- DeliverTimer[playerid] = 0;
- DetectionTimer[playerid] = 0;
- HealthDecrease[playerid] = 0;
- Slow[playerid] = 0;
- Average[playerid] = 0;
- High[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- Tuxedo[playerid] = 0;
- God[playerid] = 0;
- Kangaroo[playerid] = 0;
- Flash[playerid] = 0;
- Armored[playerid] = 0;
- Invisible[playerid] = 0;
- HealthIncrease[playerid] = 0;
- HealthDecrease[playerid] = 0;
- DeliverTimer[playerid] = 0;
- DetectionTimer[playerid] = 0;
- HealthDecrease[playerid] = 0;
- Slow[playerid] = 0;
- Average[playerid] = 0;
- High[playerid] = 0;
- return 1;
- }
- //==============================================================================
- stock PlayerName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- //==========================RCON ADMIN COMMAND==================================
- CMD:maketuxedo(playerid, params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[125],ID;
- if(sscanf(params,"u",ID)) return SendClientMessage(playerid, COLOR_GREY,"[USAGE]: /maketuxedo [ID/PartOfName]");
- if(Tuxedo[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {5A6A6E}This Player already got the Tuxedo Suit");
- if(!IsPlayerConnected(ID) && ID != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {5A6A6E}Player is not connected");
- }
- else
- {
- format(string, sizeof(string),"{0D0DD6}Administrator {13D61A}'%s' {0D0DD6}has given you the {F50505}Tuxedo Suit!!", PlayerName(playerid));
- SendClientMessage(ID, COLOR_PURPLE, string);
- PlayerPlaySound(ID,1057,0.0,0.0,0.0);
- TuxedoLabel[ID] = Create3DTextLabel("Tuxedo Suit",0xFF000099,0,0,0,50,-1,1);
- Attach3DTextLabelToPlayer(TuxedoLabel[ID], ID, 0,0,0);
- Tuxedo[ID] = 1;
- God[ID] = 0;
- Kangaroo[ID] = 0;
- Flash[ID] = 0;
- Armored[ID] = 0;
- Invisible[ID] = 0;
- DeliverTimer[ID] = 0;
- DetectionTimer[ID] = 0;
- HealthDecrease[ID] = 0;
- Slow[ID] = 0;
- Average[ID] = 0;
- High[ID] = 0;
- ShowPlayerDialog(ID, RDialog, DIALOG_STYLE_MSGBOX,"{FF8000}Tuxedo","{FF0000}[Tuxedo System]:\n {FF0000}-{00FF40}The Tuxedo Suit is typically the most Powerfull Suit Ever , Who holds this Suit will have very special abilities \n {FF0000}-{00FF40}This Suit comes with a special watch that controls the Suit Completely but remember with great power comes great responsibility\n {FF0000}-{00FF40}It has been designed from very special materials so use it Carefully!{FF0080}[[/tuxedo]]","Done","");
- }
- }
- else return SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {0D0DD6}You need to be RCON admin to use this command");
- return 1;
- }
- CMD:taketuxedo(playerid, params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[125],ID;
- if(sscanf(params,"u",ID)) return SendClientMessage(playerid, COLOR_GREY,"[USAGE]: /taketuxedo [ID/PartOfName]");
- if(Tuxedo[playerid] == 0) return SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {5A6A6E}This player doesn't have the Tuxedo Suit");
- if(!IsPlayerConnected(ID) && ID != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {5A6A6E}Player is not connected");
- }
- else
- {
- format(string, sizeof(string),"{0D0DD6}Administrator {13D61A}'%s' {0D0DD6}has taken from you the {F50505}Tuxedo Suit!!", PlayerName(playerid));
- SendClientMessage(ID, COLOR_RED, string);
- Delete3DTextLabel(TuxedoLabel[ID]);
- PlayerPlaySound(ID,1057,0.0,0.0,0.0);
- Tuxedo[ID] = 0;
- God[ID] = 0;
- Kangaroo[ID] = 0;
- Flash[ID] = 0;
- Armored[ID] = 0;
- Invisible[ID] = 0;
- DeliverTimer[ID] = 0;
- DetectionTimer[ID] = 0;
- HealthDecrease[ID] = 0;
- Slow[ID] = 0;
- Average[ID] = 0;
- High[ID] = 0;
- SetGravity(0.008);
- }
- }
- else return SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {0D0DD6}You need to be RCON admin to use this command");
- return 1;
- }
- //==============================================================================
- CMD:tuxedo(playerid, params[])
- {
- if(Tuxedo[playerid] == 1)
- {
- ShowPlayerDialog(playerid, SUIT, DIALOG_STYLE_LIST, "Tuxedo Suit", "UnStoppable\nKangaroo\nFlash\nTeleporter\nArmory\nInvisibilty\nStorm\nUniform\nTransport\nGravity\n", "Choose", "Cancel");
- ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,0,0,0,0);
- }
- else return SendClientMessage(playerid, COLOR_GREY, "You don't own any Tuxedo Suit");
- return 1;
- }
- //=============================================================================
- public OnPlayerText(playerid, text[])
- {
- new string[128],pName[24];
- if(text[0] == '@')
- {
- if(Tuxedo[playerid] == 1)
- {
- GetPlayerName(playerid,pName,24);
- format(string,sizeof(string),"{FA0A0A}[Tuxedo]{FF8000}%s:{01FE0E}%s",pName,text[1]);
- for(new i;i < MAX_PLAYERS;i++)
- {
- if(Tuxedo[i] == 1)
- {
- SendClientMessage(i,COLOR_YELLOW,string);
- }
- }
- return 0;
- }
- }
- return 1;
- }
- //=============================================================================
- public OnPlayerSpawn(playerid)
- {
- if(Tuxedo[playerid] == 1)
- {
- Delete3DTextLabel(TuxedoLabel[playerid]);
- TuxedoLabel[playerid] = Create3DTextLabel("Tuxedo Suit",0xFF000099,0,0,0,50,-1,1);
- Attach3DTextLabelToPlayer(TuxedoLabel[playerid], playerid, 0,0,0);
- }
- }
- //==========================Kangaroo============================================
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(Kangaroo[playerid] == 1)
- {
- if(newkeys == KEY_JUMP)
- {
- new Float:MJump[3];
- GetPlayerVelocity(playerid, MJump[0], MJump[1], MJump[2]);
- SetPlayerVelocity(playerid, MJump[0], MJump[1], MJump[2]+5);
- PlayerPlaySound(playerid, 1190, 0.0, 0.0, 0.0);
- }
- }
- if(Flash[playerid] == 1)
- {
- if (newkeys == KEY_SPRINT)
- {
- if(Slow[playerid] == 1)
- {
- new Float:pAng;
- new Float:X, Float:Y, Float:Z;
- GetPlayerFacingAngle(playerid, pAng);
- GetPlayerVelocity(playerid, X, Y, Z);
- SetPlayerVelocity(playerid, floatsin(-pAng, degrees) * 1.5, floatcos(pAng, degrees) * 1.5 , (Z*2)+0.01);
- }
- if(Average[playerid] == 1)
- {
- new Float:pAng;
- new Float:X, Float:Y, Float:Z;
- GetPlayerFacingAngle(playerid, pAng);
- GetPlayerVelocity(playerid, X, Y, Z);
- SetPlayerVelocity(playerid, floatsin(-pAng, degrees) * 1.8, floatcos(pAng, degrees) * 1.8 , (Z*2)+0.03);
- }
- if(High[playerid] == 1)
- {
- new Float:pAng;
- new Float:X, Float:Y, Float:Z;
- GetPlayerFacingAngle(playerid, pAng);
- GetPlayerVelocity(playerid, X, Y, Z);
- SetPlayerVelocity(playerid, floatsin(-pAng, degrees) * 1.12, floatcos(pAng, degrees) * 1.12 , (Z*2)+0.09);
- }
- }
- }
- return 1;
- }
- //==============================================================================
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == SUIT)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(God[playerid] == 0)
- {
- God[playerid] = 1;
- SetPlayerHealth(playerid,100000);
- SetPlayerArmour(playerid,100000);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}UnStoppable Mode {0AF71E}Enabled");
- ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
- }
- else
- {
- God[playerid] = 0;
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}UnStoppable Mode {F00E0E}Disabled");
- ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
- }
- }
- case 1:
- {
- if(Kangaroo[playerid] == 0)
- {
- Kangaroo[playerid] = 1;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Kangaroo Mode {0AF71E}Enabled");
- ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
- }
- else
- {
- Kangaroo[playerid] = 0;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Kangaroo Mode {F00E0E}Disabled");
- ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
- }
- }
- case 2:
- {
- if(Tuxedo[playerid] == 1)
- {
- Flash[playerid] = 1;
- ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, FDialog, DIALOG_STYLE_LIST, "Flash", "Slow Velocity\nAverage Velocity\nHigh Velocity\n{FA0A0A}Turn Off\n", "Choose", "Back");
- }
- }
- case 3:
- {
- if(Tuxedo[playerid] == 1)
- {
- ShowPlayerDialog(playerid, TDialog, DIALOG_STYLE_LIST, "Tuxedo Teleport", "{3EFA0A}Los Santos\n{3EFA0A}Bank\n{3EFA0A}Airport\n{3EFA0A}Skate\n{3EFA0A}Jefferson\n{3EFA0A}Ganton\n{3EFA0A}Staduim\n", "Choose", "Back");
- }
- }
- case 4:
- {
- if(Armored[playerid] == 0)
- {
- Armored[playerid] = 1;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Armory Mode {0AF71E}Enabled");
- ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
- PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
- GivePlayerWeapon(playerid,8,60000);
- GivePlayerWeapon(playerid,24,60000);
- GivePlayerWeapon(playerid,27,60000);
- GivePlayerWeapon(playerid,31,60000);
- GivePlayerWeapon(playerid,34,60000);
- GivePlayerWeapon(playerid,39,60000);
- GivePlayerWeapon(playerid,41,60000);
- GivePlayerWeapon(playerid,44,60000);
- GivePlayerWeapon(playerid,46,60000);
- }
- else
- {
- Armored[playerid] = 0;
- ResetPlayerWeapons(playerid);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Armory Mode {F00E0E}Disabled");
- ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- case 5:
- {
- if(IsPlayerInAnyVehicle(playerid) || GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(Invisible[playerid] == 0)
- {
- new int1 = GetPlayerInterior(playerid);
- Invisible[playerid] = 1;
- LinkVehicleToInterior(GetPlayerVehicleID(playerid),int1+1);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Invisibilty Mode {0AF71E}Enabled");
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- }
- else
- {
- new int1 = GetPlayerInterior(playerid);
- Invisible[playerid] = 0;
- LinkVehicleToInterior(GetPlayerVehicleID(playerid),int1);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Invisibilty Mode {F00E0E}Disabled");
- PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}You must be in a vehicle");
- }
- case 6:
- {
- if(Tuxedo[playerid] == 1)
- {
- ShowPlayerDialog(playerid, WDialog, DIALOG_STYLE_LIST, "Tuxedo Weather", "{FFFF00}Sunny\n{FFFF00}Cloudy\n{FFFF00}Rainy\n{FFFF00}Foggy\n{FFFF00}SandStorm\n{FFFF00}Greenish\n", "Choose", "Cancel");
- }
- }
- case 7:
- {
- if(Tuxedo[playerid] == 1)
- {
- ShowPlayerDialog(playerid, UDialog, DIALOG_STYLE_LIST, "Tuxedo Uniform", "{FF8000}Tuxedo Suit\n{FF8000}Tuxedo Suit {FF0000}2\n{FF8000}Tuxedo Suit {FF0000}3\n{FF8000}Tuxedo Suit {FF0000}4\n{FF8000}Tuxedo Suit {FF0000}5\n{FF8000}Tuxedo Girl\n", "Choose", "Back");
- }
- }
- case 8:
- {
- if(Tuxedo[playerid] == 1)
- {
- ShowPlayerDialog(playerid, CDialog, DIALOG_STYLE_LIST, "Transport", "{FA0000}[{41F016}Sport{FA0000}]\n{FA0000}[{41F016}Bikes{FA0000}]\n{FA0000}[{41F016}Helicopters{FA0000}]\n{FA0000}[{41F016}Boats{FA0000}]\n{FA0000}[{41F016}OffRoad{FA0000}]\n", "Choose", "Back");
- }
- }
- case 9:
- {
- if(Tuxedo[playerid] == 1)
- {
- ShowPlayerDialog(playerid, GDialog, DIALOG_STYLE_LIST, "Gravity System", "{0AF2C0}Moon {FF0000}Gravity\n{0AF2C0}Stable {FF0000}Gravity\n{0AF2C0}Mars {FF0000}Gravity\n", "Choose", "Back");
- }
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}Operation Canceled");
- }
- if(dialogid == RDialog)
- {
- if(response)
- {
- Nothing[playerid] = 0;
- }
- return 1;
- }
- if(dialogid == WDialog)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{C2A2DA}Weather is now {FFFF00}Sunny {C2A2DA}Sir.");
- SetPlayerWeather(playerid, 1);
- }
- case 1:
- {
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}}[Tuxedo]:{C2A2DA}Weather is now {0000FF}Cloudy {C2A2DA}Sir.");
- SetPlayerWeather(playerid, 4);
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{C2A2DA}Weather is now {00FFFF}Rainy {C2A2DA}Sir.");
- SetPlayerWeather(playerid, 8);
- }
- case 3:
- {
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{C2A2DA}Weather is now {808080}Foggy {C2A2DA}Sir.");
- SetPlayerWeather(playerid, 9);
- }
- case 4:
- {
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{C2A2DA}Weather is now {FFFF80}SandStorm {C2A2DA}Sir.");
- SetPlayerWeather(playerid, 19);
- }
- case 5:
- {
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{008000}Weather is now {008000}Greenish {C2A2DA}Sir.");
- SetPlayerWeather(playerid, 20);
- }
- }
- return 1;
- }
- }
- if(dialogid == TDialog)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerPos(playerid, 1607.6703,-1721.9176,13.5469);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{3412DE}You have been teleported to {21F505}Los Santos Sir.");
- }
- case 1:
- {
- SetPlayerPos(playerid, 1442.8214,-1027.5615,23.8281);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{3412DE}You have been teleported to {21F505}Bank Sir.");
- }
- case 2:
- {
- SetPlayerPos(playerid, 1962.0656,-2173.3665,13.4496);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{3412DE}You have been teleported to {21F505}Los Santos Airport Sir.");
- }
- case 3:
- {
- SetPlayerPos(playerid, 1879.9102,-1392.4220,13.5703);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{3412DE}You have been teleported to {21F505}Skate Sir.");
- }
- case 4:
- {
- SetPlayerPos(playerid, 2220.4182,-1144.1377,25.8002);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{3412DE}You have been teleported to {21F505}Jefferson Sir.");
- }
- case 5:
- {
- SetPlayerPos(playerid, 2223.5178,-1725.3273,13.5625);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{3412DE}You have been teleported to {21F505}Ganton Sir.");
- }
- case 6:
- {
- SetPlayerPos(playerid, 2685.4214,-1690.5787,9.4332);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{3412DE}You have been teleported to {21F505}Staduim Sir.");
- }
- }
- }
- else ShowPlayerDialog(playerid, SUIT, DIALOG_STYLE_LIST, "Tuxedo Suit", "UnStoppable\nKangaroo\nFlash\nTeleporter\nArmory\nInvisibilty\nStorm\nUniform\nTransport\nGravity\n", "Choose", "Cancel");
- }
- if(dialogid == UDialog)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerSkin(playerid, 163);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{F5B507}You have changed your Suit.");
- }
- case 1:
- {
- SetPlayerSkin(playerid, 164);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{F5B507}You have changed your Suit.");
- }
- case 2:
- {
- SetPlayerSkin(playerid, 165);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{F5B507}You have changed your Suit.");
- }
- case 3:
- {
- SetPlayerSkin(playerid, 166);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{F5B507}You have changed your Suit.");
- }
- case 4:
- {
- SetPlayerSkin(playerid, 171);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{F5B507}You have changed your Suit.");
- }
- case 5:
- {
- SetPlayerSkin(playerid, 172);
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{F5B507}You have changed your Suit.");
- }
- }
- }
- else ShowPlayerDialog(playerid, SUIT, DIALOG_STYLE_LIST, "Tuxedo Suit", "UnStoppable\nKangaroo\nFlash\nTeleporter\nArmory\nInvisibilty\nStorm\nUniform\nTransport\nGravity\n", "Choose", "Cancel");
- }
- if(dialogid == CDialog)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(Tuxedo[playerid] == 1)
- {
- new cars[20];
- cars[0] = 602;
- cars[1] = 429;
- cars[2] = 402;
- cars[3] = 541;
- cars[4] = 415;
- cars[5] = 587;
- cars[6] = 558;
- cars[7] = 565;
- cars[8] = 494;
- cars[9] = 411;
- cars[10] = 559;
- cars[11] = 603;
- cars[12] = 506;
- cars[13] = 451;
- cars[14] = 477;
- ShowModelSelectionMenuEx(playerid, cars, 15, "Select Your Sport Vehicle", CUSTOM_SPORT_MENU, -20.0, 0.0, -75.0 , 1.0);
- }
- }
- case 1:
- {
- if(Tuxedo[playerid] == 1)
- {
- new bikes[20];
- bikes[0] = 448;
- bikes[1] = 461;
- bikes[2] = 462;
- bikes[3] = 463;
- bikes[4] = 468;
- bikes[5] = 471;
- bikes[6] = 521;
- bikes[7] = 522;
- bikes[8] = 523;
- bikes[9] = 581;
- bikes[10] = 586;
- bikes[11] = 481;
- bikes[12] = 509;
- bikes[13] = 510;
- ShowModelSelectionMenuEx(playerid, bikes, 14, "Select Your Bike", CUSTOM_BIKE_MENU, -20.0, 0.0, -75.0 , 1.0);
- }
- }
- case 2:
- {
- if(Tuxedo[playerid] == 1)
- {
- new helicopters[15];
- helicopters[0] = 417;
- helicopters[1] = 425;
- helicopters[2] = 447;
- helicopters[3] = 469;
- helicopters[4] = 487;
- helicopters[5] = 488;
- helicopters[6] = 497;
- helicopters[7] = 548;
- helicopters[8] = 563;
- ShowModelSelectionMenuEx(playerid, helicopters, 9, "Select Your Helicopter", CUSTOM_HELICOPTER_MENU, -20.0, 0.0, -75.0 , 1.0);
- } return 1;
- }
- case 3:
- {
- if(Tuxedo[playerid] == 1)
- {
- new boats[15];
- boats[0] = 430;
- boats[1] = 446;
- boats[2] = 452;
- boats[3] = 453;
- boats[4] = 454;
- boats[5] = 472;
- boats[6] = 473;
- boats[7] = 484;
- boats[8] = 493;
- boats[9] = 595;
- ShowModelSelectionMenuEx(playerid, boats, 9, "Select Your Boat", CUSTOM_BOAT_MENU, -20.0, 0.0, -75.0 , 1.0);
- } return 1;
- }
- case 4:
- {
- if(Tuxedo[playerid] == 1)
- {
- new offroad[15];
- offroad[0] = 568;
- offroad[1] = 424;
- offroad[2] = 579;
- offroad[3] = 400;
- offroad[4] = 500;
- offroad[5] = 444;
- offroad[6] = 556;
- offroad[7] = 557;
- offroad[8] = 470;
- offroad[9] = 489;
- offroad[10] = 505;
- offroad[11] = 495;
- ShowModelSelectionMenuEx(playerid, offroad, 12, "Select Your OffRoad Vehicle", CUSTOM_OFFROAD_MENU, -20.0, 0.0, -75.0 , 1.0);
- } return 1;
- }
- }
- }
- else ShowPlayerDialog(playerid, SUIT, DIALOG_STYLE_LIST, "Tuxedo Suit", "UnStoppable\nKangaroo\nFlash\nTeleporter\nArmory\nInvisibilty\nStorm\nUniform\nTransport\nGravity\n", "Choose", "Cancel");
- }
- if(dialogid == GDialog)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- SetGravity(0.001);
- SendClientMessage(playerid, COLOR_GREY, "{FA0A0A}[Tuxedo]:{E010BA}You have changed the Gravity.");
- }
- case 1:
- {
- SetGravity(0.008);
- SendClientMessage(playerid, COLOR_GREY, "{FA0A0A}[Tuxedo]:{E010BA}You have changed the Gravity.");
- }
- case 2:
- {
- SetGravity(0.080);
- SendClientMessage(playerid, COLOR_GREY, "{FA0A0A}[Tuxedo]:{E010BA}You have changed the Gravity.");
- }
- }
- }
- else ShowPlayerDialog(playerid, SUIT, DIALOG_STYLE_LIST, "Tuxedo Suit", "UnStoppable\nKangaroo\nFlash\nTeleporter\nArmory\nInvisibilty\nStorm\nUniform\nTransport\nGravity\n", "Choose", "Cancel");
- }
- if(dialogid == FDialog)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- Slow[playerid] = 1;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Flash Mode {0AF71E}Enabled {FFFF00}[{00FFFF}Velocity = {FF0080}Slow]{FFFF00}");
- }
- case 1:
- {
- Average[playerid] = 1;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Flash Mode {0AF71E}Enabled {FFFF00}[{00FFFF}Velocity = {00FF00}Average]{FFFF00}");
- }
- case 2:
- {
- High[playerid] = 1;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Flash Mode {0AF71E}Enabled {FFFF00}[{00FFFF}Velocity = {FF0000}High]{FFFF00}");
- }
- case 3:
- {
- Flash[playerid] = 0;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Flash Mode {F00E0E}Disabled");
- }
- }
- }
- else ShowPlayerDialog(playerid, SUIT, DIALOG_STYLE_LIST, "Tuxedo Suit", "UnStoppable\nKangaroo\nFlash\nTeleporter\nArmory\nInvisibilty\nStorm\nUniform\nTransport\nGravity\n", "Choose", "Cancel");
- }
- if(dialogid == KDialog)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- Slow[playerid] = 1;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Flash Mode {0AF71E}Enabled {FFFF00}[{00FFFF}Velocity = {FF0080}Slow]{FFFF00}");
- }
- case 1:
- {
- Average[playerid] = 1;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Flash Mode {0AF71E}Enabled {FFFF00}[{00FFFF}Velocity = {00FF00}Average]{FFFF00}");
- }
- case 2:
- {
- High[playerid] = 1;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Flash Mode {0AF71E}Enabled {FFFF00}[{00FFFF}Velocity = {FF0000}High]{FFFF00}");
- }
- case 3:
- {
- Kangaroo[playerid] = 0;
- SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}[Tuxedo]:{D2F50C}Flash Mode {F00E0E}Disabled");
- }
- }
- }
- else ShowPlayerDialog(playerid, SUIT, DIALOG_STYLE_LIST, "Tuxedo Suit", "UnStoppable\nKangaroo\nFlash\nTeleporter\nArmory\nInvisibilty\nStorm\nUniform\nTransport\nGravity\n", "Choose", "Cancel");
- }
- return 0;
- }
- //=============================================================================================================
- public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
- {
- if(extraid == CUSTOM_SPORT_MENU)
- {
- if(response)
- {
- if(DeliverTimer[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}System needs to load untill you can have another Vehicle."); //To Prevent Abuse
- DeliverTimer[playerid] = 1;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]:{3DF011}Your Luxory Car is now Ready");
- DeliverVehicleTimer[playerid]= SetTimerEx("Delivery", 60000, false, "d", playerid);
- new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(128), random(128), -1);
- }
- else SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}Operation Canceled");
- }
- if(extraid == CUSTOM_BIKE_MENU)
- {
- if(response)
- {
- if(DeliverTimer[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}System needs to load untill you can have another Vehicle.");//To Prevent Abuse
- {
- DeliverTimer[playerid] = 1;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]:{3DF011}Your Bike is now Ready");
- DeliverVehicleTimer[playerid]= SetTimerEx("Delivery", 60000, false, "d", playerid);
- new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(128), random(128), -1);
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}Operation Canceled");
- }
- if(extraid == CUSTOM_HELICOPTER_MENU)
- {
- if(response)
- {
- if(DeliverTimer[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}System needs to load untill you can have another Vehicle.");//To Prevent Abuse
- {
- DeliverTimer[playerid] = 1;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]:{3DF011}Your Helicopter is now Ready");
- DeliverVehicleTimer[playerid]= SetTimerEx("Delivery", 60000, false, "d", playerid);
- new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(128), random(128), -1);
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}Operation Canceled");
- }
- if(extraid == CUSTOM_BOAT_MENU)
- {
- if(response)
- {
- if(DeliverTimer[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}System needs to load untill you can have another Vehicle.");//To Prevent Abuse
- {
- DeliverTimer[playerid] = 1;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]:{3DF011}Your Boat is now Ready");
- DeliverVehicleTimer[playerid]= SetTimerEx("Delivery", 60000, false, "d", playerid);
- new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(128), random(128), -1);
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}Operation Canceled");
- }
- if(extraid == CUSTOM_OFFROAD_MENU)
- {
- if(response)
- {
- if(DeliverTimer[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}System needs to load untill you can have another Vehicle.");//To Prevent Abuse
- {
- DeliverTimer[playerid] = 1;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]:{3DF011}Your OffRoad Car is now Ready");
- DeliverVehicleTimer[playerid]= SetTimerEx("Delivery", 60000, false, "d", playerid);
- new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(128), random(128), -1);
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}Operation Canceled");
- }
- return 1;
- }
- forward Delivery(playerid);
- public Delivery(playerid)
- {
- DeliverTimer[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}System loaded Succefully and Ready to work.");
- return 1;
- }
- //================================================================================================================
- //AutoSuggestion System
- //1.Vehicle Detection
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
- {
- if(Tuxedo[playerid] == 1)
- {
- DetectionTimer[playerid] = 1;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: Vehicle Detection System.... Loading");
- DetectionVehicleTimer[playerid]= SetTimerEx("Detection", 6000, false, "d", playerid);
- }
- }
- return 1;
- }
- forward Detection(playerid);
- public Detection(playerid)
- {
- if(Invisible[playerid] == 0 || PLAYER_STATE_DRIVER)
- {
- DetectionTimer[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}System Suggests that you should {41F016}Enable {B4BAB3}the {FFFF00}Invisibilty Vehicle Mode");
- }
- if(Invisible[playerid] == 1 || PLAYER_STATE_DRIVER)
- {
- DetectionTimer[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: Vehicle Detection System.... {3EFA0A}Completed");
- }
- return 1;
- }
- //==============================================================================
- //2.Health Detection
- public OnPlayerUpdate(playerid)
- {
- new Float:fHealth;
- GetPlayerHealth(playerid, fHealth);
- if(fHealth != GetPVarFloat(playerid, "faPlayerHealth"))
- {
- if(fHealth > GetPVarFloat(playerid, "faPlayerHealth"))
- {
- HealthIncrease[playerid] = 1;
- }
- else
- {
- HealthDecrease[playerid] = 1;
- new Float:health;
- GetPlayerHealth(playerid,health);
- if (health < 50.0)
- {
- DetectionHealthTimer[playerid]= SetTimerEx("DetectionHealth", 1000, false, "d", playerid);
- }
- }
- SetPVarFloat(playerid, "faPlayerHealth", fHealth);
- }
- }
- forward DetectionHealth(playerid);
- public DetectionHealth(playerid)
- {
- if(God[playerid] == 0)
- {
- HealthDecrease[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREY, "{FF0000}[Tuxedo]: {B4BAB3}System Suggests that you should {41F016}Enable{B4BAB3}the {FFFF00}UnStoppable Mode");
- }
- return 1;
- }
- //================================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement