PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "Touch -_-"
#define VERSION "1.0"
#define AUTHOR "Xalus"
new iMaxPlayers
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Register: Ham
RegisterHam(Ham_Touch, "player", "Ham_PlayerTouch")
// Others
iMaxPlayers = get_maxplayers()
}
public Ham_PlayerTouch(id, entity) {
if(is_user_alive(id) && pev_valid(entity)
&& entity > iMaxPlayers) {
// Check classname of entity
}
}
__________________