Raised This Month: $ Target: $400
 0% 

Respawn bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lazarev
Veteran Member
Join Date: Sep 2008
Old 10-27-2009 , 13:07   Re: Respawn bug
Reply With Quote #1

part from my code:
PHP Code:
public plugin_init() { 
 
RegisterHam(Ham_Spawn"player" "HamPlayerSpawn"1
 
RegisterHam(Ham_Killed"player""HamPlayerKilled",  1
 } 

 public 
HamPlayerSpawn(id
 {    
    
GiveItems(id
    
g_bGodmode[id] = true 
    gPlayerAlive
[id] = is_user_alive(id
    
set_user_godmode(id1
 } 

 public 
HamPlayerKilled(id
 { 
    if(
ExecuteHamB(Ham_IsPlayerid)) 
    
CmdRespawn(id

 } 

 public 
CmdRespawn(id
 { 
    new 
CsTeams:team cs_get_user_team(id
    if (
team == CS_TEAM_SPECTATOR
    { 
    return 
PLUGIN_HANDLED 
    

    else 
    { 
    
ExecuteHamB(Ham_CS_RoundRespawn,id
    return 
PLUGIN_HANDLED 
 

lazarev is offline
Reply



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 17:38.


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