SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 21/10/2019, 07:29 PM   #1
Vizi10
Huge Clucker
 
Join Date: May 2017
Location: Iran
Posts: 212
Reputation: 7
Question Server info rule/value

How to add the one rule/value into sa-mp server info?
I saw in the some sa-mp servers the rule/value info had changed.


https://i.imgur.com/TVnzmqZ.png
for example add one rule after worldtime..
Vizi10 is offline   Reply With Quote
Old 21/10/2019, 07:34 PM   #2
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 319
Reputation: 12
Default Re: Server info rule/value

Not sure exactly what you want, or if it's even completely possible.
However, most (if not all) the different info can be changed in the server.cfg file.
You can find info about this here: https://wiki.sa-mp.com/wiki/Server.cfg

Some things like worldtime won't be changed even if you change it in server.cfg, you must use a function (e.g. SetWorldTime)

More information please?
__________________
Developer @ Trucknation
Administrator & Developer @ Lost Legacy
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
Proxus is offline   Reply With Quote
Old 21/10/2019, 07:41 PM   #3
Vizi10
Huge Clucker
 
Join Date: May 2017
Location: Iran
Posts: 212
Reputation: 7
Default Re: Server info rule/value

will, when i add sampcac.xyz anticheat to my server the one rule created in server info:

https://i.imgur.com/iyoP4HI.png
Vizi10 is offline   Reply With Quote
Old 21/10/2019, 08:03 PM   #4
Calisthenics
Gangsta
 
Join Date: May 2018
Posts: 717
Reputation: 129
Default Re: Server info rule/value

YSF plugin: https://forum.sa-mp.com/showthread.php?t=513499

Server rule modifications
pawn Code:
native AddServerRule(const name[], const value[], E_SERVER_RULE_FLAGS:flags = CON_VARFLAG_RULE);
native SetServerRule(const name[], const value[]);
native IsValidServerRule(const name[]);
native SetServerRuleFlags(const name[], E_SERVER_RULE_FLAGS:flags);
native E_SERVER_RULE_FLAGS:GetServerRuleFlags(const name[]);
Calisthenics is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rule Dialog yvoms Scripting Help 6 01/12/2015 10:01 PM
One command to rule them all. Da_Noob Scripting Help 2 21/01/2013 08:02 PM
new rule suggestion Mr.Fames Everything and Nothing 5 27/06/2012 03:15 PM
Against The Rule [PC]NAFIH Server Support 0 10/12/2011 09:56 PM


All times are GMT. The time now is 05:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.