Raised This Month: $ Target: $400
 0% 

Anti Spawn Kill V1.5 (Updated 15/7/2017 )


Post New Thread Reply   
 
Thread Tools Display Modes
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-14-2017 , 10:18   Re: Anti Spawn Kill V1.2 (Updated 4/7/2017 )
Reply With Quote #31

Quote:
Originally Posted by HamletEagle View Post
Use flag b, then on cvar change just alter the time. I'm not sure to understand to what are you answering here:
If godmode is enabled, fall damage is disabled.

If the Ham is enabled, fall damage is enabled.

On both cases, player to player damage is disabled.

I have done what you asked me to do and added the task in plugin init.

Last edited by eyal282; 07-14-2017 at 10:21.
eyal282 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-15-2017 , 08:16   Re: Anti Spawn Kill V1.3 (Updated 14/7/2017 )
Reply With Quote #32

But why would you want to allow only fall damage?

PHP Code:
arrayset(Shotfalse33); 
Use sizeof instead of 33.

In the loop, cache players[id](do something like new player before the loop and inside do player= players[id]). If you want to know why, read the wiki, it's explained there(look for reindexing arrays).

In RemoveProtection you did not do what I told you.
Quote:
use new instead of static.
I would like you to use real offset names, so people understand your code:

PHP Code:
const m_pPlayer 41
new id get_pdata_cbase(Weaponm_pPlayer 4
Remove change_task(TASKID_SK);, it's not needed.

Otherwise looks ok, fix this and we'll see.
__________________

Last edited by HamletEagle; 07-15-2017 at 08:19.
HamletEagle is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-15-2017 , 08:29   Re: Anti Spawn Kill V1.3 (Updated 14/7/2017 )
Reply With Quote #33

Quote:
Originally Posted by HamletEagle View Post
But why would you want to allow only fall damage?

PHP Code:
arrayset(Shotfalse33); 
Use sizeof instead of 33.

In the loop, cache players[id](do something like new player before the loop and inside do player= players[id]). If you want to know why, read the wiki, it's explained there(look for reindexing arrays).

In RemoveProtection you did not do what I told you.


Remove change_task(TASKID_SK);, it's not needed.

Otherwise looks ok, fix this and we'll see.
Without change_task, the protection time can differ from cvar between 0.001 to 0.999, that would be considered a bug, won't it?

About the Fall Damage, surf servers and I personally wanted it on my past surf server.

About the offset name, I added a comment instead so people understand what I mean without adding more code.

Last edited by eyal282; 07-15-2017 at 08:31.
eyal282 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 09:58.


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