I nie daje mi expa
Pomożecie?
ActionXPBlock(id, ent) { new Float:gametime = get_gametime(); if ( !( gametime >= g_xpblock_next_use[id] ) ) { if ( !g_has_hud_text[id] ) { set_hudmessage(0, 255, 0, 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 2); show_hudmessage(id, "%s %s^nMoney^nNastepne Uzycie: Nowa Runda", PLUGIN_PREFIX, PLUGIN_VERSION ); } return PLUGIN_HANDLED; } static property[5]; GetProperty(ent, 2, property); new szName[32]; get_user_name(id, szName, sizeof szName - 1); server_cmd("mm_givemoney ^%s 80", szName); BCM_Print(id, "^3Zdobyles^4 80^3 Kasy na Blocku!"); emit_sound(id, CHAN_STATIC, g_sound_xpblock, 1.0, ATTN_NORM, 0, PITCH_NORM); g_block_status[id] = true; GetProperty(ent, 2, property); g_xpblock_next_use[id] = gametime + str_to_float(property); return PLUGIN_HANDLED; }
Dacie mi poprawiony kod?
Dodano 15 marzec 2011 - 18:57:
Ref