updates rules function to be dialog based

This commit is contained in:
Damen 2019-04-17 19:36:02 -04:00
parent 64a089e024
commit 9c15082b3b
2 changed files with 17 additions and 1 deletions

View File

@ -45,6 +45,22 @@ stock ShowPlayerRules( playerid )
#pragma unused playerid #pragma unused playerid
return 1; return 1;
#else #else
format( szRules, sizeof( szRules ),
"1. Show respect to every player on the server, including obeying administrators, or you will be muted.\n
2. Do not spam or flood the chat, otherwise you will be muted.\n
3. Do not impersonate any, whether it's a player, administrator, or the owner. You will be banned.\n
4. Do not cast commands on a person repeatedly to annoy them.\n
5. If you're a law enforcement officer, do not assist criminals or you will be jailed.\n
6. Do not camp exteriors of buildings, spam rockets, OR spam your mini-gun at players with combat vehicles.\n
7. Using water-emitting vehicles and/or effect-emitting weapons on players is considered abuse.\n
8. You must park your personal vehicle near YOUR house portal OR in a parking lot, otherwise your vehicle will be moved OR deleted.\n
9. The scamming limit is $10,000. Scamming higher amounts will have your account banned and truncated.\n
10. Do not question other people's bans, it's not your business!\n
11. Do not farm money, XP, contracts, arrests, OR kills, doing so will result in a ban and truncation.\n
12. Report bugs and glitches to administration or on the forums. Do NOT abuse them or you will be banned.\n
13. Do not use any hacks!\n
14. Administration may suspend users unanimously so long as it is clearly evident and justified."
)
return ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "{FFFFFF}Rules", szRules, "Okay", "" ), 1; return ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "{FFFFFF}Rules", szRules, "Okay", "" ), 1;
#endif #endif
} }

View File

@ -18,7 +18,7 @@
#define SERVER_TWITTER "IrresistibleDev" #define SERVER_TWITTER "IrresistibleDev"
/* ** Comment line to disable feature ** */ /* ** 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_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_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_CHANGES_DIRECTORY "changelogs/cnr" // used for /changes (cnr\changelog.pwn)