Hello,
I'm basically going to try and create a login/register system for each new user that joins the server, but i'm having some difficulties in getting my head around the multiplayer aspect.
(I will be using mysql for this system; unfortunately, i haven't got any code to show yet).
I understand that player is each individual computer and therefore can be referenced to control that player.
However, I'm having some trouble getting the basic setup.
1. init.sqf - Is this called every time a player joins the server (/mission)? Would this be an appropriate place to check if the player has an account and then show a dialog with the necessary information?
2. Adding actions (addAction) - Where would this be placed? Again, would it be appropriate to place it in the init.sqf?
I've been glued to my computer reading tutorials all over the internet but i haven't really found any information which will help me (or if it did, i didn't understand :x).
Any help will be really appreciated.
Thanks,
Jamie.
Edit:
From a few days of messing around, i found out that init.sqf is called every time a player is joined and therefore can be used for functions such as addAction etc.
Not sure if its meant to be used in this way, but it works for me.