Raised This Month: $ Target: $400
 0% 

Simple Respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stylerro
Senior Member
Join Date: Mar 2007
Old 05-12-2009 , 10:49   Re: Simple Respawn
Reply With Quote #25

PHP Code:
#include <amxmodx>
#include <hamsandwich>
 
#define RESPAWN_DELAY 2.0
 
new g_RespawnSound[] = "misc/respawn.wav";
 
public 
plugin_precache()
precache_sound(g_RespawnSound);
 
public 
plugin_init()
RegisterHam(Ham_Killed"player""PlayerKilled"1);
 
public 
PlayerKilled(Victim)
if (!
is_user_alive(Victim))
set_task(RESPAWN_DELAY"PlayerRespawn"Victim);
 
public 
PlayerRespawn(Client)
if (!
is_user_alive(Client))
{
remove_task(Client);
ExecuteHamB(Ham_CS_RoundRespawnClient);
client_cmd(Client"spk %s"g_RespawnSound);

can u make respawn only with knife?
stylerro 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 01:45.


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