Raised This Month: $ Target: $400
 0% 

[REQ] Muliple Plugins! (For CS)


Post New Thread Reply   
 
Thread Tools Display Modes
jeremyjohn
BANNED
Join Date: Jun 2009
Location: Malaysia
Old 06-17-2009 , 07:12   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #11

Anther platform like steam: www.garena.com
jeremyjohn is offline
Send a message via MSN to jeremyjohn
sila
Member
Join Date: Jun 2009
Location: Krusevac
Old 06-17-2009 , 09:00   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #12

Garena - GGC is VPN network and there are rooms for many games every room has 253-254 slots IPs and every game has many many rooms, they play DotA there in Local Area Network and its legal and for CS u play it in LAN with Garena VPN IP . So Garena is many VPN rooms and player can chat and have friends but can play together only if they are in same room - VPN 255.255.255.0 .

No. Garena is not like STEAM . Garena is VPN, but u can chat and have friends like STEAM. And when u play games based on time u get exp, when u play DotA at the end of the game u get exp and when u join some1 game they see ur level and if ur level is lower then 10 u got kicked also there are rooms for high level players >30 level . They make money there on Garena for golden membership i think so BOTs for battle.net and PvPGN Warcraft III game are not coded for garena and wont be but u can use BOTs on Garena because garena is VPN .
__________________

Last edited by sila; 06-17-2009 at 09:10.
sila is offline
Send a message via ICQ to sila Send a message via MSN to sila Send a message via Skype™ to sila
jeremyjohn
BANNED
Join Date: Jun 2009
Location: Malaysia
Old 06-17-2009 , 20:59   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #13

OK, back to the topic now.
This are the Progress:

no.1:
I still hope someone can create that plugin
no.2: I really really really really need some one to create that!
no.3: I will use the command thetime for now but if there's a pluging please let me know
no.4: If no one can create that than it's okay
no.5: I tried the Cheater Suspect plugin but it does not work for me
no.6: All solve, Thanks to you ppl!

no.7 and no.8:
is there anyone who know how to create these plugins?

Last edited by jeremyjohn; 06-17-2009 at 23:03.
jeremyjohn is offline
Send a message via MSN to jeremyjohn
jeremyjohn
BANNED
Join Date: Jun 2009
Location: Malaysia
Old 06-17-2009 , 22:49   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #14

no.3 all solve now....
I manage to edit the default AMX Mod X TimeLeft Plugin and added this code:
Code:
register_clcmd("say timeleft", "sayTimeLeft", 0, "- displays timeleft")
register_clcmd("say thetime", "sayTheTime", 0, "- displays current time")
register_clcmd("say time", "sayTheTime", 0, "- displays current time")
register_clcmd("say_team timeleft", "sayTimeLeft", 0, "- displays timeleft")
register_clcmd("say_team thetime", "sayTheTime", 0, "- displays current time")
register_clcmd("say_team time", "sayTheTime", 0, "- displays current time")
register_clcmd("say /timeleft", "sayTimeLeft", 0, "- displays timeleft")
register_clcmd("say /thetime", "sayTheTime", 0, "- displays current time")
register_clcmd("say /time", "sayTheTime", 0, "- displays current time")
register_clcmd("say_team /timeleft", "sayTimeLeft", 0, "- displays timeleft")
register_clcmd("say_team /thetime", "sayTheTime", 0, "- displays current time")
register_clcmd("say_team /time", "sayTheTime", 0, "- displays current time")
So i can view the time anytime with the command thetime, time and /time

Original Code:
Code:
#include <amxmodx>

new g_TimeSet[32][2]
new g_LastTime
new g_CountDown
new g_Switch

public plugin_init()
{
    register_plugin("TimeLeft", AMXX_VERSION_STR, "AMXX Dev Team")
    register_dictionary("timeleft.txt")
    register_cvar("amx_time_voice", "1")
    register_srvcmd("amx_time_display", "setDisplaying")
    register_cvar("amx_timeleft", "00:00", FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
    register_clcmd("say timeleft", "sayTimeLeft", 0, "- displays timeleft")
    register_clcmd("say thetime", "sayTheTime", 0, "- displays current time")
    time")
    
    set_task(0.8, "timeRemain", 8648458, "", 0, "b")
}

public sayTheTime(id)
{
    if (get_cvar_num("amx_time_voice"))
    {
        new mhours[6], mmins[6], whours[32], wmins[32], wpm[6]
        
        get_time("%H", mhours, 5)
        get_time("%M", mmins, 5)
        
        new mins = str_to_num(mmins)
        new hrs = str_to_num(mhours)
        
        if (mins)
            num_to_word(mins, wmins, 31)
        else
            wmins[0] = 0
        
        if (hrs < 12)
            wpm = "am "
        else
        {
            if (hrs > 12) hrs -= 12
            wpm = "pm "
        }

        if (hrs) 
            num_to_word(hrs, whours, 31)
        else
            whours = "twelve "
        
        client_cmd(id, "spk ^"fvox/time_is_now %s_period %s%s^"", whours, wmins, wpm)
    }
    
    new ctime[64]
    
    get_time("%m/%d/%Y - %H:%M:%S", ctime, 63)
    client_print(0, print_chat, "%L:   %s", LANG_PLAYER, "THE_TIME", ctime)
    
    return PLUGIN_CONTINUE
}

public sayTimeLeft(id)
{
    if (get_cvar_float("mp_timelimit"))
    {
        new a = get_timeleft()
        
        if (get_cvar_num("amx_time_voice"))
        {
            new svoice[128]
            setTimeVoice(svoice, 127, 0, a)
            client_cmd(id, "%s", svoice)
        }
        client_print(0, print_chat, "%L:  %d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60))
    }
    else
        client_print(0, print_chat, "%L", LANG_PLAYER, "NO_T_LIMIT")
    
    return PLUGIN_CONTINUE
}

setTimeText(text[], len, tmlf, id)
{
    new secs = tmlf % 60
    new mins = tmlf / 60
    
    if (secs == 0)
        format(text, len, "%d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE")
    else if (mins == 0)
        format(text, len, "%d %L", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
    else
        format(text, len, "%d %L %d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
}

setTimeVoice(text[], len, flags, tmlf)
{
    new temp[7][32]
    new secs = tmlf % 60
    new mins = tmlf / 60
    
    for (new a = 0;a < 7;++a)
        temp[a][0] = 0

    if (secs > 0)
    {
        num_to_word(secs, temp[4], 31)
        
        if (!(flags & 8)) 
            temp[5] = "seconds "    /* there is no "second" in default hl */
    }
    
    if (mins > 59)
    {
        new hours = mins / 60
        
        num_to_word(hours, temp[0], 31)
        
        if (!(flags & 8))
            temp[1] = "hours "
        
        mins = mins % 60
    }
    
    if (mins > 0)
    {
        num_to_word(mins, temp[2], 31)
        
        if (!(flags & 8))
            temp[3] = "minutes "
    }
    
    if (!(flags & 4))
        temp[6] = "remaining "
    
    return format(text, len, "spk ^"vox/%s%s%s%s%s%s%s^"", temp[0], temp[1], temp[2], temp[3], temp[4], temp[5], temp[6])
}

findDispFormat(time)
{
    for (new i = 0; g_TimeSet[i][0]; ++i)
    {
        if (g_TimeSet[i][1] & 16)
        {
            if (g_TimeSet[i][0] > time)
            {
                if (!g_Switch)
                {
                    g_CountDown = g_Switch = time
                    remove_task(8648458)
                    set_task(1.0, "timeRemain", 34543, "", 0, "b")
                }
                
                return i
            }
        }
        else if (g_TimeSet[i][0] == time)
        {
            return i
        }
    }
    
    return -1
}

public setDisplaying()
{
    new arg[32], flags[32], num[32]
    new argc = read_argc() - 1
    new i = 0

    while (i < argc && i < 32)
    {
        read_argv(i + 1, arg, 31)
        parse(arg, flags, 31, num, 31)
        
        g_TimeSet[i][0] = str_to_num(num)
        g_TimeSet[i][1] = read_flags(flags)
        
        i++
    }
    g_TimeSet[i][0] = 0
    
    return PLUGIN_HANDLED
}

public timeRemain(param[])
{
    new gmtm = get_timeleft()
    new tmlf = g_Switch ? --g_CountDown : gmtm
    new stimel[12]
    
    format(stimel, 11, "%02d:%02d", gmtm / 60, gmtm % 60)
    set_cvar_string("amx_timeleft", stimel)
    
    if (g_Switch && gmtm > g_Switch)
    {
        remove_task(34543)
        g_Switch = 0
        set_task(0.8, "timeRemain", 8648458, "", 0, "b")
        
        return
    }

    if (tmlf > 0 && g_LastTime != tmlf)
    {
        g_LastTime = tmlf
        new tm_set = findDispFormat(tmlf)
        
        if (tm_set != -1)
        {
            new flags = g_TimeSet[tm_set][1]
            new arg[128]
            
            if (flags & 1)
            {
                new players[32], pnum
                
                get_players(players, pnum, "c")
                
                for (new i = 0; i < pnum; i++)
                {
                    setTimeText(arg, 127, tmlf, players[i])
                    
                    if (flags & 16)
                        set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 1.1, 0.1, 0.5, -1)
                    else
                        set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, -1)
                    
                    show_hudmessage(players[i], "%s", arg)
                }
            }

            if (flags & 2)
            {
                setTimeVoice(arg, 127, flags, tmlf)
                client_cmd(0, "%s", arg)
            }
        }
    }
}
Added Code:
Code:
#include <amxmodx>

new g_TimeSet[32][2]
new g_LastTime
new g_CountDown
new g_Switch

public plugin_init()
{
    register_plugin("TimeLeft", AMXX_VERSION_STR, "AMXX Dev Team")
    register_dictionary("timeleft.txt")
    register_cvar("amx_time_voice", "1")
    register_srvcmd("amx_time_display", "setDisplaying")
    register_cvar("amx_timeleft", "00:00", FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
    register_clcmd("say timeleft", "sayTimeLeft", 0, "- displays timeleft")
    register_clcmd("say thetime", "sayTheTime", 0, "- displays current time")
    register_clcmd("say time", "sayTheTime", 0, "- displays current time")
register_clcmd("say_team timeleft", "sayTimeLeft", 0, "- displays timeleft")
register_clcmd("say_team thetime", "sayTheTime", 0, "- displays current time")
register_clcmd("say_team time", "sayTheTime", 0, "- displays current time")
register_clcmd("say /timeleft", "sayTimeLeft", 0, "- displays timeleft")
register_clcmd("say /thetime", "sayTheTime", 0, "- displays current time")
register_clcmd("say /time", "sayTheTime", 0, "- displays current time")
register_clcmd("say_team /timeleft", "sayTimeLeft", 0, "- displays timeleft")
register_clcmd("say_team /thetime", "sayTheTime", 0, "- displays current time")
register_clcmd("say_team /time", "sayTheTime", 0, "- displays current time")
    
    set_task(0.8, "timeRemain", 8648458, "", 0, "b")
}

public sayTheTime(id)
{
    if (get_cvar_num("amx_time_voice"))
    {
        new mhours[6], mmins[6], whours[32], wmins[32], wpm[6]
        
        get_time("%H", mhours, 5)
        get_time("%M", mmins, 5)
        
        new mins = str_to_num(mmins)
        new hrs = str_to_num(mhours)
        
        if (mins)
            num_to_word(mins, wmins, 31)
        else
            wmins[0] = 0
        
        if (hrs < 12)
            wpm = "am "
        else
        {
            if (hrs > 12) hrs -= 12
            wpm = "pm "
        }

        if (hrs) 
            num_to_word(hrs, whours, 31)
        else
            whours = "twelve "
        
        client_cmd(id, "spk ^"fvox/time_is_now %s_period %s%s^"", whours, wmins, wpm)
    }
    
    new ctime[64]
    
    get_time("%m/%d/%Y - %H:%M:%S", ctime, 63)
    client_print(0, print_chat, "%L:   %s", LANG_PLAYER, "THE_TIME", ctime)
    
    return PLUGIN_CONTINUE
}

public sayTimeLeft(id)
{
    if (get_cvar_float("mp_timelimit"))
    {
        new a = get_timeleft()
        
        if (get_cvar_num("amx_time_voice"))
        {
            new svoice[128]
            setTimeVoice(svoice, 127, 0, a)
            client_cmd(id, "%s", svoice)
        }
        client_print(0, print_chat, "%L:  %d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60))
    }
    else
        client_print(0, print_chat, "%L", LANG_PLAYER, "NO_T_LIMIT")
    
    return PLUGIN_CONTINUE
}

setTimeText(text[], len, tmlf, id)
{
    new secs = tmlf % 60
    new mins = tmlf / 60
    
    if (secs == 0)
        format(text, len, "%d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE")
    else if (mins == 0)
        format(text, len, "%d %L", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
    else
        format(text, len, "%d %L %d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
}

setTimeVoice(text[], len, flags, tmlf)
{
    new temp[7][32]
    new secs = tmlf % 60
    new mins = tmlf / 60
    
    for (new a = 0;a < 7;++a)
        temp[a][0] = 0

    if (secs > 0)
    {
        num_to_word(secs, temp[4], 31)
        
        if (!(flags & 8)) 
            temp[5] = "seconds "    /* there is no "second" in default hl */
    }
    
    if (mins > 59)
    {
        new hours = mins / 60
        
        num_to_word(hours, temp[0], 31)
        
        if (!(flags & 8))
            temp[1] = "hours "
        
        mins = mins % 60
    }
    
    if (mins > 0)
    {
        num_to_word(mins, temp[2], 31)
        
        if (!(flags & 8))
            temp[3] = "minutes "
    }
    
    if (!(flags & 4))
        temp[6] = "remaining "
    
    return format(text, len, "spk ^"vox/%s%s%s%s%s%s%s^"", temp[0], temp[1], temp[2], temp[3], temp[4], temp[5], temp[6])
}

findDispFormat(time)
{
    for (new i = 0; g_TimeSet[i][0]; ++i)
    {
        if (g_TimeSet[i][1] & 16)
        {
            if (g_TimeSet[i][0] > time)
            {
                if (!g_Switch)
                {
                    g_CountDown = g_Switch = time
                    remove_task(8648458)
                    set_task(1.0, "timeRemain", 34543, "", 0, "b")
                }
                
                return i
            }
        }
        else if (g_TimeSet[i][0] == time)
        {
            return i
        }
    }
    
    return -1
}

public setDisplaying()
{
    new arg[32], flags[32], num[32]
    new argc = read_argc() - 1
    new i = 0

    while (i < argc && i < 32)
    {
        read_argv(i + 1, arg, 31)
        parse(arg, flags, 31, num, 31)
        
        g_TimeSet[i][0] = str_to_num(num)
        g_TimeSet[i][1] = read_flags(flags)
        
        i++
    }
    g_TimeSet[i][0] = 0
    
    return PLUGIN_HANDLED
}

public timeRemain(param[])
{
    new gmtm = get_timeleft()
    new tmlf = g_Switch ? --g_CountDown : gmtm
    new stimel[12]
    
    format(stimel, 11, "%02d:%02d", gmtm / 60, gmtm % 60)
    set_cvar_string("amx_timeleft", stimel)
    
    if (g_Switch && gmtm > g_Switch)
    {
        remove_task(34543)
        g_Switch = 0
        set_task(0.8, "timeRemain", 8648458, "", 0, "b")
        
        return
    }

    if (tmlf > 0 && g_LastTime != tmlf)
    {
        g_LastTime = tmlf
        new tm_set = findDispFormat(tmlf)
        
        if (tm_set != -1)
        {
            new flags = g_TimeSet[tm_set][1]
            new arg[128]
            
            if (flags & 1)
            {
                new players[32], pnum
                
                get_players(players, pnum, "c")
                
                for (new i = 0; i < pnum; i++)
                {
                    setTimeText(arg, 127, tmlf, players[i])
                    
                    if (flags & 16)
                        set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 1.1, 0.1, 0.5, -1)
                    else
                        set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, -1)
                    
                    show_hudmessage(players[i], "%s", arg)
                }
            }

            if (flags & 2)
            {
                setTimeVoice(arg, 127, flags, tmlf)
                client_cmd(0, "%s", arg)
            }
        }
    }
}
I hope it's not illegal to make tiny adjustment in original plugins......
jeremyjohn is offline
Send a message via MSN to jeremyjohn
jeremyjohn
BANNED
Join Date: Jun 2009
Location: Malaysia
Old 06-18-2009 , 00:40   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #15

Plugins Request Progress:

Plugin
no.1: I still hope someone can create that plugin
Plugin no.2: I really really really really need some one to create that!
Plugin no.3: All solve, edited the timeleft.amxx plugin!
Plugin no.4: If no one can create that than it's okay
Plugin no.5: I tried the Cheater Suspect plugin but it does not work for me
Plugin no.6: All solve, Thanks to you people!
Plugin no.7: is there anyone who know how to create this plugin?
Plugin no.8: is there anyone who know how to create this plugin?
jeremyjohn is offline
Send a message via MSN to jeremyjohn
Old 06-18-2009, 22:02
jeremyjohn
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 08-16-2009 , 02:21   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #16

7.) use monster mod

Last edited by Anggara_nothing; 08-16-2009 at 02:44. Reason: lol :D
Anggara_nothing is offline
jeremyjohn
BANNED
Join Date: Jun 2009
Location: Malaysia
Old 08-21-2009 , 08:26   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #17

where can i get that?
jeremyjohn is offline
Send a message via MSN to jeremyjohn
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-21-2009 , 08:46   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #18

2. http://forums.alliedmods.net/showthread.php?p=436583
6. http://forums.alliedmods.net/showthread.php?p=206335
7. MonsterMod (google it)
__________________
xPaw is offline
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 08-21-2009 , 10:11   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #19

Here
https://forums.alliedmods.net/attach...9&d=1206497237
Anggara_nothing is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-21-2009 , 14:00   Re: [REQ] Muliple Plugins! (For CS)
Reply With Quote #20

It's still non-steam, why are you guys supporting it -.-
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode