SA-MP Forums Archive
Really important - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Really important (/showthread.php?tid=497970)



Really important - Maime - 01.03.2014

FIXED


Re: Really important - Maime - 01.03.2014

FIXED


Re: Really important - Djole1337 - 01.03.2014

You can not detect F-keys.


Re: Really important - Maime - 01.03.2014

FIXED


Re: Really important - Maime - 01.03.2014

FIXED


Re: Really important - MattTucker - 01.03.2014

Eh I guess you can set a timer on "OnPlayerSpawn" and then check on player key state change of something, when he uses the button "F" kill the timer.


Re: Really important - Golimad - 01.03.2014

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
             KillTimer( yourtimer[playerid] );
        }
       return 1;
}
// If this function already exists, just hook that timer killer in it ..
// Also Use a SetTimerEx ( Not SetTimer ) ( Timer loop should be false )


Re: Really important - Maime - 05.03.2014

FIXED