AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help :| (https://forums.alliedmods.net/showthread.php?t=327236)

ZaKaRiAMaGh 09-07-2020 11:25

help :|
 
Hello guys !

first i wish you all better health

i want a plugin or a cmd for pause the music and unpause it ,please?

OciXCrom 09-07-2020 15:12

Re: help :|
 
What music?
Is this the plugin requests section?

ZaKaRiAMaGh 09-07-2020 15:41

Re: help :|
 
Quote:

Originally Posted by OciXCrom (Post 2717067)
What music?
Is this the plugin requests section?

tell me where is this " the plugin requests section "

Supremache 09-07-2020 16:15

Re: help :|
 
Quote:

Originally Posted by ZaKaRiAMaGh (Post 2717074)
tell me where is this " the plugin requests section "

You will find it in admincmd plugin

PHP Code:

public cmdPause(idlevelcid)
{
    if (!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED 
    
    
new authid[32], name[32], slayer id
    
    get_user_authid
(idauthid31
    
get_user_name(idname31
    if (
pausable!=0)
    {
        
g_pausAble get_pcvar_float(pausable)
    }
    
    if (!
slayer)
        
slayer find_player("h"
    
    if (!
slayer)
    { 
        
console_print(id"[AMXX] %L"id"UNABLE_PAUSE"
        return 
PLUGIN_HANDLED
    
}

    
set_cvar_float("pausable"1.0)
    
g_PauseAllowed true
    client_cmd
(slayer"pause;pauseAck")
    
    
log_amx("Cmd: ^"%s<%d><%s><>^" %s server"nameget_user_userid(id), authidg_Paused "unpause" "pause")
    
    
console_print(id"[AMXX] %L"idg_Paused "UNPAUSING" "PAUSING")

    
// Display the message to all clients

    
new maxpl get_maxplayers();
    for (new 
1<= maxpli++)
    {
        if (
is_user_connected(i) && !is_user_bot(i))
        {
            
show_activity_id(iidname"%L server"ig_Paused "UNPAUSE" "PAUSE");
        }
    }

    
g_pauseCon id
    
    
return PLUGIN_HANDLED



OciXCrom 09-07-2020 17:00

Re: help :|
 
Quote:

Originally Posted by ZaKaRiAMaGh (Post 2717074)
tell me where is this " the plugin requests section "

https://i.imgur.com/9FRwfUu.png

Foxa 09-07-2020 18:16

Re: help :|
 
Quote:

Originally Posted by Supremache (Post 2717076)
You will find it in admincmd plugin

PHP Code:

public cmdPause(idlevelcid)
{
    if (!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED 
    
    
new authid[32], name[32], slayer id
    
    get_user_authid
(idauthid31
    
get_user_name(idname31
    if (
pausable!=0)
    {
        
g_pausAble get_pcvar_float(pausable)
    }
    
    if (!
slayer)
        
slayer find_player("h"
    
    if (!
slayer)
    { 
        
console_print(id"[AMXX] %L"id"UNABLE_PAUSE"
        return 
PLUGIN_HANDLED
    
}

    
set_cvar_float("pausable"1.0)
    
g_PauseAllowed true
    client_cmd
(slayer"pause;pauseAck")
    
    
log_amx("Cmd: ^"%s<%d><%s><>^" %s server"nameget_user_userid(id), authidg_Paused "unpause" "pause")
    
    
console_print(id"[AMXX] %L"idg_Paused "UNPAUSING" "PAUSING")

    
// Display the message to all clients

    
new maxpl get_maxplayers();
    for (new 
1<= maxpli++)
    {
        if (
is_user_connected(i) && !is_user_bot(i))
        {
            
show_activity_id(iidname"%L server"ig_Paused "UNPAUSE" "PAUSE");
        }
    }

    
g_pauseCon id
    
    
return PLUGIN_HANDLED



This has L I T E R A L L Y nothing to do with what he asked. You just found a thing that says "pause" and thought to yourself "yeah that's it!"

Supremache 09-08-2020 08:50

Re: help :|
 
Quote:

Originally Posted by Foxa (Post 2717086)
This has L I T E R A L L Y nothing to do with what he asked. You just found a thing that says "pause" and thought to yourself "yeah that's it!"

I understand


All times are GMT -4. The time now is 19:29.

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