I'm bored, so i'm gonna make the plugin for you.
Edit in 5 minutes
EDIT: Sorry, i was withouth internet.
Here you go
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fun>
new t_player_class[33]
// Init
public plugin_init()
{
register_plugin("HnSShop", "0.1", "extr")
register_clcmd("say /shop", "shop")
register_event("CurWeapon", "curweapon", "be", "1=1")
}
// Let's create the menu!
public shop(id)
{
if(is_user_alive(id) || is_user_connected(id))
{
new menu = menu_create("\rHnS Shop:", "shop1")
menu_additem(menu, "HOLYSHITSPEED FOR 1000$!!!", "1", 0)
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
}
}
// Skills
public shop1(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1 :
{
if (cs_get_user_money(id) < 1000)
{
client_print(id, print_chat, "^4[Shop]^3 You havent money!");
return PLUGIN_HANDLED;
}
if (!is_user_alive(id))
{
client_print(id, print_chat, "^4[Shop]^3 You have to be alive!");
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 1000 )
{
client_print(id, print_chat, "^4[Shop]^3 BOUGHT!!!!")
t_player_class[id] = 1 // Set the id to the curweapon
if(is_user_connected(id))
{
set_user_maxspeed(id, 800.0) // Set the speed
}
cs_set_user_money(id , cs_get_user_money(id) - 1000, 0) // Money
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
// The event
public curweapon(id) // I think you can understand this, its for the event "curweapon"
{
if(t_player_class[id])
{
switch(t_player_class[id])
{
case 1:
{
set_user_maxspeed(id, 800.0)
}
}
}
}