Raised This Month: $ Target: $400
 0% 

origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JohnBloper
Member
Join Date: Jul 2014
Old 07-22-2014 , 11:12   origin
Reply With Quote #1

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 FloatfPlayerOrigins
    
    
public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Killed"player""CBasePlayer_Killed"false);
}

public 
CBasePlayer_Killed victim 
{
    if(!
is_user_connected(victim))
        return;
    
    new 
CsTeamsTeam cs_get_user_team(victim)
    
    if ( 
Team == CS_TEAM_CT 
    {
    
        
pev(victimpev_originfPlayerOrigins);
        
//here you would exec the command
    
}

JohnBloper is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode