PHP Code:
#include <amxmodx>
#include <engine>
#include <csx>
#define PLUGIN "3RD Person View While Planting"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "Event_DeathMsg", "a")
}
public plugin_precache()
{
precache_model("models/rpgrocket.mdl")
}
public Event_DeathMsg()
{
new iVictim = read_data(2)
set_view(iVictim, CAMERA_NONE)
}
public bomb_planting(id)
{
set_view(id, CAMERA_3RDPERSON)
}
public bomb_planted(id)
{
set_view(id, CAMERA_NONE)
}
When I stop planting the bomb it stays in 3rd person mode. How do I make it so it exits 3rd person mode and goes back to 1st person if you start to plant but discontinue?
__________________