Hi guys,
Some friends and me are trying to create a roleplay dayz server. We want to add custom skins, especially for military groups/factions. With rMod, we manage to add custom skins by editing the database ("CharacterData" >> "Model").
Now, we want to do this automatically for new players and for players who change faction. We want to use the username of the player to do this.
I think I have to edit the file "dayz_server" >> "compile" >> "server_playerLogin.sqf" and add something like this :
Unfortunately, this doesn't work at all (with real tag and real classname for the model). I'm kick from the game with the message "Something went wrong, please logoff and try again blablabla". I also try if(_playerName == "[MyTag] MyName") but it doesn't work too.
Do you know how to do this ?
I usually use Java and PHP so I'm a bit confused with SQF programming...
If you have the answer, I will edit this post so everyone will be able to find the solution here.
Some friends and me are trying to create a roleplay dayz server. We want to add custom skins, especially for military groups/factions. With rMod, we manage to add custom skins by editing the database ("CharacterData" >> "Model").
Now, we want to do this automatically for new players and for players who change faction. We want to use the username of the player to do this.
I think I have to edit the file "dayz_server" >> "compile" >> "server_playerLogin.sqf" and add something like this :
Code:
if (_playerName -match "^[MyFactionTag]*") {
_model = "MyModel";
}
Unfortunately, this doesn't work at all (with real tag and real classname for the model). I'm kick from the game with the message "Something went wrong, please logoff and try again blablabla". I also try if(_playerName == "[MyTag] MyName") but it doesn't work too.
Do you know how to do this ?
I usually use Java and PHP so I'm a bit confused with SQF programming...
If you have the answer, I will edit this post so everyone will be able to find the solution here.