Untitled
unknown
plain_text
2 years ago
12 kB
10
Indexable
else if (actual_command.substr(0, 6) == "/give " && pInfo(peer)->dev) { vector<string> a_ = explode(" ", cmd); if (a_.size() != 3) return; if (not isdigit(a_[1][0]) or not isdigit(a_[2][0])) return; int i_ = atoi(a_[1].c_str()), c_ = atoi(a_[2].c_str()); if (i_ <= 0 or c_ <= 0 or i_ >= items.size()) return; if (items[i_].name.find("Key") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`4You can't get this."); s.CreatePacket(peer); return; } if (items[i_].name.find("Seed") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`4You can't get this."); s.CreatePacket(peer); return; } if (items[i_].name.find("Legendary") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`4You can't get this."); s.CreatePacket(peer); return; } if (items[i_].name.find("Rayman") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`4You can't get this."); s.CreatePacket(peer); return; } if (items[i_].name.find("Token") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`4You can't get this."); s.CreatePacket(peer); return; } if (!glist(pInfo(peer)->tankIDName)) { if (items[i_].name.find("Key") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Inviso") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("MAGPLANT") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Crystal Angel") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("MAGPLANT") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Potion") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Growtoken") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Pot") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Rayman") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Main ") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Seed") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Infused") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Venom") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Ore") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("null_item") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Token") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Gearbox") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Canvas") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Crate") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Cashback") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Dark Stone") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Focus") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find(" Lock") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Phoenix") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (i_ == 8372) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Legendary") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Persia") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Wand") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Calendar") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Rift") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Space") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Tape") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Golden") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Nightmare") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Subscription") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Da Vinci") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Neptune") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Legend") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Julep") != string::npos || items[i_].name.find("Growpeep") != string::npos || items[i_].name.find("Ultraviolet") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } if (items[i_].name.find("Eagle") != string::npos || items[i_].name.find("Mooncake") != string::npos || items[i_].name.find("WOTD") != string::npos || items[i_].name.find("Growie") != string::npos || items[i_].name.find("Autumn") != string::npos || items[i_].name.find("Blood") != string::npos) { gamepacket_t s; s.Insert("OnConsoleMessage"); s.Insert("`5You need Give License to get this, contact with Woozie for purchase!."); s.CreatePacket(peer); return; } } gamepacket_t p; p.Insert("OnConsoleMessage"); if (modify_inventory(peer, i_, c_) == -1) p.Insert("Failed to add inventory item"); else p.Insert("Collected `w" + a_[2] + " " + items[i_].name + "``." + (items[i_].rarity > 363 ? "" : " Rarity: `w" + to_string(items[i_].rarity) + "``") + ""); p.CreatePacket(peer); }
Editor is loading...
Leave a Comment