Check if player was on a ladder
I know this may sound stupid, but is it possible to get the info of a player that is ON a ladder, while he touches someone?
Lets say, Player1 is on the ladder, AFK or something. And Player2 jumps to the ladder, but instead of landing on the ladder, he lands on Player1 and dies. Is it possible to get the info of the Player1, that is still on the ladder? I've thought about looking in a no boost plugin, but I don't have the time to look for anything right now, as I am busy with another plugin, which is causing trouble. I went a little bit offtopic, but anyway IF the thing I explained earlier is possible, then please show me an example. I'm off to bed now, 3 am here. Thanks in advance. |
Re: Check if player was on a ladder
If a player is on a ladder, his move type will be fly.
Code:
|
Re: Check if player was on a ladder
I know how to check if the player is on a ladder.
Could I just use a deathevent for checking if Player2 died?, while Player1 is still on the ladder, alive. EDIT: Also, can't I use fakemeta instead, "pev(id, pev_movetype, MOVETYPE_FLY)"? |
Re: Check if player was on a ladder
PHP Code:
|
Re: Check if player was on a ladder
Quote:
Register the DeathMsg event or hook Ham_Player_Killed, and check if the killer is on the ladder. |
Re: Check if player was on a ladder
I figured it out a while ago, but thanks! :)
|
| All times are GMT -4. The time now is 01:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.