move textdraws into textdraw module ... removed pointless InitializeTextDraws callback
This commit is contained in:
parent
3d9eb93cef
commit
2f710a8f1a
@ -6,9 +6,6 @@
|
|||||||
This framework allows you to easily collaborate on Irresistible Gaming servers.
|
This framework allows you to easily collaborate on Irresistible Gaming servers.
|
||||||
|
|
||||||
Internal Server Hooks:
|
Internal Server Hooks:
|
||||||
- InitializeTextDraws( )
|
|
||||||
* Where text draws get recreated
|
|
||||||
|
|
||||||
- SetPlayerRandomSpawn( )
|
- SetPlayerRandomSpawn( )
|
||||||
* When a player is attempting to spawn somewhere randomly
|
* When a player is attempting to spawn somewhere randomly
|
||||||
*/
|
*/
|
||||||
|
@ -115,8 +115,13 @@ new
|
|||||||
;
|
;
|
||||||
|
|
||||||
/* ** Hooks ** */
|
/* ** Hooks ** */
|
||||||
hook OnGameModeInit( )
|
hook OnScriptInit( )
|
||||||
{
|
{
|
||||||
|
// initialize textdraws
|
||||||
|
for ( new i = 0; i < MAX_BLACKJACK_TABLES; i ++ ) {
|
||||||
|
initializeBlackjackTextdraws( i );
|
||||||
|
}
|
||||||
|
|
||||||
// for tracking bets
|
// for tracking bets
|
||||||
AddServerVariable( "blackjack_bets", "0.0", GLOBAL_VARTYPE_FLOAT );
|
AddServerVariable( "blackjack_bets", "0.0", GLOBAL_VARTYPE_FLOAT );
|
||||||
AddServerVariable( "blackjack_wins", "0.0", GLOBAL_VARTYPE_FLOAT );
|
AddServerVariable( "blackjack_wins", "0.0", GLOBAL_VARTYPE_FLOAT );
|
||||||
@ -297,13 +302,6 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
hook InitializeTextDraws( )
|
|
||||||
{
|
|
||||||
for ( new i = 0; i < MAX_BLACKJACK_TABLES; i ++ ) {
|
|
||||||
initializeBlackjackTextdraws( i );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ** Functions ** */
|
/* ** Functions ** */
|
||||||
stock CreateBlackjackTable( payout, Float: X, Float: Y, Float: Z, Float: Angle, world )
|
stock CreateBlackjackTable( payout, Float: X, Float: Y, Float: Z, Float: Angle, world )
|
||||||
{
|
{
|
||||||
|
@ -124,8 +124,34 @@ public OnSpinRouletteTable( rouletteid, elapsed, steps );
|
|||||||
public OnRouletteMarkerUpdate( playerid );
|
public OnRouletteMarkerUpdate( playerid );
|
||||||
|
|
||||||
/* ** Hooks ** */
|
/* ** Hooks ** */
|
||||||
hook OnGameModeInit( )
|
hook OnScriptInit( )
|
||||||
{
|
{
|
||||||
|
// initialize textdraws
|
||||||
|
for ( new handle = 0; handle < MAX_ROULETTE_TABLES; handle ++ )
|
||||||
|
{
|
||||||
|
g_rouletteNumberBG[ handle ] = TextDrawCreate(285.000000, 23.000000, "ld_roul:roulbla");
|
||||||
|
TextDrawBackgroundColor(g_rouletteNumberBG[ handle ], 255);
|
||||||
|
TextDrawFont(g_rouletteNumberBG[ handle ], 4);
|
||||||
|
TextDrawLetterSize(g_rouletteNumberBG[ handle ], 0.500000, 1.000000);
|
||||||
|
TextDrawColor(g_rouletteNumberBG[ handle ], -1);
|
||||||
|
TextDrawSetOutline(g_rouletteNumberBG[ handle ], 0);
|
||||||
|
TextDrawSetProportional(g_rouletteNumberBG[ handle ], 1);
|
||||||
|
TextDrawSetShadow(g_rouletteNumberBG[ handle ], 1);
|
||||||
|
TextDrawUseBox(g_rouletteNumberBG[ handle ], 1);
|
||||||
|
TextDrawBoxColor(g_rouletteNumberBG[ handle ], 255);
|
||||||
|
TextDrawTextSize(g_rouletteNumberBG[ handle ], 60.000000, 60.000000);
|
||||||
|
|
||||||
|
g_rouletteNumberTD[ handle ] = TextDrawCreate(314.000000, 25.000000, "35");
|
||||||
|
TextDrawAlignment(g_rouletteNumberTD[ handle ], 2);
|
||||||
|
TextDrawBackgroundColor(g_rouletteNumberTD[ handle ], 255);
|
||||||
|
TextDrawFont(g_rouletteNumberTD[ handle ], 1);
|
||||||
|
TextDrawLetterSize(g_rouletteNumberTD[ handle ], 0.800000, 4.000000);
|
||||||
|
TextDrawColor(g_rouletteNumberTD[ handle ], -1);
|
||||||
|
TextDrawSetOutline(g_rouletteNumberTD[ handle ], 0);
|
||||||
|
TextDrawSetProportional(g_rouletteNumberTD[ handle ], 1);
|
||||||
|
TextDrawSetShadow(g_rouletteNumberTD[ handle ], 1);
|
||||||
|
}
|
||||||
|
|
||||||
// server variables
|
// server variables
|
||||||
AddServerVariable( "roulette_bets", "0.0", GLOBAL_VARTYPE_FLOAT );
|
AddServerVariable( "roulette_bets", "0.0", GLOBAL_VARTYPE_FLOAT );
|
||||||
AddServerVariable( "roulette_wins", "0.0", GLOBAL_VARTYPE_FLOAT );
|
AddServerVariable( "roulette_wins", "0.0", GLOBAL_VARTYPE_FLOAT );
|
||||||
@ -425,35 +451,6 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
hook InitializeTextDraws( )
|
|
||||||
{
|
|
||||||
for ( new handle = 0; handle < MAX_ROULETTE_TABLES; handle ++ )
|
|
||||||
{
|
|
||||||
g_rouletteNumberBG[ handle ] = TextDrawCreate(285.000000, 23.000000, "ld_roul:roulbla");
|
|
||||||
TextDrawBackgroundColor(g_rouletteNumberBG[ handle ], 255);
|
|
||||||
TextDrawFont(g_rouletteNumberBG[ handle ], 4);
|
|
||||||
TextDrawLetterSize(g_rouletteNumberBG[ handle ], 0.500000, 1.000000);
|
|
||||||
TextDrawColor(g_rouletteNumberBG[ handle ], -1);
|
|
||||||
TextDrawSetOutline(g_rouletteNumberBG[ handle ], 0);
|
|
||||||
TextDrawSetProportional(g_rouletteNumberBG[ handle ], 1);
|
|
||||||
TextDrawSetShadow(g_rouletteNumberBG[ handle ], 1);
|
|
||||||
TextDrawUseBox(g_rouletteNumberBG[ handle ], 1);
|
|
||||||
TextDrawBoxColor(g_rouletteNumberBG[ handle ], 255);
|
|
||||||
TextDrawTextSize(g_rouletteNumberBG[ handle ], 60.000000, 60.000000);
|
|
||||||
|
|
||||||
g_rouletteNumberTD[ handle ] = TextDrawCreate(314.000000, 25.000000, "35");
|
|
||||||
TextDrawAlignment(g_rouletteNumberTD[ handle ], 2);
|
|
||||||
TextDrawBackgroundColor(g_rouletteNumberTD[ handle ], 255);
|
|
||||||
TextDrawFont(g_rouletteNumberTD[ handle ], 1);
|
|
||||||
TextDrawLetterSize(g_rouletteNumberTD[ handle ], 0.800000, 4.000000);
|
|
||||||
TextDrawColor(g_rouletteNumberTD[ handle ], -1);
|
|
||||||
TextDrawSetOutline(g_rouletteNumberTD[ handle ], 0);
|
|
||||||
TextDrawSetProportional(g_rouletteNumberTD[ handle ], 1);
|
|
||||||
TextDrawSetShadow(g_rouletteNumberTD[ handle ], 1);
|
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ** Functions ** */
|
/* ** Functions ** */
|
||||||
stock CreateRouletteTable( Float: X, Float: Y, Float: Z, Float: Angle, world, maxbet = 100000 )
|
stock CreateRouletteTable( Float: X, Float: Y, Float: Z, Float: Angle, world, maxbet = 100000 )
|
||||||
{
|
{
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#define MAX_MACHINES 54 // Placed top because of textdraws (TEMPORARY / HOTFIX)
|
#define MAX_MACHINES 54 // Placed top because of textdraws (TEMPORARY / HOTFIX)
|
||||||
|
|
||||||
|
/* ** Includes ** */
|
||||||
|
#include < YSI\y_hooks >
|
||||||
|
|
||||||
/* ** Variables ** */
|
/* ** Variables ** */
|
||||||
new Text: g_classTextdrawBox[ sizeof( CLASS_NAMES ) ] = { Text: INVALID_TEXT_DRAW, ... };
|
new Text: g_classTextdrawBox[ sizeof( CLASS_NAMES ) ] = { Text: INVALID_TEXT_DRAW, ... };
|
||||||
new Text: g_classTextdrawDescription[ sizeof( CLASS_NAMES ) ] = { Text: INVALID_TEXT_DRAW, ... };
|
new Text: g_classTextdrawDescription[ sizeof( CLASS_NAMES ) ] = { Text: INVALID_TEXT_DRAW, ... };
|
||||||
@ -67,3 +70,647 @@ new
|
|||||||
|
|
||||||
PlayerText: p_VehiclePreviewTD [ 7 ] = { PlayerText: INVALID_TEXT_DRAW, ... }
|
PlayerText: p_VehiclePreviewTD [ 7 ] = { PlayerText: INVALID_TEXT_DRAW, ... }
|
||||||
;
|
;
|
||||||
|
|
||||||
|
/* ** Hooks ** */
|
||||||
|
hook OnScriptInit( )
|
||||||
|
{
|
||||||
|
g_ClassBoxTD = TextDrawCreate(40.000000, 170.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_ClassBoxTD, 255);
|
||||||
|
TextDrawFont(g_ClassBoxTD, 1);
|
||||||
|
TextDrawLetterSize(g_ClassBoxTD, 0.500000, 16.000000);
|
||||||
|
TextDrawColor(g_ClassBoxTD, -1);
|
||||||
|
TextDrawSetOutline(g_ClassBoxTD, 0);
|
||||||
|
TextDrawSetProportional(g_ClassBoxTD, 1);
|
||||||
|
TextDrawSetShadow(g_ClassBoxTD, 1);
|
||||||
|
TextDrawUseBox(g_ClassBoxTD, 1);
|
||||||
|
TextDrawBoxColor(g_ClassBoxTD, 144);
|
||||||
|
TextDrawTextSize(g_ClassBoxTD, 170.000000, 10.000000);
|
||||||
|
|
||||||
|
for ( new i = 0; i < sizeof( g_classTextdrawBox ); i ++ )
|
||||||
|
{
|
||||||
|
g_classTextdrawBox[ i ] = TextDrawCreate(40.000000, 138.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_classTextdrawBox[ i ], 255);
|
||||||
|
TextDrawFont(g_classTextdrawBox[ i ], 1);
|
||||||
|
TextDrawLetterSize(g_classTextdrawBox[ i ], 0.500000, 3.000000);
|
||||||
|
TextDrawColor(g_classTextdrawBox[ i ], -1);
|
||||||
|
TextDrawSetOutline(g_classTextdrawBox[ i ], 0);
|
||||||
|
TextDrawSetProportional(g_classTextdrawBox[ i ], 1);
|
||||||
|
TextDrawSetShadow(g_classTextdrawBox[ i ], 1);
|
||||||
|
TextDrawUseBox(g_classTextdrawBox[ i ], 1);
|
||||||
|
TextDrawBoxColor(g_classTextdrawBox[ i ], CLASS_COLORS[ i ]);
|
||||||
|
TextDrawTextSize(g_classTextdrawBox[ i ], 170.000000, 10.000000);
|
||||||
|
|
||||||
|
szLargeString[ 0 ] = '\0';
|
||||||
|
|
||||||
|
switch ( i )
|
||||||
|
{
|
||||||
|
case 0: {
|
||||||
|
strcat( szLargeString, "- Select different types of jobs~n~" \
|
||||||
|
"- Able to rob stores and players~n~" \
|
||||||
|
"- Can gang up with players~n~" \
|
||||||
|
"~g~~h~- Accessible to everybody" );
|
||||||
|
}
|
||||||
|
case 1: {
|
||||||
|
strcat( szLargeString, "- Protect the city from criminals~n~" \
|
||||||
|
"- Access to police gun lockers~n~" \
|
||||||
|
"- Can arrest/jail people~n~" \
|
||||||
|
"~g~~h~- Accessible to everybody" );
|
||||||
|
}
|
||||||
|
case 2: {
|
||||||
|
strcat( szLargeString, "- Protect the city from criminals~n~" \
|
||||||
|
"- Access to police gun lockers~n~" \
|
||||||
|
"- Can arrest/jail people~n~" \
|
||||||
|
"- Can set roadblocks on roads~n~" \
|
||||||
|
"- Can set spike traps on roads~n~" \
|
||||||
|
"~r~~h~- Requires 10,000 XP or more" );
|
||||||
|
}
|
||||||
|
case 3: {
|
||||||
|
strcat( szLargeString, "- Protect the city from criminals~n~" \
|
||||||
|
"- Access to police gun lockers~n~" \
|
||||||
|
"- Can arrest/jail people~n~" \
|
||||||
|
"- Can set roadblocks on roads~n~" \
|
||||||
|
"- Can set spike traps on roads~n~" \
|
||||||
|
"- Can use combat vehicles~n~" \
|
||||||
|
"~r~~h~- Requires 20,000 XP or more" );
|
||||||
|
}
|
||||||
|
case 4: {
|
||||||
|
strcat( szLargeString, "- Protect the city from criminals~n~" \
|
||||||
|
"- Access to police gun lockers~n~" \
|
||||||
|
"- Can arrest/jail people~n~" \
|
||||||
|
"- Can set roadblocks on roads~n~" \
|
||||||
|
"- Can set spike traps on roads~n~" \
|
||||||
|
"- Hidden from radar~n~" \
|
||||||
|
"~r~~h~- Requires 15,000 XP or more" );
|
||||||
|
}
|
||||||
|
case 5: {
|
||||||
|
strcat( szLargeString, "- Can heal and cure players~n~" \
|
||||||
|
"- Ambulance passengers pay you~n~"\
|
||||||
|
"- Able to rob stores and players~n~" \
|
||||||
|
"~r~~h~- Requires 1,000 XP or more" );
|
||||||
|
}
|
||||||
|
case 6: {
|
||||||
|
strcat( szLargeString, "- Protect the city from fires~n~" \
|
||||||
|
"- Firetrucks able to extinguish fires~n~"\
|
||||||
|
"- Able to rob stores and players~n~" \
|
||||||
|
"~r~~h~- Requires 1,000 XP or more" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
g_classTextdrawDescription[ i ] = TextDrawCreate(43.000000, 171.000000, szLargeString);
|
||||||
|
TextDrawBackgroundColor(g_classTextdrawDescription[ i ], 0);
|
||||||
|
TextDrawFont(g_classTextdrawDescription[ i ], 1);
|
||||||
|
TextDrawLetterSize(g_classTextdrawDescription[ i ], 0.190000, 1.100000);
|
||||||
|
TextDrawColor(g_classTextdrawDescription[ i ], -1);
|
||||||
|
TextDrawSetOutline(g_classTextdrawDescription[ i ], 1);
|
||||||
|
TextDrawSetProportional(g_classTextdrawDescription[ i ], 1);
|
||||||
|
|
||||||
|
g_classTextdrawName[ i ] = TextDrawCreate(46.000000, 141.000000, CLASS_NAMES[ i ] );
|
||||||
|
TextDrawBackgroundColor(g_classTextdrawName[ i ], 0);
|
||||||
|
TextDrawFont(g_classTextdrawName[ i ], 3);
|
||||||
|
TextDrawLetterSize(g_classTextdrawName[ i ], 0.550000, 2.099999);
|
||||||
|
TextDrawColor(g_classTextdrawName[ i ], i == 0 ? 0x000000FF : 0xFFFFFFFF );
|
||||||
|
TextDrawSetOutline(g_classTextdrawName[ i ], 1);
|
||||||
|
TextDrawSetProportional(g_classTextdrawName[ i ], 1);
|
||||||
|
TextDrawSetSelectable(g_classTextdrawName[ i ], 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
g_NotManyPlayersTD = TextDrawCreate(322.000000, 12.000000, "Coin generation increased by 5x as there aren't many players online!");
|
||||||
|
TextDrawAlignment(g_NotManyPlayersTD, 2);
|
||||||
|
TextDrawBackgroundColor(g_NotManyPlayersTD, 0);
|
||||||
|
TextDrawFont(g_NotManyPlayersTD, 1);
|
||||||
|
TextDrawLetterSize(g_NotManyPlayersTD, 0.149999, 0.799999);
|
||||||
|
TextDrawColor(g_NotManyPlayersTD, -16776961);
|
||||||
|
TextDrawSetOutline(g_NotManyPlayersTD, 1);
|
||||||
|
TextDrawSetProportional(g_NotManyPlayersTD, 1);
|
||||||
|
|
||||||
|
g_TopDonorTD = TextDrawCreate(320.000000, 2.000000, "Top Donor Lorenc - $0.00, ~w~~h~~h~Latest Donor Lorenc - $0.00");
|
||||||
|
TextDrawAlignment(g_TopDonorTD, 2);
|
||||||
|
TextDrawBackgroundColor(g_TopDonorTD, 0);
|
||||||
|
TextDrawFont(g_TopDonorTD, 1);
|
||||||
|
TextDrawLetterSize(g_TopDonorTD, 0.139999, 0.799999);
|
||||||
|
TextDrawColor(g_TopDonorTD, -2347265);
|
||||||
|
TextDrawSetOutline(g_TopDonorTD, 1);
|
||||||
|
TextDrawSetProportional(g_TopDonorTD, 1);
|
||||||
|
|
||||||
|
g_SlotMachineBoxTD[ 0 ] = TextDrawCreate(220.000000, 322.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_SlotMachineBoxTD[ 0 ], 255);
|
||||||
|
TextDrawLetterSize(g_SlotMachineBoxTD[ 0 ], 0.500000, 7.000000);
|
||||||
|
TextDrawUseBox(g_SlotMachineBoxTD[ 0 ], 1);
|
||||||
|
TextDrawBoxColor(g_SlotMachineBoxTD[ 0 ], 112);
|
||||||
|
TextDrawTextSize(g_SlotMachineBoxTD[ 0 ], 430.000000, 3.000000);
|
||||||
|
|
||||||
|
g_SlotMachineBoxTD[ 1 ] = TextDrawCreate(220.000000, 306.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_SlotMachineBoxTD[ 1 ], 255);
|
||||||
|
TextDrawLetterSize(g_SlotMachineBoxTD[ 1 ], 0.500000, 1.400000);
|
||||||
|
TextDrawUseBox(g_SlotMachineBoxTD[ 1 ], 1);
|
||||||
|
TextDrawBoxColor(g_SlotMachineBoxTD[ 1 ], 238);
|
||||||
|
TextDrawTextSize(g_SlotMachineBoxTD[ 1 ], 430.000000, -18.000000);
|
||||||
|
|
||||||
|
g_currentXPTD = TextDrawCreate(529.000000, 405.000000, "Current XP");
|
||||||
|
TextDrawBackgroundColor(g_currentXPTD, 255);
|
||||||
|
TextDrawFont(g_currentXPTD, 3);
|
||||||
|
TextDrawLetterSize(g_currentXPTD, 0.230000, 1.000000);
|
||||||
|
TextDrawColor(g_currentXPTD, -1);
|
||||||
|
TextDrawSetOutline(g_currentXPTD, 1);
|
||||||
|
TextDrawSetProportional(g_currentXPTD, 1);
|
||||||
|
|
||||||
|
g_CurrentRankTD = TextDrawCreate(529.000000, 375.000000, "Current Rank");
|
||||||
|
TextDrawBackgroundColor(g_CurrentRankTD, 255);
|
||||||
|
TextDrawFont(g_CurrentRankTD, 3);
|
||||||
|
TextDrawLetterSize(g_CurrentRankTD, 0.230000, 1.000000);
|
||||||
|
TextDrawColor(g_CurrentRankTD, -1);
|
||||||
|
TextDrawSetOutline(g_CurrentRankTD, 1);
|
||||||
|
TextDrawSetProportional(g_CurrentRankTD, 1);
|
||||||
|
|
||||||
|
g_CurrentCoinsTD = TextDrawCreate(529.000000, 348.000000, "Total Coins");
|
||||||
|
TextDrawBackgroundColor(g_CurrentCoinsTD, 255);
|
||||||
|
TextDrawFont(g_CurrentCoinsTD, 3);
|
||||||
|
TextDrawLetterSize(g_CurrentCoinsTD, 0.230000, 1.000000);
|
||||||
|
TextDrawColor(g_CurrentCoinsTD, -1);
|
||||||
|
TextDrawSetOutline(g_CurrentCoinsTD, 1);
|
||||||
|
TextDrawSetProportional(g_CurrentCoinsTD, 1);
|
||||||
|
|
||||||
|
g_DoubleXPTD = TextDrawCreate(516.000000, 423.500000, "x2");
|
||||||
|
TextDrawBackgroundColor(g_DoubleXPTD, 255);
|
||||||
|
TextDrawFont(g_DoubleXPTD, 3);
|
||||||
|
TextDrawLetterSize(g_DoubleXPTD, 0.230000, 1.000000);
|
||||||
|
TextDrawColor(g_DoubleXPTD, -1);
|
||||||
|
TextDrawSetOutline(g_DoubleXPTD, 1);
|
||||||
|
TextDrawSetProportional(g_DoubleXPTD, 1);
|
||||||
|
|
||||||
|
p_VehiclePreviewCloseTD = TextDrawCreate(191.000000, 319.000000, "Press your ESCAPE KEY to close the preview.");
|
||||||
|
TextDrawBackgroundColor(p_VehiclePreviewCloseTD, 255);
|
||||||
|
TextDrawFont(p_VehiclePreviewCloseTD, 2);
|
||||||
|
TextDrawLetterSize(p_VehiclePreviewCloseTD, 0.259999, 1.399999);
|
||||||
|
TextDrawColor(p_VehiclePreviewCloseTD, -1);
|
||||||
|
TextDrawSetOutline(p_VehiclePreviewCloseTD, 1);
|
||||||
|
TextDrawSetProportional(p_VehiclePreviewCloseTD, 1);
|
||||||
|
|
||||||
|
g_VehiclePreviewBoxTD = TextDrawCreate(500.000000, 150.000000, "__");
|
||||||
|
TextDrawBackgroundColor(g_VehiclePreviewBoxTD, 255);
|
||||||
|
TextDrawLetterSize(g_VehiclePreviewBoxTD, 0.500000, 17.000000);
|
||||||
|
TextDrawColor(g_VehiclePreviewBoxTD, -1);
|
||||||
|
TextDrawUseBox(g_VehiclePreviewBoxTD, 1);
|
||||||
|
TextDrawBoxColor(g_VehiclePreviewBoxTD, 112);
|
||||||
|
TextDrawTextSize(g_VehiclePreviewBoxTD, 139.000000, 50.000000);
|
||||||
|
|
||||||
|
g_VehiclePreviewTxtTD = TextDrawCreate(130.000000, 135.000000, "Vehicle Preview");
|
||||||
|
TextDrawBackgroundColor(g_VehiclePreviewTxtTD, 255);
|
||||||
|
TextDrawFont(g_VehiclePreviewTxtTD, 0);
|
||||||
|
TextDrawLetterSize(g_VehiclePreviewTxtTD, 0.720000, 2.000000);
|
||||||
|
TextDrawColor(g_VehiclePreviewTxtTD, -1);
|
||||||
|
TextDrawSetOutline(g_VehiclePreviewTxtTD, 1);
|
||||||
|
TextDrawSetProportional(g_VehiclePreviewTxtTD, 1);
|
||||||
|
TextDrawSetSelectable(g_VehiclePreviewTxtTD, 0);
|
||||||
|
|
||||||
|
g_ProgressBoxTD = TextDrawCreate(250.000000, 220.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_ProgressBoxTD, 255);
|
||||||
|
TextDrawFont(g_ProgressBoxTD, 1);
|
||||||
|
TextDrawLetterSize(g_ProgressBoxTD, 0.500000, 1.000000);
|
||||||
|
TextDrawColor(g_ProgressBoxTD, -1);
|
||||||
|
TextDrawSetOutline(g_ProgressBoxTD, 0);
|
||||||
|
TextDrawSetProportional(g_ProgressBoxTD, 1);
|
||||||
|
TextDrawSetShadow(g_ProgressBoxTD, 1);
|
||||||
|
TextDrawUseBox(g_ProgressBoxTD, 1);
|
||||||
|
TextDrawBoxColor(g_ProgressBoxTD, 255);
|
||||||
|
TextDrawTextSize(g_ProgressBoxTD, 390.000000, 10.000000);
|
||||||
|
|
||||||
|
g_AdminLogTD = TextDrawCreate(150.000000, 360.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_AdminLogTD, 255);
|
||||||
|
TextDrawFont(g_AdminLogTD, 1);
|
||||||
|
TextDrawLetterSize(g_AdminLogTD, 0.210000, 1.000000);
|
||||||
|
TextDrawColor(g_AdminLogTD, -16289537);
|
||||||
|
TextDrawSetOutline(g_AdminLogTD, 1);
|
||||||
|
TextDrawSetProportional(g_AdminLogTD, 1);
|
||||||
|
|
||||||
|
g_AnimationTD = TextDrawCreate(220.000000, 141.000000, "PRESS ~r~~h~~k~~PED_SPRINT~~W~ TO STOP THE ANIMATION");
|
||||||
|
TextDrawBackgroundColor(g_AnimationTD, 80);
|
||||||
|
TextDrawFont(g_AnimationTD, 3);
|
||||||
|
TextDrawLetterSize(g_AnimationTD, 0.310000, 1.200000);
|
||||||
|
TextDrawColor(g_AnimationTD, -1);
|
||||||
|
TextDrawSetOutline(g_AnimationTD, 1);
|
||||||
|
TextDrawSetProportional(g_AnimationTD, 1);
|
||||||
|
TextDrawUseBox(g_AnimationTD, 1);
|
||||||
|
TextDrawBoxColor(g_AnimationTD, 117);
|
||||||
|
TextDrawTextSize(g_AnimationTD, 418.000000, 0.000000);
|
||||||
|
|
||||||
|
g_AchievementTD[ 0 ] = TextDrawCreate(250.000000, 120.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_AchievementTD[ 0 ], 255);
|
||||||
|
TextDrawFont(g_AchievementTD[ 0 ], 1);
|
||||||
|
TextDrawLetterSize(g_AchievementTD[ 0 ], 0.500000, 6.000001);
|
||||||
|
TextDrawColor(g_AchievementTD[ 0 ], -1);
|
||||||
|
TextDrawSetOutline(g_AchievementTD[ 0 ], 0);
|
||||||
|
TextDrawSetProportional(g_AchievementTD[ 0 ], 1);
|
||||||
|
TextDrawSetShadow(g_AchievementTD[ 0 ], 1);
|
||||||
|
TextDrawUseBox(g_AchievementTD[ 0 ], 1);
|
||||||
|
TextDrawBoxColor(g_AchievementTD[ 0 ], 80);
|
||||||
|
TextDrawTextSize(g_AchievementTD[ 0 ], 403.000000, 4.000000);
|
||||||
|
|
||||||
|
g_AchievementTD[ 1 ] = TextDrawCreate(250.000000, 120.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_AchievementTD[ 1 ], 255);
|
||||||
|
TextDrawFont(g_AchievementTD[ 1 ], 1);
|
||||||
|
TextDrawLetterSize(g_AchievementTD[ 1 ], 0.500000, 1.300000);
|
||||||
|
TextDrawColor(g_AchievementTD[ 1 ], -1);
|
||||||
|
TextDrawSetOutline(g_AchievementTD[ 1 ], 0);
|
||||||
|
TextDrawSetProportional(g_AchievementTD[ 1 ], 1);
|
||||||
|
TextDrawSetShadow(g_AchievementTD[ 1 ], 1);
|
||||||
|
TextDrawUseBox(g_AchievementTD[ 1 ], 1);
|
||||||
|
TextDrawBoxColor(g_AchievementTD[ 1 ], 128);
|
||||||
|
TextDrawTextSize(g_AchievementTD[ 1 ], 403.000000, 4.000000);
|
||||||
|
|
||||||
|
g_AchievementTD[ 2 ] = TextDrawCreate(250.000000, 137.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_AchievementTD[ 2 ], 255);
|
||||||
|
TextDrawFont(g_AchievementTD[ 2 ], 1);
|
||||||
|
TextDrawLetterSize(g_AchievementTD[ 2 ], 0.500000, -0.699999);
|
||||||
|
TextDrawColor(g_AchievementTD[ 2 ], -1);
|
||||||
|
TextDrawSetOutline(g_AchievementTD[ 2 ], 0);
|
||||||
|
TextDrawSetProportional(g_AchievementTD[ 2 ], 1);
|
||||||
|
TextDrawSetShadow(g_AchievementTD[ 2 ], 1);
|
||||||
|
TextDrawUseBox(g_AchievementTD[ 2 ], 1);
|
||||||
|
TextDrawBoxColor(g_AchievementTD[ 2 ], 255);
|
||||||
|
TextDrawTextSize(g_AchievementTD[ 2 ], 403.000000, 4.000000);
|
||||||
|
|
||||||
|
g_AchievementTD[ 3 ] = TextDrawCreate(266.000000, 121.000000, "]_ACHIEVEMENT UNLOCKED_]");
|
||||||
|
TextDrawBackgroundColor(g_AchievementTD[ 3 ], 255);
|
||||||
|
TextDrawFont(g_AchievementTD[ 3 ], 2);
|
||||||
|
TextDrawLetterSize(g_AchievementTD[ 3 ], 0.210000, 1.100000);
|
||||||
|
TextDrawColor(g_AchievementTD[ 3 ], -65281);
|
||||||
|
TextDrawSetOutline(g_AchievementTD[ 3 ], 0);
|
||||||
|
TextDrawSetProportional(g_AchievementTD[ 3 ], 1);
|
||||||
|
TextDrawSetShadow(g_AchievementTD[ 3 ], 1);
|
||||||
|
|
||||||
|
g_WorldDayTD = TextDrawCreate(501.000000, 6.000000, "Monday");
|
||||||
|
TextDrawBackgroundColor(g_WorldDayTD, 255);
|
||||||
|
TextDrawFont(g_WorldDayTD, 3);
|
||||||
|
TextDrawLetterSize(g_WorldDayTD, 0.519998, 1.499999);
|
||||||
|
TextDrawSetOutline(g_WorldDayTD, 2);
|
||||||
|
TextDrawSetProportional(g_WorldDayTD, 1);
|
||||||
|
|
||||||
|
g_MotdTD = TextDrawCreate(320.000000, 426.000000, "_");
|
||||||
|
TextDrawAlignment(g_MotdTD, 2);
|
||||||
|
TextDrawBackgroundColor(g_MotdTD, 117);
|
||||||
|
TextDrawFont(g_MotdTD, 1);//1
|
||||||
|
TextDrawLetterSize(g_MotdTD, 0.300000, 1.300000);
|
||||||
|
TextDrawColor(g_MotdTD, -1);
|
||||||
|
TextDrawSetOutline(g_MotdTD, 1);
|
||||||
|
TextDrawSetProportional(g_MotdTD, 1);
|
||||||
|
|
||||||
|
g_ObjectLoadTD = TextDrawCreate(320.000000, 148.000000, "Loading Objects...~n~Please Wait...");
|
||||||
|
TextDrawAlignment(g_ObjectLoadTD, 2);
|
||||||
|
TextDrawBackgroundColor(g_ObjectLoadTD, 80);
|
||||||
|
TextDrawFont(g_ObjectLoadTD, 2);
|
||||||
|
TextDrawLetterSize(g_ObjectLoadTD, 0.400000, 2.000000);
|
||||||
|
TextDrawColor(g_ObjectLoadTD, -1);
|
||||||
|
TextDrawSetOutline(g_ObjectLoadTD, 1);
|
||||||
|
TextDrawSetProportional(g_ObjectLoadTD, 1);
|
||||||
|
TextDrawUseBox(g_ObjectLoadTD, 1);
|
||||||
|
TextDrawBoxColor(g_ObjectLoadTD, 117);
|
||||||
|
TextDrawTextSize(g_ObjectLoadTD, 0.000000, 180.000000);
|
||||||
|
|
||||||
|
g_WebsiteTD = TextDrawCreate(84.000000, 429.000000, "www.SFCNR.com");
|
||||||
|
TextDrawAlignment(g_WebsiteTD, 2);
|
||||||
|
TextDrawBackgroundColor(g_WebsiteTD, 255);
|
||||||
|
TextDrawFont(g_WebsiteTD, 1);
|
||||||
|
TextDrawLetterSize(g_WebsiteTD, 0.220000, 1.200000);
|
||||||
|
TextDrawColor(g_WebsiteTD, 0xfa4d4cff); // 1289224191
|
||||||
|
TextDrawSetOutline(g_WebsiteTD, 1);
|
||||||
|
TextDrawSetProportional(g_WebsiteTD, 1);
|
||||||
|
|
||||||
|
g_MovieModeTD[ 0 ] = TextDrawCreate(507.000000, 386.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_MovieModeTD[ 0 ], 255);
|
||||||
|
TextDrawFont(g_MovieModeTD[ 0 ], 1);
|
||||||
|
TextDrawLetterSize(g_MovieModeTD[ 0 ], 0.500000, 4.799999);
|
||||||
|
TextDrawColor(g_MovieModeTD[ 0 ], -1);
|
||||||
|
TextDrawSetOutline(g_MovieModeTD[ 0 ], 0);
|
||||||
|
TextDrawSetProportional(g_MovieModeTD[ 0 ], 1);
|
||||||
|
TextDrawSetShadow(g_MovieModeTD[ 0 ], 1);
|
||||||
|
TextDrawUseBox(g_MovieModeTD[ 0 ], 1);
|
||||||
|
TextDrawBoxColor(g_MovieModeTD[ 0 ], 80);
|
||||||
|
TextDrawTextSize(g_MovieModeTD[ 0 ], 620.000000, 0.000000);
|
||||||
|
|
||||||
|
g_MovieModeTD[ 1 ] = TextDrawCreate(516.000000, 398.000000, "San Fierro");
|
||||||
|
TextDrawBackgroundColor(g_MovieModeTD[ 1 ], 255);
|
||||||
|
TextDrawFont(g_MovieModeTD[ 1 ], 3);
|
||||||
|
TextDrawLetterSize(g_MovieModeTD[ 1 ], 0.529999, 2.299999);
|
||||||
|
TextDrawColor(g_MovieModeTD[ 1 ], -2347265);
|
||||||
|
TextDrawSetOutline(g_MovieModeTD[ 1 ], 1);
|
||||||
|
TextDrawSetProportional(g_MovieModeTD[ 1 ], 1);
|
||||||
|
|
||||||
|
g_MovieModeTD[ 2 ] = TextDrawCreate(530.000000, 414.000000, "Cops and Robbers");
|
||||||
|
TextDrawBackgroundColor(g_MovieModeTD[ 2 ], 255);
|
||||||
|
TextDrawFont(g_MovieModeTD[ 2 ], 0);
|
||||||
|
TextDrawLetterSize(g_MovieModeTD[ 2 ], 0.310000, 1.100000);
|
||||||
|
TextDrawColor(g_MovieModeTD[ 2 ], -1);
|
||||||
|
TextDrawSetOutline(g_MovieModeTD[ 2 ], 1);
|
||||||
|
TextDrawSetProportional(g_MovieModeTD[ 2 ], 1);
|
||||||
|
|
||||||
|
g_MovieModeTD[ 3 ] = TextDrawCreate(507.000000, 398.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_MovieModeTD[ 3 ], 255);
|
||||||
|
TextDrawFont(g_MovieModeTD[ 3 ], 1);
|
||||||
|
TextDrawLetterSize(g_MovieModeTD[ 3 ], 0.500000, -0.400000);
|
||||||
|
TextDrawColor(g_MovieModeTD[ 3 ], -1);
|
||||||
|
TextDrawSetOutline(g_MovieModeTD[ 3 ], 0);
|
||||||
|
TextDrawSetProportional(g_MovieModeTD[ 3 ], 1);
|
||||||
|
TextDrawSetShadow(g_MovieModeTD[ 3 ], 1);
|
||||||
|
TextDrawUseBox(g_MovieModeTD[ 3 ], 1);
|
||||||
|
TextDrawBoxColor(g_MovieModeTD[ 3 ], 255);
|
||||||
|
TextDrawTextSize(g_MovieModeTD[ 3 ], 620.000000, 0.000000);
|
||||||
|
|
||||||
|
g_MovieModeTD[ 4 ] = TextDrawCreate(530.000000, 385.000000, "www.SFCNR.com");
|
||||||
|
TextDrawBackgroundColor(g_MovieModeTD[ 4 ], 255);
|
||||||
|
TextDrawFont(g_MovieModeTD[ 4 ], 1);
|
||||||
|
TextDrawLetterSize(g_MovieModeTD[ 4 ], 0.200000, 1.000000);
|
||||||
|
TextDrawColor(g_MovieModeTD[ 4 ], 0xfa4d4cff);
|
||||||
|
TextDrawSetOutline(g_MovieModeTD[ 4 ], 1);
|
||||||
|
TextDrawSetProportional(g_MovieModeTD[ 4 ], 1);
|
||||||
|
|
||||||
|
g_MovieModeTD[ 5 ] = TextDrawCreate(507.000000, 386.000000, "_");
|
||||||
|
TextDrawBackgroundColor(g_MovieModeTD[ 5 ], 255);
|
||||||
|
TextDrawFont(g_MovieModeTD[ 5 ], 1);
|
||||||
|
TextDrawLetterSize(g_MovieModeTD[ 5 ], 0.500000, 0.799999);
|
||||||
|
TextDrawColor(g_MovieModeTD[ 5 ], -1);
|
||||||
|
TextDrawSetOutline(g_MovieModeTD[ 5 ], 0);
|
||||||
|
TextDrawSetProportional(g_MovieModeTD[ 5 ], 1);
|
||||||
|
TextDrawSetShadow(g_MovieModeTD[ 5 ], 1);
|
||||||
|
TextDrawUseBox(g_MovieModeTD[ 5 ], 1);
|
||||||
|
TextDrawBoxColor(g_MovieModeTD[ 5 ], 128);
|
||||||
|
TextDrawTextSize(g_MovieModeTD[ 5 ], 620.000000, 0.000000);
|
||||||
|
|
||||||
|
g_AdminOnDutyTD = TextDrawCreate(552.000000, 66.500000, "ADMIN ON DUTY");
|
||||||
|
TextDrawBackgroundColor(g_AdminOnDutyTD, 255);
|
||||||
|
TextDrawFont(g_AdminOnDutyTD, 1);
|
||||||
|
TextDrawLetterSize(g_AdminOnDutyTD, 0.180000, 0.899999);
|
||||||
|
TextDrawColor(g_AdminOnDutyTD, -65281);
|
||||||
|
TextDrawSetOutline(g_AdminOnDutyTD, 1);
|
||||||
|
TextDrawSetProportional(g_AdminOnDutyTD, 1);
|
||||||
|
|
||||||
|
/* ** Player TextDraws ** */
|
||||||
|
for(new playerid; playerid != MAX_PLAYERS; playerid ++)
|
||||||
|
{
|
||||||
|
if ( playerid < MAX_MACHINES ) {
|
||||||
|
p_SlotMachineFigureTD[ playerid ] = TextDrawCreate(324.000000, 307.000000, "$20,000");
|
||||||
|
TextDrawAlignment(p_SlotMachineFigureTD[ playerid ], 2);
|
||||||
|
TextDrawBackgroundColor(p_SlotMachineFigureTD[ playerid ], 255);
|
||||||
|
TextDrawFont(p_SlotMachineFigureTD[ playerid ], 3);
|
||||||
|
TextDrawLetterSize(p_SlotMachineFigureTD[ playerid ], 0.250000, 1.100000);
|
||||||
|
TextDrawColor(p_SlotMachineFigureTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_SlotMachineFigureTD[ playerid ], 1);
|
||||||
|
TextDrawSetProportional(p_SlotMachineFigureTD[ playerid ], 1);
|
||||||
|
|
||||||
|
g_SlotMachineOneTD[ playerid ] = TextDrawCreate(222.000000, 324.000000, "ld_slot:bar1_o");
|
||||||
|
TextDrawBackgroundColor(g_SlotMachineOneTD[ playerid ], 255);
|
||||||
|
TextDrawFont(g_SlotMachineOneTD[ playerid ], 4);
|
||||||
|
TextDrawLetterSize(g_SlotMachineOneTD[ playerid ], 0.500000, 0.399999);
|
||||||
|
TextDrawColor(g_SlotMachineOneTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(g_SlotMachineOneTD[ playerid ], 0);
|
||||||
|
TextDrawSetProportional(g_SlotMachineOneTD[ playerid ], 1);
|
||||||
|
TextDrawSetShadow(g_SlotMachineOneTD[ playerid ], 1);
|
||||||
|
TextDrawUseBox(g_SlotMachineOneTD[ playerid ], 1);
|
||||||
|
TextDrawBoxColor(g_SlotMachineOneTD[ playerid ], 255);
|
||||||
|
TextDrawTextSize(g_SlotMachineOneTD[ playerid ], 66.000000, 77.000000);
|
||||||
|
|
||||||
|
g_SlotMachineTwoTD[ playerid ] = TextDrawCreate(292.000000, 324.000000, "ld_slot:bar1_o");
|
||||||
|
TextDrawBackgroundColor(g_SlotMachineTwoTD[ playerid ], 255);
|
||||||
|
TextDrawFont(g_SlotMachineTwoTD[ playerid ], 4);
|
||||||
|
TextDrawLetterSize(g_SlotMachineTwoTD[ playerid ], 0.500000, 0.399999);
|
||||||
|
TextDrawColor(g_SlotMachineTwoTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(g_SlotMachineTwoTD[ playerid ], 0);
|
||||||
|
TextDrawSetProportional(g_SlotMachineTwoTD[ playerid ], 1);
|
||||||
|
TextDrawSetShadow(g_SlotMachineTwoTD[ playerid ], 1);
|
||||||
|
TextDrawUseBox(g_SlotMachineTwoTD[ playerid ], 1);
|
||||||
|
TextDrawBoxColor(g_SlotMachineTwoTD[ playerid ], 255);
|
||||||
|
TextDrawTextSize(g_SlotMachineTwoTD[ playerid ], 66.000000, 77.000000);
|
||||||
|
|
||||||
|
g_SlotMachineThreeTD[ playerid ] = TextDrawCreate(362.000000, 324.000000, "ld_slot:bar1_o");
|
||||||
|
TextDrawBackgroundColor(g_SlotMachineThreeTD[ playerid ], 255);
|
||||||
|
TextDrawFont(g_SlotMachineThreeTD[ playerid ], 4);
|
||||||
|
TextDrawLetterSize(g_SlotMachineThreeTD[ playerid ], 0.500000, 0.399999);
|
||||||
|
TextDrawColor(g_SlotMachineThreeTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(g_SlotMachineThreeTD[ playerid ], 0);
|
||||||
|
TextDrawSetProportional(g_SlotMachineThreeTD[ playerid ], 1);
|
||||||
|
TextDrawSetShadow(g_SlotMachineThreeTD[ playerid ], 1);
|
||||||
|
TextDrawUseBox(g_SlotMachineThreeTD[ playerid ], 1);
|
||||||
|
TextDrawBoxColor(g_SlotMachineThreeTD[ playerid ], 255);
|
||||||
|
TextDrawTextSize(g_SlotMachineThreeTD[ playerid ], 66.000000, 77.000000);
|
||||||
|
}
|
||||||
|
|
||||||
|
p_ProgressBoxOutsideTD[ playerid ] = TextDrawCreate(252.000000, 222.000000, "_");
|
||||||
|
TextDrawBackgroundColor(p_ProgressBoxOutsideTD[ playerid ], 255);
|
||||||
|
TextDrawFont(p_ProgressBoxOutsideTD[ playerid ], 1);
|
||||||
|
TextDrawLetterSize(p_ProgressBoxOutsideTD[ playerid ], 0.359999, 0.599999);
|
||||||
|
TextDrawColor(p_ProgressBoxOutsideTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_ProgressBoxOutsideTD[ playerid ], 0);
|
||||||
|
TextDrawSetProportional(p_ProgressBoxOutsideTD[ playerid ], 1);
|
||||||
|
TextDrawSetShadow(p_ProgressBoxOutsideTD[ playerid ], 1);
|
||||||
|
TextDrawUseBox(p_ProgressBoxOutsideTD[ playerid ], 1);
|
||||||
|
TextDrawBoxColor(p_ProgressBoxOutsideTD[ playerid ], -154);
|
||||||
|
TextDrawTextSize(p_ProgressBoxOutsideTD[ playerid ], 388.000000, 14.000000);
|
||||||
|
|
||||||
|
p_ProgressBoxTD[ playerid ] = TextDrawCreate(252.000000, 222.000000, "_");
|
||||||
|
TextDrawBackgroundColor(p_ProgressBoxTD[ playerid ], 255);
|
||||||
|
TextDrawFont(p_ProgressBoxTD[ playerid ], 1);
|
||||||
|
TextDrawLetterSize(p_ProgressBoxTD[ playerid ], 0.559999, 0.599999);
|
||||||
|
TextDrawColor(p_ProgressBoxTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_ProgressBoxTD[ playerid ], 0);
|
||||||
|
TextDrawSetProportional(p_ProgressBoxTD[ playerid ], 1);
|
||||||
|
TextDrawSetShadow(p_ProgressBoxTD[ playerid ], 1);
|
||||||
|
TextDrawUseBox(p_ProgressBoxTD[ playerid ], 1);
|
||||||
|
TextDrawBoxColor(p_ProgressBoxTD[ playerid ], -1);
|
||||||
|
TextDrawTextSize(p_ProgressBoxTD[ playerid ], 378.000000, 14.000000);
|
||||||
|
|
||||||
|
p_ProgressTitleTD[ playerid ] = TextDrawCreate(320.000000, 205.000000, "____");
|
||||||
|
TextDrawAlignment(p_ProgressTitleTD[ playerid ], 2);
|
||||||
|
TextDrawBackgroundColor(p_ProgressTitleTD[ playerid ], 255);
|
||||||
|
TextDrawFont(p_ProgressTitleTD[ playerid ], 0);
|
||||||
|
TextDrawLetterSize(p_ProgressTitleTD[ playerid ], 0.559999, 1.700000);
|
||||||
|
TextDrawColor(p_ProgressTitleTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_ProgressTitleTD[ playerid ], 1);
|
||||||
|
TextDrawSetProportional(p_ProgressTitleTD[ playerid ], 1);
|
||||||
|
|
||||||
|
p_AchievementTD[ playerid ] = TextDrawCreate(325.000000, 137.000000, "_");
|
||||||
|
TextDrawAlignment(p_AchievementTD[ playerid ], 2);
|
||||||
|
TextDrawBackgroundColor(p_AchievementTD[ playerid ], 80);
|
||||||
|
TextDrawFont(p_AchievementTD[ playerid ], 1);
|
||||||
|
TextDrawLetterSize(p_AchievementTD[ playerid ], 0.209999, 1.000000);
|
||||||
|
TextDrawColor(p_AchievementTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_AchievementTD[ playerid ], 1);
|
||||||
|
TextDrawSetProportional(p_AchievementTD[ playerid ], 1);
|
||||||
|
|
||||||
|
p_FireDistance1[ playerid ] = TextDrawCreate(26.000000, 182.000000, "_");
|
||||||
|
TextDrawBackgroundColor(p_FireDistance1[ playerid ], 255);
|
||||||
|
TextDrawFont(p_FireDistance1[ playerid ], 2);
|
||||||
|
TextDrawLetterSize(p_FireDistance1[ playerid ], 0.210000, 1.200000);
|
||||||
|
TextDrawColor(p_FireDistance1[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_FireDistance1[ playerid ], 1);
|
||||||
|
TextDrawSetProportional(p_FireDistance1[ playerid ], 1);
|
||||||
|
|
||||||
|
p_FireDistance2[ playerid ] = TextDrawCreate(26.000000, 236.000000, "_");
|
||||||
|
TextDrawBackgroundColor(p_FireDistance2[ playerid ], 255);
|
||||||
|
TextDrawFont(p_FireDistance2[ playerid ], 2);
|
||||||
|
TextDrawLetterSize(p_FireDistance2[ playerid ], 0.209999, 1.200000);
|
||||||
|
TextDrawColor(p_FireDistance2[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_FireDistance2[ playerid ], 1);
|
||||||
|
TextDrawSetProportional(p_FireDistance2[ playerid ], 1);
|
||||||
|
|
||||||
|
p_GPSInformation[ playerid ] = TextDrawCreate(26.000000, 200.000000, "~g~Location:~w~ No-where~n~~g~Distance:~w~ 0.0m");
|
||||||
|
TextDrawBackgroundColor(p_GPSInformation[ playerid ], 255);
|
||||||
|
TextDrawFont(p_GPSInformation[ playerid ], 2);
|
||||||
|
TextDrawLetterSize(p_GPSInformation[ playerid ], 0.209999, 1.099999);
|
||||||
|
TextDrawColor(p_GPSInformation[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_GPSInformation[ playerid ], 1);
|
||||||
|
TextDrawSetProportional(p_GPSInformation[ playerid ], 1);
|
||||||
|
TextDrawSetSelectable(p_GPSInformation[ playerid ], 0);
|
||||||
|
|
||||||
|
p_TruckingTD[ playerid ] = TextDrawCreate(26.000000, 220.000000, "~b~Location:~w~ No-where~n~~b~Distance:~w~ 0.0m");
|
||||||
|
TextDrawBackgroundColor(p_TruckingTD[ playerid ], 255);
|
||||||
|
TextDrawFont(p_TruckingTD[ playerid ], 2);
|
||||||
|
TextDrawLetterSize(p_TruckingTD[ playerid ], 0.210000, 1.100000);
|
||||||
|
TextDrawColor(p_TruckingTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_TruckingTD[ playerid ], 1);
|
||||||
|
TextDrawSetProportional(p_TruckingTD[ playerid ], 1);
|
||||||
|
TextDrawSetSelectable(p_TruckingTD[ playerid ], 0);
|
||||||
|
|
||||||
|
p_TrackPlayerTD[ playerid ] = TextDrawCreate(571.000000, 258.000000, "Loading~n~~w~NaN.0m");
|
||||||
|
TextDrawAlignment(p_TrackPlayerTD[ playerid ], 2);
|
||||||
|
TextDrawBackgroundColor(p_TrackPlayerTD[ playerid ], 80);
|
||||||
|
TextDrawFont(p_TrackPlayerTD[ playerid ], 1);
|
||||||
|
TextDrawLetterSize(p_TrackPlayerTD[ playerid ], 0.260000, 1.100000);
|
||||||
|
TextDrawColor(p_TrackPlayerTD[ playerid ], COLOR_RED);
|
||||||
|
TextDrawSetOutline(p_TrackPlayerTD[ playerid ], 1);
|
||||||
|
TextDrawSetProportional(p_TrackPlayerTD[ playerid ], 1);
|
||||||
|
TextDrawSetSelectable(p_TrackPlayerTD[ playerid ], 0);
|
||||||
|
|
||||||
|
p_HelpBoxTD[ playerid ] = TextDrawCreate(30.000000, 161.000000, "... Loading Help ...");
|
||||||
|
TextDrawBackgroundColor(p_HelpBoxTD[ playerid ], 255);
|
||||||
|
TextDrawFont(p_HelpBoxTD[ playerid ], 1);
|
||||||
|
TextDrawLetterSize(p_HelpBoxTD[ playerid ], 0.219999, 1.200000);
|
||||||
|
TextDrawColor(p_HelpBoxTD[ playerid ], -1);
|
||||||
|
TextDrawSetOutline(p_HelpBoxTD[ playerid ], 0);
|
||||||
|
TextDrawSetProportional(p_HelpBoxTD[ playerid ], 1);
|
||||||
|
TextDrawSetShadow(p_HelpBoxTD[ playerid ], 1);
|
||||||
|
TextDrawUseBox(p_HelpBoxTD[ playerid ], 1);
|
||||||
|
TextDrawBoxColor(p_HelpBoxTD[ playerid ], 117);
|
||||||
|
TextDrawTextSize(p_HelpBoxTD[ playerid ], 170.000000, 0.000000);
|
||||||
|
TextDrawSetSelectable(p_HelpBoxTD[ playerid ], 0);
|
||||||
|
}
|
||||||
|
return Y_HOOKS_CONTINUE_RETURN_1;
|
||||||
|
}
|
||||||
|
|
||||||
|
hook OnPlayerConnect( playerid )
|
||||||
|
{
|
||||||
|
if ( ! ( 0 <= playerid < MAX_PLAYERS ) )
|
||||||
|
return Y_HOOKS_CONTINUE_RETURN_1;
|
||||||
|
|
||||||
|
g_ZoneOwnerTD[ playerid ] = CreatePlayerTextDraw( playerid, 86.000000, 296.000000, "_" );
|
||||||
|
PlayerTextDrawAlignment( playerid, g_ZoneOwnerTD[ playerid ], 2 );
|
||||||
|
PlayerTextDrawBackgroundColor( playerid, g_ZoneOwnerTD[ playerid ], 255 );
|
||||||
|
PlayerTextDrawFont( playerid, g_ZoneOwnerTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawLetterSize( playerid, g_ZoneOwnerTD[ playerid ], 0.250000, 1.200000 );
|
||||||
|
PlayerTextDrawColor( playerid, g_ZoneOwnerTD[ playerid ], -1 );
|
||||||
|
PlayerTextDrawSetOutline( playerid, g_ZoneOwnerTD[ playerid ], 1 );
|
||||||
|
|
||||||
|
p_JailTimeTD[ playerid ] = CreatePlayerTextDraw(playerid, 328.000000, 24.000000, "Time Remaining:~n~250 seconds");
|
||||||
|
PlayerTextDrawAlignment(playerid, p_JailTimeTD[ playerid ], 2);
|
||||||
|
PlayerTextDrawBackgroundColor(playerid, p_JailTimeTD[ playerid ], 85);
|
||||||
|
PlayerTextDrawFont(playerid, p_JailTimeTD[ playerid ], 1);
|
||||||
|
PlayerTextDrawLetterSize(playerid, p_JailTimeTD[ playerid ], 0.329999, 1.500000);
|
||||||
|
PlayerTextDrawColor(playerid, p_JailTimeTD[ playerid ], -1);
|
||||||
|
PlayerTextDrawSetOutline(playerid, p_JailTimeTD[ playerid ], 1);
|
||||||
|
PlayerTextDrawSetProportional(playerid, p_JailTimeTD[ playerid ], 1);
|
||||||
|
|
||||||
|
p_DamageTD[ playerid ] = CreatePlayerTextDraw(playerid, 357.000000, 208.000000, "~r~~h~300.24 DAMAGE");
|
||||||
|
PlayerTextDrawBackgroundColor(playerid, p_DamageTD[ playerid ], 255);
|
||||||
|
PlayerTextDrawFont(playerid, p_DamageTD[ playerid ], 3);
|
||||||
|
PlayerTextDrawLetterSize(playerid, p_DamageTD[ playerid ], 0.400000, 1.000000);
|
||||||
|
PlayerTextDrawColor(playerid, p_DamageTD[ playerid ], -1);
|
||||||
|
PlayerTextDrawSetOutline(playerid, p_DamageTD[ playerid ], 1);
|
||||||
|
PlayerTextDrawSetProportional(playerid, p_DamageTD[ playerid ], 1);
|
||||||
|
|
||||||
|
p_LocationTD[ playerid ] = CreatePlayerTextDraw( playerid, 86.000000, 322.000000, "Loading..." );
|
||||||
|
PlayerTextDrawAlignment( playerid, p_LocationTD[ playerid ], 2 );
|
||||||
|
PlayerTextDrawBackgroundColor( playerid, p_LocationTD[ playerid ], 255 );
|
||||||
|
PlayerTextDrawFont( playerid, p_LocationTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawLetterSize( playerid, p_LocationTD[ playerid ], 0.240000, 1.299999 );
|
||||||
|
PlayerTextDrawSetOutline( playerid, p_LocationTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawColor( playerid, p_LocationTD[ playerid ], -1 );
|
||||||
|
PlayerTextDrawSetProportional( playerid, p_LocationTD[ playerid ], 1 );
|
||||||
|
|
||||||
|
p_ExperienceTD[ playerid ] = CreatePlayerTextDraw( playerid, 529.000000, 414.000000, "00000000" );
|
||||||
|
PlayerTextDrawBackgroundColor( playerid, p_ExperienceTD[ playerid ], 144 );
|
||||||
|
PlayerTextDrawFont( playerid, p_ExperienceTD[ playerid ], 3 );
|
||||||
|
PlayerTextDrawLetterSize( playerid, p_ExperienceTD[ playerid ], 0.569999, 2.199999 );
|
||||||
|
PlayerTextDrawColor( playerid, p_ExperienceTD[ playerid ], COLOR_GOLD );
|
||||||
|
PlayerTextDrawSetOutline( playerid, p_ExperienceTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawSetProportional( playerid, p_ExperienceTD[ playerid ], 1 );
|
||||||
|
|
||||||
|
p_ExperienceAwardTD[ playerid ] = CreatePlayerTextDraw( playerid, 338.000000, 149.000000, "+20 XP" );
|
||||||
|
PlayerTextDrawAlignment( playerid, p_ExperienceAwardTD[ playerid ], 2 );
|
||||||
|
PlayerTextDrawBackgroundColor( playerid, p_ExperienceAwardTD[ playerid ], 144 );
|
||||||
|
PlayerTextDrawFont( playerid, p_ExperienceAwardTD[ playerid ], 3 );
|
||||||
|
PlayerTextDrawLetterSize( playerid, p_ExperienceAwardTD[ playerid ], 0.409999, 1.600000 );
|
||||||
|
PlayerTextDrawColor( playerid, p_ExperienceAwardTD[ playerid ], COLOR_GOLD );
|
||||||
|
PlayerTextDrawSetOutline( playerid, p_ExperienceAwardTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawSetProportional( playerid, p_ExperienceAwardTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawSetSelectable( playerid, p_ExperienceAwardTD[ playerid ], 0 );
|
||||||
|
|
||||||
|
p_WantedLevelTD[ playerid ] = CreatePlayerTextDraw( playerid, 555.000000, 124.000000, "_" );
|
||||||
|
PlayerTextDrawAlignment( playerid, p_WantedLevelTD[ playerid ], 2 );
|
||||||
|
PlayerTextDrawBackgroundColor( playerid, p_WantedLevelTD[ playerid ], 255 );
|
||||||
|
PlayerTextDrawFont( playerid, p_WantedLevelTD[ playerid ], 2 );
|
||||||
|
PlayerTextDrawLetterSize( playerid, p_WantedLevelTD[ playerid ], 0.280000, 1.299999 );
|
||||||
|
PlayerTextDrawColor( playerid, p_WantedLevelTD[ playerid ], -1872621313 );
|
||||||
|
PlayerTextDrawSetOutline( playerid, p_WantedLevelTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawSetProportional( playerid, p_WantedLevelTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawSetSelectable( playerid, p_WantedLevelTD[ playerid ], 0 );
|
||||||
|
|
||||||
|
p_CoinsTD[ playerid ] = CreatePlayerTextDraw( playerid, 529.000000, 360.000000, "000000.0" );
|
||||||
|
PlayerTextDrawBackgroundColor( playerid, p_CoinsTD[ playerid ], 255 );
|
||||||
|
PlayerTextDrawFont( playerid, p_CoinsTD[ playerid ], 3 );
|
||||||
|
PlayerTextDrawLetterSize( playerid, p_CoinsTD[ playerid ], 0.320000, 1.299998 );
|
||||||
|
PlayerTextDrawColor( playerid, p_CoinsTD[ playerid ], COLOR_GOLD );
|
||||||
|
PlayerTextDrawSetOutline( playerid, p_CoinsTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawSetProportional( playerid, p_CoinsTD[ playerid ], 1 );
|
||||||
|
|
||||||
|
p_PlayerRankTD[ playerid ] = CreatePlayerTextDraw( playerid, 603.000000, 386.000000, "RANK" );
|
||||||
|
PlayerTextDrawBackgroundColor( playerid, p_PlayerRankTD[ playerid ], 0 );
|
||||||
|
PlayerTextDrawFont( playerid, p_PlayerRankTD[ playerid ], 5 );
|
||||||
|
PlayerTextDrawLetterSize( playerid, p_PlayerRankTD[ playerid ], 0.519999, 4.000000 );
|
||||||
|
PlayerTextDrawColor( playerid, p_PlayerRankTD[ playerid ], -1027424001 );
|
||||||
|
PlayerTextDrawSetOutline( playerid, p_PlayerRankTD[ playerid ], 0 );
|
||||||
|
PlayerTextDrawSetProportional( playerid, p_PlayerRankTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawSetShadow( playerid, p_PlayerRankTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawUseBox( playerid, p_PlayerRankTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawBoxColor( playerid, p_PlayerRankTD[ playerid ], 0 );
|
||||||
|
PlayerTextDrawTextSize( playerid, p_PlayerRankTD[ playerid ], 19.000000, 19.000000 );
|
||||||
|
PlayerTextDrawSetPreviewModel( playerid, p_PlayerRankTD[ playerid ], 19782 );
|
||||||
|
PlayerTextDrawSetPreviewRot( playerid, p_PlayerRankTD[ playerid ], 90.000000, 0.000000, 90.000000, 0.600000 );
|
||||||
|
|
||||||
|
p_PlayerRankTextTD[ playerid ] = CreatePlayerTextDraw( playerid, 529.000000, 386.000000, "Silver-1" );
|
||||||
|
PlayerTextDrawBackgroundColor( playerid, p_PlayerRankTextTD[ playerid ], 255 );
|
||||||
|
PlayerTextDrawFont( playerid, p_PlayerRankTextTD[ playerid ], 3 );
|
||||||
|
PlayerTextDrawLetterSize( playerid, p_PlayerRankTextTD[ playerid ], 0.379999, 1.899999 );
|
||||||
|
PlayerTextDrawColor( playerid, p_PlayerRankTextTD[ playerid ], -1027424001 );
|
||||||
|
PlayerTextDrawSetOutline( playerid, p_PlayerRankTextTD[ playerid ], 1 );
|
||||||
|
PlayerTextDrawSetProportional( playerid, p_PlayerRankTextTD[ playerid ], 1 );
|
||||||
|
|
||||||
|
p_RobberyRiskTD[ playerid ] = CreatePlayerTextDraw(playerid, 320.000000, 294.000000, "clerk feels very threatened");
|
||||||
|
PlayerTextDrawAlignment(playerid, p_RobberyRiskTD[ playerid ], 2);
|
||||||
|
PlayerTextDrawBackgroundColor(playerid, p_RobberyRiskTD[ playerid ], 255);
|
||||||
|
PlayerTextDrawFont(playerid, p_RobberyRiskTD[ playerid ], 3);
|
||||||
|
PlayerTextDrawLetterSize(playerid, p_RobberyRiskTD[ playerid ], 0.200000, 0.900000);
|
||||||
|
PlayerTextDrawColor(playerid, p_RobberyRiskTD[ playerid ], -1);
|
||||||
|
PlayerTextDrawSetOutline(playerid, p_RobberyRiskTD[ playerid ], 1);
|
||||||
|
PlayerTextDrawSetProportional(playerid, p_RobberyRiskTD[ playerid ], 1);
|
||||||
|
PlayerTextDrawSetSelectable(playerid, p_RobberyRiskTD[ playerid ], 0);
|
||||||
|
|
||||||
|
p_RobberyAmountTD[ playerid ] = CreatePlayerTextDraw(playerid, 320.000000, 280.000000, "Robbed ~g~~h~$1,800");
|
||||||
|
PlayerTextDrawAlignment(playerid, p_RobberyAmountTD[ playerid ], 2);
|
||||||
|
PlayerTextDrawBackgroundColor(playerid, p_RobberyAmountTD[ playerid ], 255);
|
||||||
|
PlayerTextDrawFont(playerid, p_RobberyAmountTD[ playerid ], 3);
|
||||||
|
PlayerTextDrawLetterSize(playerid, p_RobberyAmountTD[ playerid ], 0.340000, 1.300000);
|
||||||
|
PlayerTextDrawColor(playerid, p_RobberyAmountTD[ playerid ], -1);
|
||||||
|
PlayerTextDrawSetOutline(playerid, p_RobberyAmountTD[ playerid ], 1);
|
||||||
|
PlayerTextDrawSetProportional(playerid, p_RobberyAmountTD[ playerid ], 1);
|
||||||
|
PlayerTextDrawSetSelectable(playerid, p_RobberyAmountTD[ playerid ], 0);
|
||||||
|
return Y_HOOKS_CONTINUE_RETURN_1;
|
||||||
|
}
|
||||||
|
@ -2836,7 +2836,6 @@ stock Float: distanceFromSafe( iPlayer, iRobbery, &Float: fDistance = Float: 0x7
|
|||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
print( "\n" #SERVER_NAME "\n" );
|
print( "\n" #SERVER_NAME "\n" );
|
||||||
CallRemoteFunction( "InitializeTextDraws", "" );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public OnGameModeInit()
|
public OnGameModeInit()
|
||||||
@ -5597,7 +5596,6 @@ public OnPlayerConnect( playerid )
|
|||||||
ResetPlayerCash( playerid );
|
ResetPlayerCash( playerid );
|
||||||
|
|
||||||
// Create player textdraws and remove buildings
|
// Create player textdraws and remove buildings
|
||||||
initializePlayerTextDraws( playerid );
|
|
||||||
removeExcessiveBuildings( playerid );
|
removeExcessiveBuildings( playerid );
|
||||||
|
|
||||||
// Create casino label
|
// Create casino label
|
||||||
@ -23171,646 +23169,6 @@ stock SavePlayerData( playerid, bool: logout = false )
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
forward InitializeTextDraws( ); public InitializeTextDraws( )
|
|
||||||
{
|
|
||||||
g_ClassBoxTD = TextDrawCreate(40.000000, 170.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_ClassBoxTD, 255);
|
|
||||||
TextDrawFont(g_ClassBoxTD, 1);
|
|
||||||
TextDrawLetterSize(g_ClassBoxTD, 0.500000, 16.000000);
|
|
||||||
TextDrawColor(g_ClassBoxTD, -1);
|
|
||||||
TextDrawSetOutline(g_ClassBoxTD, 0);
|
|
||||||
TextDrawSetProportional(g_ClassBoxTD, 1);
|
|
||||||
TextDrawSetShadow(g_ClassBoxTD, 1);
|
|
||||||
TextDrawUseBox(g_ClassBoxTD, 1);
|
|
||||||
TextDrawBoxColor(g_ClassBoxTD, 144);
|
|
||||||
TextDrawTextSize(g_ClassBoxTD, 170.000000, 10.000000);
|
|
||||||
|
|
||||||
for ( new i = 0; i < sizeof( g_classTextdrawBox ); i ++ )
|
|
||||||
{
|
|
||||||
g_classTextdrawBox[ i ] = TextDrawCreate(40.000000, 138.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_classTextdrawBox[ i ], 255);
|
|
||||||
TextDrawFont(g_classTextdrawBox[ i ], 1);
|
|
||||||
TextDrawLetterSize(g_classTextdrawBox[ i ], 0.500000, 3.000000);
|
|
||||||
TextDrawColor(g_classTextdrawBox[ i ], -1);
|
|
||||||
TextDrawSetOutline(g_classTextdrawBox[ i ], 0);
|
|
||||||
TextDrawSetProportional(g_classTextdrawBox[ i ], 1);
|
|
||||||
TextDrawSetShadow(g_classTextdrawBox[ i ], 1);
|
|
||||||
TextDrawUseBox(g_classTextdrawBox[ i ], 1);
|
|
||||||
TextDrawBoxColor(g_classTextdrawBox[ i ], CLASS_COLORS[ i ]);
|
|
||||||
TextDrawTextSize(g_classTextdrawBox[ i ], 170.000000, 10.000000);
|
|
||||||
|
|
||||||
szLargeString[ 0 ] = '\0';
|
|
||||||
|
|
||||||
switch ( i )
|
|
||||||
{
|
|
||||||
case 0: {
|
|
||||||
strcat( szLargeString, "- Select different types of jobs~n~" \
|
|
||||||
"- Able to rob stores and players~n~" \
|
|
||||||
"- Can gang up with players~n~" \
|
|
||||||
"~g~~h~- Accessible to everybody" );
|
|
||||||
}
|
|
||||||
case 1: {
|
|
||||||
strcat( szLargeString, "- Protect the city from criminals~n~" \
|
|
||||||
"- Access to police gun lockers~n~" \
|
|
||||||
"- Can arrest/jail people~n~" \
|
|
||||||
"~g~~h~- Accessible to everybody" );
|
|
||||||
}
|
|
||||||
case 2: {
|
|
||||||
strcat( szLargeString, "- Protect the city from criminals~n~" \
|
|
||||||
"- Access to police gun lockers~n~" \
|
|
||||||
"- Can arrest/jail people~n~" \
|
|
||||||
"- Can set roadblocks on roads~n~" \
|
|
||||||
"- Can set spike traps on roads~n~" \
|
|
||||||
"~r~~h~- Requires 10,000 XP or more" );
|
|
||||||
}
|
|
||||||
case 3: {
|
|
||||||
strcat( szLargeString, "- Protect the city from criminals~n~" \
|
|
||||||
"- Access to police gun lockers~n~" \
|
|
||||||
"- Can arrest/jail people~n~" \
|
|
||||||
"- Can set roadblocks on roads~n~" \
|
|
||||||
"- Can set spike traps on roads~n~" \
|
|
||||||
"- Can use combat vehicles~n~" \
|
|
||||||
"~r~~h~- Requires 20,000 XP or more" );
|
|
||||||
}
|
|
||||||
case 4: {
|
|
||||||
strcat( szLargeString, "- Protect the city from criminals~n~" \
|
|
||||||
"- Access to police gun lockers~n~" \
|
|
||||||
"- Can arrest/jail people~n~" \
|
|
||||||
"- Can set roadblocks on roads~n~" \
|
|
||||||
"- Can set spike traps on roads~n~" \
|
|
||||||
"- Hidden from radar~n~" \
|
|
||||||
"~r~~h~- Requires 15,000 XP or more" );
|
|
||||||
}
|
|
||||||
case 5: {
|
|
||||||
strcat( szLargeString, "- Can heal and cure players~n~" \
|
|
||||||
"- Ambulance passengers pay you~n~"\
|
|
||||||
"- Able to rob stores and players~n~" \
|
|
||||||
"~r~~h~- Requires 1,000 XP or more" );
|
|
||||||
}
|
|
||||||
case 6: {
|
|
||||||
strcat( szLargeString, "- Protect the city from fires~n~" \
|
|
||||||
"- Firetrucks able to extinguish fires~n~"\
|
|
||||||
"- Able to rob stores and players~n~" \
|
|
||||||
"~r~~h~- Requires 1,000 XP or more" );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
g_classTextdrawDescription[ i ] = TextDrawCreate(43.000000, 171.000000, szLargeString);
|
|
||||||
TextDrawBackgroundColor(g_classTextdrawDescription[ i ], 0);
|
|
||||||
TextDrawFont(g_classTextdrawDescription[ i ], 1);
|
|
||||||
TextDrawLetterSize(g_classTextdrawDescription[ i ], 0.190000, 1.100000);
|
|
||||||
TextDrawColor(g_classTextdrawDescription[ i ], -1);
|
|
||||||
TextDrawSetOutline(g_classTextdrawDescription[ i ], 1);
|
|
||||||
TextDrawSetProportional(g_classTextdrawDescription[ i ], 1);
|
|
||||||
|
|
||||||
g_classTextdrawName[ i ] = TextDrawCreate(46.000000, 141.000000, CLASS_NAMES[ i ] );
|
|
||||||
TextDrawBackgroundColor(g_classTextdrawName[ i ], 0);
|
|
||||||
TextDrawFont(g_classTextdrawName[ i ], 3);
|
|
||||||
TextDrawLetterSize(g_classTextdrawName[ i ], 0.550000, 2.099999);
|
|
||||||
TextDrawColor(g_classTextdrawName[ i ], i == 0 ? 0x000000FF : 0xFFFFFFFF );
|
|
||||||
TextDrawSetOutline(g_classTextdrawName[ i ], 1);
|
|
||||||
TextDrawSetProportional(g_classTextdrawName[ i ], 1);
|
|
||||||
TextDrawSetSelectable(g_classTextdrawName[ i ], 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
g_NotManyPlayersTD = TextDrawCreate(322.000000, 12.000000, "Coin generation increased by 5x as there aren't many players online!");
|
|
||||||
TextDrawAlignment(g_NotManyPlayersTD, 2);
|
|
||||||
TextDrawBackgroundColor(g_NotManyPlayersTD, 0);
|
|
||||||
TextDrawFont(g_NotManyPlayersTD, 1);
|
|
||||||
TextDrawLetterSize(g_NotManyPlayersTD, 0.149999, 0.799999);
|
|
||||||
TextDrawColor(g_NotManyPlayersTD, -16776961);
|
|
||||||
TextDrawSetOutline(g_NotManyPlayersTD, 1);
|
|
||||||
TextDrawSetProportional(g_NotManyPlayersTD, 1);
|
|
||||||
|
|
||||||
g_TopDonorTD = TextDrawCreate(320.000000, 2.000000, "Top Donor Lorenc - $0.00, ~w~~h~~h~Latest Donor Lorenc - $0.00");
|
|
||||||
TextDrawAlignment(g_TopDonorTD, 2);
|
|
||||||
TextDrawBackgroundColor(g_TopDonorTD, 0);
|
|
||||||
TextDrawFont(g_TopDonorTD, 1);
|
|
||||||
TextDrawLetterSize(g_TopDonorTD, 0.139999, 0.799999);
|
|
||||||
TextDrawColor(g_TopDonorTD, -2347265);
|
|
||||||
TextDrawSetOutline(g_TopDonorTD, 1);
|
|
||||||
TextDrawSetProportional(g_TopDonorTD, 1);
|
|
||||||
|
|
||||||
g_SlotMachineBoxTD[ 0 ] = TextDrawCreate(220.000000, 322.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_SlotMachineBoxTD[ 0 ], 255);
|
|
||||||
TextDrawLetterSize(g_SlotMachineBoxTD[ 0 ], 0.500000, 7.000000);
|
|
||||||
TextDrawUseBox(g_SlotMachineBoxTD[ 0 ], 1);
|
|
||||||
TextDrawBoxColor(g_SlotMachineBoxTD[ 0 ], 112);
|
|
||||||
TextDrawTextSize(g_SlotMachineBoxTD[ 0 ], 430.000000, 3.000000);
|
|
||||||
|
|
||||||
g_SlotMachineBoxTD[ 1 ] = TextDrawCreate(220.000000, 306.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_SlotMachineBoxTD[ 1 ], 255);
|
|
||||||
TextDrawLetterSize(g_SlotMachineBoxTD[ 1 ], 0.500000, 1.400000);
|
|
||||||
TextDrawUseBox(g_SlotMachineBoxTD[ 1 ], 1);
|
|
||||||
TextDrawBoxColor(g_SlotMachineBoxTD[ 1 ], 238);
|
|
||||||
TextDrawTextSize(g_SlotMachineBoxTD[ 1 ], 430.000000, -18.000000);
|
|
||||||
|
|
||||||
g_currentXPTD = TextDrawCreate(529.000000, 405.000000, "Current XP");
|
|
||||||
TextDrawBackgroundColor(g_currentXPTD, 255);
|
|
||||||
TextDrawFont(g_currentXPTD, 3);
|
|
||||||
TextDrawLetterSize(g_currentXPTD, 0.230000, 1.000000);
|
|
||||||
TextDrawColor(g_currentXPTD, -1);
|
|
||||||
TextDrawSetOutline(g_currentXPTD, 1);
|
|
||||||
TextDrawSetProportional(g_currentXPTD, 1);
|
|
||||||
|
|
||||||
g_CurrentRankTD = TextDrawCreate(529.000000, 375.000000, "Current Rank");
|
|
||||||
TextDrawBackgroundColor(g_CurrentRankTD, 255);
|
|
||||||
TextDrawFont(g_CurrentRankTD, 3);
|
|
||||||
TextDrawLetterSize(g_CurrentRankTD, 0.230000, 1.000000);
|
|
||||||
TextDrawColor(g_CurrentRankTD, -1);
|
|
||||||
TextDrawSetOutline(g_CurrentRankTD, 1);
|
|
||||||
TextDrawSetProportional(g_CurrentRankTD, 1);
|
|
||||||
|
|
||||||
g_CurrentCoinsTD = TextDrawCreate(529.000000, 348.000000, "Total Coins");
|
|
||||||
TextDrawBackgroundColor(g_CurrentCoinsTD, 255);
|
|
||||||
TextDrawFont(g_CurrentCoinsTD, 3);
|
|
||||||
TextDrawLetterSize(g_CurrentCoinsTD, 0.230000, 1.000000);
|
|
||||||
TextDrawColor(g_CurrentCoinsTD, -1);
|
|
||||||
TextDrawSetOutline(g_CurrentCoinsTD, 1);
|
|
||||||
TextDrawSetProportional(g_CurrentCoinsTD, 1);
|
|
||||||
|
|
||||||
g_DoubleXPTD = TextDrawCreate(516.000000, 423.500000, "x2");
|
|
||||||
TextDrawBackgroundColor(g_DoubleXPTD, 255);
|
|
||||||
TextDrawFont(g_DoubleXPTD, 3);
|
|
||||||
TextDrawLetterSize(g_DoubleXPTD, 0.230000, 1.000000);
|
|
||||||
TextDrawColor(g_DoubleXPTD, -1);
|
|
||||||
TextDrawSetOutline(g_DoubleXPTD, 1);
|
|
||||||
TextDrawSetProportional(g_DoubleXPTD, 1);
|
|
||||||
|
|
||||||
p_VehiclePreviewCloseTD = TextDrawCreate(191.000000, 319.000000, "Press your ESCAPE KEY to close the preview.");
|
|
||||||
TextDrawBackgroundColor(p_VehiclePreviewCloseTD, 255);
|
|
||||||
TextDrawFont(p_VehiclePreviewCloseTD, 2);
|
|
||||||
TextDrawLetterSize(p_VehiclePreviewCloseTD, 0.259999, 1.399999);
|
|
||||||
TextDrawColor(p_VehiclePreviewCloseTD, -1);
|
|
||||||
TextDrawSetOutline(p_VehiclePreviewCloseTD, 1);
|
|
||||||
TextDrawSetProportional(p_VehiclePreviewCloseTD, 1);
|
|
||||||
|
|
||||||
g_VehiclePreviewBoxTD = TextDrawCreate(500.000000, 150.000000, "__");
|
|
||||||
TextDrawBackgroundColor(g_VehiclePreviewBoxTD, 255);
|
|
||||||
TextDrawLetterSize(g_VehiclePreviewBoxTD, 0.500000, 17.000000);
|
|
||||||
TextDrawColor(g_VehiclePreviewBoxTD, -1);
|
|
||||||
TextDrawUseBox(g_VehiclePreviewBoxTD, 1);
|
|
||||||
TextDrawBoxColor(g_VehiclePreviewBoxTD, 112);
|
|
||||||
TextDrawTextSize(g_VehiclePreviewBoxTD, 139.000000, 50.000000);
|
|
||||||
|
|
||||||
g_VehiclePreviewTxtTD = TextDrawCreate(130.000000, 135.000000, "Vehicle Preview");
|
|
||||||
TextDrawBackgroundColor(g_VehiclePreviewTxtTD, 255);
|
|
||||||
TextDrawFont(g_VehiclePreviewTxtTD, 0);
|
|
||||||
TextDrawLetterSize(g_VehiclePreviewTxtTD, 0.720000, 2.000000);
|
|
||||||
TextDrawColor(g_VehiclePreviewTxtTD, -1);
|
|
||||||
TextDrawSetOutline(g_VehiclePreviewTxtTD, 1);
|
|
||||||
TextDrawSetProportional(g_VehiclePreviewTxtTD, 1);
|
|
||||||
TextDrawSetSelectable(g_VehiclePreviewTxtTD, 0);
|
|
||||||
|
|
||||||
g_ProgressBoxTD = TextDrawCreate(250.000000, 220.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_ProgressBoxTD, 255);
|
|
||||||
TextDrawFont(g_ProgressBoxTD, 1);
|
|
||||||
TextDrawLetterSize(g_ProgressBoxTD, 0.500000, 1.000000);
|
|
||||||
TextDrawColor(g_ProgressBoxTD, -1);
|
|
||||||
TextDrawSetOutline(g_ProgressBoxTD, 0);
|
|
||||||
TextDrawSetProportional(g_ProgressBoxTD, 1);
|
|
||||||
TextDrawSetShadow(g_ProgressBoxTD, 1);
|
|
||||||
TextDrawUseBox(g_ProgressBoxTD, 1);
|
|
||||||
TextDrawBoxColor(g_ProgressBoxTD, 255);
|
|
||||||
TextDrawTextSize(g_ProgressBoxTD, 390.000000, 10.000000);
|
|
||||||
|
|
||||||
g_AdminLogTD = TextDrawCreate(150.000000, 360.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_AdminLogTD, 255);
|
|
||||||
TextDrawFont(g_AdminLogTD, 1);
|
|
||||||
TextDrawLetterSize(g_AdminLogTD, 0.210000, 1.000000);
|
|
||||||
TextDrawColor(g_AdminLogTD, -16289537);
|
|
||||||
TextDrawSetOutline(g_AdminLogTD, 1);
|
|
||||||
TextDrawSetProportional(g_AdminLogTD, 1);
|
|
||||||
|
|
||||||
g_AnimationTD = TextDrawCreate(220.000000, 141.000000, "PRESS ~r~~h~~k~~PED_SPRINT~~W~ TO STOP THE ANIMATION");
|
|
||||||
TextDrawBackgroundColor(g_AnimationTD, 80);
|
|
||||||
TextDrawFont(g_AnimationTD, 3);
|
|
||||||
TextDrawLetterSize(g_AnimationTD, 0.310000, 1.200000);
|
|
||||||
TextDrawColor(g_AnimationTD, -1);
|
|
||||||
TextDrawSetOutline(g_AnimationTD, 1);
|
|
||||||
TextDrawSetProportional(g_AnimationTD, 1);
|
|
||||||
TextDrawUseBox(g_AnimationTD, 1);
|
|
||||||
TextDrawBoxColor(g_AnimationTD, 117);
|
|
||||||
TextDrawTextSize(g_AnimationTD, 418.000000, 0.000000);
|
|
||||||
|
|
||||||
g_AchievementTD[ 0 ] = TextDrawCreate(250.000000, 120.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_AchievementTD[ 0 ], 255);
|
|
||||||
TextDrawFont(g_AchievementTD[ 0 ], 1);
|
|
||||||
TextDrawLetterSize(g_AchievementTD[ 0 ], 0.500000, 6.000001);
|
|
||||||
TextDrawColor(g_AchievementTD[ 0 ], -1);
|
|
||||||
TextDrawSetOutline(g_AchievementTD[ 0 ], 0);
|
|
||||||
TextDrawSetProportional(g_AchievementTD[ 0 ], 1);
|
|
||||||
TextDrawSetShadow(g_AchievementTD[ 0 ], 1);
|
|
||||||
TextDrawUseBox(g_AchievementTD[ 0 ], 1);
|
|
||||||
TextDrawBoxColor(g_AchievementTD[ 0 ], 80);
|
|
||||||
TextDrawTextSize(g_AchievementTD[ 0 ], 403.000000, 4.000000);
|
|
||||||
|
|
||||||
g_AchievementTD[ 1 ] = TextDrawCreate(250.000000, 120.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_AchievementTD[ 1 ], 255);
|
|
||||||
TextDrawFont(g_AchievementTD[ 1 ], 1);
|
|
||||||
TextDrawLetterSize(g_AchievementTD[ 1 ], 0.500000, 1.300000);
|
|
||||||
TextDrawColor(g_AchievementTD[ 1 ], -1);
|
|
||||||
TextDrawSetOutline(g_AchievementTD[ 1 ], 0);
|
|
||||||
TextDrawSetProportional(g_AchievementTD[ 1 ], 1);
|
|
||||||
TextDrawSetShadow(g_AchievementTD[ 1 ], 1);
|
|
||||||
TextDrawUseBox(g_AchievementTD[ 1 ], 1);
|
|
||||||
TextDrawBoxColor(g_AchievementTD[ 1 ], 128);
|
|
||||||
TextDrawTextSize(g_AchievementTD[ 1 ], 403.000000, 4.000000);
|
|
||||||
|
|
||||||
g_AchievementTD[ 2 ] = TextDrawCreate(250.000000, 137.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_AchievementTD[ 2 ], 255);
|
|
||||||
TextDrawFont(g_AchievementTD[ 2 ], 1);
|
|
||||||
TextDrawLetterSize(g_AchievementTD[ 2 ], 0.500000, -0.699999);
|
|
||||||
TextDrawColor(g_AchievementTD[ 2 ], -1);
|
|
||||||
TextDrawSetOutline(g_AchievementTD[ 2 ], 0);
|
|
||||||
TextDrawSetProportional(g_AchievementTD[ 2 ], 1);
|
|
||||||
TextDrawSetShadow(g_AchievementTD[ 2 ], 1);
|
|
||||||
TextDrawUseBox(g_AchievementTD[ 2 ], 1);
|
|
||||||
TextDrawBoxColor(g_AchievementTD[ 2 ], 255);
|
|
||||||
TextDrawTextSize(g_AchievementTD[ 2 ], 403.000000, 4.000000);
|
|
||||||
|
|
||||||
g_AchievementTD[ 3 ] = TextDrawCreate(266.000000, 121.000000, "]_ACHIEVEMENT UNLOCKED_]");
|
|
||||||
TextDrawBackgroundColor(g_AchievementTD[ 3 ], 255);
|
|
||||||
TextDrawFont(g_AchievementTD[ 3 ], 2);
|
|
||||||
TextDrawLetterSize(g_AchievementTD[ 3 ], 0.210000, 1.100000);
|
|
||||||
TextDrawColor(g_AchievementTD[ 3 ], -65281);
|
|
||||||
TextDrawSetOutline(g_AchievementTD[ 3 ], 0);
|
|
||||||
TextDrawSetProportional(g_AchievementTD[ 3 ], 1);
|
|
||||||
TextDrawSetShadow(g_AchievementTD[ 3 ], 1);
|
|
||||||
|
|
||||||
g_WorldDayTD = TextDrawCreate(501.000000, 6.000000, "Monday");
|
|
||||||
TextDrawBackgroundColor(g_WorldDayTD, 255);
|
|
||||||
TextDrawFont(g_WorldDayTD, 3);
|
|
||||||
TextDrawLetterSize(g_WorldDayTD, 0.519998, 1.499999);
|
|
||||||
TextDrawSetOutline(g_WorldDayTD, 2);
|
|
||||||
TextDrawSetProportional(g_WorldDayTD, 1);
|
|
||||||
|
|
||||||
g_MotdTD = TextDrawCreate(320.000000, 426.000000, "_");
|
|
||||||
TextDrawAlignment(g_MotdTD, 2);
|
|
||||||
TextDrawBackgroundColor(g_MotdTD, 117);
|
|
||||||
TextDrawFont(g_MotdTD, 1);//1
|
|
||||||
TextDrawLetterSize(g_MotdTD, 0.300000, 1.300000);
|
|
||||||
TextDrawColor(g_MotdTD, -1);
|
|
||||||
TextDrawSetOutline(g_MotdTD, 1);
|
|
||||||
TextDrawSetProportional(g_MotdTD, 1);
|
|
||||||
|
|
||||||
g_ObjectLoadTD = TextDrawCreate(320.000000, 148.000000, "Loading Objects...~n~Please Wait...");
|
|
||||||
TextDrawAlignment(g_ObjectLoadTD, 2);
|
|
||||||
TextDrawBackgroundColor(g_ObjectLoadTD, 80);
|
|
||||||
TextDrawFont(g_ObjectLoadTD, 2);
|
|
||||||
TextDrawLetterSize(g_ObjectLoadTD, 0.400000, 2.000000);
|
|
||||||
TextDrawColor(g_ObjectLoadTD, -1);
|
|
||||||
TextDrawSetOutline(g_ObjectLoadTD, 1);
|
|
||||||
TextDrawSetProportional(g_ObjectLoadTD, 1);
|
|
||||||
TextDrawUseBox(g_ObjectLoadTD, 1);
|
|
||||||
TextDrawBoxColor(g_ObjectLoadTD, 117);
|
|
||||||
TextDrawTextSize(g_ObjectLoadTD, 0.000000, 180.000000);
|
|
||||||
|
|
||||||
g_WebsiteTD = TextDrawCreate(84.000000, 429.000000, "www.SFCNR.com");
|
|
||||||
TextDrawAlignment(g_WebsiteTD, 2);
|
|
||||||
TextDrawBackgroundColor(g_WebsiteTD, 255);
|
|
||||||
TextDrawFont(g_WebsiteTD, 1);
|
|
||||||
TextDrawLetterSize(g_WebsiteTD, 0.220000, 1.200000);
|
|
||||||
TextDrawColor(g_WebsiteTD, 0xfa4d4cff); // 1289224191
|
|
||||||
TextDrawSetOutline(g_WebsiteTD, 1);
|
|
||||||
TextDrawSetProportional(g_WebsiteTD, 1);
|
|
||||||
|
|
||||||
g_MovieModeTD[ 0 ] = TextDrawCreate(507.000000, 386.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_MovieModeTD[ 0 ], 255);
|
|
||||||
TextDrawFont(g_MovieModeTD[ 0 ], 1);
|
|
||||||
TextDrawLetterSize(g_MovieModeTD[ 0 ], 0.500000, 4.799999);
|
|
||||||
TextDrawColor(g_MovieModeTD[ 0 ], -1);
|
|
||||||
TextDrawSetOutline(g_MovieModeTD[ 0 ], 0);
|
|
||||||
TextDrawSetProportional(g_MovieModeTD[ 0 ], 1);
|
|
||||||
TextDrawSetShadow(g_MovieModeTD[ 0 ], 1);
|
|
||||||
TextDrawUseBox(g_MovieModeTD[ 0 ], 1);
|
|
||||||
TextDrawBoxColor(g_MovieModeTD[ 0 ], 80);
|
|
||||||
TextDrawTextSize(g_MovieModeTD[ 0 ], 620.000000, 0.000000);
|
|
||||||
|
|
||||||
g_MovieModeTD[ 1 ] = TextDrawCreate(516.000000, 398.000000, "San Fierro");
|
|
||||||
TextDrawBackgroundColor(g_MovieModeTD[ 1 ], 255);
|
|
||||||
TextDrawFont(g_MovieModeTD[ 1 ], 3);
|
|
||||||
TextDrawLetterSize(g_MovieModeTD[ 1 ], 0.529999, 2.299999);
|
|
||||||
TextDrawColor(g_MovieModeTD[ 1 ], -2347265);
|
|
||||||
TextDrawSetOutline(g_MovieModeTD[ 1 ], 1);
|
|
||||||
TextDrawSetProportional(g_MovieModeTD[ 1 ], 1);
|
|
||||||
|
|
||||||
g_MovieModeTD[ 2 ] = TextDrawCreate(530.000000, 414.000000, "Cops and Robbers");
|
|
||||||
TextDrawBackgroundColor(g_MovieModeTD[ 2 ], 255);
|
|
||||||
TextDrawFont(g_MovieModeTD[ 2 ], 0);
|
|
||||||
TextDrawLetterSize(g_MovieModeTD[ 2 ], 0.310000, 1.100000);
|
|
||||||
TextDrawColor(g_MovieModeTD[ 2 ], -1);
|
|
||||||
TextDrawSetOutline(g_MovieModeTD[ 2 ], 1);
|
|
||||||
TextDrawSetProportional(g_MovieModeTD[ 2 ], 1);
|
|
||||||
|
|
||||||
g_MovieModeTD[ 3 ] = TextDrawCreate(507.000000, 398.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_MovieModeTD[ 3 ], 255);
|
|
||||||
TextDrawFont(g_MovieModeTD[ 3 ], 1);
|
|
||||||
TextDrawLetterSize(g_MovieModeTD[ 3 ], 0.500000, -0.400000);
|
|
||||||
TextDrawColor(g_MovieModeTD[ 3 ], -1);
|
|
||||||
TextDrawSetOutline(g_MovieModeTD[ 3 ], 0);
|
|
||||||
TextDrawSetProportional(g_MovieModeTD[ 3 ], 1);
|
|
||||||
TextDrawSetShadow(g_MovieModeTD[ 3 ], 1);
|
|
||||||
TextDrawUseBox(g_MovieModeTD[ 3 ], 1);
|
|
||||||
TextDrawBoxColor(g_MovieModeTD[ 3 ], 255);
|
|
||||||
TextDrawTextSize(g_MovieModeTD[ 3 ], 620.000000, 0.000000);
|
|
||||||
|
|
||||||
g_MovieModeTD[ 4 ] = TextDrawCreate(530.000000, 385.000000, "www.SFCNR.com");
|
|
||||||
TextDrawBackgroundColor(g_MovieModeTD[ 4 ], 255);
|
|
||||||
TextDrawFont(g_MovieModeTD[ 4 ], 1);
|
|
||||||
TextDrawLetterSize(g_MovieModeTD[ 4 ], 0.200000, 1.000000);
|
|
||||||
TextDrawColor(g_MovieModeTD[ 4 ], 0xfa4d4cff);
|
|
||||||
TextDrawSetOutline(g_MovieModeTD[ 4 ], 1);
|
|
||||||
TextDrawSetProportional(g_MovieModeTD[ 4 ], 1);
|
|
||||||
|
|
||||||
g_MovieModeTD[ 5 ] = TextDrawCreate(507.000000, 386.000000, "_");
|
|
||||||
TextDrawBackgroundColor(g_MovieModeTD[ 5 ], 255);
|
|
||||||
TextDrawFont(g_MovieModeTD[ 5 ], 1);
|
|
||||||
TextDrawLetterSize(g_MovieModeTD[ 5 ], 0.500000, 0.799999);
|
|
||||||
TextDrawColor(g_MovieModeTD[ 5 ], -1);
|
|
||||||
TextDrawSetOutline(g_MovieModeTD[ 5 ], 0);
|
|
||||||
TextDrawSetProportional(g_MovieModeTD[ 5 ], 1);
|
|
||||||
TextDrawSetShadow(g_MovieModeTD[ 5 ], 1);
|
|
||||||
TextDrawUseBox(g_MovieModeTD[ 5 ], 1);
|
|
||||||
TextDrawBoxColor(g_MovieModeTD[ 5 ], 128);
|
|
||||||
TextDrawTextSize(g_MovieModeTD[ 5 ], 620.000000, 0.000000);
|
|
||||||
|
|
||||||
g_AdminOnDutyTD = TextDrawCreate(552.000000, 66.500000, "ADMIN ON DUTY");
|
|
||||||
TextDrawBackgroundColor(g_AdminOnDutyTD, 255);
|
|
||||||
TextDrawFont(g_AdminOnDutyTD, 1);
|
|
||||||
TextDrawLetterSize(g_AdminOnDutyTD, 0.180000, 0.899999);
|
|
||||||
TextDrawColor(g_AdminOnDutyTD, -65281);
|
|
||||||
TextDrawSetOutline(g_AdminOnDutyTD, 1);
|
|
||||||
TextDrawSetProportional(g_AdminOnDutyTD, 1);
|
|
||||||
|
|
||||||
/* ** Player TextDraws ** */
|
|
||||||
for(new playerid; playerid != MAX_PLAYERS; playerid ++)
|
|
||||||
{
|
|
||||||
if ( playerid < MAX_MACHINES ) {
|
|
||||||
p_SlotMachineFigureTD[ playerid ] = TextDrawCreate(324.000000, 307.000000, "$20,000");
|
|
||||||
TextDrawAlignment(p_SlotMachineFigureTD[ playerid ], 2);
|
|
||||||
TextDrawBackgroundColor(p_SlotMachineFigureTD[ playerid ], 255);
|
|
||||||
TextDrawFont(p_SlotMachineFigureTD[ playerid ], 3);
|
|
||||||
TextDrawLetterSize(p_SlotMachineFigureTD[ playerid ], 0.250000, 1.100000);
|
|
||||||
TextDrawColor(p_SlotMachineFigureTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_SlotMachineFigureTD[ playerid ], 1);
|
|
||||||
TextDrawSetProportional(p_SlotMachineFigureTD[ playerid ], 1);
|
|
||||||
|
|
||||||
g_SlotMachineOneTD[ playerid ] = TextDrawCreate(222.000000, 324.000000, "ld_slot:bar1_o");
|
|
||||||
TextDrawBackgroundColor(g_SlotMachineOneTD[ playerid ], 255);
|
|
||||||
TextDrawFont(g_SlotMachineOneTD[ playerid ], 4);
|
|
||||||
TextDrawLetterSize(g_SlotMachineOneTD[ playerid ], 0.500000, 0.399999);
|
|
||||||
TextDrawColor(g_SlotMachineOneTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(g_SlotMachineOneTD[ playerid ], 0);
|
|
||||||
TextDrawSetProportional(g_SlotMachineOneTD[ playerid ], 1);
|
|
||||||
TextDrawSetShadow(g_SlotMachineOneTD[ playerid ], 1);
|
|
||||||
TextDrawUseBox(g_SlotMachineOneTD[ playerid ], 1);
|
|
||||||
TextDrawBoxColor(g_SlotMachineOneTD[ playerid ], 255);
|
|
||||||
TextDrawTextSize(g_SlotMachineOneTD[ playerid ], 66.000000, 77.000000);
|
|
||||||
|
|
||||||
g_SlotMachineTwoTD[ playerid ] = TextDrawCreate(292.000000, 324.000000, "ld_slot:bar1_o");
|
|
||||||
TextDrawBackgroundColor(g_SlotMachineTwoTD[ playerid ], 255);
|
|
||||||
TextDrawFont(g_SlotMachineTwoTD[ playerid ], 4);
|
|
||||||
TextDrawLetterSize(g_SlotMachineTwoTD[ playerid ], 0.500000, 0.399999);
|
|
||||||
TextDrawColor(g_SlotMachineTwoTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(g_SlotMachineTwoTD[ playerid ], 0);
|
|
||||||
TextDrawSetProportional(g_SlotMachineTwoTD[ playerid ], 1);
|
|
||||||
TextDrawSetShadow(g_SlotMachineTwoTD[ playerid ], 1);
|
|
||||||
TextDrawUseBox(g_SlotMachineTwoTD[ playerid ], 1);
|
|
||||||
TextDrawBoxColor(g_SlotMachineTwoTD[ playerid ], 255);
|
|
||||||
TextDrawTextSize(g_SlotMachineTwoTD[ playerid ], 66.000000, 77.000000);
|
|
||||||
|
|
||||||
g_SlotMachineThreeTD[ playerid ] = TextDrawCreate(362.000000, 324.000000, "ld_slot:bar1_o");
|
|
||||||
TextDrawBackgroundColor(g_SlotMachineThreeTD[ playerid ], 255);
|
|
||||||
TextDrawFont(g_SlotMachineThreeTD[ playerid ], 4);
|
|
||||||
TextDrawLetterSize(g_SlotMachineThreeTD[ playerid ], 0.500000, 0.399999);
|
|
||||||
TextDrawColor(g_SlotMachineThreeTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(g_SlotMachineThreeTD[ playerid ], 0);
|
|
||||||
TextDrawSetProportional(g_SlotMachineThreeTD[ playerid ], 1);
|
|
||||||
TextDrawSetShadow(g_SlotMachineThreeTD[ playerid ], 1);
|
|
||||||
TextDrawUseBox(g_SlotMachineThreeTD[ playerid ], 1);
|
|
||||||
TextDrawBoxColor(g_SlotMachineThreeTD[ playerid ], 255);
|
|
||||||
TextDrawTextSize(g_SlotMachineThreeTD[ playerid ], 66.000000, 77.000000);
|
|
||||||
}
|
|
||||||
|
|
||||||
p_ProgressBoxOutsideTD[ playerid ] = TextDrawCreate(252.000000, 222.000000, "_");
|
|
||||||
TextDrawBackgroundColor(p_ProgressBoxOutsideTD[ playerid ], 255);
|
|
||||||
TextDrawFont(p_ProgressBoxOutsideTD[ playerid ], 1);
|
|
||||||
TextDrawLetterSize(p_ProgressBoxOutsideTD[ playerid ], 0.359999, 0.599999);
|
|
||||||
TextDrawColor(p_ProgressBoxOutsideTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_ProgressBoxOutsideTD[ playerid ], 0);
|
|
||||||
TextDrawSetProportional(p_ProgressBoxOutsideTD[ playerid ], 1);
|
|
||||||
TextDrawSetShadow(p_ProgressBoxOutsideTD[ playerid ], 1);
|
|
||||||
TextDrawUseBox(p_ProgressBoxOutsideTD[ playerid ], 1);
|
|
||||||
TextDrawBoxColor(p_ProgressBoxOutsideTD[ playerid ], -154);
|
|
||||||
TextDrawTextSize(p_ProgressBoxOutsideTD[ playerid ], 388.000000, 14.000000);
|
|
||||||
|
|
||||||
p_ProgressBoxTD[ playerid ] = TextDrawCreate(252.000000, 222.000000, "_");
|
|
||||||
TextDrawBackgroundColor(p_ProgressBoxTD[ playerid ], 255);
|
|
||||||
TextDrawFont(p_ProgressBoxTD[ playerid ], 1);
|
|
||||||
TextDrawLetterSize(p_ProgressBoxTD[ playerid ], 0.559999, 0.599999);
|
|
||||||
TextDrawColor(p_ProgressBoxTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_ProgressBoxTD[ playerid ], 0);
|
|
||||||
TextDrawSetProportional(p_ProgressBoxTD[ playerid ], 1);
|
|
||||||
TextDrawSetShadow(p_ProgressBoxTD[ playerid ], 1);
|
|
||||||
TextDrawUseBox(p_ProgressBoxTD[ playerid ], 1);
|
|
||||||
TextDrawBoxColor(p_ProgressBoxTD[ playerid ], -1);
|
|
||||||
TextDrawTextSize(p_ProgressBoxTD[ playerid ], 378.000000, 14.000000);
|
|
||||||
|
|
||||||
p_ProgressTitleTD[ playerid ] = TextDrawCreate(320.000000, 205.000000, "____");
|
|
||||||
TextDrawAlignment(p_ProgressTitleTD[ playerid ], 2);
|
|
||||||
TextDrawBackgroundColor(p_ProgressTitleTD[ playerid ], 255);
|
|
||||||
TextDrawFont(p_ProgressTitleTD[ playerid ], 0);
|
|
||||||
TextDrawLetterSize(p_ProgressTitleTD[ playerid ], 0.559999, 1.700000);
|
|
||||||
TextDrawColor(p_ProgressTitleTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_ProgressTitleTD[ playerid ], 1);
|
|
||||||
TextDrawSetProportional(p_ProgressTitleTD[ playerid ], 1);
|
|
||||||
|
|
||||||
p_AchievementTD[ playerid ] = TextDrawCreate(325.000000, 137.000000, "_");
|
|
||||||
TextDrawAlignment(p_AchievementTD[ playerid ], 2);
|
|
||||||
TextDrawBackgroundColor(p_AchievementTD[ playerid ], 80);
|
|
||||||
TextDrawFont(p_AchievementTD[ playerid ], 1);
|
|
||||||
TextDrawLetterSize(p_AchievementTD[ playerid ], 0.209999, 1.000000);
|
|
||||||
TextDrawColor(p_AchievementTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_AchievementTD[ playerid ], 1);
|
|
||||||
TextDrawSetProportional(p_AchievementTD[ playerid ], 1);
|
|
||||||
|
|
||||||
p_FireDistance1[ playerid ] = TextDrawCreate(26.000000, 182.000000, "_");
|
|
||||||
TextDrawBackgroundColor(p_FireDistance1[ playerid ], 255);
|
|
||||||
TextDrawFont(p_FireDistance1[ playerid ], 2);
|
|
||||||
TextDrawLetterSize(p_FireDistance1[ playerid ], 0.210000, 1.200000);
|
|
||||||
TextDrawColor(p_FireDistance1[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_FireDistance1[ playerid ], 1);
|
|
||||||
TextDrawSetProportional(p_FireDistance1[ playerid ], 1);
|
|
||||||
|
|
||||||
p_FireDistance2[ playerid ] = TextDrawCreate(26.000000, 236.000000, "_");
|
|
||||||
TextDrawBackgroundColor(p_FireDistance2[ playerid ], 255);
|
|
||||||
TextDrawFont(p_FireDistance2[ playerid ], 2);
|
|
||||||
TextDrawLetterSize(p_FireDistance2[ playerid ], 0.209999, 1.200000);
|
|
||||||
TextDrawColor(p_FireDistance2[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_FireDistance2[ playerid ], 1);
|
|
||||||
TextDrawSetProportional(p_FireDistance2[ playerid ], 1);
|
|
||||||
|
|
||||||
p_GPSInformation[ playerid ] = TextDrawCreate(26.000000, 200.000000, "~g~Location:~w~ No-where~n~~g~Distance:~w~ 0.0m");
|
|
||||||
TextDrawBackgroundColor(p_GPSInformation[ playerid ], 255);
|
|
||||||
TextDrawFont(p_GPSInformation[ playerid ], 2);
|
|
||||||
TextDrawLetterSize(p_GPSInformation[ playerid ], 0.209999, 1.099999);
|
|
||||||
TextDrawColor(p_GPSInformation[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_GPSInformation[ playerid ], 1);
|
|
||||||
TextDrawSetProportional(p_GPSInformation[ playerid ], 1);
|
|
||||||
TextDrawSetSelectable(p_GPSInformation[ playerid ], 0);
|
|
||||||
|
|
||||||
p_TruckingTD[ playerid ] = TextDrawCreate(26.000000, 220.000000, "~b~Location:~w~ No-where~n~~b~Distance:~w~ 0.0m");
|
|
||||||
TextDrawBackgroundColor(p_TruckingTD[ playerid ], 255);
|
|
||||||
TextDrawFont(p_TruckingTD[ playerid ], 2);
|
|
||||||
TextDrawLetterSize(p_TruckingTD[ playerid ], 0.210000, 1.100000);
|
|
||||||
TextDrawColor(p_TruckingTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_TruckingTD[ playerid ], 1);
|
|
||||||
TextDrawSetProportional(p_TruckingTD[ playerid ], 1);
|
|
||||||
TextDrawSetSelectable(p_TruckingTD[ playerid ], 0);
|
|
||||||
|
|
||||||
p_TrackPlayerTD[ playerid ] = TextDrawCreate(571.000000, 258.000000, "Loading~n~~w~NaN.0m");
|
|
||||||
TextDrawAlignment(p_TrackPlayerTD[ playerid ], 2);
|
|
||||||
TextDrawBackgroundColor(p_TrackPlayerTD[ playerid ], 80);
|
|
||||||
TextDrawFont(p_TrackPlayerTD[ playerid ], 1);
|
|
||||||
TextDrawLetterSize(p_TrackPlayerTD[ playerid ], 0.260000, 1.100000);
|
|
||||||
TextDrawColor(p_TrackPlayerTD[ playerid ], COLOR_RED);
|
|
||||||
TextDrawSetOutline(p_TrackPlayerTD[ playerid ], 1);
|
|
||||||
TextDrawSetProportional(p_TrackPlayerTD[ playerid ], 1);
|
|
||||||
TextDrawSetSelectable(p_TrackPlayerTD[ playerid ], 0);
|
|
||||||
|
|
||||||
p_HelpBoxTD[ playerid ] = TextDrawCreate(30.000000, 161.000000, "... Loading Help ...");
|
|
||||||
TextDrawBackgroundColor(p_HelpBoxTD[ playerid ], 255);
|
|
||||||
TextDrawFont(p_HelpBoxTD[ playerid ], 1);
|
|
||||||
TextDrawLetterSize(p_HelpBoxTD[ playerid ], 0.219999, 1.200000);
|
|
||||||
TextDrawColor(p_HelpBoxTD[ playerid ], -1);
|
|
||||||
TextDrawSetOutline(p_HelpBoxTD[ playerid ], 0);
|
|
||||||
TextDrawSetProportional(p_HelpBoxTD[ playerid ], 1);
|
|
||||||
TextDrawSetShadow(p_HelpBoxTD[ playerid ], 1);
|
|
||||||
TextDrawUseBox(p_HelpBoxTD[ playerid ], 1);
|
|
||||||
TextDrawBoxColor(p_HelpBoxTD[ playerid ], 117);
|
|
||||||
TextDrawTextSize(p_HelpBoxTD[ playerid ], 170.000000, 0.000000);
|
|
||||||
TextDrawSetSelectable(p_HelpBoxTD[ playerid ], 0);
|
|
||||||
}
|
|
||||||
return Y_HOOKS_CONTINUE_RETURN_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
stock initializePlayerTextDraws( playerid )
|
|
||||||
{
|
|
||||||
g_ZoneOwnerTD[ playerid ] = CreatePlayerTextDraw( playerid, 86.000000, 296.000000, "_" );
|
|
||||||
PlayerTextDrawAlignment( playerid, g_ZoneOwnerTD[ playerid ], 2 );
|
|
||||||
PlayerTextDrawBackgroundColor( playerid, g_ZoneOwnerTD[ playerid ], 255 );
|
|
||||||
PlayerTextDrawFont( playerid, g_ZoneOwnerTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawLetterSize( playerid, g_ZoneOwnerTD[ playerid ], 0.250000, 1.200000 );
|
|
||||||
PlayerTextDrawColor( playerid, g_ZoneOwnerTD[ playerid ], -1 );
|
|
||||||
PlayerTextDrawSetOutline( playerid, g_ZoneOwnerTD[ playerid ], 1 );
|
|
||||||
|
|
||||||
p_JailTimeTD[ playerid ] = CreatePlayerTextDraw(playerid, 328.000000, 24.000000, "Time Remaining:~n~250 seconds");
|
|
||||||
PlayerTextDrawAlignment(playerid, p_JailTimeTD[ playerid ], 2);
|
|
||||||
PlayerTextDrawBackgroundColor(playerid, p_JailTimeTD[ playerid ], 85);
|
|
||||||
PlayerTextDrawFont(playerid, p_JailTimeTD[ playerid ], 1);
|
|
||||||
PlayerTextDrawLetterSize(playerid, p_JailTimeTD[ playerid ], 0.329999, 1.500000);
|
|
||||||
PlayerTextDrawColor(playerid, p_JailTimeTD[ playerid ], -1);
|
|
||||||
PlayerTextDrawSetOutline(playerid, p_JailTimeTD[ playerid ], 1);
|
|
||||||
PlayerTextDrawSetProportional(playerid, p_JailTimeTD[ playerid ], 1);
|
|
||||||
|
|
||||||
p_DamageTD[ playerid ] = CreatePlayerTextDraw(playerid, 357.000000, 208.000000, "~r~~h~300.24 DAMAGE");
|
|
||||||
PlayerTextDrawBackgroundColor(playerid, p_DamageTD[ playerid ], 255);
|
|
||||||
PlayerTextDrawFont(playerid, p_DamageTD[ playerid ], 3);
|
|
||||||
PlayerTextDrawLetterSize(playerid, p_DamageTD[ playerid ], 0.400000, 1.000000);
|
|
||||||
PlayerTextDrawColor(playerid, p_DamageTD[ playerid ], -1);
|
|
||||||
PlayerTextDrawSetOutline(playerid, p_DamageTD[ playerid ], 1);
|
|
||||||
PlayerTextDrawSetProportional(playerid, p_DamageTD[ playerid ], 1);
|
|
||||||
|
|
||||||
p_LocationTD[ playerid ] = CreatePlayerTextDraw( playerid, 86.000000, 322.000000, "Loading..." );
|
|
||||||
PlayerTextDrawAlignment( playerid, p_LocationTD[ playerid ], 2 );
|
|
||||||
PlayerTextDrawBackgroundColor( playerid, p_LocationTD[ playerid ], 255 );
|
|
||||||
PlayerTextDrawFont( playerid, p_LocationTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawLetterSize( playerid, p_LocationTD[ playerid ], 0.240000, 1.299999 );
|
|
||||||
PlayerTextDrawSetOutline( playerid, p_LocationTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawColor( playerid, p_LocationTD[ playerid ], -1 );
|
|
||||||
PlayerTextDrawSetProportional( playerid, p_LocationTD[ playerid ], 1 );
|
|
||||||
|
|
||||||
p_ExperienceTD[ playerid ] = CreatePlayerTextDraw( playerid, 529.000000, 414.000000, "00000000" );
|
|
||||||
PlayerTextDrawBackgroundColor( playerid, p_ExperienceTD[ playerid ], 144 );
|
|
||||||
PlayerTextDrawFont( playerid, p_ExperienceTD[ playerid ], 3 );
|
|
||||||
PlayerTextDrawLetterSize( playerid, p_ExperienceTD[ playerid ], 0.569999, 2.199999 );
|
|
||||||
PlayerTextDrawColor( playerid, p_ExperienceTD[ playerid ], COLOR_GOLD );
|
|
||||||
PlayerTextDrawSetOutline( playerid, p_ExperienceTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawSetProportional( playerid, p_ExperienceTD[ playerid ], 1 );
|
|
||||||
|
|
||||||
p_ExperienceAwardTD[ playerid ] = CreatePlayerTextDraw( playerid, 338.000000, 149.000000, "+20 XP" );
|
|
||||||
PlayerTextDrawAlignment( playerid, p_ExperienceAwardTD[ playerid ], 2 );
|
|
||||||
PlayerTextDrawBackgroundColor( playerid, p_ExperienceAwardTD[ playerid ], 144 );
|
|
||||||
PlayerTextDrawFont( playerid, p_ExperienceAwardTD[ playerid ], 3 );
|
|
||||||
PlayerTextDrawLetterSize( playerid, p_ExperienceAwardTD[ playerid ], 0.409999, 1.600000 );
|
|
||||||
PlayerTextDrawColor( playerid, p_ExperienceAwardTD[ playerid ], COLOR_GOLD );
|
|
||||||
PlayerTextDrawSetOutline( playerid, p_ExperienceAwardTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawSetProportional( playerid, p_ExperienceAwardTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawSetSelectable( playerid, p_ExperienceAwardTD[ playerid ], 0 );
|
|
||||||
|
|
||||||
p_WantedLevelTD[ playerid ] = CreatePlayerTextDraw( playerid, 555.000000, 124.000000, "_" );
|
|
||||||
PlayerTextDrawAlignment( playerid, p_WantedLevelTD[ playerid ], 2 );
|
|
||||||
PlayerTextDrawBackgroundColor( playerid, p_WantedLevelTD[ playerid ], 255 );
|
|
||||||
PlayerTextDrawFont( playerid, p_WantedLevelTD[ playerid ], 2 );
|
|
||||||
PlayerTextDrawLetterSize( playerid, p_WantedLevelTD[ playerid ], 0.280000, 1.299999 );
|
|
||||||
PlayerTextDrawColor( playerid, p_WantedLevelTD[ playerid ], -1872621313 );
|
|
||||||
PlayerTextDrawSetOutline( playerid, p_WantedLevelTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawSetProportional( playerid, p_WantedLevelTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawSetSelectable( playerid, p_WantedLevelTD[ playerid ], 0 );
|
|
||||||
|
|
||||||
p_CoinsTD[ playerid ] = CreatePlayerTextDraw( playerid, 529.000000, 360.000000, "000000.0" );
|
|
||||||
PlayerTextDrawBackgroundColor( playerid, p_CoinsTD[ playerid ], 255 );
|
|
||||||
PlayerTextDrawFont( playerid, p_CoinsTD[ playerid ], 3 );
|
|
||||||
PlayerTextDrawLetterSize( playerid, p_CoinsTD[ playerid ], 0.320000, 1.299998 );
|
|
||||||
PlayerTextDrawColor( playerid, p_CoinsTD[ playerid ], COLOR_GOLD );
|
|
||||||
PlayerTextDrawSetOutline( playerid, p_CoinsTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawSetProportional( playerid, p_CoinsTD[ playerid ], 1 );
|
|
||||||
|
|
||||||
p_PlayerRankTD[ playerid ] = CreatePlayerTextDraw( playerid, 603.000000, 386.000000, "RANK" );
|
|
||||||
PlayerTextDrawBackgroundColor( playerid, p_PlayerRankTD[ playerid ], 0 );
|
|
||||||
PlayerTextDrawFont( playerid, p_PlayerRankTD[ playerid ], 5 );
|
|
||||||
PlayerTextDrawLetterSize( playerid, p_PlayerRankTD[ playerid ], 0.519999, 4.000000 );
|
|
||||||
PlayerTextDrawColor( playerid, p_PlayerRankTD[ playerid ], -1027424001 );
|
|
||||||
PlayerTextDrawSetOutline( playerid, p_PlayerRankTD[ playerid ], 0 );
|
|
||||||
PlayerTextDrawSetProportional( playerid, p_PlayerRankTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawSetShadow( playerid, p_PlayerRankTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawUseBox( playerid, p_PlayerRankTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawBoxColor( playerid, p_PlayerRankTD[ playerid ], 0 );
|
|
||||||
PlayerTextDrawTextSize( playerid, p_PlayerRankTD[ playerid ], 19.000000, 19.000000 );
|
|
||||||
PlayerTextDrawSetPreviewModel( playerid, p_PlayerRankTD[ playerid ], 19782 );
|
|
||||||
PlayerTextDrawSetPreviewRot( playerid, p_PlayerRankTD[ playerid ], 90.000000, 0.000000, 90.000000, 0.600000 );
|
|
||||||
|
|
||||||
p_PlayerRankTextTD[ playerid ] = CreatePlayerTextDraw( playerid, 529.000000, 386.000000, "Silver-1" );
|
|
||||||
PlayerTextDrawBackgroundColor( playerid, p_PlayerRankTextTD[ playerid ], 255 );
|
|
||||||
PlayerTextDrawFont( playerid, p_PlayerRankTextTD[ playerid ], 3 );
|
|
||||||
PlayerTextDrawLetterSize( playerid, p_PlayerRankTextTD[ playerid ], 0.379999, 1.899999 );
|
|
||||||
PlayerTextDrawColor( playerid, p_PlayerRankTextTD[ playerid ], -1027424001 );
|
|
||||||
PlayerTextDrawSetOutline( playerid, p_PlayerRankTextTD[ playerid ], 1 );
|
|
||||||
PlayerTextDrawSetProportional( playerid, p_PlayerRankTextTD[ playerid ], 1 );
|
|
||||||
|
|
||||||
p_RobberyRiskTD[ playerid ] = CreatePlayerTextDraw(playerid, 320.000000, 294.000000, "clerk feels very threatened");
|
|
||||||
PlayerTextDrawAlignment(playerid, p_RobberyRiskTD[ playerid ], 2);
|
|
||||||
PlayerTextDrawBackgroundColor(playerid, p_RobberyRiskTD[ playerid ], 255);
|
|
||||||
PlayerTextDrawFont(playerid, p_RobberyRiskTD[ playerid ], 3);
|
|
||||||
PlayerTextDrawLetterSize(playerid, p_RobberyRiskTD[ playerid ], 0.200000, 0.900000);
|
|
||||||
PlayerTextDrawColor(playerid, p_RobberyRiskTD[ playerid ], -1);
|
|
||||||
PlayerTextDrawSetOutline(playerid, p_RobberyRiskTD[ playerid ], 1);
|
|
||||||
PlayerTextDrawSetProportional(playerid, p_RobberyRiskTD[ playerid ], 1);
|
|
||||||
PlayerTextDrawSetSelectable(playerid, p_RobberyRiskTD[ playerid ], 0);
|
|
||||||
|
|
||||||
p_RobberyAmountTD[ playerid ] = CreatePlayerTextDraw(playerid, 320.000000, 280.000000, "Robbed ~g~~h~$1,800");
|
|
||||||
PlayerTextDrawAlignment(playerid, p_RobberyAmountTD[ playerid ], 2);
|
|
||||||
PlayerTextDrawBackgroundColor(playerid, p_RobberyAmountTD[ playerid ], 255);
|
|
||||||
PlayerTextDrawFont(playerid, p_RobberyAmountTD[ playerid ], 3);
|
|
||||||
PlayerTextDrawLetterSize(playerid, p_RobberyAmountTD[ playerid ], 0.340000, 1.300000);
|
|
||||||
PlayerTextDrawColor(playerid, p_RobberyAmountTD[ playerid ], -1);
|
|
||||||
PlayerTextDrawSetOutline(playerid, p_RobberyAmountTD[ playerid ], 1);
|
|
||||||
PlayerTextDrawSetProportional(playerid, p_RobberyAmountTD[ playerid ], 1);
|
|
||||||
PlayerTextDrawSetSelectable(playerid, p_RobberyAmountTD[ playerid ], 0);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
stock SendClientMessageToGang( gangid, colour, format[ ], va_args<> ) // Conversion to foreach 14 stuffed the define, not sure how...
|
stock SendClientMessageToGang( gangid, colour, format[ ], va_args<> ) // Conversion to foreach 14 stuffed the define, not sure how...
|
||||||
{
|
{
|
||||||
static
|
static
|
||||||
|
Loading…
Reference in New Issue
Block a user