I want a plugin. When a player kills someone, he receives 2 "points" ( "Points" are saved )
If possible, do this on the plugin below
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <points>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
#define HUD 1574
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "ShowHud", 1)
}
public ShowHud(id);
{
id -= HUD;
new iPoints = Collector_GetPlayerPoints(id);
set_hudmessage(0, 104, 0, 0.01, 0.55, 0, 6.0, 1.0);
show_hudmessage(id, "Your Points : %d", iPoints);
set_task(0.0, "ShowHud", id + HUD);
}
points.inc
PHP Code:
native Collector_GetPlayerPoints(id);
native Collector_SetPlayerPoints(id, count);
: