Код за потвърждение: Избери целия код
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "get pdata cbase / Give 10 ammo"
#define VERSION "LwL"
#define AUTHOR "LAWLIET"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /giveammo","ammo") // Регистрираме командата в чата
}
public ammo(id)
{
set_pdata_int(get_pdata_cbase(id, 373), 51, 10) // Тук даваме 10 патрона на играча (последният параметър е за патроните)
}