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

[L4D]Incap Rescuer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Figa
Member
Join Date: Apr 2011
Location: Siberia
Old 03-05-2017 , 03:35   [L4D]Incap Rescuer
Reply With Quote #1

About:
It allows you to rescue players from the closet, being incapacitated. And to open other doors, being incapacitated.

How it works:
You crawled to the door and press the button to use - E.

Version:
v 1.0 (05 March 2017) - Plugin release.
v 1.1 (05 March 2017) - Rebuilding check, thanks Ludastar.
Attached Files
File Type: sp Get Plugin or Get Source (IncapRescuer.sp - 992 views - 1.2 KB)
__________________
Sorry for my bad English. Wrote my pet bear.

Last edited by Figa; 03-05-2017 at 06:30.
Figa is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 03-05-2017 , 03:43   Re: [L4D]Incap Rescuer
Reply With Quote #2

Do the button checks first otherwise your doing useless client checks //OnPlayerRunCmd can be called 30times a second or even more depending on Client Cmd rate

if(buttons & ~IN_USE)
return Plugin_Continue;

//Do clientchecks then


Also you don't need a compiled SMX if AM compiler does it fine.
Space is money just saying.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 03-05-2017 at 03:46.
Lux is offline
Figa
Member
Join Date: Apr 2011
Location: Siberia
Old 03-05-2017 , 06:31   Re: [L4D]Incap Rescuer
Reply With Quote #3

Quote:
Originally Posted by Ludastar View Post
Do the button checks first otherwise your doing useless client checks //OnPlayerRunCmd can be called 30times a second or even more depending on Client Cmd rate

if(buttons & ~IN_USE)
return Plugin_Continue;

//Do clientchecks then


Also you don't need a compiled SMX if AM compiler does it fine.
Space is money just saying.
Thanks for the advice!

But,
HTML Code:
if(buttons & ~IN_USE)
return Plugin_Continue;

PrintToChatAll("Test!");
Bad example many spam.
Used this
HTML Code:
if (buttons & IN_USE)
	{
Thanks!
__________________
Sorry for my bad English. Wrote my pet bear.
Figa 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 14:03.


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