i want script Origins EE Give player money after finish
-
Hello guys i want script that do after i finish the EE give all player in the server money in bank file
i use a bank that save player's money on /file/bank-> then Here all Guid players like 54309.txt
inside the txt files is player's moneyEdit: i dont have experience on gsc
-
All players who participated in said easter egg or the entire file?
-
asunaqq just the player that finish the easter egg
-
Do you have a function that determines when an easter egg is completed?
-
asunaqq i saw someone in want same as me but he did it see this post
-
That's the entire script though, no?
easterEggComplete() { level endon("end_game"); level waittill("tomb_sidequest_complete"); players = getPlayers(); foreach (player in players) { guid = player getGuid(); path = "bank/" + guid + ".txt"; if (fileExists(path)) { player.pers["bank"] = int(player.pers["bank"]) + 250000; player updateBankValue(player.pers["bank"]); player tell("^2$^7" + valueToString(250000) + " deposited for finishing EE"); } } }Credits to notpiratecantfly for basically the entire script just a small modification added
-
That's the entire script though, no?
easterEggComplete() { level endon("end_game"); level waittill("tomb_sidequest_complete"); players = getPlayers(); foreach (player in players) { guid = player getGuid(); path = "bank/" + guid + ".txt"; if (fileExists(path)) { player.pers["bank"] = int(player.pers["bank"]) + 250000; player updateBankValue(player.pers["bank"]); player tell("^2$^7" + valueToString(250000) + " deposited for finishing EE"); } } }Credits to notpiratecantfly for basically the entire script just a small modification added
asunaqq i got errors

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login