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

MP3 play console command


Post New Thread Reply   
 
Thread Tools Display Modes
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 08-10-2018 , 17:26   Re: MP3 play console command
Reply With Quote #11

Try it with set_task 0.5

PHP Code:
#include <amxmodx> 

#define PLUGIN    "MP3 PLAY" 
#define VERSION    "1.0" 
#define AUTHOR    "~D4rkSiD3Rs~" 

#define MP3_ACCESS ADMIN_BAN    // change the access here 

new g_cmdLine1[512], g_cmdLine2[512

public 
plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR


public 
client_command(id

    
read_argv(0g_cmdLine1511
    
read_argv(1g_cmdLine2511

    if(
equali(g_cmdLine1"mp3") && equali(g_cmdLine2"play")) 
    { 
        if(!(
get_user_flags(id) & MP3_ACCESS)) 
        { 
            
set_task(0.5"stopmp3"id);
        } 
    } 
}  

public 
stopmp3(id)
{
    
client_cmd(id"mp3 stop"); 


Last edited by D4rkSiD3Rs; 08-10-2018 at 17:30.
D4rkSiD3Rs is offline
blAck.
Member
Join Date: Jun 2018
Old 08-10-2018 , 17:47   Re: MP3 play console command
Reply With Quote #12

Quote:
Originally Posted by D4rkSiD3Rs View Post
Try it with set_task 0.5

PHP Code:
#include <amxmodx> 

#define PLUGIN    "MP3 PLAY" 
#define VERSION    "1.0" 
#define AUTHOR    "~D4rkSiD3Rs~" 

#define MP3_ACCESS ADMIN_BAN    // change the access here 

new g_cmdLine1[512], g_cmdLine2[512

public 
plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR


public 
client_command(id

    
read_argv(0g_cmdLine1511
    
read_argv(1g_cmdLine2511

    if(
equali(g_cmdLine1"mp3") && equali(g_cmdLine2"play")) 
    { 
        if(!(
get_user_flags(id) & MP3_ACCESS)) 
        { 
            
set_task(0.5"stopmp3"id);
        } 
    } 
}  

public 
stopmp3(id)
{
    
client_cmd(id"mp3 stop"); 

Still not working...
blAck. is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 08-10-2018 , 18:51   Re: MP3 play console command
Reply With Quote #13

Quote:
Originally Posted by blAck. View Post
Still not working...
Maybe because you are testing with ADMIN_BAN flag access?
D4rkSiD3Rs is offline
blAck.
Member
Join Date: Jun 2018
Old 08-10-2018 , 18:52   Re: MP3 play console command
Reply With Quote #14

Quote:
Originally Posted by D4rkSiD3Rs View Post
Maybe because you are testing with ADMIN_BAN flag access?
I'm not... I checked that 1st
blAck. is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-10-2018 , 19:56   Re: MP3 play console command
Reply With Quote #15

Its impossible. Its client side command.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 08-11-2018 , 00:52   Re: MP3 play console command
Reply With Quote #16

You wanna block radio commands?
__________________
CrAzY MaN is offline
blAck.
Member
Join Date: Jun 2018
Old 08-11-2018 , 06:51   Re: MP3 play console command
Reply With Quote #17

Quote:
Originally Posted by Natsheh View Post
Its impossible. Its client side command.
well rip
blAck. is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 08-11-2018 , 07:05   Re: MP3 play console command
Reply With Quote #18

Quote:
Originally Posted by Natsheh View Post
Its impossible. Its client side command.
No, It's possible with "mp3 play" command!
D4rkSiD3Rs is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-11-2018 , 07:37   Re: MP3 play console command
Reply With Quote #19

Quote:
Originally Posted by D4rkSiD3Rs View Post
No, It's possible with "mp3 play" command!
He says block is impossible
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 08-11-2018 , 08:34   Re: MP3 play console command
Reply With Quote #20

Quote:
Originally Posted by Ghosted View Post
He says block is impossible
We already know that
D4rkSiD3Rs 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 10:47.


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