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

AWP Automatically on awp maps and change the price


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
c0ma
Junior Member
Join Date: Jun 2011
Location: Greece (Creta-Porto Elou
Old 06-30-2011 , 14:10   AWP Automatically on awp maps and change the price
Reply With Quote #1

Hello,i need help i have a respawn server and awp is restricted,i have this plugin on him but i want to change the price in 5000$ or another price for awp and doesen't work! good,that is the first problem ) ...second problem: on all maps awp is restricted,actually awp cost 15000$ in this moment,i want to know how can i give free awp on awp maps only?

The code for my first problem,where i want to change the price in 5000$:

Quote:
#include <amxmodx>
#include <cstrike>
#include <fun>

new g_pCvar_Price;

public plugin_init()
{
register_plugin("Buy AWP", "0.0.1", "dinnk.");

register_clcmd("say /awp", "CmdAwp");

g_pCvar_Price = register_cvar("awp_deagle_price", "15000");
}

public CmdAwp(id)
{
new iMoney = cs_get_user_money(id);
new iPrice = get_pcvar_num(g_pCvar_Price);

if( !is_user_alive(id) )
{
client_print(id, print_chat, "* You need to be alive !");
return PLUGIN_HANDLED;
}

if( iMoney < iPrice )
{
client_print(id, print_chat, "* You need more money ! ($%i)", iPrice);
return PLUGIN_HANDLED;
}

give_item(id, "weapon_awp");
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_AWP, 30);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);

client_print(id, print_chat, "* You bought an AWP & Deagle for $%i !", iPrice);
cs_set_user_money(id, iMoney - iPrice, true);
return PLUGIN_HANDLED;
}
Edit:i forgot something ;)) i change it the price in 5000$ and i compiled again but doesen't work!
c0ma is offline
Send a message via Yahoo to c0ma
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 06-30-2011 , 19:41   Re: AWP Automatically on awp maps and change the price
Reply With Quote #2

second answer. map specific plugins + Starting weapons
__________________
ANTICHRISTUS is offline
c0ma
Junior Member
Join Date: Jun 2011
Location: Greece (Creta-Porto Elou
Old 07-01-2011 , 04:59   Re: AWP Automatically on awp maps and change the price
Reply With Quote #3

yeap,i made it Antichrist thank you so much...and my first problem? you know something? i want to change the price in 5000$
c0ma is offline
Send a message via Yahoo to c0ma
c0ma
Junior Member
Join Date: Jun 2011
Location: Greece (Creta-Porto Elou
Old 07-01-2011 , 05:32   Re: AWP Automatically on awp maps and change the price
Reply With Quote #4

the price is 5000$ now thank you all for help
c0ma is offline
Send a message via Yahoo to c0ma
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 18:23.


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