Français Solved Comment garder la nourriture des joueurs lors de leur déconnexion

26/4/20
70
0
300
Bonjour, comment faire pour que les joueurs il achète de la nourriture dès que il se déconnecte et il se reconnecte il garde leurs nourriture dans leurs inventaire quand il se reconnecte

Merci par avance
 
Solution
Hey, regarde dans ton Config_Master.hpp à la ligne 20 de base :

C++:
    save_virtualItems = true; //Save Virtual items (all sides)?
    saved_virtualItems[] = { "pickaxe","fuelEmpty","fuelFull", "spikeStrip", "lockpick", "defuseKit","storageSmall","storageBig","redgull","coffee","waterBottle","apple","peach","tbacon","donuts","rabbit","salema","ornate","mackerel","tuna","mullet","catshark","turtle_soup","hen","rooster","sheep","goat","defibrillator","toolkit" }; //Array of virtual items that can be saved on your player.

Tu peux mettre tout les objets virtuels que tu veux :)
Hey, regarde dans ton Config_Master.hpp à la ligne 20 de base :

C++:
    save_virtualItems = true; //Save Virtual items (all sides)?
    saved_virtualItems[] = { "pickaxe","fuelEmpty","fuelFull", "spikeStrip", "lockpick", "defuseKit","storageSmall","storageBig","redgull","coffee","waterBottle","apple","peach","tbacon","donuts","rabbit","salema","ornate","mackerel","tuna","mullet","catshark","turtle_soup","hen","rooster","sheep","goat","defibrillator","toolkit" }; //Array of virtual items that can be saved on your player.

Tu peux mettre tout les objets virtuels que tu veux :)
 
Solution
Bonjourn non ce n'est pas sa le problème c'est que sa sauvegarde pas la nourriture des joueurs quand il se deconnecte et reco sa sauvegarde pas la nourriture