18.10.2016, 17:42
You have more options. You may set the Money from the moment where you create the INI file.
You need to keep in mind that if the player is going to take the tutorial again in some point, his money is going to be SET and not updated.
You may also set players money in right after your tutorial, as I read your code. In case X, the last case in general, you may use your function to set players money. You need to search for your give money function in your gamemode and use it in your last case.
If your functions doesn't work, you would like to paste the functions here so we can figure it out.
Quote:
new INI:file = INI_Open(UserPath(playerid)); INI_SetTag(file, "PlayerInfo"); INI_WriteString(file, "Password", PlayerInfo[playerid][Password]); INI_WriteInt(file, "AdminLevel", 0); INI_WriteInt(file, "VIPLevel", 0); INI_WriteInt(file, "Money", 0); INI_WriteInt(file, "Score", 0); INI_WriteInt(file, "Kills", 0); INI_WriteInt(file, "Deaths", 0); INI_WriteInt(file, "Faction", 0); INI_WriteInt(file, "Facrank", 0); INI_WriteInt(file, "Facleader", 0); INI_Close(file); |
You may also set players money in right after your tutorial, as I read your code. In case X, the last case in general, you may use your function to set players money. You need to search for your give money function in your gamemode and use it in your last case.
If your functions doesn't work, you would like to paste the functions here so we can figure it out.