Raised This Month: $51 Target: $400
 12% 

Freeze Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sheeran
Junior Member
Join Date: Apr 2017
Old 04-10-2017 , 11:33   Freeze Time
Reply With Quote #1

Hello i want one plugin to freeze only ct's and block any action of them example attack, move mouse etc...

Last edited by Sheeran; 04-10-2017 at 11:36.
Sheeran is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-10-2017 , 11:45   Re: Freeze Time
Reply With Quote #2

That's slowhacking...
__________________
edon1337 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-10-2017 , 11:46   Re: Freeze Time
Reply With Quote #3

No, it's not. With FL_FROZEN you can do this.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-10-2017 , 11:47   Re: Freeze Time
Reply With Quote #4

Quote:
Originally Posted by Sheeran View Post
move mouse
__________________
edon1337 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-10-2017 , 11:53   Re: Freeze Time
Reply With Quote #5

Yes, FL_FROZEN
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 04-10-2017 , 13:45   Re: Freeze Time
Reply With Quote #6

try this:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "Team Freeze"
#define VERSION "1.0"
#define AUTHOR "M249-M4A1"
// alka is teh sexy man

new gTeamFreeze, gFreezeTime, gFreezeTeam

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_event("HLTV", "eRoundStart", "a", "1=0", "2=0")
    
    // Change the CVAR "freeze_team" to "0" to disable this plugin
    gTeamFreeze = register_cvar("freeze_team_enabled", "1")
    // 10.0 is how many seconds to freeze the player
    gFreezeTime = register_cvar("freeze_time", "10.0")
    // team 1 = terrorist, team 2 = counter-terrorist
    gFreezeTeam = register_cvar("freeze_team", "2")
}

public eRoundStart() {
    // This set_task is necessary
    if (get_pcvar_num(gTeamFreeze) > 0) {
        set_task(get_cvar_num("mp_freezetime") + 0.1, "FreezeTeam")
    }
}

public FreezeTeam() {
    new players[32], totalplayers, player
    get_players(players, totalplayers)
    
    for (new i = 0; i < totalplayers; i++)
    {
        player = players[i]
        if (get_user_team(player) == get_pcvar_num(gFreezeTeam)) {
            client_print(player, print_chat, "[AMXX] Your team is currently frozen for %i seconds.", get_pcvar_num(gFreezeTime))
            set_pev(player, pev_flags, pev(player, pev_flags) | FL_FROZEN)
        }
    }
    set_task(float(get_pcvar_num(gFreezeTime)), "UnFreezeTeam", 6291)
}

public UnFreezeTeam() {
    new players[32], totalplayers, player
    get_players(players, totalplayers)
    
    for (new i = 0; i < totalplayers; i++)
    {
        player = players[i]
        if (get_user_team(player) == get_pcvar_num(gFreezeTeam)) {
            client_print(player, print_chat, "[AMXX] Your team is no longer frozen.")
            set_pev(player, pev_flags, pev(player, pev_flags) & ~FL_FROZEN)
        }
    }
}
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
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 11:04.


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