[ZP] Extra Item: Buy Nemesis v1.2
Buy nemesis and you will turn into a nemesis
Nemesis Cost : 50
- No error
- No bugs
- No errorlogs
here is the code:
PHP Code:
/*===============================================================================
=
--------------------------------
-*- [ZP] Buy Nemesis -*-
--------------------------------
================================================================================
*/
#include <amxmodx>
#include <zombieplague>
#include <fakemeta_util>
#define VERSION "1.0"
new const g_item_name[] = { "Buy Nemesis" }
const g_item_cost = 50
// Item IDs
new g_nemesis, g_has_nemesis[33]
public plugin_init()
{
register_plugin("[ZP] Buy Nemesis", "1.0", "fezh")
// Register the new items and store their IDs for reference
g_nemesis = (g_item_name, g_item_cost)
}
// Player buys our upgrade, set the unlimited ammo flag
public zp_extra_item_selected(player, itemid)
{
if (itemid == g_nemesis)
g_has_nemesis[player] = true
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang11274\\ f0\\ fs16 \n\\ par }
*/