Detect ladder!
Started by Arion
12/02/2011 14:46
Page 1 of 1
Arion12/02/2011 14:46
I want to detect a player if it's on a ladder or not.
Let's say we want to make the next plugin:
When a player is on a ladder, to show a message in chat.
BorJomi12/02/2011 15:24(edited 12/02/2011 15:27)
try this with fakemeta in prethink forward
new movetype = pev(id, pev_movetype)
if( movetype == MOVETYPE_FLY)
{
//player on ladder
} doktor12/02/2011 15:34
If you need function :
IsOnLadder(id)
{
return pev(id, pev_movetype) == MOVETYPE_FLY
}Page 1 of 1
Please log in to post replies.