How can I do that the player origin wont be exactly where he died. It will be a bit more left, or right.
Is that possible? and how
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new Float: fPlayerOrigins[ 3 ]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Killed, "player", "CBasePlayer_Killed", false);
}
public CBasePlayer_Killed ( victim )
{
if(!is_user_connected(victim))
return;
new CsTeams: Team = cs_get_user_team(victim)
if ( Team == CS_TEAM_CT )
{
pev(victim, pev_origin, fPlayerOrigins);
//here you would exec the command
}
}