11.12.2015, 09:34
This is basically how the system is set up, it saves these values to a .ini for each player. Up until now, I have had to manually enter a value into the .ini file to set an admin level. I'd like to be able to do it VIA a cmd in game.
enum PlayerInfo
{
Pass[129], //User's password
Adminlevel, //User's admin level
VIPlevel, //User's vip level
Money, //User's money
Scores, //User's scores
Kills, //User's kills
Deaths //User's deaths
}
new pInfo[MAX_PLAYERS][PlayerInfo]; /*This will create a new variable so we can later use it to saving/loading user's info.*/
All I want to know is how to /setlevel a player in game. I use izcmd.
So, for example, if I were to do "/setlevel NAME/ID 3", it would set the player's Adminlevel to 3.
Thanks ahead of time for your assistance!
enum PlayerInfo
{
Pass[129], //User's password
Adminlevel, //User's admin level
VIPlevel, //User's vip level
Money, //User's money
Scores, //User's scores
Kills, //User's kills
Deaths //User's deaths
}
new pInfo[MAX_PLAYERS][PlayerInfo]; /*This will create a new variable so we can later use it to saving/loading user's info.*/
All I want to know is how to /setlevel a player in game. I use izcmd.
So, for example, if I were to do "/setlevel NAME/ID 3", it would set the player's Adminlevel to 3.
Thanks ahead of time for your assistance!