small changes
This commit is contained in:
parent
03264902e6
commit
6fd767dd74
11584
gamemodes/COD8.pwn
11584
gamemodes/COD8.pwn
File diff suppressed because it is too large
Load Diff
@ -105,7 +105,8 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
p_OwnedVehicles[ playerid ] = 0;
|
p_OwnedVehicles[ playerid ] = 0;
|
||||||
p_Burglaries[ playerid ] = 0;
|
p_Burglaries[ playerid ] = 0;
|
||||||
p_BobbyPins[ playerid ] = 10;
|
p_BobbyPins[ playerid ] = 10;
|
||||||
ShowPlayerDialog( playerid, DIALOG_ACC_EMAIL, DIALOG_STYLE_INPUT, "{FFFFFF}Account Email", ""COL_WHITE"Would you like to assign an email to your account for security?\n\nWe'll keep you also informed on in-game and community associated events!", "Confirm", "Cancel" );
|
// ShowPlayerDialog( playerid, DIALOG_ACC_EMAIL, DIALOG_STYLE_INPUT, "{FFFFFF}Account Email", ""COL_WHITE"Would you like to assign an email to your account for security?\n\nWe'll keep you also informed on in-game and community associated events!", "Confirm", "Cancel" );
|
||||||
|
ShowPlayerJobList( playerid );
|
||||||
SendServerMessage( playerid, "You have "COL_GREEN"successfully{FFFFFF} registered! You have been automatically logged in!" );
|
SendServerMessage( playerid, "You have "COL_GREEN"successfully{FFFFFF} registered! You have been automatically logged in!" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
/* ** Hooks ** */
|
/* ** Hooks ** */
|
||||||
hook OnScriptInit( )
|
hook OnScriptInit( )
|
||||||
{
|
{
|
||||||
CreateBillboard( "Want V.I.P? Consider Donating!\n"COL_GREY"donate.sfcnr.com", -2016.22, 326.580, 37.950, 48.9000 );
|
CreateBillboard( "Want V.I.P? Consider Donating!\n"COL_GREY"Ask admins for details", -2016.22, 326.580, 37.950, 48.9000 );
|
||||||
CreateBillboard( "Save us on your favourites!\n"#SERVER_IP"", -1809.64, -590.29, 19.360, -147.30 );
|
CreateBillboard( "Save us on your favourites!\n"#SERVER_IP"", -1809.64, -590.29, 19.360, -147.30 );
|
||||||
CreateBillboard( "You can catch updates on our website!\n"COL_GREY""#SERVER_WEBSITE"", -1571.11, 939.860, 10.030, 45.9600 );
|
CreateBillboard( "You can catch updates on our website!\n"COL_GREY""#SERVER_WEBSITE"", -1571.11, 939.860, 10.030, 45.9600 );
|
||||||
CreateBillboard( "Remember to check the "COL_GREY"/rules"COL_WHITE"!\nDisobeying the rules can lead to punishment!", -1911.05, 858.870, 36.290, 44.5200 );
|
CreateBillboard( "Remember to check the "COL_GREY"/rules"COL_WHITE"!\nDisobeying the rules can lead to punishment!", -1911.05, 858.870, 36.290, 44.5200 );
|
||||||
|
@ -221,7 +221,7 @@ thread OnDisplayCrowdfundInfo( playerid, crowdfund_id )
|
|||||||
if ( strlen( description ) < sizeof( description ) - 1 ) {
|
if ( strlen( description ) < sizeof( description ) - 1 ) {
|
||||||
format( szHugeString, sizeof( szHugeString ), "%s"COL_GOLD"%s (%s IC+)"COL_WHITE"\n%s\n\n", szHugeString, title, number_format( req_amount, .prefix = '\0', .decimals = 2 ), description );
|
format( szHugeString, sizeof( szHugeString ), "%s"COL_GOLD"%s (%s IC+)"COL_WHITE"\n%s\n\n", szHugeString, title, number_format( req_amount, .prefix = '\0', .decimals = 2 ), description );
|
||||||
} else {
|
} else {
|
||||||
format( szHugeString, sizeof( szHugeString ), "%s"COL_GOLD"%s (%s IC+)"COL_WHITE"\n%s"COL_GREY"... (read more on sfcnr.com)\n\n", szHugeString, title, number_format( req_amount, .prefix = '\0', .decimals = 2 ), description );
|
format( szHugeString, sizeof( szHugeString ), "%s"COL_GOLD"%s (%s IC+)"COL_WHITE"\n%s"COL_GREY"... \n\n", szHugeString, title, number_format( req_amount, .prefix = '\0', .decimals = 2 ), description );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ShowPlayerDialog( playerid, DIALOG_CROWDFUND_INFO, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Feature Crowdfunding", szHugeString, "Close", "Back" ), 1;
|
return ShowPlayerDialog( playerid, DIALOG_CROWDFUND_INFO, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Feature Crowdfunding", szHugeString, "Close", "Back" ), 1;
|
||||||
|
@ -106,7 +106,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
SetGangColorsToGang( p_GangID[ playerid ] );
|
SetGangColorsToGang( p_GangID[ playerid ] );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
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" );
|
if ( p_VIPLevel[ playerid ] < VIP_REGULAR ) return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
ShowPlayerDialog( playerid, DIALOG_GANG_COLOR_INPUT, DIALOG_STYLE_INPUT, "{FFFFFF}Gang Colors", "{FFFFFF}Write a hexidecimal color within the textbox", "Submit", "Cancel" );
|
ShowPlayerDialog( playerid, DIALOG_GANG_COLOR_INPUT, DIALOG_STYLE_INPUT, "{FFFFFF}Gang Colors", "{FFFFFF}Write a hexidecimal color within the textbox", "Submit", "Cancel" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -205,7 +205,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
{
|
{
|
||||||
if ( p_VIPLevel[ playerid ] < VIP_REGULAR ) {
|
if ( p_VIPLevel[ playerid ] < VIP_REGULAR ) {
|
||||||
ShowPlayerDialog( playerid, DIALOG_GANG_VD_OPTIONS, DIALOG_STYLE_LIST, "{FFFFFF}Gang Vehicles - Purchase", "Purchase This Vehicle\nPreview Vehicle", "Select", "Back" );
|
ShowPlayerDialog( playerid, DIALOG_GANG_VD_OPTIONS, DIALOG_STYLE_LIST, "{FFFFFF}Gang Vehicles - Purchase", "Purchase This Vehicle\nPreview Vehicle", "Select", "Back" );
|
||||||
return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ( ( p_VIPExpiretime[ playerid ] - g_iTime ) / 86400 ) < 3 ) {
|
if ( ( ( p_VIPExpiretime[ playerid ] - g_iTime ) / 86400 ) < 3 ) {
|
||||||
|
@ -156,7 +156,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( listitem > 2 && p_VIPLevel[ playerid ] < VIP_REGULAR ) return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
if ( listitem > 2 && p_VIPLevel[ playerid ] < VIP_REGULAR ) return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
p_HouseWeaponAddSlot{ playerid } = listitem;
|
p_HouseWeaponAddSlot{ playerid } = listitem;
|
||||||
ShowPlayerDialog( playerid, DIALOG_HOUSE_WEAPONS_ADD, DIALOG_STYLE_MSGBOX, "{FFFFFF}House Weapon Storage", "{FFFFFF}Would you like to insert your current weapon into this slot?", "Insert", "Back" );
|
ShowPlayerDialog( playerid, DIALOG_HOUSE_WEAPONS_ADD, DIALOG_STYLE_MSGBOX, "{FFFFFF}House Weapon Storage", "{FFFFFF}Would you like to insert your current weapon into this slot?", "Insert", "Back" );
|
||||||
}
|
}
|
||||||
@ -264,7 +264,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
else if ( g_houseInteriors[ intid ] [ E_VIP ] && !p_VIPLevel[ playerid ] )
|
else if ( g_houseInteriors[ intid ] [ E_VIP ] && !p_VIPLevel[ playerid ] )
|
||||||
{
|
{
|
||||||
ShowPlayerDialog( playerid, DIALOG_HOUSE_INT_CONFIRM, DIALOG_STYLE_LIST, "{FFFFFF}House Interiors", "Purchase House Interior\nPreview House Interior", "Select", "Back" );
|
ShowPlayerDialog( playerid, DIALOG_HOUSE_INT_CONFIRM, DIALOG_STYLE_LIST, "{FFFFFF}House Interiors", "Purchase House Interior\nPreview House Interior", "Select", "Back" );
|
||||||
SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
}
|
}
|
||||||
else if ( ArePlayersInHouse( p_InHouse[ playerid ], playerid ) )
|
else if ( ArePlayersInHouse( p_InHouse[ playerid ], playerid ) )
|
||||||
{
|
{
|
||||||
@ -478,7 +478,7 @@ CMD:h( playerid, params[ ] )
|
|||||||
return SendError( playerid, "You don't have enough money to purchase this house." );
|
return SendError( playerid, "You don't have enough money to purchase this house." );
|
||||||
|
|
||||||
if ( g_houseData[ i ] [ E_COST ] == 1337 && !p_VIPLevel[ playerid ] )
|
if ( g_houseData[ i ] [ E_COST ] == 1337 && !p_VIPLevel[ playerid ] )
|
||||||
return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
|
|
||||||
GivePlayerCash( playerid, -( g_houseData[ i ] [ E_COST ] ) );
|
GivePlayerCash( playerid, -( g_houseData[ i ] [ E_COST ] ) );
|
||||||
SendServerMessage( playerid, "You have bought this home for "COL_GOLD"%s"COL_WHITE"!", cash_format( g_houseData[ i ] [ E_COST ] ) );
|
SendServerMessage( playerid, "You have bought this home for "COL_GOLD"%s"COL_WHITE"!", cash_format( g_houseData[ i ] [ E_COST ] ) );
|
||||||
@ -536,7 +536,7 @@ CMD:h( playerid, params[ ] )
|
|||||||
if ( !IsPlayerConnected( sellerid ) ) SendError( playerid, "The person who offered you a house is no longer online." );
|
if ( !IsPlayerConnected( sellerid ) ) SendError( playerid, "The person who offered you a house is no longer online." );
|
||||||
else if ( p_HouseOfferTicks[ playerid ] < g_iTime ) SendError( playerid, "This house offer has expired %d seconds ago.", g_iTime - p_HouseOfferTicks[ playerid ] );
|
else if ( p_HouseOfferTicks[ playerid ] < g_iTime ) SendError( playerid, "This house offer has expired %d seconds ago.", g_iTime - p_HouseOfferTicks[ playerid ] );
|
||||||
else if ( GetPlayerCash( playerid ) < p_HouseSellingPrice[ playerid ] ) SendError( playerid, "You do not have enough money to accept this offer (%s).", cash_format( p_HouseSellingPrice[ playerid ] ) );
|
else if ( GetPlayerCash( playerid ) < p_HouseSellingPrice[ playerid ] ) SendError( playerid, "You do not have enough money to accept this offer (%s).", cash_format( p_HouseSellingPrice[ playerid ] ) );
|
||||||
else if ( g_houseData[ houseid ] [ E_COST ] <= 1337 && !p_VIPLevel[ playerid ] ) SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
else if ( g_houseData[ houseid ] [ E_COST ] <= 1337 && !p_VIPLevel[ playerid ] ) SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
else if ( p_OwnedHouses[ playerid ] >= GetPlayerHouseSlots( playerid ) ) SendError( playerid, "You cannot purchase any more houses, you've reached the limit." );
|
else if ( p_OwnedHouses[ playerid ] >= GetPlayerHouseSlots( playerid ) ) SendError( playerid, "You cannot purchase any more houses, you've reached the limit." );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -240,7 +240,7 @@ thread HouseListing_OnBuyHome( playerid, house_listing_id )
|
|||||||
// does the dude even have the coins
|
// does the dude even have the coins
|
||||||
if ( GetPlayerIrresistibleCoins( playerid ) < ask_price ) {
|
if ( GetPlayerIrresistibleCoins( playerid ) < ask_price ) {
|
||||||
ShowPlayerHomeListing( playerid, house_listing_id );
|
ShowPlayerHomeListing( playerid, house_listing_id );
|
||||||
return SendError( playerid, "You do not have enough Irresistible Coins for this home (%s IC).", number_format( ask_price, .decimals = 2 ) );
|
return SendError( playerid, "You do not have enough Coins for this home (%s IC).", number_format( ask_price, .decimals = 2 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if player is over the limit
|
// check if player is over the limit
|
||||||
|
@ -251,7 +251,7 @@ hook OnProgressCompleted( playerid, progressid, params )
|
|||||||
AttachDynamicObjectToVehicle( GetGVarInt( "meth_smoke", vehicleid ), vehicleid, -0.524999, -0.974999, -0.375000, 0.000000, 0.000000, 0.000000 );
|
AttachDynamicObjectToVehicle( GetGVarInt( "meth_smoke", vehicleid ), vehicleid, -0.524999, -0.974999, -0.375000, 0.000000, 0.000000, 0.000000 );
|
||||||
|
|
||||||
ShowPlayerHelpDialog( playerid, 5000, "Okay, okay, everything seems to be cooking fine. Wait till for the next chemical to be added." );
|
ShowPlayerHelpDialog( playerid, 5000, "Okay, okay, everything seems to be cooking fine. Wait till for the next chemical to be added." );
|
||||||
if ( !IsPlayerUsingRadio( playerid ) ) PlayAudioStreamForPlayer( playerid, "http://files.sfcnr.com/game_sounds/meth_cooking.mp3", 1476.0394, 1464.3358, 1012.1190, 5.0, 1 );
|
// if ( !IsPlayerUsingRadio( playerid ) ) PlayAudioStreamForPlayer( playerid, "http://files.sfcnr.com/game_sounds/meth_cooking.mp3", 1476.0394, 1464.3358, 1012.1190, 5.0, 1 );
|
||||||
SetGVarInt( "meth_cooktimer", SetTimerEx( "OnMethamphetamineCooking", 10000, false, "ddd", playerid, vehicleid, chemical ), vehicleid );
|
SetGVarInt( "meth_cooktimer", SetTimerEx( "OnMethamphetamineCooking", 10000, false, "ddd", playerid, vehicleid, chemical ), vehicleid );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include < YSI\y_hooks >
|
#include < YSI\y_hooks >
|
||||||
|
|
||||||
/* ** Variables ** */
|
/* ** Variables ** */
|
||||||
static stock Text: g_MovieModeTD [ 6 ] = { Text: INVALID_TEXT_DRAW, ... };
|
static stock Text: g_MovieModeTD [ 5 ] = { Text: INVALID_TEXT_DRAW, ... };
|
||||||
static stock bool: p_inMovieMode [ MAX_PLAYERS char ];
|
static stock bool: p_inMovieMode [ MAX_PLAYERS char ];
|
||||||
|
|
||||||
/* ** Hooks ** */
|
/* ** Hooks ** */
|
||||||
@ -55,25 +55,25 @@ hook OnScriptInit( )
|
|||||||
TextDrawBoxColor(g_MovieModeTD[ 3 ], 255);
|
TextDrawBoxColor(g_MovieModeTD[ 3 ], 255);
|
||||||
TextDrawTextSize(g_MovieModeTD[ 3 ], 620.000000, 0.000000);
|
TextDrawTextSize(g_MovieModeTD[ 3 ], 620.000000, 0.000000);
|
||||||
|
|
||||||
g_MovieModeTD[ 4 ] = TextDrawCreate(530.000000, 385.000000, "www.SFCNR.com");
|
// 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[ 4 ] = TextDrawCreate(507.000000, 386.000000, "_");
|
||||||
TextDrawBackgroundColor(g_MovieModeTD[ 4 ], 255);
|
TextDrawBackgroundColor(g_MovieModeTD[ 4 ], 255);
|
||||||
TextDrawFont(g_MovieModeTD[ 4 ], 1);
|
TextDrawFont(g_MovieModeTD[ 4 ], 1);
|
||||||
TextDrawLetterSize(g_MovieModeTD[ 4 ], 0.200000, 1.000000);
|
TextDrawLetterSize(g_MovieModeTD[ 4 ], 0.500000, 0.799999);
|
||||||
TextDrawColor(g_MovieModeTD[ 4 ], 0xfa4d4cff);
|
TextDrawColor(g_MovieModeTD[ 4 ], -1);
|
||||||
TextDrawSetOutline(g_MovieModeTD[ 4 ], 1);
|
TextDrawSetOutline(g_MovieModeTD[ 4 ], 0);
|
||||||
TextDrawSetProportional(g_MovieModeTD[ 4 ], 1);
|
TextDrawSetProportional(g_MovieModeTD[ 4 ], 1);
|
||||||
|
TextDrawSetShadow(g_MovieModeTD[ 4 ], 1);
|
||||||
g_MovieModeTD[ 5 ] = TextDrawCreate(507.000000, 386.000000, "_");
|
TextDrawUseBox(g_MovieModeTD[ 4 ], 1);
|
||||||
TextDrawBackgroundColor(g_MovieModeTD[ 5 ], 255);
|
TextDrawBoxColor(g_MovieModeTD[ 4 ], 128);
|
||||||
TextDrawFont(g_MovieModeTD[ 5 ], 1);
|
TextDrawTextSize(g_MovieModeTD[ 4 ], 620.000000, 0.000000);
|
||||||
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);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
hook OnPlayerDisconnect( playerid, reason ) {
|
hook OnPlayerDisconnect( playerid, reason ) {
|
||||||
|
@ -403,7 +403,7 @@ stock GivePlayerExperience( playerid, E_LEVELS: level, Float: default_xp = 1.0,
|
|||||||
|
|
||||||
if ( g_playerExperience[ playerid ] [ level ] + xp_earned >= next_lvl_xp ) {
|
if ( g_playerExperience[ playerid ] [ level ] + xp_earned >= next_lvl_xp ) {
|
||||||
ShowPlayerHelpDialog( playerid, 10000, "~p~Congratulations %s!~n~~n~~w~Your %s Level is now ~p~%d.", ReturnPlayerName( playerid ), g_levelData[ _: level ] [ E_NAME ], next_lvl );
|
ShowPlayerHelpDialog( playerid, 10000, "~p~Congratulations %s!~n~~n~~w~Your %s Level is now ~p~%d.", ReturnPlayerName( playerid ), g_levelData[ _: level ] [ E_NAME ], next_lvl );
|
||||||
if ( !IsPlayerUsingRadio( playerid ) ) PlayAudioStreamForPlayer( playerid, "http://files.sfcnr.com/game_sounds/levelup.mp3" );
|
// if ( !IsPlayerUsingRadio( playerid ) ) PlayAudioStreamForPlayer( playerid, "http://files.sfcnr.com/game_sounds/levelup.mp3" );
|
||||||
PlayerTextDrawSetString( playerid, p_playerExpTitle[ playerid ], sprintf( "%s Level %d", g_levelData[ _: level ] [ E_NAME ], next_lvl ) );
|
PlayerTextDrawSetString( playerid, p_playerExpTitle[ playerid ], sprintf( "%s Level %d", g_levelData[ _: level ] [ E_NAME ], next_lvl ) );
|
||||||
SetPlayerProgressBarValue( playerid, p_playerExpProgress[ playerid ], 100.0 );
|
SetPlayerProgressBarValue( playerid, p_playerExpProgress[ playerid ], 100.0 );
|
||||||
} else {
|
} else {
|
||||||
|
@ -57,7 +57,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
settingid = listitem - 1;
|
settingid = listitem - 1;
|
||||||
|
|
||||||
if ( settingid == SETTING_VIPSKIN && p_VIPLevel[ playerid ] < VIP_REGULAR ) {
|
if ( settingid == SETTING_VIPSKIN && p_VIPLevel[ playerid ] < VIP_REGULAR ) {
|
||||||
return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
}
|
}
|
||||||
|
|
||||||
// save setting
|
// save setting
|
||||||
|
@ -16,11 +16,11 @@ static stock
|
|||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Save us on your favourites so you don't miss out on the action!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Save us on your favourites so you don't miss out on the action!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" You can catch updates on our website - "#SERVER_WEBSITE"!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" You can catch updates on our website - "#SERVER_WEBSITE"!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Interested in getting V.I.P? Type "COL_GREY"/vip"COL_WHITE" for more details!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Interested in getting V.I.P? Type "COL_GREY"/vip"COL_WHITE" for more details!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Consider helping the community by donating! You will receive Irresistible Coins to redeem V.I.P!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Consider helping the community by donating! You will receive Coins to redeem V.I.P!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Just donated? Check your e-mail for a transaction ID and redeem your coins easily with /donated!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Just donated? Check your e-mail for a transaction ID and redeem your coins easily with /donated!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Do not share your password with anyone, or even use it in a friends server!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Do not share your password with anyone, or even use it in a friends server!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Trouble getting to places? Use "COL_GREY"/gps{FFFFFF} inside a vehicle!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Trouble getting to places? Use "COL_GREY"/gps{FFFFFF} inside a vehicle!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Donors receive a Irresistible Coins in return of their generous donation, used to redeem V.I.P!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Donors receive a Coins in return of their generous donation, used to redeem V.I.P!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Rob stores and earn score, the more XP you have, the more benefits you gain!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Rob stores and earn score, the more XP you have, the more benefits you gain!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Houses are buyable, you can buy one and set your spawning location inside that house!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Houses are buyable, you can buy one and set your spawning location inside that house!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Remember to check the "COL_GREY"/rules{FFFFFF}! Disobeying the rules can lead to punishment!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Remember to check the "COL_GREY"/rules{FFFFFF}! Disobeying the rules can lead to punishment!" },
|
||||||
@ -32,7 +32,7 @@ static stock
|
|||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Type "COL_GREY"/help {FFFFFF}for information on the server!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Type "COL_GREY"/help {FFFFFF}for information on the server!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Need a set of commands to view? Use "COL_GREY"/cmds{FFFFFF}!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Need a set of commands to view? Use "COL_GREY"/cmds{FFFFFF}!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" To give money to a player, use "COL_GREY"/sendmoney{FFFFFF} or "COL_GREY"/sm{FFFFFF} for short." },
|
{ "{8ADE47}Stephanie:"COL_WHITE" To give money to a player, use "COL_GREY"/sendmoney{FFFFFF} or "COL_GREY"/sm{FFFFFF} for short." },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Get V.I.P with Irresistible Coins! Consider donating by visiting our site to get more!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Get V.I.P with Coins! Consider donating by visiting our site to get more!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" To explode the bank vault, or the jail cells; plant C4 by the two cells then explode!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" To explode the bank vault, or the jail cells; plant C4 by the two cells then explode!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Tired of a player? You can place a contract on their head with "COL_GREY"/placehit{FFFFFF}!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Tired of a player? You can place a contract on their head with "COL_GREY"/placehit{FFFFFF}!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Need a label on your head with an informative message? You can use "COL_GREY"/label{FFFFFF}!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Need a label on your head with an informative message? You can use "COL_GREY"/label{FFFFFF}!" },
|
||||||
@ -43,14 +43,14 @@ static stock
|
|||||||
{ "{8ADE47}Stephanie:"COL_WHITE" You can change your spawning city at the "COL_GREY"City Hall{FFFFFF}!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" You can change your spawning city at the "COL_GREY"City Hall{FFFFFF}!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" You can buy fancy toys at a "COL_GREY"Pawnshop{FFFFFF}!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" You can buy fancy toys at a "COL_GREY"Pawnshop{FFFFFF}!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Never share your password, not even with the server owner!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Never share your password, not even with the server owner!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" You can access our Discord server at {7289da}sfcnr.com/discord" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" You can access our Discord server at {7289da}discord.gg/gYFQGtZx" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Locate ChuffSec's security truck with "COL_GREY"/chuffloc{FFFFFF} and rob his security truck for cash!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Locate ChuffSec's security truck with "COL_GREY"/chuffloc{FFFFFF} and rob his security truck for cash!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Buy a "COL_GREY"Money Case{FFFFFF} to increase your robbery loot from Supa Save or a 24/7 store! " },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Buy a "COL_GREY"Money Case{FFFFFF} to increase your robbery loot from Supa Save or a 24/7 store! " },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Grab a truck, connect it to a trailer then begin to "COL_GREY"/work{FFFFFF}! It's rewarding!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Grab a truck, connect it to a trailer then begin to "COL_GREY"/work{FFFFFF}! It's rewarding!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Looking for something to do? Work on your "COL_GREY"/achievements"COL_WHITE"!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Looking for something to do? Work on your "COL_GREY"/achievements"COL_WHITE"!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Check your global SF-CNR rank with "COL_GREY"/rank"COL_WHITE"!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Check your global SF-CNR rank with "COL_GREY"/rank"COL_WHITE"!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Consider mining some ores near Jizzy's or at the Quarry! It's some fine pay!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Consider mining some ores near Jizzy's or at the Quarry! It's some fine pay!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" See how many Irresistible Coins you generated with "COL_GREY"/irresistiblecoins"COL_WHITE"." },
|
{ "{8ADE47}Stephanie:"COL_WHITE" See how many Coins you generated with "COL_GREY"/donatecoins"COL_WHITE"." },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Split your robbing profits with your gang members using "COL_GREY"/gang splitprofit"COL_WHITE"." },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Split your robbing profits with your gang members using "COL_GREY"/gang splitprofit"COL_WHITE"." },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Toggle your total coins generated bar with "COL_GREY"/cp"COL_WHITE"." },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Toggle your total coins generated bar with "COL_GREY"/cp"COL_WHITE"." },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Be assigned to a rank by playing the game frequently, making use of all features!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Be assigned to a rank by playing the game frequently, making use of all features!" },
|
||||||
@ -69,7 +69,7 @@ static stock
|
|||||||
//{ "{8ADE47}Stephanie:"COL_WHITE" Want 3 days of free V.I.P? Add an "COL_GREY"/email"COL_WHITE" to your account!" },
|
//{ "{8ADE47}Stephanie:"COL_WHITE" Want 3 days of free V.I.P? Add an "COL_GREY"/email"COL_WHITE" to your account!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Contribute to our feature "COL_GREY"/crowdfunds"COL_WHITE"! Early supporters get benefits!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Contribute to our feature "COL_GREY"/crowdfunds"COL_WHITE"! Early supporters get benefits!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" You can buy premium player homes using "COL_GREY"/estate"COL_WHITE"!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" You can buy premium player homes using "COL_GREY"/estate"COL_WHITE"!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" You can buy Irresistible Coins from players using "COL_GREY"/ic buy"COL_WHITE"!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" You can buy Coins from players using "COL_GREY"/ic buy"COL_WHITE"!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Buy a secure wallet to reduce the amount of money you drop when you die!" },
|
{ "{8ADE47}Stephanie:"COL_WHITE" Buy a secure wallet to reduce the amount of money you drop when you die!" },
|
||||||
{ "{8ADE47}Stephanie:"COL_WHITE" Buy a boombox and have a music party with your friends in area!" }
|
{ "{8ADE47}Stephanie:"COL_WHITE" Buy a boombox and have a music party with your friends in area!" }
|
||||||
},
|
},
|
||||||
|
@ -353,7 +353,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
showToyCategoryItems( playerid, p_ToyCategorySelected{ playerid } );
|
showToyCategoryItems( playerid, p_ToyCategorySelected{ playerid } );
|
||||||
|
|
||||||
if ( p_VIPLevel[ playerid ] < VIP_REGULAR )
|
if ( p_VIPLevel[ playerid ] < VIP_REGULAR )
|
||||||
return SendError( playerid, "You must be a V.I.P to use this, to become one visit "COL_GREY"donate.sfcnr.com" ), 1;
|
return SendError( playerid, "You must be a V.I.P to use this, to become one please discuss with admins" ), 1;
|
||||||
|
|
||||||
if ( ( ( p_VIPExpiretime[ playerid ] - g_iTime ) / 86400 ) < 3 )
|
if ( ( ( p_VIPExpiretime[ playerid ] - g_iTime ) / 86400 ) < 3 )
|
||||||
return SendError( playerid, "You need more than 3 days of V.I.P in order to complete this." ), 1;
|
return SendError( playerid, "You need more than 3 days of V.I.P in order to complete this." ), 1;
|
||||||
|
@ -316,7 +316,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
if ( g_BuyableVehicleData[ data_id ] [ E_VIP ] )
|
if ( g_BuyableVehicleData[ data_id ] [ E_VIP ] )
|
||||||
{
|
{
|
||||||
if ( p_VIPLevel[ playerid ] < VIP_REGULAR )
|
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" );
|
return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
|
|
||||||
if ( ( ( p_VIPExpiretime[ playerid ] - g_iTime ) / 86400 ) < 3 )
|
if ( ( ( p_VIPExpiretime[ playerid ] - g_iTime ) / 86400 ) < 3 )
|
||||||
return SendError( playerid, "You need more than 3 days of V.I.P in order to complete this." );
|
return SendError( playerid, "You need more than 3 days of V.I.P in order to complete this." );
|
||||||
|
@ -87,7 +87,7 @@ hook OnPlayerTickSecond( playerid )
|
|||||||
static
|
static
|
||||||
iKeys, iUpDownKeys, iLeftRightKeys;
|
iKeys, iUpDownKeys, iLeftRightKeys;
|
||||||
|
|
||||||
// Increase Irresistible Coins (1/20 = cred/min)
|
// Increase Coins (1/20 = cred/min)
|
||||||
if ( ! IsPlayerAFK( playerid ) && GetPlayerKeys( playerid, iKeys, iUpDownKeys, iLeftRightKeys ) && ! IsPlayerOnRoulette( playerid ) && ! IsPlayerOnSlotMachine( playerid ) && GetPlayerVehicleSeat( playerid ) <= 0 && !IsPlayerUsingAnimation( playerid ) )
|
if ( ! IsPlayerAFK( playerid ) && GetPlayerKeys( playerid, iKeys, iUpDownKeys, iLeftRightKeys ) && ! IsPlayerOnRoulette( playerid ) && ! IsPlayerOnSlotMachine( playerid ) && GetPlayerVehicleSeat( playerid ) <= 0 && !IsPlayerUsingAnimation( playerid ) )
|
||||||
{
|
{
|
||||||
if ( iKeys != 0 || iUpDownKeys != 0 || iLeftRightKeys != 0 ) { // GetPlayerScore( playerid ) > 10 &&
|
if ( iKeys != 0 || iUpDownKeys != 0 || iLeftRightKeys != 0 ) { // GetPlayerScore( playerid ) > 10 &&
|
||||||
|
@ -208,7 +208,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
SetPlayerVipLevel( playerid, selected_vip );
|
SetPlayerVipLevel( playerid, selected_vip );
|
||||||
|
|
||||||
// Send message
|
// Send message
|
||||||
SendClientMessageFormatted( playerid, -1, ""COL_GOLD"[VIP PACKAGE]"COL_WHITE" You have redeemed %s V.I.P for %s Irresistible Coins! Congratulations! :D", VIPToString( selected_vip ), number_format( iCoinRequirement, .decimals = 0 ) );
|
SendClientMessageFormatted( playerid, -1, ""COL_GOLD"[VIP PACKAGE]"COL_WHITE" You have redeemed %s V.I.P for %s Coins! Congratulations! :D", VIPToString( selected_vip ), number_format( iCoinRequirement, .decimals = 0 ) );
|
||||||
|
|
||||||
// Redirect player
|
// Redirect player
|
||||||
if ( selected_vip == VIP_DIAMOND )
|
if ( selected_vip == VIP_DIAMOND )
|
||||||
@ -240,7 +240,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
|
|
||||||
GivePlayerCash( playerid, cash_amount );
|
GivePlayerCash( playerid, cash_amount );
|
||||||
GivePlayerIrresistibleCoins( playerid, -iCoinRequirement );
|
GivePlayerIrresistibleCoins( playerid, -iCoinRequirement );
|
||||||
SendServerMessage( playerid, "You have ordered a "COL_GREEN"%s Cash Card (%s)"COL_WHITE" for %s Irresistible Coins!", g_irresistibleCashCards[ listitem ] [ E_NAME ], number_format( cash_amount ), number_format( iCoinRequirement, .decimals = 0 ) );
|
SendServerMessage( playerid, "You have ordered a "COL_GREEN"%s Cash Card (%s)"COL_WHITE" for %s Coins!", g_irresistibleCashCards[ listitem ] [ E_NAME ], number_format( cash_amount ), number_format( iCoinRequirement, .decimals = 0 ) );
|
||||||
ShowPlayerHelpDialog( playerid, 10000, "You have bought a ~g~%s~w~ %s Cash Card!", number_format( cash_amount ), g_irresistibleCashCards[ listitem ] [ E_NAME ] );
|
ShowPlayerHelpDialog( playerid, 10000, "You have bought a ~g~%s~w~ %s Cash Card!", number_format( cash_amount ), g_irresistibleCashCards[ listitem ] [ E_NAME ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,7 +268,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
|
|
||||||
p_ExtraAssetSlots{ playerid } ++;
|
p_ExtraAssetSlots{ playerid } ++;
|
||||||
GivePlayerIrresistibleCoins( playerid, -iCoinRequirement );
|
GivePlayerIrresistibleCoins( playerid, -iCoinRequirement );
|
||||||
SendServerMessage( playerid, "You have redeemed an "COL_GOLD"vehicle slot"COL_WHITE" for %s Irresistible Coins!", number_format( iCoinRequirement, .decimals = 0 ) );
|
SendServerMessage( playerid, "You have redeemed an "COL_GOLD"vehicle slot"COL_WHITE" for %s Coins!", number_format( iCoinRequirement, .decimals = 0 ) );
|
||||||
mysql_single_query( sprintf( "UPDATE `USERS` SET `EXTRA_SLOTS` = %d WHERE `ID` = %d", p_ExtraAssetSlots{ playerid }, GetPlayerAccountID( playerid ) ) );
|
mysql_single_query( sprintf( "UPDATE `USERS` SET `EXTRA_SLOTS` = %d WHERE `ID` = %d", p_ExtraAssetSlots{ playerid }, GetPlayerAccountID( playerid ) ) );
|
||||||
AddPlayerNote( playerid, -1, sprintf( "Bought veh extra slot, has %d extra", p_ExtraAssetSlots{ playerid } ) );
|
AddPlayerNote( playerid, -1, sprintf( "Bought veh extra slot, has %d extra", p_ExtraAssetSlots{ playerid } ) );
|
||||||
}
|
}
|
||||||
@ -277,7 +277,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
GivePlayerIrresistibleCoins( playerid, -iCoinRequirement );
|
GivePlayerIrresistibleCoins( playerid, -iCoinRequirement );
|
||||||
AddPlayerNote( playerid, -1, sprintf( ""COL_GOLD"%s" #COL_WHITE, g_irresistibleMarketItems[ listitem ] [ E_NAME ] ) );
|
AddPlayerNote( playerid, -1, sprintf( ""COL_GOLD"%s" #COL_WHITE, g_irresistibleMarketItems[ listitem ] [ E_NAME ] ) );
|
||||||
SendClientMessageToAdmins( -1, ""COL_PINK"[DONOR NEEDS HELP]"COL_GREY" %s(%d) needs a %s. (/viewnotes)", ReturnPlayerName( playerid ), playerid, g_irresistibleMarketItems[ listitem ] [ E_NAME ] );
|
SendClientMessageToAdmins( -1, ""COL_PINK"[DONOR NEEDS HELP]"COL_GREY" %s(%d) needs a %s. (/viewnotes)", ReturnPlayerName( playerid ), playerid, g_irresistibleMarketItems[ listitem ] [ E_NAME ] );
|
||||||
SendServerMessage( playerid, "You have ordered a "COL_GOLD"%s"COL_WHITE" for %s Irresistible Coins!", g_irresistibleMarketItems[ listitem ] [ E_NAME ], number_format( iCoinRequirement, .decimals = 0 ) );
|
SendServerMessage( playerid, "You have ordered a "COL_GOLD"%s"COL_WHITE" for %s Coins!", g_irresistibleMarketItems[ listitem ] [ E_NAME ], number_format( iCoinRequirement, .decimals = 0 ) );
|
||||||
SendServerMessage( playerid, "Online admins have been notified of your purchase. Use "COL_GREY"/notes"COL_WHITE" to track your orders and to remind online admins." );
|
SendServerMessage( playerid, "Online admins have been notified of your purchase. Use "COL_GREY"/notes"COL_WHITE" to track your orders and to remind online admins." );
|
||||||
ShowPlayerHelpDialog( playerid, 10000, "You can use ~y~/notes~w~ to track your orders.~n~~n~Also, admins will be reminded using this command." );
|
ShowPlayerHelpDialog( playerid, 10000, "You can use ~y~/notes~w~ to track your orders.~n~~n~Also, admins will be reminded using this command." );
|
||||||
}
|
}
|
||||||
@ -314,7 +314,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
}
|
}
|
||||||
|
|
||||||
GivePlayerIrresistibleCoins( playerid, - iCoinRequirement );
|
GivePlayerIrresistibleCoins( playerid, - iCoinRequirement );
|
||||||
SendServerMessage( playerid, "You have redeemed "COL_GOLD"Gold Rims"COL_WHITE" on your vehicle for %s Irresistible Coins!", number_format( iCoinRequirement, .decimals = 0 ) );
|
SendServerMessage( playerid, "You have redeemed "COL_GOLD"Gold Rims"COL_WHITE" on your vehicle for %s Coins!", number_format( iCoinRequirement, .decimals = 0 ) );
|
||||||
|
|
||||||
// Receipt
|
// Receipt
|
||||||
AddPlayerNote( playerid, -1, sprintf( "Bought gold rims on vehicle #%d", g_vehicleData[ playerid ] [ buyableid ] [ E_SQL_ID ] ) );
|
AddPlayerNote( playerid, -1, sprintf( "Bought gold rims on vehicle #%d", g_vehicleData[ playerid ] [ buyableid ] [ E_SQL_ID ] ) );
|
||||||
@ -635,7 +635,7 @@ CMD:irresistiblecoins( playerid, params[ ] )
|
|||||||
|
|
||||||
if ( strmatch( params, "balance" ) )
|
if ( strmatch( params, "balance" ) )
|
||||||
{
|
{
|
||||||
return SendServerMessage( playerid, "You currently have precisely "COL_GOLD"%s"COL_WHITE" Irresistible Coins!", number_format( GetPlayerIrresistibleCoins( playerid ) ) );
|
return SendServerMessage( playerid, "You currently have precisely "COL_GOLD"%s"COL_WHITE" Coins!", number_format( GetPlayerIrresistibleCoins( playerid ) ) );
|
||||||
}
|
}
|
||||||
else if ( strmatch( params, "market" ) )
|
else if ( strmatch( params, "market" ) )
|
||||||
{
|
{
|
||||||
@ -648,7 +648,7 @@ CMD:irresistiblecoins( playerid, params[ ] )
|
|||||||
|
|
||||||
if ( sscanf( params[ 5 ],"uf", senttoid, coins ) ) return SendUsage( playerid, "/irresistiblecoins send [PLAYER_ID] [COINS]" );
|
if ( sscanf( params[ 5 ],"uf", senttoid, coins ) ) return SendUsage( playerid, "/irresistiblecoins send [PLAYER_ID] [COINS]" );
|
||||||
else if ( !IsPlayerConnected( senttoid ) || IsPlayerNPC( senttoid ) ) return SendError( playerid, "Invalid Player ID." );
|
else if ( !IsPlayerConnected( senttoid ) || IsPlayerNPC( senttoid ) ) return SendError( playerid, "Invalid Player ID." );
|
||||||
else if ( p_VIPLevel[ playerid ] < VIP_BRONZE ) return SendError( playerid, "You are not a Bronze V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
else if ( p_VIPLevel[ playerid ] < VIP_BRONZE ) return SendError( playerid, "You are not a Bronze V.I.P, to become one please discuss with admins" );
|
||||||
else if ( coins < 0.1 || coins > 10000.0 ) return SendError( playerid, "You can only send between 0.1 and 10,000.0 coins at a single time." );
|
else if ( coins < 0.1 || coins > 10000.0 ) return SendError( playerid, "You can only send between 0.1 and 10,000.0 coins at a single time." );
|
||||||
else if ( coins > 99999999 || coins < 0 ) return SendError( playerid, "You can only send between 0.1 and 5,000.0 coins at a single time." ); // Making cash go over billions...
|
else if ( coins > 99999999 || coins < 0 ) return SendError( playerid, "You can only send between 0.1 and 5,000.0 coins at a single time." ); // Making cash go over billions...
|
||||||
else if ( GetPlayerIrresistibleCoins( playerid ) < coins ) return SendError( playerid, "You do not have this number of coins to send." );
|
else if ( GetPlayerIrresistibleCoins( playerid ) < coins ) return SendError( playerid, "You do not have this number of coins to send." );
|
||||||
@ -665,8 +665,8 @@ CMD:irresistiblecoins( playerid, params[ ] )
|
|||||||
GivePlayerIrresistibleCoins( senttoid, coins );
|
GivePlayerIrresistibleCoins( senttoid, coins );
|
||||||
GivePlayerIrresistibleCoins( playerid, -coins );
|
GivePlayerIrresistibleCoins( playerid, -coins );
|
||||||
|
|
||||||
SendServerMessage( playerid, "You have sent "COL_GOLD"%s"COL_WHITE" Irresistible Coins to %s(%d)!", number_format( coins, .decimals = 2 ), ReturnPlayerName( senttoid ), senttoid );
|
SendServerMessage( playerid, "You have sent "COL_GOLD"%s"COL_WHITE" Coins to %s(%d)!", number_format( coins, .decimals = 2 ), ReturnPlayerName( senttoid ), senttoid );
|
||||||
SendServerMessage( senttoid, "You have received "COL_GOLD"%s"COL_WHITE" Irresistible Coins from %s(%d)!", number_format( coins, .decimals = 2 ), ReturnPlayerName( playerid ), playerid );
|
SendServerMessage( senttoid, "You have received "COL_GOLD"%s"COL_WHITE" Coins from %s(%d)!", number_format( coins, .decimals = 2 ), ReturnPlayerName( playerid ), playerid );
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -683,7 +683,7 @@ CMD:vip( playerid, params[ ] )
|
|||||||
|
|
||||||
CMD:vipcmds( playerid, params[ ] )
|
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" );
|
if ( p_VIPLevel[ playerid ] < 1 ) return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
|
|
||||||
erase( szLargeString );
|
erase( szLargeString );
|
||||||
strcat( szLargeString, ""COL_GREY"/vipspawnwep"COL_WHITE" - Configure your spawning weapons\n"\
|
strcat( szLargeString, ""COL_GREY"/vipspawnwep"COL_WHITE" - Configure your spawning weapons\n"\
|
||||||
@ -910,11 +910,11 @@ static stock CheckPlayerVipExpiry( playerid )
|
|||||||
static stock ShowPlayerVipRedeemedDialog( playerid )
|
static stock ShowPlayerVipRedeemedDialog( playerid )
|
||||||
{
|
{
|
||||||
szLargeString[ 0 ] = '\0';
|
szLargeString[ 0 ] = '\0';
|
||||||
strcat( szLargeString, ""COL_WHITE"You've just blew quite a bit of Irresistible Coins for your V.I.P, so congratulations! :D\n\n"\
|
strcat( szLargeString, ""COL_WHITE"You've just blew quite a bit of Coins for your V.I.P, so congratulations! :D\n\n"\
|
||||||
""COL_GREY" * What are the commands?"COL_WHITE" Use /vipcmds to view a detailed list of VIP commands.\n"\
|
""COL_GREY" * What are the commands?"COL_WHITE" Use /vipcmds to view a detailed list of VIP commands.\n"\
|
||||||
""COL_GREY" * What did I receive?"COL_WHITE" Check through your V.I.P package contents via our site (forum -> announcements board).\n" );
|
""COL_GREY" * What did I receive?"COL_WHITE" Check through your V.I.P package contents via our site (forum -> announcements board).\n" );
|
||||||
strcat( szLargeString, ""COL_GREY" * How to redeem my houses/vehicles?"COL_WHITE" You will be announced to the admins and noted down for assistance, so please wait!\n"\
|
strcat( szLargeString, ""COL_GREY" * How to redeem my houses/vehicles?"COL_WHITE" You will be announced to the admins and noted down for assistance, so please wait!\n"\
|
||||||
""COL_GREY" * I'm unsure, help?"COL_WHITE" If you have any questions, please /ask otherwise enquire " SERVER_OPERATOR " via the forums!\n\nThanks for choosing to spend your Irresistible Coins, enjoy what you've got! :P" );
|
""COL_GREY" * I'm unsure, help?"COL_WHITE" If you have any questions, please /ask otherwise enquire " SERVER_OPERATOR " via the forums!\n\nThanks for choosing to spend your Coins, enjoy what you've got! :P" );
|
||||||
ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, ""COL_GOLD"SF-CNR Donation", szLargeString, "Got it!", "" );
|
ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, ""COL_GOLD"SF-CNR Donation", szLargeString, "Got it!", "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,8 +87,8 @@ hook cmd_ic( playerid, params[ ] )
|
|||||||
|
|
||||||
if ( GetPlayerVIPLevel( playerid ) < VIP_BRONZE ) SendError( playerid, "You are not a Bronze V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
if ( GetPlayerVIPLevel( playerid ) < VIP_BRONZE ) SendError( playerid, "You are not a Bronze V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
||||||
else if ( sscanf( params[ 5 ], "fd", quantity, price ) ) SendUsage( playerid, "/ic sell [COINS] [PRICE_PER_COIN]" );
|
else if ( sscanf( params[ 5 ], "fd", quantity, price ) ) SendUsage( playerid, "/ic sell [COINS] [PRICE_PER_COIN]" );
|
||||||
else if ( quantity < 1.0 ) SendError( playerid, "The minimum amount you can sell is 1.0 Irresistible Coins." );
|
else if ( quantity < 1.0 ) SendError( playerid, "The minimum amount you can sell is 1.0 Coins." );
|
||||||
else if ( quantity > GetPlayerIrresistibleCoins( playerid ) ) SendError( playerid, "You do not have this many Irresistible Coins." );
|
else if ( quantity > GetPlayerIrresistibleCoins( playerid ) ) SendError( playerid, "You do not have this many Coins." );
|
||||||
else if ( ! ( 1000 <= price <= 125000 )) SendError( playerid, "Selling price must be between $1,000 and $125,000 per coin." );
|
else if ( ! ( 1000 <= price <= 125000 )) SendError( playerid, "Selling price must be between $1,000 and $125,000 per coin." );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -104,7 +104,7 @@ hook cmd_ic( playerid, params[ ] )
|
|||||||
mysql_single_query( szBigString );
|
mysql_single_query( szBigString );
|
||||||
|
|
||||||
// deduct the coins
|
// deduct the coins
|
||||||
SendServerMessage( playerid, "Sell order for %s Irresistible Coins (at %s/IC) has been placed. Cancel via "COL_GREY"/ic cancel"COL_WHITE".", number_format( quantity, .decimals = 3 ), cash_format( price ) );
|
SendServerMessage( playerid, "Sell order for %s Coins (at %s/IC) has been placed. Cancel via "COL_GREY"/ic cancel"COL_WHITE".", number_format( quantity, .decimals = 3 ), cash_format( price ) );
|
||||||
GivePlayerIrresistibleCoins( playerid, -quantity );
|
GivePlayerIrresistibleCoins( playerid, -quantity );
|
||||||
}
|
}
|
||||||
return Y_HOOKS_BREAK_RETURN_1;
|
return Y_HOOKS_BREAK_RETURN_1;
|
||||||
@ -179,8 +179,8 @@ thread PlayerMarket_OnShowSellOrder( playerid, sellorderid )
|
|||||||
SetPVarInt( playerid, "playermarket_askprice", ask_price );
|
SetPVarInt( playerid, "playermarket_askprice", ask_price );
|
||||||
SetPVarFloat( playerid, "playermarket_available", quantity );
|
SetPVarFloat( playerid, "playermarket_available", quantity );
|
||||||
|
|
||||||
format( szBigString, sizeof( szBigString ), ""COL_WHITE"This player has %s Irresistible Coins to sell at %s per coin.\n\nHow many Irresistible Coins would you like to buy?", number_format( quantity, .decimals = 3 ), cash_format( ask_price ) );
|
format( szBigString, sizeof( szBigString ), ""COL_WHITE"This player has %s Coins to sell at %s per coin.\n\nHow many Coins would you like to buy?", number_format( quantity, .decimals = 3 ), cash_format( ask_price ) );
|
||||||
return ShowPlayerDialog( playerid, DIALOG_IC_BUY, DIALOG_STYLE_INPUT, ""COL_GOLD"Irresistible Coin - "COL_WHITE"Buy Coins", szBigString, "Buy", "Back" ), 1;
|
return ShowPlayerDialog( playerid, DIALOG_IC_BUY, DIALOG_STYLE_INPUT, ""COL_GOLD"Coin - "COL_WHITE"Buy Coins", szBigString, "Buy", "Back" ), 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
thread PlayerMarket_OnCancelOrders( playerid )
|
thread PlayerMarket_OnCancelOrders( playerid )
|
||||||
|
@ -84,9 +84,9 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
else if ( dialogid == DIALOG_DONATED )
|
else if ( dialogid == DIALOG_DONATED )
|
||||||
{
|
{
|
||||||
szLargeString[ 0 ] = '\0';
|
szLargeString[ 0 ] = '\0';
|
||||||
strcat( szLargeString, ""COL_WHITE"Thank you a lot for donating! :D In return for your dignity, you have received Irresistible Coins.\n\n"\
|
strcat( szLargeString, ""COL_WHITE"Thank you a lot for donating! :D In return for your dignity, you have received Coins.\n\n"\
|
||||||
""COL_GREY" * What do I do with Irresistible Coins?"COL_WHITE" You can claim the V.I.P of your choice via "COL_GREY"/irresistiblecoins market"COL_WHITE".\n" );
|
""COL_GREY" * What do I do with Coins?"COL_WHITE" You can claim the V.I.P of your choice via "COL_GREY"/irresistiblecoins market"COL_WHITE".\n" );
|
||||||
strcat( szLargeString, ""COL_GREY" * How many do I have?"COL_WHITE" You can see how many Irresistible Coins you have via "COL_GREY"/irresistiblecoins"COL_WHITE".\n" \
|
strcat( szLargeString, ""COL_GREY" * How many do I have?"COL_WHITE" You can see how many Coins you have via "COL_GREY"/irresistiblecoins"COL_WHITE".\n" \
|
||||||
""COL_GREY" * I'm unsure, help?"COL_WHITE" If you have any questions, please /ask otherwise enquire " SERVER_OPERATOR " via the forums!\n\nThank you once again for your contribution to our community! :P" );
|
""COL_GREY" * I'm unsure, help?"COL_WHITE" If you have any questions, please /ask otherwise enquire " SERVER_OPERATOR " via the forums!\n\nThank you once again for your contribution to our community! :P" );
|
||||||
return ShowPlayerDialog( playerid, DIALOG_FINISHED_DONATING, DIALOG_STYLE_MSGBOX, ""COL_GOLD"SF-CNR Donation", szLargeString, "Got it!", "" );
|
return ShowPlayerDialog( playerid, DIALOG_FINISHED_DONATING, DIALOG_STYLE_MSGBOX, ""COL_GOLD"SF-CNR Donation", szLargeString, "Got it!", "" );
|
||||||
}
|
}
|
||||||
@ -184,7 +184,7 @@ thread OnCheckForRedeemedVIP( playerid, data[ ] )
|
|||||||
GivePlayerIrresistibleCoins( playerid, iCoins );
|
GivePlayerIrresistibleCoins( playerid, iCoins );
|
||||||
SetPVarFloat( playerid, "just_donated", fAmount );
|
SetPVarFloat( playerid, "just_donated", fAmount );
|
||||||
|
|
||||||
SendClientMessageFormatted( playerid, -1, ""COL_GOLD"[VIP PACKAGE]"COL_WHITE" You have received %0.0f Irresistible Coins! Thanks for donating %s!!! :D", iCoins, ReturnPlayerName( playerid ) );
|
SendClientMessageFormatted( playerid, -1, ""COL_GOLD"[VIP PACKAGE]"COL_WHITE" You have received %0.0f Coins! Thanks for donating %s!!! :D", iCoins, ReturnPlayerName( playerid ) );
|
||||||
|
|
||||||
format( szBigString, 256, ""COL_GREY"Transaction ID:\t"COL_WHITE"%s\n"COL_GREY"Donor Name:\t"COL_WHITE"%s\n"COL_GREY"Amount:\t"COL_WHITE"$%0.2f\n"COL_GREY"Total Coins:\t"COL_WHITE"%0.0f\n"COL_GREY"Time Ago:\t"COL_WHITE"%s",
|
format( szBigString, 256, ""COL_GREY"Transaction ID:\t"COL_WHITE"%s\n"COL_GREY"Donor Name:\t"COL_WHITE"%s\n"COL_GREY"Amount:\t"COL_WHITE"$%0.2f\n"COL_GREY"Total Coins:\t"COL_WHITE"%0.0f\n"COL_GREY"Time Ago:\t"COL_WHITE"%s",
|
||||||
aDonation[ E_TRANSACTION_ID ], aDonation[ E_NAME ], floatstr( aDonation[ E_AMOUNT ] ), iCoins, secondstotime( g_iTime - aDonation[ E_DATE ] ) );
|
aDonation[ E_TRANSACTION_ID ], aDonation[ E_NAME ], floatstr( aDonation[ E_AMOUNT ] ), iCoins, secondstotime( g_iTime - aDonation[ E_DATE ] ) );
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/* ** Variables ** */
|
/* ** Variables ** */
|
||||||
new
|
new
|
||||||
Text: g_ObjectLoadTD = Text: INVALID_TEXT_DRAW,
|
Text: g_ObjectLoadTD = Text: INVALID_TEXT_DRAW,
|
||||||
Text: g_WebsiteTD = Text: INVALID_TEXT_DRAW,
|
// Text: g_WebsiteTD = Text: INVALID_TEXT_DRAW,
|
||||||
Text: g_MotdTD = Text: INVALID_TEXT_DRAW,
|
Text: g_MotdTD = Text: INVALID_TEXT_DRAW,
|
||||||
Text: g_AchievementTD [ 4 ] = { Text: INVALID_TEXT_DRAW, ... },
|
Text: g_AchievementTD [ 4 ] = { Text: INVALID_TEXT_DRAW, ... },
|
||||||
Text: g_AdminLogTD = Text: INVALID_TEXT_DRAW,
|
Text: g_AdminLogTD = Text: INVALID_TEXT_DRAW,
|
||||||
@ -149,14 +149,14 @@ hook OnScriptInit( )
|
|||||||
TextDrawBoxColor(g_ObjectLoadTD, 117);
|
TextDrawBoxColor(g_ObjectLoadTD, 117);
|
||||||
TextDrawTextSize(g_ObjectLoadTD, 0.000000, 180.000000);
|
TextDrawTextSize(g_ObjectLoadTD, 0.000000, 180.000000);
|
||||||
|
|
||||||
g_WebsiteTD = TextDrawCreate(84.000000, 429.000000, "www.SFCNR.com");
|
// g_WebsiteTD = TextDrawCreate(84.000000, 429.000000, "www.SFCNR.com");
|
||||||
TextDrawAlignment(g_WebsiteTD, 2);
|
// TextDrawAlignment(g_WebsiteTD, 2);
|
||||||
TextDrawBackgroundColor(g_WebsiteTD, 255);
|
// TextDrawBackgroundColor(g_WebsiteTD, 255);
|
||||||
TextDrawFont(g_WebsiteTD, 1);
|
// TextDrawFont(g_WebsiteTD, 1);
|
||||||
TextDrawLetterSize(g_WebsiteTD, 0.220000, 1.200000);
|
// TextDrawLetterSize(g_WebsiteTD, 0.220000, 1.200000);
|
||||||
TextDrawColor(g_WebsiteTD, 0xfa4d4cff); // 1289224191
|
// TextDrawColor(g_WebsiteTD, 0xfa4d4cff); // 1289224191
|
||||||
TextDrawSetOutline(g_WebsiteTD, 1);
|
// TextDrawSetOutline(g_WebsiteTD, 1);
|
||||||
TextDrawSetProportional(g_WebsiteTD, 1);
|
// TextDrawSetProportional(g_WebsiteTD, 1);
|
||||||
|
|
||||||
g_AdminOnDutyTD = TextDrawCreate(552.000000, 66.500000, "ADMIN ON DUTY");
|
g_AdminOnDutyTD = TextDrawCreate(552.000000, 66.500000, "ADMIN ON DUTY");
|
||||||
TextDrawBackgroundColor(g_AdminOnDutyTD, 255);
|
TextDrawBackgroundColor(g_AdminOnDutyTD, 255);
|
||||||
|
@ -88,7 +88,7 @@ public OnGameModeInit()
|
|||||||
AddServerVariable( "vip_discount", "1.0", GLOBAL_VARTYPE_FLOAT );
|
AddServerVariable( "vip_discount", "1.0", GLOBAL_VARTYPE_FLOAT );
|
||||||
AddServerVariable( "vip_bonus", "0.0", GLOBAL_VARTYPE_FLOAT );
|
AddServerVariable( "vip_bonus", "0.0", GLOBAL_VARTYPE_FLOAT );
|
||||||
AddServerVariable( "connectsong", "http://files.sfcnr.com/game_sounds/Stevie%20Wonder%20-%20Skeletons.mp3", GLOBAL_VARTYPE_STRING );
|
AddServerVariable( "connectsong", "http://files.sfcnr.com/game_sounds/Stevie%20Wonder%20-%20Skeletons.mp3", GLOBAL_VARTYPE_STRING );
|
||||||
AddServerVariable( "discordurl", "http://sfcnr.com/discord", GLOBAL_VARTYPE_STRING );
|
AddServerVariable( "discordurl", "http://discord.gg/gYFQGtZx", GLOBAL_VARTYPE_STRING );
|
||||||
|
|
||||||
/* ** Set everyone offline ** */
|
/* ** Set everyone offline ** */
|
||||||
mysql_single_query( "UPDATE `USERS` SET `ONLINE` = 0" );
|
mysql_single_query( "UPDATE `USERS` SET `ONLINE` = 0" );
|
||||||
@ -437,7 +437,7 @@ public OnPlayerConnect( playerid )
|
|||||||
jailDoors( playerid, false, false );
|
jailDoors( playerid, false, false );
|
||||||
|
|
||||||
SendClientMessage( playerid, 0xa9c4e4ff, "{FF0000}[WARNING]{a9c4e4} The concept in this server and GTA in general may be considered explicit material." );
|
SendClientMessage( playerid, 0xa9c4e4ff, "{FF0000}[WARNING]{a9c4e4} The concept in this server and GTA in general may be considered explicit material." );
|
||||||
SendClientMessageFormatted( playerid, 0xa9c4e4ff, "{FF0000}[INFO]{a9c4e4} The server is currently operating on version %s.", GetServerVersion( ) );
|
// SendClientMessageFormatted( playerid, 0xa9c4e4ff, "{FF0000}[INFO]{a9c4e4} The server is currently operating on version %s.", GetServerVersion( ) );
|
||||||
|
|
||||||
if ( IsValidServerVariable( "connectsong" ) )
|
if ( IsValidServerVariable( "connectsong" ) )
|
||||||
{
|
{
|
||||||
@ -1955,7 +1955,7 @@ CMD:deathmessage( playerid, params[ ] ) return cmd_deathmsg( playerid, params );
|
|||||||
CMD:deathmsg( playerid, params[ ] )
|
CMD:deathmsg( playerid, params[ ] )
|
||||||
{
|
{
|
||||||
if ( p_VIPLevel[ playerid ] < 1 )
|
if ( p_VIPLevel[ playerid ] < 1 )
|
||||||
return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
|
|
||||||
new
|
new
|
||||||
szDeathMessage[ sizeof( p_DeathMessage[ ] ) ];
|
szDeathMessage[ sizeof( p_DeathMessage[ ] ) ];
|
||||||
@ -2247,7 +2247,7 @@ CMD:vsay( playerid, params[ ] )
|
|||||||
time = g_iTime
|
time = g_iTime
|
||||||
;
|
;
|
||||||
|
|
||||||
if ( p_VIPLevel[ playerid ] < 1 ) return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
|
if ( p_VIPLevel[ playerid ] < 1 ) return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
else if ( IsPlayerChatBanned( playerid ) ) return SendError( playerid, "You have been chat banned and are not allowed to chat." );
|
else if ( IsPlayerChatBanned( playerid ) ) return SendError( playerid, "You have been chat banned and are not allowed to chat." );
|
||||||
else if ( sscanf( params, "s[100]", msg ) ) return SendUsage( playerid, "/vsay [MESSAGE]" );
|
else if ( sscanf( params, "s[100]", msg ) ) return SendUsage( playerid, "/vsay [MESSAGE]" );
|
||||||
else if ( textContainsIP( msg ) ) return SendServerMessage( playerid, "Please do not advertise." );
|
else if ( textContainsIP( msg ) ) return SendServerMessage( playerid, "Please do not advertise." );
|
||||||
@ -2306,7 +2306,7 @@ CMD:viplist( playerid, params[ ] )
|
|||||||
|
|
||||||
CMD:vipspawnwep( playerid, params[ ] )
|
CMD:vipspawnwep( playerid, params[ ] )
|
||||||
{
|
{
|
||||||
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" );
|
if ( p_VIPLevel[ playerid ] < VIP_REGULAR ) return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
format( szNormalString, sizeof( szNormalString ), "%s\n"COL_GOLD"%s\n"COL_PLATINUM"%s", p_VIPWep1{ playerid } ? ReturnWeaponName( p_VIPWep1{ playerid } ) : ( "Nothing" ), p_VIPWep2{ playerid } ? ReturnWeaponName( p_VIPWep2{ playerid } ) : ( "Nothing" ), p_VIPWep3{ playerid } ? ReturnWeaponName( p_VIPWep3{ playerid } ) : ( "Nothing" ) );
|
format( szNormalString, sizeof( szNormalString ), "%s\n"COL_GOLD"%s\n"COL_PLATINUM"%s", p_VIPWep1{ playerid } ? ReturnWeaponName( p_VIPWep1{ playerid } ) : ( "Nothing" ), p_VIPWep2{ playerid } ? ReturnWeaponName( p_VIPWep2{ playerid } ) : ( "Nothing" ), p_VIPWep3{ playerid } ? ReturnWeaponName( p_VIPWep3{ playerid } ) : ( "Nothing" ) );
|
||||||
ShowPlayerDialog( playerid, DIALOG_VIP_WEP, DIALOG_STYLE_LIST, "{FFFFFF}Spawn Weapons", szNormalString, "Select", "" );
|
ShowPlayerDialog( playerid, DIALOG_VIP_WEP, DIALOG_STYLE_LIST, "{FFFFFF}Spawn Weapons", szNormalString, "Select", "" );
|
||||||
return 1;
|
return 1;
|
||||||
@ -2315,7 +2315,7 @@ CMD:vipspawnwep( playerid, params[ ] )
|
|||||||
CMD:vipgun( playerid, params[ ] )
|
CMD:vipgun( playerid, params[ ] )
|
||||||
{
|
{
|
||||||
if ( p_VIPLevel[ playerid ] < VIP_REGULAR )
|
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" );
|
return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
|
|
||||||
if ( !IsPlayerInRangeOfPoint( playerid, 5.0, -1966.1591, 852.7100, 1214.2678 ) && !IsPlayerInRangeOfPoint( playerid, 5.0, -1944.1324, 830.0725, 1214.2678 ) && !IsPlayerInRangeOfPoint( playerid, 5.0, 60.3115, 121.5226, 1017.4534 ) )
|
if ( !IsPlayerInRangeOfPoint( playerid, 5.0, -1966.1591, 852.7100, 1214.2678 ) && !IsPlayerInRangeOfPoint( playerid, 5.0, -1944.1324, 830.0725, 1214.2678 ) && !IsPlayerInRangeOfPoint( playerid, 5.0, 60.3115, 121.5226, 1017.4534 ) )
|
||||||
return SendError( playerid, "You must be near a gun vending machine inside the V.I.P lounge to use this." );
|
return SendError( playerid, "You must be near a gun vending machine inside the V.I.P lounge to use this." );
|
||||||
@ -2329,7 +2329,7 @@ CMD:vipskin( playerid, params[ ] )
|
|||||||
new
|
new
|
||||||
skin
|
skin
|
||||||
;
|
;
|
||||||
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" );
|
if ( p_VIPLevel[ playerid ] < VIP_REGULAR ) return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
else if ( GetPlayerAnimationIndex( playerid ) == 1660 ) return SendError( playerid, "You cannot use this command since you're using a vending machine." );
|
else if ( GetPlayerAnimationIndex( playerid ) == 1660 ) return SendError( playerid, "You cannot use this command since you're using a vending machine." );
|
||||||
else if ( IsPlayerRobbing( playerid ) ) return SendError( playerid, "You cannot use this command since you're robbing a store." );
|
else if ( IsPlayerRobbing( playerid ) ) return SendError( playerid, "You cannot use this command since you're robbing a store." );
|
||||||
/*else if ( strmatch( params, "toggle" ) )
|
/*else if ( strmatch( params, "toggle" ) )
|
||||||
@ -2367,7 +2367,7 @@ CMD:vipjob( playerid, params[ ] )
|
|||||||
iJob;
|
iJob;
|
||||||
|
|
||||||
if ( p_VIPLevel[ playerid ] < VIP_REGULAR )
|
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" );
|
return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
|
|
||||||
if ( p_VIPLevel[ playerid ] < VIP_PLATINUM )
|
if ( p_VIPLevel[ playerid ] < VIP_PLATINUM )
|
||||||
return SendError( playerid, "This command requires you to be Platinum V.I.P." );
|
return SendError( playerid, "This command requires you to be Platinum V.I.P." );
|
||||||
@ -2583,7 +2583,7 @@ CMD:myaccid( playerid, params[ ] )
|
|||||||
|
|
||||||
CMD:discord( playerid, params[ ] )
|
CMD:discord( playerid, params[ ] )
|
||||||
{
|
{
|
||||||
return SendServerMessage( playerid, "Visit 'sfcnr.com/discord' to join our Discord server!" );
|
return SendServerMessage( playerid, "Visit 'discord.gg/gYFQGtZx' to join our Discord server!");
|
||||||
}
|
}
|
||||||
|
|
||||||
CMD:job( playerid, params[ ] )
|
CMD:job( playerid, params[ ] )
|
||||||
@ -2773,7 +2773,7 @@ CMD:labelcolor( playerid, params[ ] )
|
|||||||
szLabel[ 7 ];
|
szLabel[ 7 ];
|
||||||
|
|
||||||
if ( sscanf( params, "s[7]", szLabel ) ) return SendUsage( playerid, "/labelcolor [HEX CODE (= normal)]" );
|
if ( sscanf( params, "s[7]", szLabel ) ) return SendUsage( playerid, "/labelcolor [HEX CODE (= normal)]" );
|
||||||
else 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" );
|
else if ( p_VIPLevel[ playerid ] < VIP_REGULAR ) return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
else if ( strmatch( szLabel, "normal" ) )
|
else if ( strmatch( szLabel, "normal" ) )
|
||||||
{
|
{
|
||||||
p_LabelColor[ playerid ] = COLOR_GREY;
|
p_LabelColor[ playerid ] = COLOR_GREY;
|
||||||
@ -4240,7 +4240,7 @@ public OnPlayerEnterDynamicCP( playerid, checkpointid )
|
|||||||
public OnPlayerAccessEntrance( playerid, entranceid, worldid, interiorid )
|
public OnPlayerAccessEntrance( playerid, entranceid, worldid, interiorid )
|
||||||
{
|
{
|
||||||
if ( g_entranceData[ entranceid ] [ E_VIP ] && p_VIPLevel[ playerid ] < VIP_REGULAR ) {
|
if ( g_entranceData[ entranceid ] [ E_VIP ] && p_VIPLevel[ playerid ] < VIP_REGULAR ) {
|
||||||
return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" ), 0;
|
return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" ), 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// robbery helper
|
// robbery helper
|
||||||
@ -5314,7 +5314,7 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
}
|
}
|
||||||
case 8:
|
case 8:
|
||||||
{
|
{
|
||||||
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" );
|
if ( p_VIPLevel[ playerid ] < VIP_REGULAR ) return SendError( playerid, "You are not a V.I.P, to become one please discuss with admins" );
|
||||||
szCMDS[ 0 ] = '\0';
|
szCMDS[ 0 ] = '\0';
|
||||||
strcat( szCMDS, ""COL_GREY"/vipspawnwep{FFFFFF} - Configure your spawning weapons\n"\
|
strcat( szCMDS, ""COL_GREY"/vipspawnwep{FFFFFF} - Configure your spawning weapons\n"\
|
||||||
""COL_GREY"/vipskin{FFFFFF} - Configure your spawning skin\n"\
|
""COL_GREY"/vipskin{FFFFFF} - Configure your spawning skin\n"\
|
||||||
@ -5345,8 +5345,8 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
""COL_GREY"Account ID:{FFFFFF} %d\n"\
|
""COL_GREY"Account ID:{FFFFFF} %d\n"\
|
||||||
""COL_GREY"Admin Level:{FFFFFF} %d\n"\
|
""COL_GREY"Admin Level:{FFFFFF} %d\n"\
|
||||||
""COL_GREY"Time Online:{FFFFFF} %s\n"\
|
""COL_GREY"Time Online:{FFFFFF} %s\n"\
|
||||||
""COL_GREY"Irresistible Rank:{FFFFFF} %s\n"\
|
""COL_GREY"Rank:{FFFFFF} %s\n"\
|
||||||
""COL_GREY"Irresistible Coins:{FFFFFF} %f\n",
|
""COL_GREY"Coins:{FFFFFF} %f\n",
|
||||||
ReturnPlayerName( pID ), pID,
|
ReturnPlayerName( pID ), pID,
|
||||||
p_AccountID[ pID ], p_AdminLevel[ pID ],
|
p_AccountID[ pID ], p_AdminLevel[ pID ],
|
||||||
secondstotime( p_Uptime[ pID ] ),
|
secondstotime( p_Uptime[ pID ] ),
|
||||||
@ -6984,7 +6984,7 @@ thread OnPlayerChangeName( playerid, Float: iCoinRequirement, newName[ ] )
|
|||||||
// double check if valid coin requirement
|
// double check if valid coin requirement
|
||||||
if ( iCoinRequirement ) {
|
if ( iCoinRequirement ) {
|
||||||
GivePlayerIrresistibleCoins( playerid, -iCoinRequirement );
|
GivePlayerIrresistibleCoins( playerid, -iCoinRequirement );
|
||||||
SendServerMessage( playerid, "You have changed your name to for %s Irresistible Coins!", number_format( iCoinRequirement, .decimals = 0 ) );
|
SendServerMessage( playerid, "You have changed your name to for %s Coins!", number_format( iCoinRequirement, .decimals = 0 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update houses (furniture also?)
|
// Update houses (furniture also?)
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
(/) Fee for real estate reduced to $50,000 per home.
|
(/) Fee for real estate reduced to $50,000 per home.
|
||||||
(/) Players will lose only 5% of their stock if it drops 80% in a day.
|
(/) Players will lose only 5% of their stock if it drops 80% in a day.
|
||||||
(/) Full reversion of the turf war system to how it was pre-hardpoint.
|
(/) Full reversion of the turf war system to how it was pre-hardpoint.
|
||||||
(/) You need Bronze V.I.P to send Irresistible Coins.
|
(/) You need Bronze V.I.P to send Coins.
|
||||||
(/) Army is now vulnerable to damage in rhinos.
|
(/) Army is now vulnerable to damage in rhinos.
|
||||||
(/) Police are now paid 10% extra.
|
(/) Police are now paid 10% extra.
|
Loading…
Reference in New Issue
Block a user