From bfa237c5e45d345d8becb8f93acb6240f08ea15d Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Wed, 29 May 2019 17:34:54 +0300 Subject: [PATCH 01/25] Update jail.pwn --- gamemodes/irresistible/cnr/features/cop/jail.pwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/cop/jail.pwn b/gamemodes/irresistible/cnr/features/cop/jail.pwn index 2a13ec1..c6df2e5 100644 --- a/gamemodes/irresistible/cnr/features/cop/jail.pwn +++ b/gamemodes/irresistible/cnr/features/cop/jail.pwn @@ -264,6 +264,7 @@ stock JailPlayer( playerid, seconds, admin = 0 ) p_DetainedLabel [ playerid ] = Text3D: INVALID_3DTEXT_ID; p_DetainedBy [ playerid ] = INVALID_PLAYER_ID; + RemovePlayerFromEvent ( playerid, true ); CancelEdit ( playerid ); RemovePlayerStolensFromHands( playerid ); StopPlayerUsingSlotMachine ( playerid ); @@ -541,4 +542,4 @@ stock jailDoors( playerid, remove = false, set_closed = true ) DestroyDynamicObject( p_AlcatrazObject[ playerid ] ), p_AlcatrazObject[ playerid ] = INVALID_OBJECT_ID; } -} \ No newline at end of file +} From a2f11b3786b8fda141ac9f200ccd0451daf69cbb Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Thu, 30 May 2019 09:10:05 +0300 Subject: [PATCH 02/25] Update jail.pwn --- gamemodes/irresistible/cnr/features/cop/jail.pwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/cop/jail.pwn b/gamemodes/irresistible/cnr/features/cop/jail.pwn index c6df2e5..df75ad4 100644 --- a/gamemodes/irresistible/cnr/features/cop/jail.pwn +++ b/gamemodes/irresistible/cnr/features/cop/jail.pwn @@ -264,7 +264,9 @@ stock JailPlayer( playerid, seconds, admin = 0 ) p_DetainedLabel [ playerid ] = Text3D: INVALID_3DTEXT_ID; p_DetainedBy [ playerid ] = INVALID_PLAYER_ID; + #if defined __cloudy_event_system RemovePlayerFromEvent ( playerid, true ); + #endif CancelEdit ( playerid ); RemovePlayerStolensFromHands( playerid ); StopPlayerUsingSlotMachine ( playerid ); From ccfaca5b483c0f304dedf6f2b48c994611c946cc Mon Sep 17 00:00:00 2001 From: Stev Date: Sat, 1 Jun 2019 14:58:56 +0100 Subject: [PATCH 03/25] starting roleplay level array --- gamemodes/irresistible/cnr/features/player/experience.pwn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/player/experience.pwn b/gamemodes/irresistible/cnr/features/player/experience.pwn index 14bdb05..ca8a0ce 100644 --- a/gamemodes/irresistible/cnr/features/player/experience.pwn +++ b/gamemodes/irresistible/cnr/features/player/experience.pwn @@ -19,6 +19,7 @@ enum E_LEVELS { E_POLICE, E_ROBBERY, E_DEATHMATCH, + E_ROLEPLAY /*E_FIREMAN, E_PARAMEDIC, @@ -52,7 +53,9 @@ static const // Level Name Bar Color Level 100 Req. XP Dilation Sell Value { "Police", 0x3E7EFFFF, 7500.0, 20.0, 10.0 }, // 7.5k arrests { "Robbery", 0xF83245FF, 30000.0, 15.0, 10.0 }, // 30K robberies - { "Deathmatch", 0xFF9233FF, 75000.0, 10.0, 5.0 } // 75K kills + { "Deathmatch", 0xFF9233FF, 75000.0, 10.0, 5.0 }, // 75K kills + { "Roleplay", 0x33FF50FF, 14000.0, 7.0, 7.0 } // 14K minijob + /* { "Fireman", 10000.0, 9.0 }, // 10k fires { "Hitman", 1500.0, 4.5 }, // 1.5k contracts From 8d1486ae4db514ca84251ddd171f85acdec36c92 Mon Sep 17 00:00:00 2001 From: Stev Date: Sat, 1 Jun 2019 15:09:15 +0100 Subject: [PATCH 04/25] giving experince for minijobs --- gamemodes/irresistible/cnr/features/minijobs/lumberjack.pwn | 1 + gamemodes/irresistible/cnr/features/minijobs/mining.pwn | 1 + gamemodes/irresistible/cnr/features/minijobs/pilot.pwn | 1 + gamemodes/irresistible/cnr/features/minijobs/traindriver.pwn | 1 + gamemodes/irresistible/cnr/features/minijobs/trucking.pwn | 1 + 5 files changed, 5 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/minijobs/lumberjack.pwn b/gamemodes/irresistible/cnr/features/minijobs/lumberjack.pwn index fb7ed85..7805aa7 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/lumberjack.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/lumberjack.pwn @@ -171,6 +171,7 @@ hook OnPlayerEnterDynRaceCP( playerid, checkpointid ) //SendServerMessage( playerid, "You've made "COL_GOLD"%s"COL_WHITE" from exporting. Go and pick another box up!" ); GivePlayerCash( playerid, cash ); GivePlayerScore( playerid, 5 ); + GivePlayerExperience( playerid, E_ROLEPLAY ); DestroyDynamicMapIcon( p_LumberjackMapIcon[ playerid ] ); p_LumberjackMapIcon[ playerid ] = CreateDynamicMapIconEx( -2330.8535, -113.9084, 34.00, 51, 0, MAPICON_GLOBAL, 6000.0, { -1 }, { -1 }, aPlayer ); diff --git a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn index bf4fa91..eb9ed66 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn @@ -209,6 +209,7 @@ hook OnPlayerEnterDynamicCP( playerid, checkpointid ) new earned_money = floatround( float( g_orePrices[ g_miningData[ ore ] [ E_ORE ] ] ) * 0.5 ); + GivePlayerExperience( playerid, E_ROLEPLAY ); GivePlayerCash( playerid, earned_money ); StockMarket_UpdateEarnings( E_STOCK_MINING_COMPANY, earned_money, 0.5 ); SendServerMessage( playerid, "You have crushed a "COL_GREY"%s"COL_WHITE" Ore and earned "COL_GOLD"%s"COL_WHITE".", getOreName( g_miningData[ ore ] [ E_ORE ] ), cash_format( earned_money ) ); diff --git a/gamemodes/irresistible/cnr/features/minijobs/pilot.pwn b/gamemodes/irresistible/cnr/features/minijobs/pilot.pwn index 872a1a8..1cb242f 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/pilot.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/pilot.pwn @@ -185,6 +185,7 @@ hook OnPlayerEnterDynRaceCP( playerid, checkpointid ) GivePlayerScore( playerid, 1 + floatround( p_PilotDistance[ playerid ] / 1000.0 ) ); StockMarket_UpdateEarnings( E_STOCK_AVIATION, cash_earned, stock_dividend_allocation ); GivePlayerCash( playerid, cash_earned ); + GivePlayerExperience( playerid, E_ROLEPLAY ); ShowPlayerHelpDialog( playerid, 5000, "You have earned ~y~%s ~w~for exporting %s!", cash_format( cash_earned ), g_CargoName[ p_PilotCargo[ playerid ] ] ); StopPlayerPilotWork( playerid ); diff --git a/gamemodes/irresistible/cnr/features/minijobs/traindriver.pwn b/gamemodes/irresistible/cnr/features/minijobs/traindriver.pwn index 877e499..be6cbb4 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/traindriver.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/traindriver.pwn @@ -134,6 +134,7 @@ hook OnPlayerEnterDynRaceCP( playerid, checkpointid ) GivePlayerScore( playerid, 1 + floatround( p_TrainDistance[ playerid ] / 1000.0 ) ); GivePlayerCash( playerid, iCashEarned ); + GivePlayerExperience( playerid, E_ROLEPLAY ); ach_HandleTrainMissions( playerid ); diff --git a/gamemodes/irresistible/cnr/features/minijobs/trucking.pwn b/gamemodes/irresistible/cnr/features/minijobs/trucking.pwn index ae8874d..56cbae5 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/trucking.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/trucking.pwn @@ -181,6 +181,7 @@ hook OnPlayerEnterDynRaceCP( playerid, checkpointid ) GivePlayerScore( playerid, 1 + floatround( p_TruckingDistance[ playerid ] / 1000.0 ) ); StockMarket_UpdateEarnings( E_STOCK_TRUCKING_COMPANY, iCashEarned, .factor = 1.0 ); GivePlayerCash( playerid, iCashEarned ); + GivePlayerExperience( playerid, E_ROLEPLAY ); p_TruckingDistance [ playerid ] = 0.0; p_hasTruckingJob { playerid } = false; From a27e3fbc67d5d6936bad329c59a7b2615505643b Mon Sep 17 00:00:00 2001 From: Stev Date: Sat, 1 Jun 2019 15:12:25 +0100 Subject: [PATCH 05/25] changing level array --- gamemodes/irresistible/cnr/features/player/experience.pwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/player/experience.pwn b/gamemodes/irresistible/cnr/features/player/experience.pwn index ca8a0ce..2a6994a 100644 --- a/gamemodes/irresistible/cnr/features/player/experience.pwn +++ b/gamemodes/irresistible/cnr/features/player/experience.pwn @@ -54,7 +54,7 @@ static const { "Police", 0x3E7EFFFF, 7500.0, 20.0, 10.0 }, // 7.5k arrests { "Robbery", 0xF83245FF, 30000.0, 15.0, 10.0 }, // 30K robberies { "Deathmatch", 0xFF9233FF, 75000.0, 10.0, 5.0 }, // 75K kills - { "Roleplay", 0x33FF50FF, 14000.0, 7.0, 7.0 } // 14K minijob + { "Roleplay", 0x33FF50FF, 75000.0, 10.0, 12.0 } // 14K minijob /* { "Fireman", 10000.0, 9.0 }, // 10k fires From 82b53ca356a37b541893ee18a6341b9b9e7e51c7 Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Sat, 1 Jun 2019 19:08:09 +0300 Subject: [PATCH 06/25] Auto respawn people in event after death People now won't bother /join'ing every time they're killed in the event, they'll spawn in the event till they leave using /leave --- gamemodes/sf-cnr.pwn | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 693b46c..3de72d3 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -727,7 +727,19 @@ public OnPlayerSpawn( playerid ) SpawnToPaintball( playerid, p_PaintBallArena{ playerid } ); return 1; } - + + #if defined __cloudy_event_system + else if ( IsPlayerInEvent( playerid ) ) + { + if( ! EventSettingAllow( 0 ) && g_eventData[ EV_STARTED ] ) + { + SetPlayerInEvent( playerid ); // respawns player in event. + return 1; + } + else RemovePlayerFromEvent( playerid, true ); // changes the InEvent variable to false. + } + #endif + if ( p_Class[ playerid ] == CLASS_CIVILIAN ) { if ( !p_JobSet{ playerid } ) From 040c4684b01da75abe0f1da59408eeb71e93021e Mon Sep 17 00:00:00 2001 From: Stev Date: Sat, 1 Jun 2019 17:26:09 +0100 Subject: [PATCH 07/25] success rate depending on roleplay level --- .../cnr/features/minijobs/mining.pwn | 22 ++++++++----------- .../cnr/features/player/experience.pwn | 6 ++--- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn index eb9ed66..ada9bd3 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn @@ -44,6 +44,7 @@ static stock g_orePrices [ ] = { 675, 900, 600, 2750, 3000, 3500, 4000, 2200, 2300, 1200 }, g_oreMiningTime [ ] = { 2000, 2800, 1600, 6800, 7200, 7600, 8000, 6400, 6560, 4000 }, g_oreQuanities [ ] = { 8, 8, 8, 8, 5, 3, 3, 5, 5, 6 }, + g_oreProbability [ ] = { 85, 80, 90, 45, 35, 30, 25, 52, 30, 75 }, // Iterator Iterator: miningrock < MAX_ROCKS > @@ -155,22 +156,17 @@ hook OnProgressCompleted( playerid, progressid, params ) if ( progressid == PROGRESS_MINING ) { new m = p_MiningOre{ playerid }; - new iRandom = random( 101 ); + new iRandom = random( 100 ); p_isMining{ playerid } = false; g_miningData[ m ] [ E_MINING ] = INVALID_PLAYER_ID; - if ( ( g_miningData[ m ] [ E_ORE ] == ORE_IRON && iRandom > 80 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_BAUXITE && iRandom > 85 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_GOLD && iRandom > 45 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_COAL && iRandom > 90 || - ( g_miningData[ m ] [ E_ORE ] == ORE_DIAMOND && iRandom > 30 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_RUBY && iRandom > 35 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_SAPHHIRE && iRandom > 30 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_EMERALD && iRandom > 52 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_PLATINUM && iRandom > 25 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_AMETHYST && iRandom > 75 ) ) - ) + new Float: random_chance = fRandomEx( 0.0, 101.0 ); + + random_chance += GetPlayerLevel( playerid, E_ROLEPLAY ) * 0.2; + + // potential for a 20% success rate + if ( random_chance < 20.0 ) { SetPlayerMineOre( playerid, m ); return SendError( playerid, "You did not find any ore. Mining again." ); @@ -384,7 +380,7 @@ hook OnPlayerEnterDynRaceCP( playerid, checkpointid ) GivePlayerCash( playerid, cashEarned ); StockMarket_UpdateEarnings( E_STOCK_MINING_COMPANY, cashEarned, 0.5 ); GivePlayerScore( playerid, floatround( oresExported / 2 ) ); // 16 score is a bit too much for ore... so half that = 8 - //GivePlayerExperience( playerid, E_MINING, float( oresExported ) * 0.2 ); + GivePlayerExperience( playerid, E_ROLEPLAY, float( oresExported ) * 0.2 ); SendServerMessage( playerid, "You have exported %d rock ore(s) to an industry, earning you "COL_GOLD"%s"COL_WHITE".", oresExported, cash_format( cashEarned ) ); } return Y_HOOKS_BREAK_RETURN_1; diff --git a/gamemodes/irresistible/cnr/features/player/experience.pwn b/gamemodes/irresistible/cnr/features/player/experience.pwn index 2a6994a..d1aa8a1 100644 --- a/gamemodes/irresistible/cnr/features/player/experience.pwn +++ b/gamemodes/irresistible/cnr/features/player/experience.pwn @@ -52,9 +52,9 @@ static const { // Level Name Bar Color Level 100 Req. XP Dilation Sell Value { "Police", 0x3E7EFFFF, 7500.0, 20.0, 10.0 }, // 7.5k arrests - { "Robbery", 0xF83245FF, 30000.0, 15.0, 10.0 }, // 30K robberies - { "Deathmatch", 0xFF9233FF, 75000.0, 10.0, 5.0 }, // 75K kills - { "Roleplay", 0x33FF50FF, 75000.0, 10.0, 12.0 } // 14K minijob + { "Robbery", 0xF83245FF, 30000.0, 15.0, 10.0 }, // 30k robberies + { "Deathmatch", 0xFF9233FF, 75000.0, 10.0, 5.0 }, // 75k kills + { "Roleplay", 0x33FF50FF, 75000.0, 10.0, 12.0 } // 75k minijob /* { "Fireman", 10000.0, 9.0 }, // 10k fires From ee58f1d9d2bef5c86d12918abe00ba8a6893dd1b Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Sat, 1 Jun 2019 21:55:58 +0300 Subject: [PATCH 08/25] Adds fishing boats --- gamemodes/irresistible/cnr/static/server_vehicles.pwn | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gamemodes/irresistible/cnr/static/server_vehicles.pwn b/gamemodes/irresistible/cnr/static/server_vehicles.pwn index 4a313ee..a47e081 100644 --- a/gamemodes/irresistible/cnr/static/server_vehicles.pwn +++ b/gamemodes/irresistible/cnr/static/server_vehicles.pwn @@ -418,6 +418,14 @@ static stock InitializeServerVehicles( ) SetVehicleVirtualWorld( tmpVariable, 31 ), LinkVehicleToInterior( tmpVariable, 9 ), SetVehicleParamsEx( tmpVariable, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF ); tmpVariable = AddStaticVehicle( 451, -1879.5490, -630.3375, 1002.1699, 318.5035, 1, 1 ); // white SetVehicleVirtualWorld( tmpVariable, 31 ), LinkVehicleToInterior( tmpVariable, 9 ), SetVehicleParamsEx( tmpVariable, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF ); + + // SF Fishing Boats + AddStaticVehicle( 453, -2994.639892, 492.919006, 0.108999, 359.498992, -1, -1 ); + AddStaticVehicle( 453, -2982.639892, 492.919006, -0.921999, 359.437011, -1, -1 ); + AddStaticVehicle( 453, -2953.639892, 492.919006, -0.823000, 359.410003, -1, -1 ); + AddStaticVehicle( 453, -2941.639892, 492.919006, -0.828999, 359.394989, -1, -1 ); + AddStaticVehicle( 453, -2959.639892, 492.919006, -0.564000, 359.359985, -1, -1 ); + AddStaticVehicle( 453, -2970.639892, 492.919006, -0.374000, 359.475006, -1, -1 ); // // // LAS VENTURAS // From 1460db6af77dd21fc38ccf4505da0f724dd94761 Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Sun, 2 Jun 2019 01:01:26 +0300 Subject: [PATCH 09/25] Adds variable Adds the p_TogglePBChat variable to player.pwn --- gamemodes/irresistible/cnr/player.pwn | 1 + 1 file changed, 1 insertion(+) diff --git a/gamemodes/irresistible/cnr/player.pwn b/gamemodes/irresistible/cnr/player.pwn index 0ac02ff..ea5a19b 100644 --- a/gamemodes/irresistible/cnr/player.pwn +++ b/gamemodes/irresistible/cnr/player.pwn @@ -38,6 +38,7 @@ new bool: p_Kidnapped [ MAX_PLAYERS char ], bool: p_ToggledViewPM [ MAX_PLAYERS char ], bool: p_ToggleCopChat [ MAX_PLAYERS char ], + bool: p_TogglePBChat [ MAX_PLAYERS char ], bool: p_pausedToLoad [ MAX_PLAYERS char ], bool: p_CantUseReport [ MAX_PLAYERS char ], p_pausedToLoadTimer [ MAX_PLAYERS ], From 80637fd0cb7244b3a27e6e10320d5fab75f1b934 Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Sun, 2 Jun 2019 01:09:57 +0300 Subject: [PATCH 10/25] Adds /viewpbchat to /acmds Adds the new /viewpbchat command to level 5 admin commands list. --- gamemodes/irresistible/cnr/commands/admin/_admin.pwn | 1 + 1 file changed, 1 insertion(+) diff --git a/gamemodes/irresistible/cnr/commands/admin/_admin.pwn b/gamemodes/irresistible/cnr/commands/admin/_admin.pwn index a4eede9..5d519e8 100644 --- a/gamemodes/irresistible/cnr/commands/admin/_admin.pwn +++ b/gamemodes/irresistible/cnr/commands/admin/_admin.pwn @@ -163,6 +163,7 @@ static stock { 5, "/seteventhost", "Setting event host to player" }, { 5, "/weather", "Settings world weather" }, { 5, "/viewpolicechat", "Viewing the police radio/chat" }, + { 5, "/viewpbchat", "Viewing all paintball lobbies chats" }, /* ** Level 6 Commands ** */ { 6, "/reloadeditor", "Reloads object editer script" }, From 097cece22460d81a1b79fe0152642ec9358014c6 Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Sun, 2 Jun 2019 01:11:00 +0300 Subject: [PATCH 11/25] viewpbchat command The command /viewpbchat, enables level 5 admins or higher to view pb lobby chats. --- .../irresistible/cnr/commands/admin/admin_five.pwn | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gamemodes/irresistible/cnr/commands/admin/admin_five.pwn b/gamemodes/irresistible/cnr/commands/admin/admin_five.pwn index a423ef9..2013ba5 100644 --- a/gamemodes/irresistible/cnr/commands/admin/admin_five.pwn +++ b/gamemodes/irresistible/cnr/commands/admin/admin_five.pwn @@ -32,6 +32,18 @@ CMD:viewpolicechat( playerid, params[ ] ) return 1; } +CMD:viewpbchat( playerid, params[ ] ) +{ + if ( p_AdminLevel[ playerid ] < 5 && !IsPlayerUnderCover( playerid ) ) return SendError( playerid, ADMIN_COMMAND_REJECT ); + p_TogglePBChat{ playerid } = !p_TogglePBChat{ playerid }; + + SendClientMessageFormatted( playerid, -1, ""COL_PINK"[ADMIN]"COL_WHITE" You have %s viewing paint-ball chat.", p_TogglePBChat{ playerid } == true ? ("toggled") : ("un-toggled") ); + if ( !IsPlayerUnderCover( playerid ) ) { + AddAdminLogLineFormatted( "%s(%d) has %s viewing paintball chat", ReturnPlayerName( playerid ), playerid, p_TogglePBChat{ playerid } == true ? ("toggled") : ("un-toggled") ); + } + return 1; +} + CMD:check( playerid, params[ ] ) { new From 3b36340f3e8a49ed8f937ccea9d53035a7785edc Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Sun, 2 Jun 2019 01:11:26 +0300 Subject: [PATCH 12/25] Update for /viewpbchat Sends a message to all admins who are viewing pb chats. --- gamemodes/irresistible/cnr/features/paintball.pwn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/paintball.pwn b/gamemodes/irresistible/cnr/features/paintball.pwn index 54b10a4..a35c8d7 100644 --- a/gamemodes/irresistible/cnr/features/paintball.pwn +++ b/gamemodes/irresistible/cnr/features/paintball.pwn @@ -417,6 +417,10 @@ CMD:p( playerid, params[ ] ) else { SendClientMessageToPaintball( id, -1, ""COL_GREY" %s(%d):"COL_WHITE" %s", ReturnPlayerName( playerid ), playerid, msg ); + + foreach ( new i : Player ) if ( ( p_AdminLevel[ i ] >= 5 || IsPlayerUnderCover( i ) ) && p_TogglePBChat{ i } == true ) { + SendClientMessageFormatted( i, -1, ""COL_GREY" %s(%d):"COL_WHITE" %s", id, ReturnPlayerName( playerid ), playerid, msg ); + } } return 1; } From cbfc056bafeb9c76b312724d5b155dd31b157df6 Mon Sep 17 00:00:00 2001 From: Dusan Date: Sun, 2 Jun 2019 00:31:48 +0200 Subject: [PATCH 13/25] VIP Reformated - /vipcmds modified to match ones in /cmds - /vipcmds moved to msgbox instead of tablist - /vip now displays all available packages, once you click on one it will show you details about it, if you click on "Buy" it will redirect to IC Market - --- gamemodes/irresistible/cnr/dialog_ids.pwn | 5 +- .../cnr/features/vip/coin_market.pwn | 299 ++++++++++++------ gamemodes/sf-cnr.pwn | 12 +- 3 files changed, 216 insertions(+), 100 deletions(-) diff --git a/gamemodes/irresistible/cnr/dialog_ids.pwn b/gamemodes/irresistible/cnr/dialog_ids.pwn index 0b04cb6..5a26af0 100644 --- a/gamemodes/irresistible/cnr/dialog_ids.pwn +++ b/gamemodes/irresistible/cnr/dialog_ids.pwn @@ -210,8 +210,9 @@ #define DIALOG_COMPONENTS_SELL 1200 #define DIALOG_HOUSE_SELL 1201 #define DIALOG_BUSINESS_SELL_CONFIRM 1202 -#define DIALOG_NEXT_PAGE_VIP 1204 -#define DIALOG_XPMARKET_SELL 1205 +#define DIALOG_VIP_MAIN 1204 +#define DIALOG_XPMARKET_SELL 1205 +#define DIALOG_BUY_VIP_MAIN 1206 /* ** Hooks ** */ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) diff --git a/gamemodes/irresistible/cnr/features/vip/coin_market.pwn b/gamemodes/irresistible/cnr/features/vip/coin_market.pwn index ad508f3..2bec13b 100644 --- a/gamemodes/irresistible/cnr/features/vip/coin_market.pwn +++ b/gamemodes/irresistible/cnr/features/vip/coin_market.pwn @@ -84,7 +84,9 @@ static stock }, p_CoinMarketPage [ MAX_PLAYERS char ], - p_CoinMarketSelectedItem [ MAX_PLAYERS char ] + p_CoinMarketSelectedItem [ MAX_PLAYERS char ], + + p_SelectedPackage [ MAX_PLAYERS char ] ; /* ** Global Variables ** */ @@ -116,6 +118,7 @@ hook OnPlayerUpdateEx( playerid ) hook OnPlayerDisconnect( playerid, reason ) { + p_SelectedPackage{ playerid } = -1; p_ExtraAssetSlots{ playerid } = 0; p_IrresistibleCoins[ playerid ] = 0.0; return 1; @@ -356,52 +359,204 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) } return ShowPlayerDialog( playerid, DIALOG_CHANGENAME, DIALOG_STYLE_INPUT, "Change your name", ""COL_WHITE"What would you like your new name to be? And also, double check!", "Change", "Back" ); } - else if ( dialogid == DIALOG_NEXT_PAGE_VIP && response ) + else if ( dialogid == DIALOG_VIP_MAIN && response ) { static - vip_description[ 1350 ]; + vip_description[ 1420 ]; - if ( vip_description[ 0 ] == '\0' ) + switch ( listitem ) { - vip_description = " \t"COL_PLATINUM"Platinum VIP\t"COL_DIAMOND"Diamond VIP\n"; - strcat( vip_description, ""COL_GREEN"Price (USD)\t"COL_GREEN"$50.00 USD\t"COL_GREEN"$100.00 USD\n" ); - strcat( vip_description, "Money Provided\t$12,500,000\t$25,000,000\n" ); - strcat( vip_description, "House Provided\tY\tY\n" ); - strcat( vip_description, "Vehicle Provided\tY\tY\n" ); - strcat( vip_description, "Garage Provided\tY\tY\n" ); - strcat( vip_description, "Gate Provided\tN\tY\n" ); - strcat( vip_description, "Weed Business Provided\tN\tY\n" ); - strcat( vip_description, "House Customization\tMedium\tLarge\n" ); - strcat( vip_description, "Total house slots\t10\tunlimited\n" ); - strcat( vip_description, "Total garage slots\t10\tunlimited\n" ); - strcat( vip_description, "Total business slots\t10\tunlimited\n" ); - strcat( vip_description, "Total vehicle slots\t10\t20\n" ); - strcat( vip_description, "Weapons on spawn\t2\t2\n" ); - strcat( vip_description, "Armour on spawn\t100%\t100%\n" ); - strcat( vip_description, "Coin generation increase\t10%\t25%\n" ); - strcat( vip_description, "Ability to transfer coins P2P\tY\tY\n" ); - strcat( vip_description, "Ability to sell coins on the coin market (/ic sell)\tY\tY\n" ); - strcat( vip_description, "Ability to use two jobs (/vipjob)\tY\tY\n" ); - strcat( vip_description, "Premium home listing fees waived\tY\tY\n" ); - strcat( vip_description, "Tax reduction\t0%\t50%\n" ); - strcat( vip_description, "Inactive asset protection\t14 days\t31 days\n" ); - strcat( vip_description, "Total Vehicle component editing slots\t8\t10\n" ); - strcat( vip_description, "Furniture slots available\t45\t50\n" ); - strcat( vip_description, "V.I.P Lounge Weapon Redeeming Cooldown\t1 min\tno limit\n" ); - strcat( vip_description, "V.I.P Tag On Forum\tY\tY\n" ); - strcat( vip_description, "Access to V.I.P chat\tY\tY\n" ); - strcat( vip_description, "Access to V.I.P lounge\tY\tY\n" ); - strcat( vip_description, "Can spawn with a specific skin\tY\tY\n" ); - strcat( vip_description, "Access to V.I.P toys\tY\tY\n" ); - strcat( vip_description, "Access to custom gang colors (/gangcolor)\tY\tY\n" ); - strcat( vip_description, "Access to extra house weapon storage slots\tY\tY\n" ); - strcat( vip_description, "Can play custom radio URLs (/radio)\tY\tY\n" ); - strcat( vip_description, "Ability to adjust your label's color (/labelcolor)\tY\tY\n" ); - strcat( vip_description, "Can show a message to people you kill (/deathmsg)\tY\tY\n" ); - strcat( vip_description, "Can adjust the sound of your hitmarker (/hitmarker)\tY\tY\n" ); + case 0: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ + "Money Provided\t{6EF83C}$25,000,000\n"\ + "House Provided\t{6EF83C}Yes\n"\ + "Vehicle Provided\t{6EF83C}Yes\n"\ + "Garage Provided\t{6EF83C}Yes\n"\ + "Gate Provided\t{6EF83C}Yes\n"\ + "Weed Business Provided\t{6EF83C}Yes\n"\ + "House Customization\t{6EF83C}Large\n"\ + "Total house slots\t{6EF83C}No limit\n"\ + "Total garage slots\t{6EF83C}No limit\n"\ + "Total business slots\t{6EF83C}No limit\n"\ + "Total vehicle slots\t{6EF83C}20\n"\ + "Weapons on spawn\t{6EF83C}3\n"\ + "Armour on spawn\t{6EF83C}Yes\n"\ + "Coin generation increase\t{6EF83C}25%%\n"\ + "Ability to transfer coins P2P\t{6EF83C}Yes\n"\ + "Ability to sell coins on the coin market (/ic sell)\t{6EF83C}Yes\n"\ + "Ability to use two jobs (/vipjob)\t{6EF83C}Yes\n"\ + "Premium home listing fees waived\t{6EF83C}Yes\n"\ + "Tax reduction\t{6EF83C}50%%\n"\ + "Inactive asset protection\t{6EF83C}30 days\n"\ + "Total Vehicle component editing slots\t{6EF83C}10\n"\ + "Furniture slots available\t{6EF83C}50\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}No limit\n"\ + "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ + "Access to V.I.P chat\t{6EF83C}Yes\n"\ + "Access to V.I.P lounge\t{6EF83C}Yes\n"\ + "Can spawn with a specific skin\t{6EF83C}Yes\n"\ + "Access to V.I.P toys\t{6EF83C}Yes\n"\ + "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ + "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ + "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); + + case 1: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ + "Money Provided\t{6EF83C}$12,500,000\n"\ + "House Provided\t{6EF83C}Yes\n"\ + "Vehicle Provided\t{6EF83C}Yes\n"\ + "Garage Provided\t{F81414}No\n"\ + "Gate Provided\t{F81414}No\n"\ + "Weed Business Provided\t{F81414}No\n"\ + "House Customization\t{6EF83C}Medium\n"\ + "Total house slots\t{6EF83C}10\n"\ + "Total garage slots\t{6EF83C}10\n"\ + "Total business slots\t{6EF83C}10\n"\ + "Total vehicle slots\t{6EF83C}10\n"\ + "Weapons on spawn\t{6EF83C}3\n"\ + "Armour on spawn\t{6EF83C}Yes\n"\ + "Coin generation increase\t{6EF83C}10%%\n"\ + "Ability to transfer coins P2P\t{6EF83C}Yes\n"\ + "Ability to sell coins on the coin market (/ic sell)\t{6EF83C}Yes\n"\ + "Ability to use two jobs (/vipjob)\t{F81414}No\n"\ + "Premium home listing fees waived\t{6EF83C}Yes\n"\ + "Tax reduction\t{F81414}0%%\n"\ + "Inactive asset protection\t{6EF83C}14 days\n"\ + "Total Vehicle component editing slots\t{6EF83C}8\n"\ + "Furniture slots available\t{6EF83C}45\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}1 minutes\n"\ + "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ + "Access to V.I.P chat\t{6EF83C}Yes\n"\ + "Access to V.I.P lounge\t{6EF83C}Yes\n"\ + "Can spawn with a specific skin\t{6EF83C}Yes\n"\ + "Access to V.I.P toys\t{6EF83C}Yes\n"\ + "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ + "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ + "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); + + case 2: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ + "Money Provided\t{6EF83C}$5,000,000\n"\ + "House Provided\t{6EF83C}Yes\n"\ + "Vehicle Provided\t{6EF83C}Yes\n"\ + "Garage Provided\t{F81414}No\n"\ + "Gate Provided\t{F81414}No\n"\ + "Weed Business Provided\t{F81414}No\n"\ + "House Customization\t{6EF83C}Small\n"\ + "Total house slots\t{6EF83C}8\n"\ + "Total garage slots\t{6EF83C}8\n"\ + "Total business slots\t{6EF83C}8\n"\ + "Total vehicle slots\t{6EF83C}6\n"\ + "Weapons on spawn\t{6EF83C}2\n"\ + "Armour on spawn\t{6EF83C}Yes\n"\ + "Coin generation increase\t{F81414}0%%\n"\ + "Ability to transfer coins P2P\t{6EF83C}Yes\n"\ + "Ability to sell coins on the coin market (/ic sell)\t{6EF83C}Yes\n"\ + "Ability to use two jobs (/vipjob)\t{F81414}No\n"\ + "Premium home listing fees waived\t{F81414}No\n"\ + "Tax reduction\t{F81414}0%%\n"\ + "Inactive asset protection\t{6EF83C}14 days\n"\ + "Total Vehicle component editing slots\t{6EF83C}6\n"\ + "Furniture slots available\t{6EF83C}40\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}5 minutes\n"\ + "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ + "Access to V.I.P chat\t{6EF83C}Yes\n"\ + "Access to V.I.P lounge\t{6EF83C}Yes\n"\ + "Can spawn with a specific skin\t{6EF83C}Yes\n"\ + "Access to V.I.P toys\t{6EF83C}Yes\n"\ + "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ + "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ + "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); + + case 3: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ + "Money Provided\t{6EF83C}$2,500,000\n"\ + "House Provided\t{F81414}No\n"\ + "Vehicle Provided\t{F81414}No\n"\ + "Garage Provided\t{F81414}No\n"\ + "Gate Provided\t{F81414}No\n"\ + "Weed Business Provided\t{F81414}No\n"\ + "House Customization\t{F81414}No\n"\ + "Total house slots\t{6EF83C}6\n"\ + "Total garage slots\t{6EF83C}6\n"\ + "Total business slots\t{6EF83C}6\n"\ + "Total vehicle slots\t{6EF83C}4\n"\ + "Weapons on spawn\t{6EF83C}1\n"\ + "Armour on spawn\t{F81414}No\n"\ + "Coin generation increase\t{F81414}0%%\n"\ + "Ability to transfer coins P2P\t{6EF83C}Yes\n"\ + "Ability to sell coins on the coin market (/ic sell)\t{6EF83C}Yes\n"\ + "Ability to use two jobs (/vipjob)\t{F81414}No\n"\ + "Premium home listing fees waived\t{F81414}No\n"\ + "Tax reduction\t{F81414}0%%\n"\ + "Inactive asset protection\t{6EF83C}14 days\n"\ + "Total Vehicle component editing slots\t{6EF83C}4\n"\ + "Furniture slots available\t{6EF83C}35\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}5 minutes\n"\ + "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ + "Access to V.I.P chat\t{6EF83C}Yes\n"\ + "Access to V.I.P lounge\t{6EF83C}Yes\n"\ + "Can spawn with a specific skin\t{6EF83C}Yes\n"\ + "Access to V.I.P toys\t{6EF83C}Yes\n"\ + "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ + "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ + "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); + + case 4: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ + "Money Provided\t{6EF83C}$500,000\n"\ + "House Provided\t{F81414}No\n"\ + "Vehicle Provided\t{F81414}No\n"\ + "Garage Provided\t{F81414}No\n"\ + "Gate Provided\t{F81414}No\n"\ + "Weed Business Provided\t{F81414}No\n"\ + "House Customization\t{F81414}No\n"\ + "Total house slots\t{6EF83C}5\n"\ + "Total garage slots\t{6EF83C}5\n"\ + "Total business slots\t{6EF83C}5\n"\ + "Total vehicle slots\t{6EF83C}3\n"\ + "Weapons on spawn\t{6EF83C}1\n"\ + "Armour on spawn\t{F81414}No\n"\ + "Coin generation increase\t{F81414}0%%\n"\ + "Ability to transfer coins P2P\t{F81414}No\n"\ + "Ability to sell coins on the coin market (/ic sell)\t{F81414}No\n"\ + "Ability to use two jobs (/vipjob)\t{F81414}No\n"\ + "Premium home listing fees waived\t{F81414}No\n"\ + "Tax reduction\t{F81414}0%%\n"\ + "Inactive asset protection\t{6EF83C}14 days\n"\ + "Total Vehicle component editing slots\t{6EF83C}3\n"\ + "Furniture slots available\t{6EF83C}30\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}5 minutes\n"\ + "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ + "Access to V.I.P chat\t{6EF83C}Yes\n"\ + "Access to V.I.P lounge\t{6EF83C}Yes\n"\ + "Can spawn with a specific skin\t{6EF83C}Yes\n"\ + "Access to V.I.P toys\t{6EF83C}Yes\n"\ + "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ + "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ + "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); } - return ShowPlayerDialog( playerid, DIALOG_BUY_VIP, DIALOG_STYLE_TABLIST_HEADERS, "{FFFFFF}Donate for V.I.P", vip_description, "Buy VIP", "Close" ); + + ShowPlayerDialog( playerid, DIALOG_BUY_VIP_MAIN, DIALOG_STYLE_TABLIST_HEADERS, sprintf( "{FFDC2E}%s", g_irresistibleVipItems[ listitem ][ E_NAME ] ), vip_description, "Buy", "Back" ); + return 1; } + else if ( dialogid == DIALOG_BUY_VIP_MAIN ) + { + // if the player clicked on the right button, return /vip + if ( ! response ) return cmd_vip( playerid, " " ); + else if ( response ) return ShowPlayerCoinMarketDialog( playerid ); + } + else if ( dialogid == DIALOG_BUY_VIP && response ) { return ShowPlayerCoinMarketDialog( playerid ); @@ -521,49 +676,8 @@ CMD:irresistiblecoins( playerid, params[ ] ) CMD:donate( playerid, params[ ] ) return cmd_vip( playerid, params ); CMD:vip( playerid, params[ ] ) { - static - vip_description[ 1420 ]; - - if ( vip_description[ 0 ] == '\0' ) - { - vip_description = " \t"COL_WHITE"Regular VIP\t"COL_BRONZE"Bronze VIP\t"COL_GOLD"Gold VIP\n"; - strcat( vip_description, ""COL_GREEN"Price (USD)\t"COL_GREEN"$5.00 USD\t"COL_GREEN"$15.00 USD\t"COL_GREEN"$25.00 USD\n" ); - strcat( vip_description, "Money Provided\t$500,000\t$2,500,000\t$5,000,000\n" ); - strcat( vip_description, "House Provided\tN\tY\tY\n" ); - strcat( vip_description, "Vehicle Provided\tN\tN\tY\n" ); - strcat( vip_description, "Garage Provided\tN\tN\tN\n" ); - strcat( vip_description, "Gate Provided\tN\tN\tN\n" ); - strcat( vip_description, "Weed Business Provided\tN\tN\tN\n" ); - strcat( vip_description, "House Customization\tN\tN\tSmall\n" ); - strcat( vip_description, "Total house slots\t5\t6\t8\n" ); - strcat( vip_description, "Total garage slots\t5\t6\t8\n" ); - strcat( vip_description, "Total business slots\t5\t6\t8\n" ); - strcat( vip_description, "Total vehicle slots\t3\t4\t6\n" ); - strcat( vip_description, "Weapons on spawn\t1\t1\t2\n" ); - strcat( vip_description, "Armour on spawn\t0%\t0%\t100%\n" ); - strcat( vip_description, "Coin generation increase\t0%\t0%\t0%\n" ); - strcat( vip_description, "Ability to transfer coins P2P\tN\tY\tY\n" ); - strcat( vip_description, "Ability to sell coins on the coin market (/ic sell)\tN\tY\tY\n" ); - strcat( vip_description, "Ability to use two jobs (/vipjob)\tN\tN\tN\n" ); - strcat( vip_description, "Premium home listing fees waived\tN\tN\tN\n" ); - strcat( vip_description, "Tax reduction\t0%\t0%\t0%\n" ); - strcat( vip_description, "Inactive asset protection\t14 days\t14 days\t14 days\n" ); - strcat( vip_description, "Total Vehicle component editing slots\t3\t4\t6\n" ); - strcat( vip_description, "Furniture slots available\t30\t35\t40\n" ); - strcat( vip_description, "V.I.P Lounge Weapon Redeeming Cooldown\t5 min\t5 min\t5 min\n" ); - strcat( vip_description, "V.I.P Tag On Forum\tY\tY\tY\n" ); - strcat( vip_description, "Access to V.I.P chat\tY\tY\tY\n" ); - strcat( vip_description, "Access to V.I.P lounge\tY\tY\tY\n" ); - strcat( vip_description, "Can spawn with a specific skin\tY\tY\tY\n" ); - strcat( vip_description, "Access to V.I.P toys\tY\tY\tY\n" ); - strcat( vip_description, "Access to custom gang colors (/gangcolor)\tY\tY\tY\n" ); - strcat( vip_description, "Access to extra house weapon storage slots\tY\tY\tY\n" ); - strcat( vip_description, "Can play custom radio URLs (/radio)\tY\tY\tY\n" ); - strcat( vip_description, "Ability to adjust your label's color (/labelcolor)\tY\tY\tY\n" ); - strcat( vip_description, "Can show a message to people you kill (/deathmsg)\tY\tY\tY\n" ); - strcat( vip_description, "Can adjust the sound of your hitmarker (/hitmarker)\tY\tY\tY\n" ); - } - ShowPlayerDialog( playerid, DIALOG_NEXT_PAGE_VIP, DIALOG_STYLE_TABLIST_HEADERS, "{FFFFFF}Donate for V.I.P", vip_description, "See More", "Close" ); + p_SelectedPackage{ playerid } = -1; + ShowPlayerDialog( playerid, DIALOG_VIP_MAIN, DIALOG_STYLE_LIST, "{FFDC2E}VIP Packages", "{4EE2EC}Diamond VIP ($100.00 USD)\n{E0E0E0}Platinum VIP ($50.00 USD)\n{FFDC2E}Gold VIP ($25.00 USD)\n{CD7F32}Bronze VIP ($15.00 USD)\n{C0C0C0}Regular VIP ($5.00 USD)", "Select", "Close" ); return 1; } @@ -572,16 +686,15 @@ CMD:vipcmds( playerid, params[ ] ) if ( p_VIPLevel[ playerid ] < 1 ) return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" ); erase( szLargeString ); - strcat( szLargeString, ""COL_GREY"/vipspawnwep\tConfigure your spawning weapons\n"\ - ""COL_GREY"/vipskin\tConfigure your spawning skin\n"\ - ""COL_GREY"/vipgun\tRedeem weapons or an armour vest from the gun locker\n"\ - ""COL_GREY"/vsay\tGlobal V.I.P Chat\n" ); - strcat( szLargeString, ""COL_GREY"/vipjob\tSet your secondary VIP job\n"\ - ""COL_GREY"/vippackage\tCustomize your VIP package name\n"\ - ""COL_GREY"/mynotes\tAccess your VIP notes and material\n"\ - ""COL_GREY"/mycustomizations\tAccess your house customization taxes" ); + strcat( szLargeString, ""COL_GREY"/vipspawnwep{FFFFFF} - Configure your spawning weapons\n"\ + ""COL_GREY"/vipskin{FFFFFF} - Configure your spawning skin\n"\ + ""COL_GREY"/viplist{FFFFFF} - A list of all online V.I.P. players.\n"\ + ""COL_GREY"/vipgun{FFFFFF} - Redeem weapons or an armour vest from the gun locker\n"\ + ""COL_GREY"/vsay{FFFFFF} - Global V.I.P Chat\n"\ + ""COL_GREY"/vipjob{FFFFFF} - Choose your V.I.P. job that allows you to have two jobs at once.\n"\ + ""COL_GREY"/mynotes{FFFFFF} - Access your VIP notes and material" ); - ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_TABLIST, "{FFFFFF}V.I.P Commands", szLargeString, "Okay", "" ); + ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "{FFDC2E}V.I.P Commands", szLargeString, "Okay", "" ); return 1; } diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 693b46c..3517fa9 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -5284,11 +5284,13 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) { if ( p_VIPLevel[ playerid ] < VIP_REGULAR ) return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" ); szCMDS[ 0 ] = '\0'; - strcat( szCMDS, ""COL_GREY"/viplist{FFFFFF} - A list of all online V.I.P. players.\n"\ - ""COL_GREY"/vipspawnwep{FFFFFF} - Configure your V.I.P. weapons that you are given on spawning.\n"\ - ""COL_GREY"/vipgun{FFFFFF} - Use the V.I.P. Lounge Weapon vending machine.\n"\ - ""COL_GREY"/vipskin{FFFFFF} - Configure your V.I.P. skin.\n"\ - ""COL_GREY"/vipjob{FFFFFF} - Choose your V.I.P. job that allows you to have two jobs at once.\n" ); + strcat( szCMDS, ""COL_GREY"/vipspawnwep{FFFFFF} - Configure your spawning weapons\n"\ + ""COL_GREY"/vipskin{FFFFFF} - Configure your spawning skin\n"\ + ""COL_GREY"/viplist{FFFFFF} - A list of all online V.I.P. players.\n"\ + ""COL_GREY"/vipgun{FFFFFF} - Redeem weapons or an armour vest from the gun locker\n"\ + ""COL_GREY"/vsay{FFFFFF} - Global V.I.P Chat\n"\ + ""COL_GREY"/vipjob{FFFFFF} - Choose your V.I.P. job that allows you to have two jobs at once.\n"\ + ""COL_GREY"/mynotes{FFFFFF} - Access your VIP notes and material" ); ShowPlayerDialog( playerid, DIALOG_CMDS_REDIRECT, DIALOG_STYLE_MSGBOX, ""COL_GOLD"V.I.P. Commands", szCMDS, "Okay", "Back" ); } } From 37daa87f516f5b9119973759bba169b2f197c21f Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 11:44:32 +1000 Subject: [PATCH 14/25] add __cloudy_fishing_system def --- gamemodes/irresistible/cnr/static/server_vehicles.pwn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/static/server_vehicles.pwn b/gamemodes/irresistible/cnr/static/server_vehicles.pwn index a47e081..7dc8902 100644 --- a/gamemodes/irresistible/cnr/static/server_vehicles.pwn +++ b/gamemodes/irresistible/cnr/static/server_vehicles.pwn @@ -418,7 +418,8 @@ static stock InitializeServerVehicles( ) SetVehicleVirtualWorld( tmpVariable, 31 ), LinkVehicleToInterior( tmpVariable, 9 ), SetVehicleParamsEx( tmpVariable, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF ); tmpVariable = AddStaticVehicle( 451, -1879.5490, -630.3375, 1002.1699, 318.5035, 1, 1 ); // white SetVehicleVirtualWorld( tmpVariable, 31 ), LinkVehicleToInterior( tmpVariable, 9 ), SetVehicleParamsEx( tmpVariable, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF ); - + + #if defined __cloudy_fishing_system // SF Fishing Boats AddStaticVehicle( 453, -2994.639892, 492.919006, 0.108999, 359.498992, -1, -1 ); AddStaticVehicle( 453, -2982.639892, 492.919006, -0.921999, 359.437011, -1, -1 ); @@ -426,6 +427,7 @@ static stock InitializeServerVehicles( ) AddStaticVehicle( 453, -2941.639892, 492.919006, -0.828999, 359.394989, -1, -1 ); AddStaticVehicle( 453, -2959.639892, 492.919006, -0.564000, 359.359985, -1, -1 ); AddStaticVehicle( 453, -2970.639892, 492.919006, -0.374000, 359.475006, -1, -1 ); + #endif // // // LAS VENTURAS // From 1d7e9e9f73e8bfd7e565d4c1b30e0cbd364aefde Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 12:01:03 +1000 Subject: [PATCH 15/25] remove debug msg for stock --- gamemodes/irresistible/cnr/features/stocks/stocks.pwn | 1 - 1 file changed, 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn index 846d503..8dda332 100644 --- a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn +++ b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn @@ -416,7 +416,6 @@ thread StockMarket_InsertReport( stockid, Float: default_start_pool, Float: defa stockid, stockid ); mysql_tquery( dbHandle, szLargeString, "StockMarket_PanicSell", "d", stockid ); - print(szLargeString); } // full bankruptcy if a stock is $1 (UNTESTED!) From d7c0d7c2f4436ea5bbc57a179b35f6d5c3d16778 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 12:01:17 +1000 Subject: [PATCH 16/25] update hex color embeds with their defs --- .../cnr/features/vip/coin_market.pwn | 380 +++++++++--------- 1 file changed, 190 insertions(+), 190 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/vip/coin_market.pwn b/gamemodes/irresistible/cnr/features/vip/coin_market.pwn index 2bec13b..6dd27eb 100644 --- a/gamemodes/irresistible/cnr/features/vip/coin_market.pwn +++ b/gamemodes/irresistible/cnr/features/vip/coin_market.pwn @@ -157,7 +157,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) p_CoinMarketPage{ playerid } = ICM_PAGE_DEFAULT; p_CoinMarketSelectedItem{ playerid } = listitem; - return ShowPlayerDialog( playerid, DIALOG_YOU_SURE_VIP, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Coin -{FFFFFF} Confirmation", sprintf( ""COL_WHITE"Are you sure that you want to spend %s IC?", number_format( iCoinRequirement, .decimals = 2 ) ), "Yes", "No" ); + return ShowPlayerDialog( playerid, DIALOG_YOU_SURE_VIP, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Coin -"COL_WHITE" Confirmation", sprintf( ""COL_WHITE"Are you sure that you want to spend %s IC?", number_format( iCoinRequirement, .decimals = 2 ) ), "Yes", "No" ); } } else if ( dialogid == DIALOG_IC_MARKET_2 || dialogid == DIALOG_IC_MARKET_3 ) @@ -178,7 +178,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) p_CoinMarketPage{ playerid } = ( dialogid == DIALOG_IC_MARKET_3 ) ? ICM_PAGE_CASHCARD : ICM_PAGE_ASSETS; p_CoinMarketSelectedItem{ playerid } = listitem; - return ShowPlayerDialog( playerid, DIALOG_YOU_SURE_VIP, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Coin -{FFFFFF} Confirmation", sprintf( ""COL_WHITE"Are you sure that you want to spend %s IC?", number_format( iCoinRequirement, .decimals = 2 ) ), "Yes", "No" ); + return ShowPlayerDialog( playerid, DIALOG_YOU_SURE_VIP, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Coin -"COL_WHITE" Confirmation", sprintf( ""COL_WHITE"Are you sure that you want to spend %s IC?", number_format( iCoinRequirement, .decimals = 2 ) ), "Yes", "No" ); } else if ( dialogid == DIALOG_YOU_SURE_VIP ) { @@ -366,188 +366,188 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) switch ( listitem ) { - case 0: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ - "Money Provided\t{6EF83C}$25,000,000\n"\ - "House Provided\t{6EF83C}Yes\n"\ - "Vehicle Provided\t{6EF83C}Yes\n"\ - "Garage Provided\t{6EF83C}Yes\n"\ - "Gate Provided\t{6EF83C}Yes\n"\ - "Weed Business Provided\t{6EF83C}Yes\n"\ - "House Customization\t{6EF83C}Large\n"\ - "Total house slots\t{6EF83C}No limit\n"\ - "Total garage slots\t{6EF83C}No limit\n"\ - "Total business slots\t{6EF83C}No limit\n"\ - "Total vehicle slots\t{6EF83C}20\n"\ - "Weapons on spawn\t{6EF83C}3\n"\ - "Armour on spawn\t{6EF83C}Yes\n"\ - "Coin generation increase\t{6EF83C}25%%\n"\ - "Ability to transfer coins P2P\t{6EF83C}Yes\n"\ - "Ability to sell coins on the coin market (/ic sell)\t{6EF83C}Yes\n"\ - "Ability to use two jobs (/vipjob)\t{6EF83C}Yes\n"\ - "Premium home listing fees waived\t{6EF83C}Yes\n"\ - "Tax reduction\t{6EF83C}50%%\n"\ - "Inactive asset protection\t{6EF83C}30 days\n"\ - "Total Vehicle component editing slots\t{6EF83C}10\n"\ - "Furniture slots available\t{6EF83C}50\n"\ - "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}No limit\n"\ - "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ - "Access to V.I.P chat\t{6EF83C}Yes\n"\ - "Access to V.I.P lounge\t{6EF83C}Yes\n"\ - "Can spawn with a specific skin\t{6EF83C}Yes\n"\ - "Access to V.I.P toys\t{6EF83C}Yes\n"\ - "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ - "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ - "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ - "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ - "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ - "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); + case 0: format( vip_description, sizeof( vip_description ), "\t"COL_GREY"Feature\t"COL_GREY"Reward\n"\ + "Money Provided\t"COL_GREEN"$25,000,000\n"\ + "House Provided\t"COL_GREEN"Yes\n"\ + "Vehicle Provided\t"COL_GREEN"Yes\n"\ + "Garage Provided\t"COL_GREEN"Yes\n"\ + "Gate Provided\t"COL_GREEN"Yes\n"\ + "Weed Business Provided\t"COL_GREEN"Yes\n"\ + "House Customization\t"COL_GREEN"Large\n"\ + "Total house slots\t"COL_GREEN"No limit\n"\ + "Total garage slots\t"COL_GREEN"No limit\n"\ + "Total business slots\t"COL_GREEN"No limit\n"\ + "Total vehicle slots\t"COL_GREEN"20\n"\ + "Weapons on spawn\t"COL_GREEN"3\n"\ + "Armour on spawn\t"COL_GREEN"Yes\n"\ + "Coin generation increase\t"COL_GREEN"25%%\n"\ + "Ability to transfer coins P2P\t"COL_GREEN"Yes\n"\ + "Ability to sell coins on the coin market (/ic sell)\t"COL_GREEN"Yes\n"\ + "Ability to use two jobs (/vipjob)\t"COL_GREEN"Yes\n"\ + "Premium home listing fees waived\t"COL_GREEN"Yes\n"\ + "Tax reduction\t"COL_GREEN"50%%\n"\ + "Inactive asset protection\t"COL_GREEN"30 days\n"\ + "Total Vehicle component editing slots\t"COL_GREEN"10\n"\ + "Furniture slots available\t"COL_GREEN"50\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t"COL_GREEN"No limit\n"\ + "V.I.P Tag On Forum\t"COL_GREEN"Yes\n"\ + "Access to V.I.P chat\t"COL_GREEN"Yes\n"\ + "Access to V.I.P lounge\t"COL_GREEN"Yes\n"\ + "Can spawn with a specific skin\t"COL_GREEN"Yes\n"\ + "Access to V.I.P toys\t"COL_GREEN"Yes\n"\ + "Access to custom gang colors (/gangcolor)\t"COL_GREEN"Yes\n"\ + "Access to extra house weapon storage slots\t"COL_GREEN"Yes\n"\ + "Can play custom radio URLs (/radio)\t"COL_GREEN"Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t"COL_GREEN"Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t"COL_GREEN"Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t"COL_GREEN"Yes" ); - case 1: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ - "Money Provided\t{6EF83C}$12,500,000\n"\ - "House Provided\t{6EF83C}Yes\n"\ - "Vehicle Provided\t{6EF83C}Yes\n"\ - "Garage Provided\t{F81414}No\n"\ - "Gate Provided\t{F81414}No\n"\ - "Weed Business Provided\t{F81414}No\n"\ - "House Customization\t{6EF83C}Medium\n"\ - "Total house slots\t{6EF83C}10\n"\ - "Total garage slots\t{6EF83C}10\n"\ - "Total business slots\t{6EF83C}10\n"\ - "Total vehicle slots\t{6EF83C}10\n"\ - "Weapons on spawn\t{6EF83C}3\n"\ - "Armour on spawn\t{6EF83C}Yes\n"\ - "Coin generation increase\t{6EF83C}10%%\n"\ - "Ability to transfer coins P2P\t{6EF83C}Yes\n"\ - "Ability to sell coins on the coin market (/ic sell)\t{6EF83C}Yes\n"\ - "Ability to use two jobs (/vipjob)\t{F81414}No\n"\ - "Premium home listing fees waived\t{6EF83C}Yes\n"\ - "Tax reduction\t{F81414}0%%\n"\ - "Inactive asset protection\t{6EF83C}14 days\n"\ - "Total Vehicle component editing slots\t{6EF83C}8\n"\ - "Furniture slots available\t{6EF83C}45\n"\ - "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}1 minutes\n"\ - "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ - "Access to V.I.P chat\t{6EF83C}Yes\n"\ - "Access to V.I.P lounge\t{6EF83C}Yes\n"\ - "Can spawn with a specific skin\t{6EF83C}Yes\n"\ - "Access to V.I.P toys\t{6EF83C}Yes\n"\ - "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ - "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ - "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ - "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ - "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ - "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); + case 1: format( vip_description, sizeof( vip_description ), "\t"COL_GREY"Feature\t"COL_GREY"Reward\n"\ + "Money Provided\t"COL_GREEN"$12,500,000\n"\ + "House Provided\t"COL_GREEN"Yes\n"\ + "Vehicle Provided\t"COL_GREEN"Yes\n"\ + "Garage Provided\t"COL_RED"No\n"\ + "Gate Provided\t"COL_RED"No\n"\ + "Weed Business Provided\t"COL_RED"No\n"\ + "House Customization\t"COL_GREEN"Medium\n"\ + "Total house slots\t"COL_GREEN"10\n"\ + "Total garage slots\t"COL_GREEN"10\n"\ + "Total business slots\t"COL_GREEN"10\n"\ + "Total vehicle slots\t"COL_GREEN"10\n"\ + "Weapons on spawn\t"COL_GREEN"3\n"\ + "Armour on spawn\t"COL_GREEN"Yes\n"\ + "Coin generation increase\t"COL_GREEN"10%%\n"\ + "Ability to transfer coins P2P\t"COL_GREEN"Yes\n"\ + "Ability to sell coins on the coin market (/ic sell)\t"COL_GREEN"Yes\n"\ + "Ability to use two jobs (/vipjob)\t"COL_RED"No\n"\ + "Premium home listing fees waived\t"COL_GREEN"Yes\n"\ + "Tax reduction\t"COL_RED"0%%\n"\ + "Inactive asset protection\t"COL_GREEN"14 days\n"\ + "Total Vehicle component editing slots\t"COL_GREEN"8\n"\ + "Furniture slots available\t"COL_GREEN"45\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t"COL_GREEN"1 minutes\n"\ + "V.I.P Tag On Forum\t"COL_GREEN"Yes\n"\ + "Access to V.I.P chat\t"COL_GREEN"Yes\n"\ + "Access to V.I.P lounge\t"COL_GREEN"Yes\n"\ + "Can spawn with a specific skin\t"COL_GREEN"Yes\n"\ + "Access to V.I.P toys\t"COL_GREEN"Yes\n"\ + "Access to custom gang colors (/gangcolor)\t"COL_GREEN"Yes\n"\ + "Access to extra house weapon storage slots\t"COL_GREEN"Yes\n"\ + "Can play custom radio URLs (/radio)\t"COL_GREEN"Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t"COL_GREEN"Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t"COL_GREEN"Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t"COL_GREEN"Yes" ); - case 2: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ - "Money Provided\t{6EF83C}$5,000,000\n"\ - "House Provided\t{6EF83C}Yes\n"\ - "Vehicle Provided\t{6EF83C}Yes\n"\ - "Garage Provided\t{F81414}No\n"\ - "Gate Provided\t{F81414}No\n"\ - "Weed Business Provided\t{F81414}No\n"\ - "House Customization\t{6EF83C}Small\n"\ - "Total house slots\t{6EF83C}8\n"\ - "Total garage slots\t{6EF83C}8\n"\ - "Total business slots\t{6EF83C}8\n"\ - "Total vehicle slots\t{6EF83C}6\n"\ - "Weapons on spawn\t{6EF83C}2\n"\ - "Armour on spawn\t{6EF83C}Yes\n"\ - "Coin generation increase\t{F81414}0%%\n"\ - "Ability to transfer coins P2P\t{6EF83C}Yes\n"\ - "Ability to sell coins on the coin market (/ic sell)\t{6EF83C}Yes\n"\ - "Ability to use two jobs (/vipjob)\t{F81414}No\n"\ - "Premium home listing fees waived\t{F81414}No\n"\ - "Tax reduction\t{F81414}0%%\n"\ - "Inactive asset protection\t{6EF83C}14 days\n"\ - "Total Vehicle component editing slots\t{6EF83C}6\n"\ - "Furniture slots available\t{6EF83C}40\n"\ - "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}5 minutes\n"\ - "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ - "Access to V.I.P chat\t{6EF83C}Yes\n"\ - "Access to V.I.P lounge\t{6EF83C}Yes\n"\ - "Can spawn with a specific skin\t{6EF83C}Yes\n"\ - "Access to V.I.P toys\t{6EF83C}Yes\n"\ - "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ - "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ - "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ - "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ - "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ - "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); + case 2: format( vip_description, sizeof( vip_description ), "\t"COL_GREY"Feature\t"COL_GREY"Reward\n"\ + "Money Provided\t"COL_GREEN"$5,000,000\n"\ + "House Provided\t"COL_GREEN"Yes\n"\ + "Vehicle Provided\t"COL_GREEN"Yes\n"\ + "Garage Provided\t"COL_RED"No\n"\ + "Gate Provided\t"COL_RED"No\n"\ + "Weed Business Provided\t"COL_RED"No\n"\ + "House Customization\t"COL_GREEN"Small\n"\ + "Total house slots\t"COL_GREEN"8\n"\ + "Total garage slots\t"COL_GREEN"8\n"\ + "Total business slots\t"COL_GREEN"8\n"\ + "Total vehicle slots\t"COL_GREEN"6\n"\ + "Weapons on spawn\t"COL_GREEN"2\n"\ + "Armour on spawn\t"COL_GREEN"Yes\n"\ + "Coin generation increase\t"COL_RED"0%%\n"\ + "Ability to transfer coins P2P\t"COL_GREEN"Yes\n"\ + "Ability to sell coins on the coin market (/ic sell)\t"COL_GREEN"Yes\n"\ + "Ability to use two jobs (/vipjob)\t"COL_RED"No\n"\ + "Premium home listing fees waived\t"COL_RED"No\n"\ + "Tax reduction\t"COL_RED"0%%\n"\ + "Inactive asset protection\t"COL_GREEN"14 days\n"\ + "Total Vehicle component editing slots\t"COL_GREEN"6\n"\ + "Furniture slots available\t"COL_GREEN"40\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t"COL_GREEN"5 minutes\n"\ + "V.I.P Tag On Forum\t"COL_GREEN"Yes\n"\ + "Access to V.I.P chat\t"COL_GREEN"Yes\n"\ + "Access to V.I.P lounge\t"COL_GREEN"Yes\n"\ + "Can spawn with a specific skin\t"COL_GREEN"Yes\n"\ + "Access to V.I.P toys\t"COL_GREEN"Yes\n"\ + "Access to custom gang colors (/gangcolor)\t"COL_GREEN"Yes\n"\ + "Access to extra house weapon storage slots\t"COL_GREEN"Yes\n"\ + "Can play custom radio URLs (/radio)\t"COL_GREEN"Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t"COL_GREEN"Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t"COL_GREEN"Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t"COL_GREEN"Yes" ); - case 3: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ - "Money Provided\t{6EF83C}$2,500,000\n"\ - "House Provided\t{F81414}No\n"\ - "Vehicle Provided\t{F81414}No\n"\ - "Garage Provided\t{F81414}No\n"\ - "Gate Provided\t{F81414}No\n"\ - "Weed Business Provided\t{F81414}No\n"\ - "House Customization\t{F81414}No\n"\ - "Total house slots\t{6EF83C}6\n"\ - "Total garage slots\t{6EF83C}6\n"\ - "Total business slots\t{6EF83C}6\n"\ - "Total vehicle slots\t{6EF83C}4\n"\ - "Weapons on spawn\t{6EF83C}1\n"\ - "Armour on spawn\t{F81414}No\n"\ - "Coin generation increase\t{F81414}0%%\n"\ - "Ability to transfer coins P2P\t{6EF83C}Yes\n"\ - "Ability to sell coins on the coin market (/ic sell)\t{6EF83C}Yes\n"\ - "Ability to use two jobs (/vipjob)\t{F81414}No\n"\ - "Premium home listing fees waived\t{F81414}No\n"\ - "Tax reduction\t{F81414}0%%\n"\ - "Inactive asset protection\t{6EF83C}14 days\n"\ - "Total Vehicle component editing slots\t{6EF83C}4\n"\ - "Furniture slots available\t{6EF83C}35\n"\ - "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}5 minutes\n"\ - "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ - "Access to V.I.P chat\t{6EF83C}Yes\n"\ - "Access to V.I.P lounge\t{6EF83C}Yes\n"\ - "Can spawn with a specific skin\t{6EF83C}Yes\n"\ - "Access to V.I.P toys\t{6EF83C}Yes\n"\ - "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ - "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ - "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ - "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ - "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ - "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); + case 3: format( vip_description, sizeof( vip_description ), "\t"COL_GREY"Feature\t"COL_GREY"Reward\n"\ + "Money Provided\t"COL_GREEN"$2,500,000\n"\ + "House Provided\t"COL_RED"No\n"\ + "Vehicle Provided\t"COL_RED"No\n"\ + "Garage Provided\t"COL_RED"No\n"\ + "Gate Provided\t"COL_RED"No\n"\ + "Weed Business Provided\t"COL_RED"No\n"\ + "House Customization\t"COL_RED"No\n"\ + "Total house slots\t"COL_GREEN"6\n"\ + "Total garage slots\t"COL_GREEN"6\n"\ + "Total business slots\t"COL_GREEN"6\n"\ + "Total vehicle slots\t"COL_GREEN"4\n"\ + "Weapons on spawn\t"COL_GREEN"1\n"\ + "Armour on spawn\t"COL_RED"No\n"\ + "Coin generation increase\t"COL_RED"0%%\n"\ + "Ability to transfer coins P2P\t"COL_GREEN"Yes\n"\ + "Ability to sell coins on the coin market (/ic sell)\t"COL_GREEN"Yes\n"\ + "Ability to use two jobs (/vipjob)\t"COL_RED"No\n"\ + "Premium home listing fees waived\t"COL_RED"No\n"\ + "Tax reduction\t"COL_RED"0%%\n"\ + "Inactive asset protection\t"COL_GREEN"14 days\n"\ + "Total Vehicle component editing slots\t"COL_GREEN"4\n"\ + "Furniture slots available\t"COL_GREEN"35\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t"COL_GREEN"5 minutes\n"\ + "V.I.P Tag On Forum\t"COL_GREEN"Yes\n"\ + "Access to V.I.P chat\t"COL_GREEN"Yes\n"\ + "Access to V.I.P lounge\t"COL_GREEN"Yes\n"\ + "Can spawn with a specific skin\t"COL_GREEN"Yes\n"\ + "Access to V.I.P toys\t"COL_GREEN"Yes\n"\ + "Access to custom gang colors (/gangcolor)\t"COL_GREEN"Yes\n"\ + "Access to extra house weapon storage slots\t"COL_GREEN"Yes\n"\ + "Can play custom radio URLs (/radio)\t"COL_GREEN"Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t"COL_GREEN"Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t"COL_GREEN"Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t"COL_GREEN"Yes" ); - case 4: format( vip_description, sizeof( vip_description ), "\t{C0C0C0}Feature\t{C0C0C0}Reward\n"\ - "Money Provided\t{6EF83C}$500,000\n"\ - "House Provided\t{F81414}No\n"\ - "Vehicle Provided\t{F81414}No\n"\ - "Garage Provided\t{F81414}No\n"\ - "Gate Provided\t{F81414}No\n"\ - "Weed Business Provided\t{F81414}No\n"\ - "House Customization\t{F81414}No\n"\ - "Total house slots\t{6EF83C}5\n"\ - "Total garage slots\t{6EF83C}5\n"\ - "Total business slots\t{6EF83C}5\n"\ - "Total vehicle slots\t{6EF83C}3\n"\ - "Weapons on spawn\t{6EF83C}1\n"\ - "Armour on spawn\t{F81414}No\n"\ - "Coin generation increase\t{F81414}0%%\n"\ - "Ability to transfer coins P2P\t{F81414}No\n"\ - "Ability to sell coins on the coin market (/ic sell)\t{F81414}No\n"\ - "Ability to use two jobs (/vipjob)\t{F81414}No\n"\ - "Premium home listing fees waived\t{F81414}No\n"\ - "Tax reduction\t{F81414}0%%\n"\ - "Inactive asset protection\t{6EF83C}14 days\n"\ - "Total Vehicle component editing slots\t{6EF83C}3\n"\ - "Furniture slots available\t{6EF83C}30\n"\ - "V.I.P Lounge Weapon Redeeming Cooldown\t{6EF83C}5 minutes\n"\ - "V.I.P Tag On Forum\t{6EF83C}Yes\n"\ - "Access to V.I.P chat\t{6EF83C}Yes\n"\ - "Access to V.I.P lounge\t{6EF83C}Yes\n"\ - "Can spawn with a specific skin\t{6EF83C}Yes\n"\ - "Access to V.I.P toys\t{6EF83C}Yes\n"\ - "Access to custom gang colors (/gangcolor)\t{6EF83C}Yes\n"\ - "Access to extra house weapon storage slots\t{6EF83C}Yes\n"\ - "Can play custom radio URLs (/radio)\t{6EF83C}Yes\n"\ - "Ability to adjust your label's color (/labelcolor)\t{6EF83C}Yes\n"\ - "Can show a message to people you kill (/deathmsg)\t{6EF83C}Yes\n"\ - "Can adjust the sound of your hitmarker (/hitmarker)\t{6EF83C}Yes" ); + case 4: format( vip_description, sizeof( vip_description ), "\t"COL_GREY"Feature\t"COL_GREY"Reward\n"\ + "Money Provided\t"COL_GREEN"$500,000\n"\ + "House Provided\t"COL_RED"No\n"\ + "Vehicle Provided\t"COL_RED"No\n"\ + "Garage Provided\t"COL_RED"No\n"\ + "Gate Provided\t"COL_RED"No\n"\ + "Weed Business Provided\t"COL_RED"No\n"\ + "House Customization\t"COL_RED"No\n"\ + "Total house slots\t"COL_GREEN"5\n"\ + "Total garage slots\t"COL_GREEN"5\n"\ + "Total business slots\t"COL_GREEN"5\n"\ + "Total vehicle slots\t"COL_GREEN"3\n"\ + "Weapons on spawn\t"COL_GREEN"1\n"\ + "Armour on spawn\t"COL_RED"No\n"\ + "Coin generation increase\t"COL_RED"0%%\n"\ + "Ability to transfer coins P2P\t"COL_RED"No\n"\ + "Ability to sell coins on the coin market (/ic sell)\t"COL_RED"No\n"\ + "Ability to use two jobs (/vipjob)\t"COL_RED"No\n"\ + "Premium home listing fees waived\t"COL_RED"No\n"\ + "Tax reduction\t"COL_RED"0%%\n"\ + "Inactive asset protection\t"COL_GREEN"14 days\n"\ + "Total Vehicle component editing slots\t"COL_GREEN"3\n"\ + "Furniture slots available\t"COL_GREEN"30\n"\ + "V.I.P Lounge Weapon Redeeming Cooldown\t"COL_GREEN"5 minutes\n"\ + "V.I.P Tag On Forum\t"COL_GREEN"Yes\n"\ + "Access to V.I.P chat\t"COL_GREEN"Yes\n"\ + "Access to V.I.P lounge\t"COL_GREEN"Yes\n"\ + "Can spawn with a specific skin\t"COL_GREEN"Yes\n"\ + "Access to V.I.P toys\t"COL_GREEN"Yes\n"\ + "Access to custom gang colors (/gangcolor)\t"COL_GREEN"Yes\n"\ + "Access to extra house weapon storage slots\t"COL_GREEN"Yes\n"\ + "Can play custom radio URLs (/radio)\t"COL_GREEN"Yes\n"\ + "Ability to adjust your label's color (/labelcolor)\t"COL_GREEN"Yes\n"\ + "Can show a message to people you kill (/deathmsg)\t"COL_GREEN"Yes\n"\ + "Can adjust the sound of your hitmarker (/hitmarker)\t"COL_GREEN"Yes" ); } - ShowPlayerDialog( playerid, DIALOG_BUY_VIP_MAIN, DIALOG_STYLE_TABLIST_HEADERS, sprintf( "{FFDC2E}%s", g_irresistibleVipItems[ listitem ][ E_NAME ] ), vip_description, "Buy", "Back" ); + ShowPlayerDialog( playerid, DIALOG_BUY_VIP_MAIN, DIALOG_STYLE_TABLIST_HEADERS, sprintf( ""COL_GOLD"%s", g_irresistibleVipItems[ listitem ][ E_NAME ] ), vip_description, "Buy", "Back" ); return 1; } else if ( dialogid == DIALOG_BUY_VIP_MAIN ) @@ -677,7 +677,7 @@ CMD:donate( playerid, params[ ] ) return cmd_vip( playerid, params ); CMD:vip( playerid, params[ ] ) { p_SelectedPackage{ playerid } = -1; - ShowPlayerDialog( playerid, DIALOG_VIP_MAIN, DIALOG_STYLE_LIST, "{FFDC2E}VIP Packages", "{4EE2EC}Diamond VIP ($100.00 USD)\n{E0E0E0}Platinum VIP ($50.00 USD)\n{FFDC2E}Gold VIP ($25.00 USD)\n{CD7F32}Bronze VIP ($15.00 USD)\n{C0C0C0}Regular VIP ($5.00 USD)", "Select", "Close" ); + ShowPlayerDialog( playerid, DIALOG_VIP_MAIN, DIALOG_STYLE_TABLIST, ""COL_GOLD"VIP Packages", "{4EE2EC}Diamond VIP\t"COL_GREEN"$100.00 USD\n{E0E0E0}Platinum VIP\t"COL_GREEN"$50.00 USD\n"COL_GOLD"Gold VIP\t"COL_GREEN"$25.00 USD\n{CD7F32}Bronze VIP\t"COL_GREEN"$15.00 USD\n"COL_GREY"Regular VIP\t"COL_GREEN"$5.00 USD)", "Select", "Close" ); return 1; } @@ -686,15 +686,15 @@ CMD:vipcmds( playerid, params[ ] ) if ( p_VIPLevel[ playerid ] < 1 ) return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" ); erase( szLargeString ); - strcat( szLargeString, ""COL_GREY"/vipspawnwep{FFFFFF} - Configure your spawning weapons\n"\ - ""COL_GREY"/vipskin{FFFFFF} - Configure your spawning skin\n"\ - ""COL_GREY"/viplist{FFFFFF} - A list of all online V.I.P. players.\n"\ - ""COL_GREY"/vipgun{FFFFFF} - Redeem weapons or an armour vest from the gun locker\n"\ - ""COL_GREY"/vsay{FFFFFF} - Global V.I.P Chat\n"\ - ""COL_GREY"/vipjob{FFFFFF} - Choose your V.I.P. job that allows you to have two jobs at once.\n"\ - ""COL_GREY"/mynotes{FFFFFF} - Access your VIP notes and material" ); + strcat( szLargeString, ""COL_GREY"/vipspawnwep"COL_WHITE" - Configure your spawning weapons\n"\ + ""COL_GREY"/vipskin"COL_WHITE" - Configure your spawning skin\n"\ + ""COL_GREY"/viplist"COL_WHITE" - A list of all online V.I.P. players.\n"\ + ""COL_GREY"/vipgun"COL_WHITE" - Redeem weapons or an armour vest from the gun locker\n"\ + ""COL_GREY"/vsay"COL_WHITE" - Global V.I.P Chat\n"\ + ""COL_GREY"/vipjob"COL_WHITE" - Choose your V.I.P. job that allows you to have two jobs at once.\n"\ + ""COL_GREY"/mynotes"COL_WHITE" - Access your VIP notes and material" ); - ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "{FFDC2E}V.I.P Commands", szLargeString, "Okay", "" ); + ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, ""COL_GOLD"V.I.P Commands", szLargeString, "Okay", "" ); return 1; } @@ -726,7 +726,7 @@ stock ShowPlayerCoinMarketDialog( playerid, page = ICM_PAGE_DEFAULT ) strcat( szMarket, ""COL_GREEN"Buy shark cards...\t"COL_GREEN">>>\n" ); strcat( szMarket, ""COL_PURPLE"Buy premium homes...\t"COL_PURPLE">>>\n" ); strcat( szMarket, ""COL_GREY"See other items...\t"COL_GREY">>>" ); - return ShowPlayerDialog( playerid, DIALOG_IC_MARKET, DIALOG_STYLE_TABLIST_HEADERS, ""COL_GOLD"Irresistible Coin -{FFFFFF} Market", szMarket, "Select", "" ); + return ShowPlayerDialog( playerid, DIALOG_IC_MARKET, DIALOG_STYLE_TABLIST_HEADERS, ""COL_GOLD"Irresistible Coin -"COL_WHITE" Market", szMarket, "Select", "" ); } else if ( page == ICM_PAGE_CASHCARD ) { @@ -737,7 +737,7 @@ stock ShowPlayerCoinMarketDialog( playerid, page = ICM_PAGE_DEFAULT ) new iCoinRequirement = floatround( g_irresistibleCashCards[ i ] [ E_PRICE ] * discount ); format( szMarket, sizeof( szMarket ), "%s%s\t"COL_GREEN"%s\t"COL_GOLD"%s\n", szMarket, g_irresistibleCashCards[ i ] [ E_NAME ], number_format( g_irresistibleCashCards[ i ] [ E_ID ] ), number_format( iCoinRequirement, .decimals = 0 ) ); } - return ShowPlayerDialog( playerid, DIALOG_IC_MARKET_3, DIALOG_STYLE_TABLIST_HEADERS, ""COL_GOLD"Irresistible Coin -{FFFFFF} Cash Cards", szMarket, "Select", "Back" ); + return ShowPlayerDialog( playerid, DIALOG_IC_MARKET_3, DIALOG_STYLE_TABLIST_HEADERS, ""COL_GOLD"Irresistible Coin -"COL_WHITE" Cash Cards", szMarket, "Select", "Back" ); } else { @@ -746,7 +746,7 @@ stock ShowPlayerCoinMarketDialog( playerid, page = ICM_PAGE_DEFAULT ) new iCoinRequirement = floatround( g_irresistibleMarketItems[ i ] [ E_PRICE ] * discount ); format( szMarket, sizeof( szMarket ), "%s%s\t"COL_GOLD"%s\n", szMarket, g_irresistibleMarketItems[ i ] [ E_NAME ], number_format( iCoinRequirement, .decimals = 0 ) ); } - return ShowPlayerDialog( playerid, DIALOG_IC_MARKET_2, DIALOG_STYLE_TABLIST_HEADERS, ""COL_GOLD"Irresistible Coin -{FFFFFF} Asset Market", szMarket, "Select", "Back" ); + return ShowPlayerDialog( playerid, DIALOG_IC_MARKET_2, DIALOG_STYLE_TABLIST_HEADERS, ""COL_GOLD"Irresistible Coin -"COL_WHITE" Asset Market", szMarket, "Select", "Back" ); } } From 0491f4eb9f6da85c0deb5e071ddd47d09b0461ea Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 12:30:16 +1000 Subject: [PATCH 17/25] fix slot spamming win msg --- .../irresistible/cnr/features/visage/blackjack.pwn | 6 ++---- .../irresistible/cnr/features/visage/roulette.pwn | 6 ++---- .../irresistible/cnr/features/visage/slot_machines.pwn | 10 ++++------ 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/visage/blackjack.pwn b/gamemodes/irresistible/cnr/features/visage/blackjack.pwn index d644acc..4bdf0c5 100644 --- a/gamemodes/irresistible/cnr/features/visage/blackjack.pwn +++ b/gamemodes/irresistible/cnr/features/visage/blackjack.pwn @@ -627,10 +627,8 @@ stock CheckForBlackjack( tableid ) // alert world if ( g_blackjackPlayerState[ tableid ] [ player_index ] == BLACKJACK_STATE_WIN && payout > g_blackjackData[ tableid ] [ E_PAYOUT ] && payout >= 10000 ) { UpdateServerVariable( "blackjack_wins", 0, GetGVarFloat( "blackjack_wins" ) + ( float( payout ) / 1000000.0 ), "", GLOBAL_VARTYPE_FLOAT ); - foreach(new i : Player) - { - if ( !IsPlayerSettingToggled( i, 12 ) ) - SendClientMessageFormatted( i, -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from blackjack!", ReturnPlayerName( playerid ), playerid, cash_format( payout ) ); + foreach ( new i : Player ) if ( ! IsPlayerSettingToggled( i, SETTING_HIDE_GAMB_MSG ) ) { + SendClientMessageFormatted( i, -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from blackjack!", ReturnPlayerName( playerid ), playerid, cash_format( payout ) ); } } } diff --git a/gamemodes/irresistible/cnr/features/visage/roulette.pwn b/gamemodes/irresistible/cnr/features/visage/roulette.pwn index 7d8c56a..188c946 100644 --- a/gamemodes/irresistible/cnr/features/visage/roulette.pwn +++ b/gamemodes/irresistible/cnr/features/visage/roulette.pwn @@ -686,10 +686,8 @@ public OnRouletteWheelStop( rouletteid, winner ) // inform users if ( profit >= 10000 ) { - foreach(new i : Player) - { - if ( !IsPlayerSettingToggled( i, 12 ) ) - SendClientMessageFormatted( i, -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from roulette!", ReturnPlayerName( playerid ), playerid, cash_format( profit ) ); + foreach ( new i : Player ) if ( ! IsPlayerSettingToggled( i, SETTING_HIDE_GAMB_MSG ) ) { + SendClientMessageFormatted( i, -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from roulette!", ReturnPlayerName( playerid ), playerid, cash_format( profit ) ); } } diff --git a/gamemodes/irresistible/cnr/features/visage/slot_machines.pwn b/gamemodes/irresistible/cnr/features/visage/slot_machines.pwn index fd7c0e2..adfe253 100644 --- a/gamemodes/irresistible/cnr/features/visage/slot_machines.pwn +++ b/gamemodes/irresistible/cnr/features/visage/slot_machines.pwn @@ -287,13 +287,11 @@ public OnPlayerUseSlotMachine( playerid, slotid, first_combo, second_combo, thir // alert user if ( iNetWin > g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] ) { - SendGlobalMessage( -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from the %s casino slots!", ReturnPlayerName( playerid ), playerid, cash_format( iNetWin ), g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] == 10000 ? ( "Four Dragons" ) : ( g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] >= 25000 ? ( "Visage" ) : ( "Caligulas" ) ) ); - foreach(new i : Player) - { - if ( !IsPlayerSettingToggled( i, 12 ) ) - SendClientMessageFormatted( i, -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from the %s casino slots!", ReturnPlayerName( playerid ), playerid, cash_format( iNetWin ), g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] == 10000 ? ( "Four Dragons" ) : ( g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] >= 25000 ? ( "Visage" ) : ( "Caligulas" ) ) ); + // SendGlobalMessage( -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from the %s casino slots!", ReturnPlayerName( playerid ), playerid, cash_format( iNetWin ), g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] == 10000 ? ( "Four Dragons" ) : ( g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] >= 25000 ? ( "Visage" ) : ( "Caligulas" ) ) ); + foreach ( new i : Player ) if ( ! IsPlayerSettingToggled( i, SETTING_HIDE_GAMB_MSG ) ) { + SendClientMessageFormatted( i, -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from the %s casino slots!", ReturnPlayerName( playerid ), playerid, cash_format( iNetWin ), g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] == 10000 ? ( "Four Dragons" ) : ( g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] >= 25000 ? ( "Visage" ) : ( "Caligulas" ) ) ); } - } else { + } else { SendServerMessage( playerid, "Congratulations, you've won "COL_GOLD"%s"COL_WHITE"!", cash_format( iNetWin ) ); } From 2a5fdb24e0b25bec679fda86541ca6fe948c1b8e Mon Sep 17 00:00:00 2001 From: Stev Date: Sun, 2 Jun 2019 07:23:04 +0100 Subject: [PATCH 18/25] remove pointless variable --- gamemodes/irresistible/cnr/features/minijobs/mining.pwn | 1 - 1 file changed, 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn index ada9bd3..e79a19b 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn @@ -44,7 +44,6 @@ static stock g_orePrices [ ] = { 675, 900, 600, 2750, 3000, 3500, 4000, 2200, 2300, 1200 }, g_oreMiningTime [ ] = { 2000, 2800, 1600, 6800, 7200, 7600, 8000, 6400, 6560, 4000 }, g_oreQuanities [ ] = { 8, 8, 8, 8, 5, 3, 3, 5, 5, 6 }, - g_oreProbability [ ] = { 85, 80, 90, 45, 35, 30, 25, 52, 30, 75 }, // Iterator Iterator: miningrock < MAX_ROCKS > From 53f366c1f8f33493f7817cab92e7848bdb7a8c0c Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 16:29:45 +1000 Subject: [PATCH 19/25] revert mining chances code --- .../cnr/features/minijobs/mining.pwn | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn index e79a19b..75b59ac 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn @@ -155,17 +155,22 @@ hook OnProgressCompleted( playerid, progressid, params ) if ( progressid == PROGRESS_MINING ) { new m = p_MiningOre{ playerid }; - new iRandom = random( 100 ); + new iRandom = random( 101 ); p_isMining{ playerid } = false; g_miningData[ m ] [ E_MINING ] = INVALID_PLAYER_ID; - new Float: random_chance = fRandomEx( 0.0, 101.0 ); - - random_chance += GetPlayerLevel( playerid, E_ROLEPLAY ) * 0.2; - - // potential for a 20% success rate - if ( random_chance < 20.0 ) + if ( ( g_miningData[ m ] [ E_ORE ] == ORE_IRON && iRandom > 80 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_BAUXITE && iRandom > 85 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_GOLD && iRandom > 45 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_COAL && iRandom > 90 || + ( g_miningData[ m ] [ E_ORE ] == ORE_DIAMOND && iRandom > 30 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_RUBY && iRandom > 35 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_SAPHHIRE && iRandom > 30 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_EMERALD && iRandom > 52 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_PLATINUM && iRandom > 25 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_AMETHYST && iRandom > 75 ) ) + ) { SetPlayerMineOre( playerid, m ); return SendError( playerid, "You did not find any ore. Mining again." ); From 7a7aaabeeefced48fb8dbac35d711e5e1690ff3a Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 16:35:56 +1000 Subject: [PATCH 20/25] increase success rate parallel to the player roleplay level --- .../cnr/features/minijobs/mining.pwn | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn index 75b59ac..14bdee6 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn @@ -155,21 +155,24 @@ hook OnProgressCompleted( playerid, progressid, params ) if ( progressid == PROGRESS_MINING ) { new m = p_MiningOre{ playerid }; - new iRandom = random( 101 ); + new Float: iRandom = fRandomEx( 0.0, 100.0 ); + + // increase success rate parallel to the player roleplay level + iRandom *= 1.0 + ( GetPlayerLevel( playerid, E_ROLEPLAY ) / 100.0 ); p_isMining{ playerid } = false; g_miningData[ m ] [ E_MINING ] = INVALID_PLAYER_ID; - if ( ( g_miningData[ m ] [ E_ORE ] == ORE_IRON && iRandom > 80 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_BAUXITE && iRandom > 85 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_GOLD && iRandom > 45 ) || + if ( ( g_miningData[ m ] [ E_ORE ] == ORE_IRON && iRandom > 80.0 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_BAUXITE && iRandom > 85.0 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_GOLD && iRandom > 45.0 ) || ( g_miningData[ m ] [ E_ORE ] == ORE_COAL && iRandom > 90 || - ( g_miningData[ m ] [ E_ORE ] == ORE_DIAMOND && iRandom > 30 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_RUBY && iRandom > 35 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_SAPHHIRE && iRandom > 30 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_EMERALD && iRandom > 52 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_PLATINUM && iRandom > 25 ) || - ( g_miningData[ m ] [ E_ORE ] == ORE_AMETHYST && iRandom > 75 ) ) + ( g_miningData[ m ] [ E_ORE ] == ORE_DIAMOND && iRandom > 30.0 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_RUBY && iRandom > 35.0 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_SAPHHIRE && iRandom > 30.0 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_EMERALD && iRandom > 52.0 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_PLATINUM && iRandom > 25.0 ) || + ( g_miningData[ m ] [ E_ORE ] == ORE_AMETHYST && iRandom > 75.0 ) ) ) { SetPlayerMineOre( playerid, m ); @@ -209,7 +212,7 @@ hook OnPlayerEnterDynamicCP( playerid, checkpointid ) new earned_money = floatround( float( g_orePrices[ g_miningData[ ore ] [ E_ORE ] ] ) * 0.5 ); - GivePlayerExperience( playerid, E_ROLEPLAY ); + GivePlayerExperience( playerid, E_ROLEPLAY, 0.5 ); GivePlayerCash( playerid, earned_money ); StockMarket_UpdateEarnings( E_STOCK_MINING_COMPANY, earned_money, 0.5 ); SendServerMessage( playerid, "You have crushed a "COL_GREY"%s"COL_WHITE" Ore and earned "COL_GOLD"%s"COL_WHITE".", getOreName( g_miningData[ ore ] [ E_ORE ] ), cash_format( earned_money ) ); From aedabe2d6b7675a6524f93bc059704b4fe05f3f0 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 16:50:57 +1000 Subject: [PATCH 21/25] give mining xp for mining the rock --- gamemodes/irresistible/cnr/features/minijobs/mining.pwn | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn index 14bdee6..b4b4dc5 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn @@ -43,6 +43,7 @@ static stock g_orePrices [ ] = { 675, 900, 600, 2750, 3000, 3500, 4000, 2200, 2300, 1200 }, g_oreMiningTime [ ] = { 2000, 2800, 1600, 6800, 7200, 7600, 8000, 6400, 6560, 4000 }, + Float: g_oreMiningXp [ ] = { 0.5, 0.7, 0.4, 1.7, 1.8, 1.9, 2.0, 1.6, 1.64, 1.0 }, g_oreQuanities [ ] = { 8, 8, 8, 8, 5, 3, 3, 5, 5, 6 }, // Iterator @@ -191,7 +192,7 @@ hook OnProgressCompleted( playerid, progressid, params ) SendServerMessage( playerid, "Great you've mined an ore, now store it in a "COL_GREY"Dune"COL_WHITE"." ); } - //GivePlayerExperience( playerid, E_MINING ); + GivePlayerExperience( playerid, E_ROLEPLAY, g_oreMiningXp[ g_miningData[ m ] [ E_ORE ] ] ); SetPVarInt( playerid, "carrying_ore", m ); SetPlayerSpecialAction( playerid, SPECIAL_ACTION_CARRY ); SetPlayerAttachedObject( playerid, 4, 2936, 5, 0.000000, 0.197999, 0.133999, 113.099983, -153.799987, 57.300003, 0.631000, 0.597000, 0.659999, g_miningData[ m ] [ E_ARGB ], g_miningData[ m ] [ E_ARGB ] ); @@ -212,7 +213,7 @@ hook OnPlayerEnterDynamicCP( playerid, checkpointid ) new earned_money = floatround( float( g_orePrices[ g_miningData[ ore ] [ E_ORE ] ] ) * 0.5 ); - GivePlayerExperience( playerid, E_ROLEPLAY, 0.5 ); + GivePlayerExperience( playerid, E_ROLEPLAY, 0.2 ); GivePlayerCash( playerid, earned_money ); StockMarket_UpdateEarnings( E_STOCK_MINING_COMPANY, earned_money, 0.5 ); SendServerMessage( playerid, "You have crushed a "COL_GREY"%s"COL_WHITE" Ore and earned "COL_GOLD"%s"COL_WHITE".", getOreName( g_miningData[ ore ] [ E_ORE ] ), cash_format( earned_money ) ); From 0354ee75de97b3753171749cb0f0e5d143439ca9 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 16:58:35 +1000 Subject: [PATCH 22/25] -- update changelog --- scriptfiles/changelogs/cnr/_changelogs.cfg | 1 + scriptfiles/changelogs/cnr/v11.65.200.txt | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 scriptfiles/changelogs/cnr/v11.65.200.txt diff --git a/scriptfiles/changelogs/cnr/_changelogs.cfg b/scriptfiles/changelogs/cnr/_changelogs.cfg index 9cabed4..20b7bd5 100644 --- a/scriptfiles/changelogs/cnr/_changelogs.cfg +++ b/scriptfiles/changelogs/cnr/_changelogs.cfg @@ -1,3 +1,4 @@ +v11.65.200 v11.60.190 v11.57.188 v11.56.186 diff --git a/scriptfiles/changelogs/cnr/v11.65.200.txt b/scriptfiles/changelogs/cnr/v11.65.200.txt new file mode 100644 index 0000000..858ea50 --- /dev/null +++ b/scriptfiles/changelogs/cnr/v11.65.200.txt @@ -0,0 +1,9 @@ +(+) Level 5 admins cannot create houses/cars/garages/businesses without a note being used. +(+) Adds CAC mode and new locations for the duel system (Stev). +(+) Adds /givearmour for level 5s (Nemesis). +(+) Adds roleplay level. Get benefits to minijobs by levelling it up. E.g. higher success mining. +(/) Inactive accounts will get removed now after 1 year. +(/) Oldschool class selection has been restored. +(/) "/vip" has been reformatted (Night). +(*) Fix global message spam with slot machines. +(*) Fix issue with features being shown and unavoidable on register. \ No newline at end of file From fba9840a57a62b2902279ce91730626456824a3b Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 17:10:13 +1000 Subject: [PATCH 23/25] fix typo --- gamemodes/irresistible/cnr/features/vip/coin_market.pwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/vip/coin_market.pwn b/gamemodes/irresistible/cnr/features/vip/coin_market.pwn index 6dd27eb..31d8f3b 100644 --- a/gamemodes/irresistible/cnr/features/vip/coin_market.pwn +++ b/gamemodes/irresistible/cnr/features/vip/coin_market.pwn @@ -677,7 +677,7 @@ CMD:donate( playerid, params[ ] ) return cmd_vip( playerid, params ); CMD:vip( playerid, params[ ] ) { p_SelectedPackage{ playerid } = -1; - ShowPlayerDialog( playerid, DIALOG_VIP_MAIN, DIALOG_STYLE_TABLIST, ""COL_GOLD"VIP Packages", "{4EE2EC}Diamond VIP\t"COL_GREEN"$100.00 USD\n{E0E0E0}Platinum VIP\t"COL_GREEN"$50.00 USD\n"COL_GOLD"Gold VIP\t"COL_GREEN"$25.00 USD\n{CD7F32}Bronze VIP\t"COL_GREEN"$15.00 USD\n"COL_GREY"Regular VIP\t"COL_GREEN"$5.00 USD)", "Select", "Close" ); + ShowPlayerDialog( playerid, DIALOG_VIP_MAIN, DIALOG_STYLE_TABLIST, ""COL_GOLD"VIP Packages", "{4EE2EC}Diamond VIP\t"COL_GREEN"$100.00 USD\n{E0E0E0}Platinum VIP\t"COL_GREEN"$50.00 USD\n"COL_GOLD"Gold VIP\t"COL_GREEN"$25.00 USD\n{CD7F32}Bronze VIP\t"COL_GREEN"$15.00 USD\n"COL_GREY"Regular VIP\t"COL_GREEN"$5.00 USD", "Select", "Close" ); return 1; } From a8d55d9c6c73784baa175340f65f46ef311815fa Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 17:10:29 +1000 Subject: [PATCH 24/25] nerf mining xp per rock --- gamemodes/irresistible/cnr/features/minijobs/mining.pwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn index b4b4dc5..c6508a7 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/mining.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/mining.pwn @@ -43,7 +43,7 @@ static stock g_orePrices [ ] = { 675, 900, 600, 2750, 3000, 3500, 4000, 2200, 2300, 1200 }, g_oreMiningTime [ ] = { 2000, 2800, 1600, 6800, 7200, 7600, 8000, 6400, 6560, 4000 }, - Float: g_oreMiningXp [ ] = { 0.5, 0.7, 0.4, 1.7, 1.8, 1.9, 2.0, 1.6, 1.64, 1.0 }, + Float: g_oreMiningXp [ ] = { 0.25, 0.35, 0.2, 0.85, 0.9, 0.8, 1.0, 0.8, 0.82, 0.5 }, g_oreQuanities [ ] = { 8, 8, 8, 8, 5, 3, 3, 5, 5, 6 }, // Iterator From 5de5f6bf347a9ff2d2bd62bc21a0d89029ba7ada Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 2 Jun 2019 17:11:23 +1000 Subject: [PATCH 25/25] nerf rp experience sell value a bit --- gamemodes/irresistible/cnr/features/player/experience.pwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/player/experience.pwn b/gamemodes/irresistible/cnr/features/player/experience.pwn index d1aa8a1..7769837 100644 --- a/gamemodes/irresistible/cnr/features/player/experience.pwn +++ b/gamemodes/irresistible/cnr/features/player/experience.pwn @@ -54,7 +54,7 @@ static const { "Police", 0x3E7EFFFF, 7500.0, 20.0, 10.0 }, // 7.5k arrests { "Robbery", 0xF83245FF, 30000.0, 15.0, 10.0 }, // 30k robberies { "Deathmatch", 0xFF9233FF, 75000.0, 10.0, 5.0 }, // 75k kills - { "Roleplay", 0x33FF50FF, 75000.0, 10.0, 12.0 } // 75k minijob + { "Roleplay", 0x33FF50FF, 75000.0, 10.0, 5.0 } // 75k minijob /* { "Fireman", 10000.0, 9.0 }, // 10k fires