Make npc rec buildable

This commit is contained in:
ChronosX88 2024-01-08 00:14:16 +03:00
parent 10f0f4b3ca
commit ec5c770ba2
5 changed files with 15 additions and 16 deletions

1
.gitignore vendored
View File

@ -88,6 +88,7 @@ npcmodes/**/*
!npcmodes/secureguard.pwn
!npcmodes/recordings/
!npcmodes/recordings/*.rec
!npcmodes/pawn.json
npcmodes/recordings/mission_4.rec
npcmodes/recordings/mission_3.rec
npcmodes/recordings/mission_2.rec

View File

@ -99,17 +99,6 @@ static stock
forward Float: GetPlayerIrresistibleCoins( playerid );
/* ** Hooks ** */
#if defined SERVER_PLS_DONATE_MP3
hook OnServerGameDayEnd( )
{
foreach ( new p : Player ) if ( ! p_VIPLevel[ p ] && ! IsPlayerUsingRadio( p ) )
{
PlayAudioStreamForPlayer( p, SERVER_PLS_DONATE_MP3 );
}
return 1;
}
#endif
hook OnPlayerUpdateEx( playerid )
{
CheckPlayerVipExpiry( playerid );

View File

@ -24,10 +24,9 @@
/* ** Comment line to disable feature ** */
//#define SERVER_RULES_URL "files.sfcnr.com/en_rules.txt" // used for /rules (cnr\features\server_rules.pwn)
#define SERVER_TWITTER_FEED_URL "files.sfcnr.com/cnr_twitter.php" // used for /twitter (cnr\commands\cmd_twitter.pwn)
// #define SERVER_TWITTER_FEED_URL "files.sfcnr.com/cnr_twitter.php" // used for /twitter (cnr\commands\cmd_twitter.pwn)
#define SERVER_HELP_API_URL "sfcnr.com/api/player/help" // used for /help (cnr\commands\cmd_help.pwn)
#define SERVER_CHANGES_DIRECTORY "changelogs/cnr" // used for /changes (cnr\changelog.pwn)
#define SERVER_PLS_DONATE_MP3 "http://files.sfcnr.com/game_sounds/pls_donate.mp3" // used for advertising vip (cnr\features\vip\coin_market.pwn)
#define SERVER_MIGRATIONS_FOLDER "./gamemodes/irresistible/config/migrations/cnr/" // used for migrations checking (config\migrations\_migrations.pwn)
/* ** Hooks ** */

View File

@ -3224,7 +3224,7 @@ CMD:r( playerid, params[ ] )
new pID = p_PmResponder[ playerid ];
if ( IsPlayerServerMaintainer( pID ) && g_VipPrivateMsging && p_VIPLevel[ playerid ] < VIP_REGULAR ) {
return SendError( playerid, "You need to be V.I.P to PM this person, to become one visit "COL_GREY"donate.sfcnr.com" );
return SendError( playerid, "You need to be V.I.P to PM this person, to become one discuss with admins" );
}
if ( p_BlockedPM[ playerid ] [ pID ] == true ) {
@ -3268,7 +3268,7 @@ CMD:pm( playerid, params[ ] )
else
{
if ( IsPlayerServerMaintainer( pID ) && g_VipPrivateMsging && p_VIPLevel[ playerid ] < VIP_REGULAR ) {
return SendError( playerid, "You need to be V.I.P to PM this person, to become one visit "COL_GREY"donate.sfcnr.com" );
return SendError( playerid, "You need to be V.I.P to PM this person, to become one discuss with admins" );
}
if ( p_BlockedPM[ playerid ] [ pID ] == true ) {
@ -5485,7 +5485,7 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
}
if ( p_VIPLevel[ playerid ] < VIP_GOLD && listitem == MENU_SPECIAL ) {
SendError( playerid, "You are not Gold V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" );
SendError( playerid, "You are not Gold V.I.P, to become one discuss with admins" );
return ShowAmmunationMenu( playerid, "{FFFFFF}Weapon Deal - Purchase Weapons", DIALOG_WEAPON_DEAL );
}

10
npcmodes/pawn.json Normal file
View File

@ -0,0 +1,10 @@
{
"user": "ChronosXYZ",
"repo": "sfcnr-npcmodes",
"tag": "0.0.1",
"entry": "secureguard.pwn",
"output": "secureguard.amx",
"dependencies": [
"pawn-lang/samp-stdlib"
]
}