RSSy MYGO.pl Opublikowano Grudzień 17, 2020 o 22:10 RSSy Udostępnij Opublikowano Grudzień 17, 2020 o 22:10 Hi. Can some one help and tell why this this code does not work? PHP Code: #include <amxmodx>#include <amxmisc>#include <cstrike>#include <engine>#include <fun>#include <hamsandwich>#include <colorchat>#define PLUGIN "Shop"#define VERSION "1.0"#define AUTHOR "Mmd" new bool:recoil[33]public plugin_init(){ register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_Spawn, "player", "FwdHamSpawn_Post", 1); register_clcmd("say /shop", "shop") }public FwdHamSpawn_Post(id){ recoil[id] = false;}public client_connect(id) { recoil[id] = false;}public client_disconnect(id) { recoil[id] = false;}public shop(id){ new text[ 100 ] new iMoney = cs_get_user_money(id) new team = get_user_team(id) formatex( text, charsmax( text ), "\w Shop^n\d[\wYou're Money: \y%i \y$\d]\r ", iMoney ) new menu = menu_create( text, "shop_handler" ) menu_additem(menu, "\wNo Recoil \d[\rCT\d] \d[\r15000 \y$\d]", "1", (team == 2) && cs_get_user_money(id) >= 15000 ? 0 : 1<<31); menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0);}public shop_handler(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( recoil[id] ) { ColorChat( id, GREY, "%s You already have this item.", PREFIX); return PLUGIN_HANDLED; } cs_set_user_money(id, cs_get_user_money(id) - 15000); entity_set_vector(id, EV_VEC_punchangle, Float:{0.0, 0.0, 0.0}) recoil[id] = true } } menu_destroy(menu); return PLUGIN_HANDLED;}/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1065\\ f0\\ fs16 \n\\ par }*/ I tried PHP Code: entity_set_vector(id, EV_VEC_punchangle, Float:{0.0, 0.0, But nothing Happend. Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi