Recent posts

#51
Snippet Showroom / When class condition judgment
Last post by PSL - Oct 16, 2025, 03:17 PM
This Squirrel code defines the `When` class and `when` function, enabling conditional logic functionality. The `When` class includes methods like `is` (equal to) and `isNot` (not equal to). If conditions are met, corresponding actions are executed and results are recorded, with only the first matching action triggered. Otherwise, all non-matching cases are handled, and the final result is returned.

class When {
    value = null;
    found = false;
    result = null;

    constructor(value) {
        this.value = value;
    }

    function is(expected, action) {
        if (!found && value == expected) {
            found = true;
            result = action();
        }
        return this;
    }

    function isNot(expected, action) {
        if (!found && value != expected) {
            found = true;
            result = action();
        }
        return this;
    }

    function isType(typeName, action) {
        if (!found && typeof value == typeName) {
            found = true;
            result = action();
        }
        return this;
    }

    function isNull(action) {
        if (!found && value == null) {
            found = true;
            result = action();
        }
        return this;
    }

    function inRange(min, max, action) {
        if (!found && value >= min && value <= max) {
            found = true;
            result = action();
        }
        return this;
    }

    function match(condition, action) {
        if (!found && condition(value)) {
            found = true;
            result = action();
        }
        return this;
    }

    function otherwise(action) {
        if (!found) {
            result = action();
        }
        return result;
    }
}

function when(value) {
    return When(value);
}

Here is an example
local x = 65;
local result = when(x)
    .isNull(@()"is Null")
    .isType("float", @()"Not Float")
    .is(100, @()"Max")
    .inRange(0, 35, @()"0~35")
    .inRange(35, 70, @()"35~70")
    .match(@(v) v * 2 > 150 && v < 80, @()"75~80")
    .otherwise(@()">80");

print(result); // out 0~35
#52
General Discussion / Re: MEGAMIND'S VCMP BROWSER
Last post by MEGAMIND - Oct 15, 2025, 10:27 AM

🎉 Big News! 🎉

🚀 MEGAMIND's VCMP Browser is now officially available on the Microsoft Store!

Experience the fastest, smoothest way to browse, connect, and play VC:MP — now easier than ever to install and update through the Microsoft Store.

🟦 Download now and enjoy seamless access, automatic updates, and a modern interface built for the community!

👉 Get it on Microsoft Store


Thank you to everyone who supported the project
#53
General Discussion / Re: MEGAMIND'S VCMP BROWSER
Last post by MEGAMIND - Oct 09, 2025, 11:15 AM
Update:
VCMP Browser for win 7 updater url bug fixed, The updater url was dead due to host transfer issue.. its now resolved

Note:
It is to be re-cleared again that browser doesnt rely on official vcmp browser at all..!

The issue was noticed due to Kyber7 response...! on discord

Users on win 7 build of the browser are required to Re-Download from Website
#54
General Discussion / Re: MEGAMIND'S VCMP BROWSER
Last post by MEGAMIND - Oct 07, 2025, 04:04 PM




Features
  • Added custom UI css (users can desing there own ui now)

Note:
Requires css coding knowledge to make your own ui...
Devs can do it easily ofc  ;)
To modify the custom css ui file, you have to navigate to thisC:\Users\hp\AppData\Local\VCMP_Browser\app-1.7.2\resources\extraResources\file\style.css path and edit it..!

where app-1.7.2 is app version....

In future updates ill try to make it happen in browser automatically instead of manualy modifying the file, though you can make ur master piece and share
with your freinds too..!

The best one who shows the master piece can get a chance to get added to browser officialy... with the default themes

Update your browsers to stable release (Recomended)

Note: Windows 7 users can download it from website manually

Those who have the browser already installed will get a update automatically, those who are new to this browser can download and install the latest update
#55
General Discussion / Re: MEGAMIND'S VCMP BROWSER
Last post by MEGAMIND - Oct 07, 2025, 07:31 AM


Features
  • Uninstaller bug fixed (due to previous update)

Update your browsers to stable release (Recomended)

Note: Windows 7 users can download it from website manually

Those who have the browser already installed will get a update automatically, those who are new to this browser can download and install the latest update
#56
General Discussion / Re: MEGAMIND'S VCMP BROWSER
Last post by MEGAMIND - Oct 06, 2025, 02:51 PM




Features
  • Added Favourites / Bookmark system

Note
Each hostname or row will contain a star (by default white -> Transparent in terms) when clicked, it turns yellow, means its in your favourities list.. When ever you open the browser your favourite servers will show pined at first before everyother server..!

Update your browsers to stable release (Recomended)

Note: Windows 7 users can download it from website manually

Those who have the browser already installed will get a update automatically, those who are new to this browser can download and install the latest update

#57
Servers / Re: Grand Theft Auto Karachi C...
Last post by KazamaOp - Oct 05, 2025, 08:23 AM
Hello everyone,

We are happy to announce that GTA Karachi City is officially back online! After some downtime and fixes, the server is running again and ready for players.

🔹 Server Name: GTA Karachi City
🔹 Gamemode: Deathmatch / Roleplay / Minigames
🔹 Owners: ShaDoW_ReaPeR & ZainGameplayKazamaPC & Dark_HunTer & MalikGT

✅ Bugs fixed
✅ Stability improved
✅ New updates coming soon

Join us and be part of Karachi City once again!
NEW IP: 208.87.131.101:30030
NEW DISCORD SERVER: https://discord.gg/E4PH6K3t3S
#58
Script Showroom / Re: Next-Level Anti-Death Evas...
Last post by KazamaOp - Oct 04, 2025, 06:24 PM
Nice
#59
Server & Plugin Updates / Re: Server Update 0.4.7.1 Rel...
Last post by Rafael - Oct 02, 2025, 06:53 PM
It is very important for the history, as well as for popularization, to make a full pack of a fun server and client for everyone
#60
Script Showroom / Re: Next-Level Anti-Death Evas...
Last post by PLAYER - Sep 28, 2025, 03:20 AM
Appreciate it  8)