Make npc rec buildable
This commit is contained in:
parent
10f0f4b3ca
commit
ec5c770ba2
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
@ -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 );
|
||||
|
@ -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 ** */
|
||||
|
@ -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
10
npcmodes/pawn.json
Normal 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"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user