Raised This Month: $ Target: $400
 0% 

Spawn location


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-26-2016 , 20:55   Re: Spawn location
Reply With Quote #7

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

public plugin_init() 
{
    
register_plugin"respawn" "0.1" "x" );
    
    
RegisterHamHam_Killed "player" "fw_PlayerKilled_Post" true );
}

public 
fw_PlayerKilled_PostiVictim iKiller )  
{
    if ( 
iVictim == iKiller || !is_user_aliveiKiller ) ) 
        return;
    
    
ExecuteHamBHam_CS_RoundRespawn iKiller );
    
set_peviKiller pev_origin , { 1000.0 , -150.0 , -850.0 } );
    
    
ExecuteHamBHam_CS_RoundRespawn iVictim );
    
set_peviVictim pev_origin , { 600.0 , -150.0 , -850.0 } );

__________________

Last edited by Bugsy; 01-26-2016 at 20:57.
Bugsy 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 09:31.


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