#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "Hide Money"
#define VERSION "1.0"
#define AUTHOR "Owner"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "HamSpawn")
}
public HamSpawn(id)
{
message_begin(MSG_ONE, get_user_msgid("HideWeapon"), {0,0,0}, id)
write_byte(32)
message_end()
}
Ukrywa licznik kasy, ale nie wiem jak ze zdobywaniem.
Tu masz wersje bez uzycia modułu Hamsandwich:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Hide Money"
#define VERSION "1.0"
#define AUTHOR "Owner"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHUD", "eReset", "b")
}
public eReset(id)
{
message_begin(MSG_ONE, get_user_msgid("HideWeapon"), {0,0,0}, id)
write_byte(32)
message_end()
}
Użytkownik Owner123 edytował ten post 01.02.2010 08:17