/* AMX Mod X * Cheats is Evil * * (c) Copyright 2007 by VEN * * This file is provided as is (no warranties) * * DESCRIPTION * Plugin puts "Cheats is Evil" sign between CT spawn and B bombsite on de_dust2. * * CREDITS * sec - thanks for original "Cheats is Evil" BMP image */ // plugin's main information #define PLUGIN_NAME "Cheats is Evil" #define PLUGIN_VERSION "0.0.1" #define PLUGIN_AUTHOR "VEN" #include #include #define MAP_NAME "de_dust2" #define SPRITE_NAME "sprites/cheats_is_evil.spr" #define SPRITE_SCALE 1.0 stock const Float:g_sprite_pos[] = {-719.0, 2284.0, 238.0} new bool:g_is_de_dust2 = false public plugin_precache() { new mapname[32] get_mapname(mapname, sizeof mapname - 1) if (equali(mapname, MAP_NAME)) { engfunc(EngFunc_PrecacheModel, SPRITE_NAME) g_is_de_dust2 = true } } public plugin_init() { register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR) if (g_is_de_dust2) create_sprite() } create_sprite() { new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_sprite")) engfunc(EngFunc_SetOrigin, ent, g_sprite_pos) engfunc(EngFunc_SetModel, ent, SPRITE_NAME) set_pev(ent, pev_scale, SPRITE_SCALE) dllfunc(DLLFunc_Spawn, ent) }