OnPlayerKeyStateChange problem
#1

Hello, today I tried to do OnPlayerKeyStateChange. From what I did not give me any errors or warnings, but when I join in my server the OnPlayerKeyStateChange not work.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PlayerKilled[playerid] == 1)
    {
        if(IsKeyJustDown(KEY_SPRINT,newkeys,oldkeys))
        {
            TogglePlayerSpectating(playerid, 0);
            PlayerSpectating[playerid] = 0;
            PlayerKilled[playerid] = 0;
            TextDrawHideForPlayer(playerid, txtSpec);
        }
        if (PRESSED(KEY_LOOK_BEHIND))
        {
            SendClientMessage(playerid, COLOR_BLUE, "You take the point");
            return 1;
        }
        return 1;
}
Reply


Messages In This Thread
OnPlayerKeyStateChange problem - by cs_waller - 09.12.2011, 16:02
Re: OnPlayerKeyStateChange problem - by Sascha - 09.12.2011, 16:15
Re: OnPlayerKeyStateChange problem - by cs_waller - 09.12.2011, 16:22

Forum Jump:


Users browsing this thread: 1 Guest(s)