Przeładowywanie:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "Przeladowanie"
#define VERSION "1.0"
#define AUTHOR "deLL"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_Weapon_Reload, "weapon_usp", "Reload", 0)
}
public Reload(iWeapon)
{
new id = pev(iWeapon, pev_owner);
new name[32]
get_user_name(id, name, 31)
client_print(id, print_chat, "Brawo %s ! Przeladowujesz USP ", name)
}
Spray:
Dokumentacja AMXX.pl: Engine >> engine > client_impulseGracz odrodził się z bombą:
#include <amxmodx>
#define PLUGIN "Spawn With The Bomb"
#define VERSION "1.0"
#define AUTHOR "deLL"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("logevent_function_p", 3, "2=Spawned_With_The_Bomb")
}
public logevent_function_p()
{
new id = get_loguser_index()
new name[32];
get_user_name(id, name, 31)
client_print(0, print_chat, "%s odrodzil sie z bomba!", name)
}
stock get_loguser_index()
{
new loguser[80], name[32]
read_logargv(0, loguser, 79)
parse_loguser(loguser, name, 31)
return get_user_index(name)
}