Raised This Month: $ Target: $400
 0% 

L4D Ledge Release


Post New Thread Reply   
 
Thread Tools Display Modes
geipoe
BANNED
Join Date: Sep 2016
Location: https://t.me/pump_upp
Old 02-02-2018 , 22:55   Re: L4D Ledge Release
Reply With Quote #61

Quote:
Originally Posted by Lux View Post
Try creating an event to the client
https://wiki.alliedmods.net/Left_4_d...revive_success

and creating your own event and firing it on the client.
https://sm.alliedmods.net/new-api/events/CreateEvent
https://sm.alliedmods.net/new-api/events/FireEvent

My guess is the client is expecting the event to fire which does stuff
Emmmm...It's too difficult for me to do this,i only have the knowledge to read and a little ability to add or delete some code.
By the way,is that possible to do with this: https://forums.alliedmods.net/showthread.php?p=2484256
remove the SI's and CI's body a few seconds later,and remove the dead player's body after he disconnect?I have tried many times but all i get was errors and nothing happened,or the worst thing that coursed the server crash.If it possible ,the dead body remove will be looked more natural.
I have just found the LMC plugins i'am using is yours,thanks for the plugins,it's amazing!I love them very very much!
Forget my poor English.

Last edited by geipoe; 02-02-2018 at 23:06.
geipoe is offline
Send a message via ICQ to geipoe Send a message via AIM to geipoe Send a message via Yahoo to geipoe
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 02-02-2018 , 23:03   Re: L4D Ledge Release
Reply With Quote #62

Quote:
Originally Posted by geipoe View Post
Emmmm...It's too difficult for me to do this,i only have the knowledge to read and a little ability to add or delete some code.
By the way,is that possible to do with this: https://forums.alliedmods.net/showthread.php?p=2484256
remove the SI's and CI's body a few seconds later,and remove the dead player's body after he disconnect?I have tried many times but all i get was errors and nothing happened,or the worst thing that coursed the server crash.If it possible ,the dead body remove will be looked more natural.
Forget my poor English.
You hook game events by doing something like this:

PHP Code:
public void OnPluginStart()
{
    
HookEvent("revive_success"eReviveSuccess);
}

public 
Action eReviveSuccess(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    
//Do stuff here

__________________

Last edited by Psyk0tik; 02-02-2018 at 23:05.
Psyk0tik is offline
BloodyBlade
Senior Member
Join Date: Feb 2018
Old 09-24-2019 , 19:52   Re: L4D Ledge Release
Reply With Quote #63

* Converted plugin source to the latest syntax. Requires SourceMod 1.8 or newer.
Added:
* event from https://forums.alliedmods.net/showpo...5&postcount=62 to disabled ledge sound
* 1 cvar: AdvertChatOrHint - "Advert chat or hint text [1 = Chat | 0 = Hint Text]". Default: 1
You need a test.
Attached Files
File Type: sp Get Plugin or Get Source (ledge_release.sp - 449 views - 6.8 KB)

Last edited by BloodyBlade; 09-24-2019 at 20:12.
BloodyBlade 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:53.


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