Sign in to follow this  
Mr_Chipss

Block Name Change

4 posts in this topic

Hello everyone ,

I am looking for a script that prevent people from changing their name. Example: If you join my server with the name : Tom Mitchel, and later you try to connect with another name, the server will return an "end of mission" saying that you need reconnect with your old name "Tom Mitchel" or contact an administrator. 

Soory for my bad english and I really hope you guys can help me for this.

Edited by Mr_Chipss

Share this post


Link to post
Share on other sites
Advertisement

I know it's possible, i've found Arma Life's scripts that can do that but i didn't manage to adapt them for exile mod.

 

Init.sqf

if(profileName != _this select 1) exitWith {  
	hint format["Votre ancien pseudonyme : %1",_this select 1];  
	[format["Pour pouvoir rejoindre le serveur, veuillez remettre votre précédent pseudonyme !<br/><br/>Votre ancien pseudo : <t color='#b20303'>%1</t><br/><br/>Si vous avez des problèmes pour changer votre pseudo, publiez un message sur le forum <t color='#665bff'>watch-games.fr/forum</t>", _this select 1], "Changement de pseudo", "J'ai compris !"] call BIS_fnc_guiMessage;  
	["NameExists",false,false] call BIS_fnc_endMission;  
};

description.ext

class NameExists  
{  
	title = "Pseudo inconnu";  
	subTitle = "";  
	description = "Pour rejoindre le serveur, remettez votre ancien pseudonyme ! Ou postez un message sur le forum pour demander le changement de celui-ci.";  
	pictureBackground = "";  
	picture = "";  
	pictureColor[] = {0,0.3,0.6,1};  
};  

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.