Raised This Month: $32 Target: $400
 8% 

Buying with gunxp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zDac
Member
Join Date: Jan 2013
Old 10-30-2014 , 13:25   Buying with gunxp
Reply With Quote #1

Hi, is it possible to make, when a player writes /ak47, he gets ak47. But he doesn't buy with money ($), he buys with XP. Can someone make a code and post here, with xbatista's gun xp mod?
__________________
Learning AMXX.
zDac is offline
Send a message via Skype™ to zDac
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-30-2014 , 15:00   Re: Buying with gunxp
Reply With Quote #2

Yes it's possible, but this sound like a request. I think you are posting in the wrong forum.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
bat
Veteran Member
Join Date: Jul 2012
Old 11-02-2014 , 05:30   Re: Buying with gunxp
Reply With Quote #3

Example:
Code:
#include amxmodx
#include fun

const COST = 14 // Cost ak47
new getusexp[33] // XP

public plugin_init()
        register_clcmd("say /ak47", "buyak")

public buyak(client){
        if(getusexp[client] < COST)
	    return;
		
	if(user_has_weapon(client, CSW_AK47))
	    return;
		
	give_item(client, "weapon_ak47")
        give_item(client, "ammo_762nato")
        give_item(client, "ammo_762nato")
        give_item(client, "ammo_762nato")	
}
__________________

Last edited by bat; 11-02-2014 at 05:30.
bat is offline
Send a message via Skype™ to bat
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 16:40.


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