View Single Post
Author Message
AvaStIn
Senior Member
Join Date: Feb 2013
Location: Algeria
Old 04-23-2013 , 16:30   buy lifes plugin
Reply With Quote #1

I want to modify this plugin
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
 
#define PLUGIN "Buy Life"
#define VERSION "1.0"
#define AUTHOR "Dreuhn"
 
public plugin_init(){
     
register_plugin("PLUGIN","VERSION","AUTHOR")
     
register_clcmd("say /buylife","cmdbl")
}
public 
cmdbl(id){
     new 
userm=cs_get_user_money(id);
     if(
userm 10000) {
     
userm=userm-10000;
     
cs_set_user_money(id,userm);
     
cs_user_spawn(id)
new 
playername[32];
        
get_user_name(idplayername31);
     
client_print(0,print_chat,"%s bought life"playername)
     return 
PLUGIN_HANDLED
     
} else {
     
client_print(id,print_chat,"You Havent got enough money to buy life")
     return 
PLUGIN_CONTINUE
     
}
     return 
PLUGIN_HANDLED

which buys a life on deathrun ofc, to use points of drshop instead of cash(money $)
this is the drshop plugin (means buy life using points not cash/money)
http://forums.alliedmods.net/showthread.php?t=87536
I think im clear
AvaStIn is offline