OnPlayerKeyStateChange
#1

Hello so, I'm asking for you help guys about OnPlayerKeyStateChange.

I was trying to do a multiple key detection (if he use the 3 key in the same time) - But I don't really see how I can do that, I've tryed this one but it's doesn't work.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(!IsPlayerInAnyVehicle(playerid) && /*idk*/)
    {
        if(Test== 1)
        {
            TestCount[playerid] ++;
            if(TestCount[playerid] >= 3)
            {

            }
        }
    }
    return 1;
}
I visit the wiki sa-mp and I still don't understand how to do it, so if you can explain me how and show me a example code, it's would be nice thanks.
Reply


Messages In This Thread
OnPlayerKeyStateChange - by Matnix - 01.09.2013, 22:42
AW: OnPlayerKeyStateChange - by NaS - 01.09.2013, 22:54
Re: OnPlayerKeyStateChange - by Borg - 01.09.2013, 22:57
Re : OnPlayerKeyStateChange - by Matnix - 01.09.2013, 23:14
Re : OnPlayerKeyStateChange - by Matnix - 02.09.2013, 03:05
Re: OnPlayerKeyStateChange - by Borg - 02.09.2013, 03:26
Re : OnPlayerKeyStateChange - by Matnix - 02.09.2013, 04:22
Re: OnPlayerKeyStateChange - by Borg - 02.09.2013, 04:34
AW: OnPlayerKeyStateChange - by NaS - 02.09.2013, 10:13

Forum Jump:


Users browsing this thread: 5 Guest(s)