Raised This Month: $ Target: $400
 0% 

respawn players where is the entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Jon
Veteran Member
Join Date: Dec 2007
Old 09-06-2009 , 06:01   Re: respawn players where is the entity
Reply With Quote #8

PHP Code:
#include <amxmodx>
#include <engine>

new g_iEnt;
new 
g_fEntOrigin] = {  ......... }

public 
plugin_init()
{
    
register_plugin"""""" );
    
    
register_event"DeathMsg""EventDeathMsg""a" );
    
    
g_iEnt create_entity"info_target" );
    
entity_set_modeliEnt, .....
    
entity_set_intiEntEV_INT_solidSOLID_BBOX );
    
entity_set_sizeiEnt, .....
    
entity_set_vectoriEntEV_VEC_origin, ....
    
    
// More stuff....
    
    
}

public 
EventDeathMsg()
{
    new 
iVictim read_data);
    
    
// Respawn victim 
    
    // Maybe add an offset to the Z axis of the entity origin to make the player spawn on it
    // g_fEntOrigin[ 2 ] += something
    
    
entity_set_originiVictimg_fEntOrigin );

Jon 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 15:14.


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