View Single Post
Koax
New Member
Join Date: Aug 2018
Old 08-19-2018 , 16:19   Re: [CS:S/CS:GO] GunGame
Reply With Quote #5130

Hey everyone monitoring this thread/plugin.

Unfortunately, it seems the original author of this mod hasn't be online for a long time, but I'd really love to have it updated with the newest weapons - including the brand new MP5.

Also, I'd like to change som scripts, but not sure how to do it? Tried changing 2 .sp scripts, but I can't compile them? Anyone with knowledge of this?
- info of what I want changed is:

1st thing: I would love to have the welcome message changed to "Welcome to Makralles GunGame Server"

2nd thing: I want molotovs as warmupnades, instead of HEgrenades.

I changed these 2 files (Green text is what a changed):
menu.sp
Code:
/* Move into a real menu */
ShowJoinMsgPanel(client)
{
    SetGlobalTransTarget(client);
    decl String:text[256];
    new Handle:faluco = CreatePanel(), Count;

    Format(text, sizeof(text), "%t", "JoinPanel: Welcome to Makralles GunGame Server");]
    SetPanelTitle(faluco, text);
    DrawPanelText(faluco, BLANK_SPACE);


util.sp
Code:
UTIL_GiveWarmUpWeapon(client) {
    UTIL_ForceDropAllWeapon(client, false);

    if (WarmupRandomWeaponMode) {   
        if (WarmupRandomWeaponMode == 1 || WarmupRandomWeaponMode == 2) {
            if (WarmupRandomWeaponLevel == -1) {
                WarmupRandomWeaponLevel = UTIL_GetRandomInt(0, WeaponOrderCount-1);
            }
            UTIL_GiveNextWeapon(client, WarmupRandomWeaponLevel);
        } else if (WarmupRandomWeaponMode == 3) {
            UTIL_GiveNextWeapon(client, UTIL_GetRandomInt(0, WeaponOrderCount-1));
        }
        return;
    }

    new bool:nades = bool:WarmupNades;
    new bool:wpn = g_Cfg_WarmupWeapon && !(g_WeaponLevelIndex[g_Cfg_WarmupWeapon] == g_WeaponLevelIdKnife);

    if (nades) {
        GivePlayerItemWrapper(client, g_WeaponName[g_WeaponIdMolotov]);
        if (!wpn) {
            FakeClientCommand(client, "use %s", g_WeaponName[g_WeaponIdMolotov];
        }
    }
    if (wpn) {
        GivePlayerItemWrapper(client, g_WeaponName[g_Cfg_WarmupWeapon]);
        FakeClientCommand(client, "use %s", g_WeaponName[g_Cfg_WarmupWeapon]);
    }

    if (!nades && !wpn) {
        FakeClientCommand(client, "use %s", g_WeaponName[g_WeaponIdKnife]);
    }
}
All help will be extremely appreciated!
Thanks in advance.

Best Regards
Kevin Agerskov

Last edited by Koax; 08-20-2018 at 14:01.
Koax is offline