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

the results of the bonus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anakonda001
Member
Join Date: Jul 2020
Old 08-30-2020 , 04:20   the results of the bonus
Reply With Quote #1

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
}
anakonda001 is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-30-2020 , 05:43   Re: the results of the bonus
Reply With Quote #2

PHP Code:
public plugin_init()
{
    
register_clcmd("amx_buyak""pointBonus_GiveAk47")
        
register_clcmd("/buyak""pointBonus_GiveAk47")
    

is this what you meant?

Last edited by HowToRuski; 08-30-2020 at 05:44.
HowToRuski is offline
anakonda001
Member
Join Date: Jul 2020
Old 08-30-2020 , 08:59   Re: the results of the bonus
Reply With Quote #3

Quote:
Originally Posted by HowToRuski View Post
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
anakonda001 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 08-30-2020 , 09:21   Re: the results of the bonus
Reply With Quote #4

amxclient_cmd or client_cmd are what you are looking for.
__________________








CrazY. is offline
anakonda001
Member
Join Date: Jul 2020
Old 08-30-2020 , 09:29   Re: the results of the bonus
Reply With Quote #5

Quote:
Originally Posted by CrazY. View Post
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
}
anakonda001 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 08-31-2020 , 09:34   Re: the results of the bonus
Reply With Quote #6

Quote:
Originally Posted by anakonda001 View Post
right?
Code:
public pointBonus_bg(id){
	CHECK_ALIVE(id)
	CHECK_ROUNDTIME(id)
	
	client_cmd(id, "say /bg")
	
	return 1
}
Yes that should do it
__________________








CrazY. is offline
Reply


Thread Tools
Display Modes

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 06:12.


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