Raised This Month: $ Target: $400
 0% 

[SOLVED] buy mod by frags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 10-21-2015 , 08:27   Re: [HELP] buy mod by frags
Reply With Quote #5

Quote:
Originally Posted by Chihuahuax View Post
example
PHP Code:
public plugin_init()
{
    
register_clcmd("say /sniper""buy_sniper")

PHP Code:
public buy_sniper(id)
{
    if (
get_user_frags(id) < 50)
        return 
PLUGIN_HANDLED

    set_user_frags
(idget_user_frags(id) - 50)
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    
give_item(id"weapon_awp")
    
xxx //functions that move other players to CT/T

    
return PLUGIN_CONTINUE

not work!

Last edited by arvEL.; 10-21-2015 at 20:16.
arvEL. is offline
Send a message via Skype™ to arvEL.
 



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 22:16.


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