help me i want script open gate to key "H"
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Actually my post was wrong. I was typing fast and as a result, I wrote them opposite.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if((newkeys & KEY_CROUCH) && !(oldkeys & KEY_CROUCH))
    {
        // do your code here to open the gate
    }
    return 1;
}
Your method checks for the oldkeys as well as my previous post which was wrong.

Anyways, thanks for replying and I found out my mistake!
but i want key h
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)