Raised This Month: $ Target: $400
 0% 

Buying with gunxp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bat
Veteran Member
Join Date: Jul 2012
Old 11-02-2014 , 05:30   Re: Buying with gunxp
Reply With Quote #1

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



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 17:44.


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