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

[CSGO] Only round during the round use.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BombaciMulayim
Junior Member
Join Date: Jan 2017
Old 02-26-2017 , 13:45   [CSGO] Only round during the round use.
Reply With Quote #1

fck

Last edited by BombaciMulayim; 12-17-2017 at 18:42.
BombaciMulayim is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 02-26-2017 , 14:15   Re: [CSGO] Only round during the round use.
Reply With Quote #2

What?
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
BombaciMulayim
Junior Member
Join Date: Jan 2017
Old 02-26-2017 , 14:30   Re: [CSGO] Only round during the round use.
Reply With Quote #3

lel

Last edited by BombaciMulayim; 12-17-2017 at 18:43.
BombaciMulayim is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 02-26-2017 , 14:38   Re: [CSGO] Only round during the round use.
Reply With Quote #4

Use of what? Button, Buy Menu? There are a lot of things you can use the "Use" button on. Bomb, Items, Taking the bomb off the bot?
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
BombaciMulayim
Junior Member
Join Date: Jan 2017
Old 02-26-2017 , 14:47   Re: [CSGO] Only round during the round use.
Reply With Quote #5

Command ex: sm_jackpot
BombaciMulayim is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 02-27-2017 , 11:19   Re: [CSGO] Only round during the round use.
Reply With Quote #6

afaik there is no plugin that will restrict an existing command for per round use.
You have to edit the plugin (sm_jackpot).
You must set an an counter on command & check for this count on command. Than reset the counter on roundstart
__________________
coding & free software
shanapu is offline
potatoz
AlliedModders Donor
Join Date: Nov 2016
Old 02-27-2017 , 14:11   Re: [CSGO] Only round during the round use.
Reply With Quote #7

Mixed this up real quick, not tested but feel free to give it a try

PHP Code:
int CommandUsed 0;
ConVar sm_commandlimit_cmd null;

public 
OnPluginStart() 

// Hook round start
HookEvent("round_start"OnRoundStartEventHookMode_PostNoCopy);

// Create Convar and Config for easy Customization
sm_commandlimit_cmd CreateConVar("sm_commandlimit_cmd""sm_commandhere""Command to limit (This is currently limited to one command)");
AutoExecConfig(true"plugin_commandlimit");

// Add listener for specified command
new String:command[100];
GetConVarString(sm_commandlimit_cmdcommandsizeof(command));

AddCommandListener(Command_Limitcommand);


public 
OnRoundStart(Handle:event, const String:name[], bool:dontBroadcast

CommandUsed 0;
}

public 
Action:Command_Limit(client, const String:command[], argc)
{    
    if(
CommandUsed == 1)
        return 
Plugin_Handled;
    
    
CommandUsed 1;
    return 
Plugin_Continue;

Attached Files
File Type: sp Get Plugin or Get Source (commandlimit.sp - 273 views - 1.1 KB)
__________________
potatoz is offline
BombaciMulayim
Junior Member
Join Date: Jan 2017
Old 02-27-2017 , 16:16   Re: [CSGO] Only round during the round use.
Reply With Quote #8

Thanks man
BombaciMulayim is offline
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 14:05.


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