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

Spawn Protection


Post New Thread Reply   
 
Thread Tools Display Modes
Sondr3h
Junior Member
Join Date: Mar 2007
Location: Norway
Old 03-22-2007 , 12:02   Re: Spawn Protection
Reply With Quote #271

How do I make the protection turn on after the freezetime, and not at the same time as it?

I've skimmed through the thread but couldn't find anything.
__________________
Hi.
Sondr3h is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 03-28-2007 , 23:41   Re: Spawn Protection
Reply With Quote #272

To do that, it's pretty simple just:

Step 1) Find out how long your freeze time is

Step 2) Change the amx_sptime and just to double check change the sv_sptime incase to whatever you want, just make it larger than the freezetime

Explanation
If your freezetime is 10 seconds and the spawn protection time was 10 seconds, and you want it to stay after the freezetime for a little longer, just change those two cvars to x amount of seconds more.

Easy.
Peli is offline
Send a message via MSN to Peli
Sondr3h
Junior Member
Join Date: Mar 2007
Location: Norway
Old 03-29-2007 , 12:48   Re: Spawn Protection
Reply With Quote #273

Alright, thanks. :-)

But the "Spawnprotection activated for x seconds" still comes up during the freezetime and not after it. I've seen other servers that have this, so it should be possible.
__________________
Hi.
Sondr3h is offline
dzek
Junior Member
Join Date: Apr 2007
Old 05-07-2007 , 13:34   Re: Spawn Protection
Reply With Quote #274

i have a problem..
on each round cvar amx_spmessage is reseting to 1 so on each round I saw "spawn protection is enabled for 3 seconds".. i dont want this msg.. what is wrong? when i input amx_spmessage 0 in console it works only for one round

EDIT:
solved
replaced amx_spmessage to sv_spmessage :/ strange

Last edited by dzek; 05-07-2007 at 13:39.
dzek is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 05-10-2007 , 15:36   Re: Spawn Protection
Reply With Quote #275

Not really strange. Its happening because there's a bugger in his code.
Code:
public cmd_spmessage(id, level, cid) // This is the function for the cvar message control
{
  if (!cmd_access(id, level, cid, 2))
  {
    return PLUGIN_HANDLED
  }
  new sp[3]
  read_argv(1, sp, 2)
  if (sp[0] == '1')
  {
    set_cvar_num("amx_spmessage", 1)
  }
  else if (sp[0] == '0')
  {
    set_cvar_num("amx_spmessage", 0)
  }
  else if (sp[0] != '1' || sp[0] != '0')
  {
    console_print(id, "Usage : amx_spmessage 1 = Messages ON | 0 = Messages OFF")
    return PLUGIN_HANDLED
  }
  return PLUGIN_HANDLED
}
Those both should be sv_spmessage
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Tiny
Senior Member
Join Date: Jun 2004
Location: France
Old 05-13-2007 , 17:20   Re: Spawn Protection
Reply With Quote #276

Thank you for that precision cause i had the same problem
__________________
KiKoo et Bisous
Tiny is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-10-2007 , 18:57   Re: Spawn Protection
Reply With Quote #277

@KaszPir (if your still around)

Im using the cvar for glowing (which i think should be on here sotck)
But for some reason when you set teh cvar to 0, they still glow, and as a matter of fact, they glow all round. I wanted to put this in the AMX Super if you dont mind But I have to fix that first.

Okay

Code:
public sp_off(id) // This is the function for the task_off godmode
{
   new SPShell = get_pcvar_num(sv_spshellthick)
   if(!is_user_connected(id))
   {
      return PLUGIN_HANDLED
   }

   else
   {
      set_user_godmode(id, 0)
      if(!get_pcvar_num(sv_spglow)) set_user_rendering(id, kRenderFxGlowShell, 0, 0,0, kRenderNormal, SPShell)
      return PLUGIN_HANDLED
   }

   return PLUGIN_HANDLED
}
This fixed the on/off issue with the glow cvar. But it still glows all round when enabled....
__________________

Last edited by bmann_420; 06-10-2007 at 19:09.
bmann_420 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-10-2007 , 21:24   Re: Spawn Protection
Reply With Quote #278

Sorry for double post but if you want the one im workin on.

-Added Pcvars
-Fixed sv_spglow cvar to work perfectly
-Added Multilingual

(Sorry for the Multilingual, but hey, you can do multilingual now... lol) Or put it back the way it was

- Everything works now
Attached Files
File Type: sma Get Plugin or Get Source (spawnprotection.sma - 759 views - 4.4 KB)
File Type: txt spawnprotection.txt (831 Bytes, 167 views)
__________________

Last edited by bmann_420; 06-11-2007 at 16:09.
bmann_420 is offline
neogeo
Senior Member
Join Date: Jul 2005
Old 06-11-2007 , 10:31   Re: Spawn Protection
Reply With Quote #279

Quote:
Originally Posted by bmann_420 View Post
Sorry for double post but if you want the one im workin on.

-Added Pcvars
-Fixed sv_spglow cvar to work perfectly
-Added Multilingual

(Sorry for the Multilingual, but hey, you can do multilingual now... lol) Or put it back the way it was

- Everything works now
problem with it :
Code:
L 06/11/2007 - 15:12:07: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:09: Invalid CVAR pointer
L 06/11/2007 - 15:12:09: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
L 06/11/2007 - 15:12:09: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:10: Invalid CVAR pointer
L 06/11/2007 - 15:12:10: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
L 06/11/2007 - 15:12:10: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:10: Invalid CVAR pointer
L 06/11/2007 - 15:12:10: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
L 06/11/2007 - 15:12:10: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:10: Invalid CVAR pointer
L 06/11/2007 - 15:12:10: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
L 06/11/2007 - 15:12:10: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:10: Invalid CVAR pointer
L 06/11/2007 - 15:12:10: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
L 06/11/2007 - 15:12:10: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:11: Invalid CVAR pointer
L 06/11/2007 - 15:12:11: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
L 06/11/2007 - 15:12:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:11: Invalid CVAR pointer
L 06/11/2007 - 15:12:11: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
L 06/11/2007 - 15:12:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:13: Invalid CVAR pointer
L 06/11/2007 - 15:12:13: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
L 06/11/2007 - 15:12:13: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:14: Invalid CVAR pointer
L 06/11/2007 - 15:12:14: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
L 06/11/2007 - 15:12:14: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/11/2007 - 15:12:15: Invalid CVAR pointer
L 06/11/2007 - 15:12:15: [AMXX] Run time error 10 (plugin "spawnprotection.amxx") (native "get_pcvar_num") - debug not enabled!
amxx 1.76d
neogeo is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-11-2007 , 15:21   Re: Spawn Protection
Reply With Quote #280

Yea.... You might want to debug it so I can see what it actually is saying.

Example:
spawnprotection.amxx debug

(thats weird, I havnt had any errors yet)
__________________
bmann_420 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 01:37.


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