AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   the results of the bonus (https://forums.alliedmods.net/showthread.php?t=327054)

anakonda001 08-30-2020 04:20

the results of the bonus
 
how to execute the command "say /pb" for the AK47 seat

Code:

public pointBonus_GiveAk47(id){
        CHECK_ALIVE(id)
        CHECK_ROUNDTIME(id)
       
        DropWeaponSlot(id,1)
       
        fm_give_item(id,"weapon_ak47")
        cs_set_user_bpammo(id,CSW_AK47,90)
       
        return 1
}


HowToRuski 08-30-2020 05:43

Re: the results of the bonus
 
PHP Code:

public plugin_init()
{
    
register_clcmd("amx_buyak""pointBonus_GiveAk47")
        
register_clcmd("/buyak""pointBonus_GiveAk47")
    


is this what you meant?

anakonda001 08-30-2020 08:59

Re: the results of the bonus
 
Quote:

Originally Posted by HowToRuski (Post 2715967)
PHP Code:

public plugin_init()
{
    
register_clcmd("amx_buyak""pointBonus_GiveAk47")
        
register_clcmd("/buyak""pointBonus_GiveAk47")
    


is this what you meant?

no, I wanted to give out another bonus for the AK47 place, which is bought by the say /bg team

CrazY. 08-30-2020 09:21

Re: the results of the bonus
 
amxclient_cmd or client_cmd are what you are looking for.

anakonda001 08-30-2020 09:29

Re: the results of the bonus
 
Quote:

Originally Posted by CrazY. (Post 2715994)
amxclient_cmd or client_cmd are what you are looking for.

right?
Code:

public pointBonus_bg(id){
        CHECK_ALIVE(id)
        CHECK_ROUNDTIME(id)
       
        client_cmd(id, "say /bg")
       
        return 1
}


CrazY. 08-31-2020 09:34

Re: the results of the bonus
 
Quote:

Originally Posted by anakonda001 (Post 2715995)
right?
Code:

public pointBonus_bg(id){
        CHECK_ALIVE(id)
        CHECK_ROUNDTIME(id)
       
        client_cmd(id, "say /bg")
       
        return 1
}


Yes that should do it


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

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