Raised This Month: $ Target: $400
 0% 

Set user ammo for this gun


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Electric Boy
Member
Join Date: Jun 2017
Old 06-02-2017 , 20:31   Set user ammo for this gun
Reply With Quote #1

Title
Thanks for helping me!



PHP Code:
#include < amxmodx > 
#include < fun > 

#define VERSION "1.0" 

public plugin_init() { 

    
register_plugin("M4a1"VERSION"XD"
    
register_clcmd("say /m4a1""buy_m4a1"
     


public 
buy_m4a1(id) { 
     
    if (
is_user_alive(id)) 
    {   
        
give_item(id"weapon_m4a1")
        
        
        
client_print(idprint_chat"You have got M4A1!"
    } 
     


Last edited by Electric Boy; 06-02-2017 at 20:32.
Electric Boy is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-02-2017 , 20:52   Re: Set user ammo for this gun
Reply With Quote #2

Add
PHP Code:
cs_set_user_bpammoidCSW_M4A190 
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Electric Boy
Member
Join Date: Jun 2017
Old 06-02-2017 , 21:03   Re: Set user ammo for this gun
Reply With Quote #3

Quote:
Originally Posted by wickedd View Post
Add
PHP Code:
cs_set_user_bpammoidCSW_M4A190 
Full code please!
Electric Boy is offline
Electric Boy
Member
Join Date: Jun 2017
Old 06-02-2017 , 21:04   Re: Set user ammo for this gun
Reply With Quote #4

error 017: undefined symbol "cs_set_user_bpammo"
Electric Boy is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-02-2017 , 21:09   Re: Set user ammo for this gun
Reply With Quote #5

PHP Code:
public buy_m4a1(id) { 
     
    if (
is_user_alive(id)) 
    {   
        
give_item(id"weapon_m4a1")
        
        
        
client_print(idprint_chat"You have got M4A1!"
    } 
     



PHP Code:
public buy_m4a1(id) { 
     
    if (
is_user_alive(id)) 
    {   
        
give_item(id"weapon_m4a1")
        
cs_set_user_bpammoidCSW_M4A190 )       
        
client_print(idprint_chat"You have got M4A1!"
    }  

Then add
PHP Code:
#include < cstrike > 
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-03-2017 , 08:01   Re: Set user ammo for this gun
Reply With Quote #6

Or check your first thread: https://forums.alliedmods.net/showpo...0&postcount=14
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Electric Boy
Member
Join Date: Jun 2017
Old 06-03-2017 , 09:08   Re: Set user ammo for this gun
Reply With Quote #7

Quote:
Originally Posted by wickedd View Post
PHP Code:
public buy_m4a1(id) { 
     
    if (
is_user_alive(id)) 
    {   
        
give_item(id"weapon_m4a1")
        
        
        
client_print(idprint_chat"You have got M4A1!"
    } 
     



PHP Code:
public buy_m4a1(id) { 
     
    if (
is_user_alive(id)) 
    {   
        
give_item(id"weapon_m4a1")
        
cs_set_user_bpammoidCSW_M4A190 )       
        
client_print(idprint_chat"You have got M4A1!"
    }  

Then add
PHP Code:
#include < cstrike > 
Man Please give me the code tidy I cant work with this please
Electric Boy is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 06-03-2017 , 09:17   Re: Set user ammo for this gun
Reply With Quote #8

Where is the hard when you copy paste ?
PHP Code:
#include < amxmodx >  
#include < fun >
#include < cstrike >  

#define VERSION "1.0"  

public plugin_init() {  

    
register_plugin("M4a1"VERSION"XD")  
    
register_clcmd("say /m4a1""buy_m4a1")  
      
}  

public 
buy_m4a1(id) {  
      
    if (
is_user_alive(id))  
    {    
        
give_item(id"weapon_m4a1"
        
cs_set_user_bpammoidCSW_M4A190 )
        
client_print(idprint_chat"You have got M4A1!")  
    }  
      

__________________
Ayman Khaled is offline
Electric Boy
Member
Join Date: Jun 2017
Old 06-03-2017 , 09:28   Re: Set user ammo for this gun
Reply With Quote #9

Quote:
Originally Posted by Ayman Khaled View Post
Where is the hard when you copy paste ?
PHP Code:
#include < amxmodx >  
#include < fun >
#include < cstrike >  

#define VERSION "1.0"  

public plugin_init() {  

    
register_plugin("M4a1"VERSION"XD")  
    
register_clcmd("say /m4a1""buy_m4a1")  
      
}  

public 
buy_m4a1(id) {  
      
    if (
is_user_alive(id))  
    {    
        
give_item(id"weapon_m4a1"
        
cs_set_user_bpammoidCSW_M4A190 )
        
client_print(idprint_chat"You have got M4A1!")  
    }  
      

Thanks Man
Electric Boy 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 20:54.


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