AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CSDM (https://forums.alliedmods.net/forumdisplay.php?f=87)
-   -   spawn protection help (https://forums.alliedmods.net/showthread.php?t=47688)

HelllBoy 11-24-2006 04:41

spawn protection help
 
i want to disable spawn protection , i set where is :
;Is spawn protection enabled ?
enabled - 0

and nothing hapends , still protection . i dont want that protection any more . i can`t shot him but he can shot me . sucks

KWo 11-24-2006 07:46

Re: spawn protection help
 
try to write
enabled = 0
(I mean "=" instead "-").
And also look at this below:
Quote:

Originally Posted by csdm.cfg
;Colors of glow shell, leave this in quotes
;The digits are R, G, B, A where A is the alpha transparency
; (as A gets higher, the glow shell is thicker)
colors = "0 255 0 200"

;Number of seconds someone is respawned for.
time = 2

set up the time to 0.

KWo 11-24-2006 15:19

Re: spawn protection help
 
OK - csdm_protection was the only csdm 2.1 plugin I haven't touched yet, because I was thinking everything is OK with it, but it is not...There is a bug.
Code:
public csdm_PostSpawn(player, bool:fake) {     SetProtection(player) }

should be
Code:
public csdm_PostSpawn(player, bool:fake) {     if (g_Enabled )         SetProtection(player) }

it will work much better in the situation when the spawn protection is disabled. :)
@HelllBoy - do You need I post the fixed sma or You can fix it Your-self according to this what I wrote here above?

Simon Logic 11-27-2006 05:48

Re: spawn protection help
 
It would be much better to take off spawn protection immediately on player "+attack" command like it was in metamod spawn & chat protection 2.0 plugin.

BAILOPAN 11-27-2006 13:22

Re: spawn protection help
 
SimonLogic: It does.

Code:
public On_ClientPreThink(id) {     if (!g_Enabled || !g_Protected[id] || !is_user_connected(id) || !csdm_active())     {         return     }         new buttons = pev(id,pev_button);           if ( (buttons & IN_ATTACK) || (buttons & IN_ATTACK2) )     {         RemoveProtection(id)     } }

Simon Logic 12-01-2006 11:18

Re: spawn protection help
 
OIS, but
Quote:

Originally Posted by HelllBoy (Post 406654)
i can`t shot him but he can shot me . sucks

Smth or smb is wrong. ;)


All times are GMT -4. The time now is 22:44.

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