alexnita3 / GalaxyRP

GNU General Public License v2.0
5 stars 3 forks source link

Add client version check #74

Closed TriForceX closed 2 years ago

TriForceX commented 3 years ago

The mod should have a client version check to let the server admins and players be warned if a player is not running the same version as the server, this is usually intended to let the players get the latest version of the mod (or the same as the one used by the server) so they can prevent issues, bugs, and other things caused by a different code, it can be useful too if a player has a mod newer than the server, so they can warn the server admins that theres a new version.

i would suggest a cvar for that, like g_clientRequired where: 0 = Disable 1 = Alert players without the mod or different mod version (Just a warning on client begin) 2 = Same as option 1 but it force (and keep them) into spectator mode

alexnita3 commented 3 years ago

I like this, a small suggestion for if the car is set to 2.

A client print should be displayed to the user perhaps, saying something along the lines of:

"You have been forced into spectator mode because your client isn't up to date. Please update from galaxyrp.uk"

TriForceX commented 3 years ago

I like this, a small suggestion for if the car is set to 2.

A client print should be displayed to the user perhaps, saying something along the lines of:

"You have been forced into spectator mode because your client isn't up to date. Please update from galaxyrp.uk"

yes of course, we can change the text, but is intented to be a center-print message. in my mod looks like this if you dont have the client: imagen

if you have an different client looks like this: imagen

alexnita3 commented 3 years ago

Yup, exactly that

TriForceX commented 2 years ago

this is done and working image