Raised This Month: $51 Target: $400
 12% 

[req] Smart spawn protection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 02-04-2007 , 11:14   [req] Smart spawn protection
Reply With Quote #1

Is it possible in future official releases to alter next code in csdm_protection.sma:

Code:
SetProtection(id) {     if (g_Protected[id])         remove_task(g_Protected[id])             if (!is_user_connected(id))         return             new team = get_user_team(id)         if (!IsValidTeam(team))     {         return     }
    if(!pev(id, pev_takedamage))
    {
        //log_amx("can't set protection on player[%d]", id)
        g_Protected[id] = 0
        return
    }
    set_task(g_ProtTime, "ProtectionOver", id)     g_Protected[id] = id         set_rendering(id, kRenderFxGlowShell, g_ProtColors[team][0], g_ProtColors[team][1], g_ProtColors[team][2], kRenderNormal, g_GlowAlpha[team])     set_pev(id, pev_takedamage, 0.0) }

This can avoid troubles when custom plugins set their own protection on selected players.

I can give more detailed info on request.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
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 05:57.


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