[FilterScript] [Simple]Detect Joypad
#1

Hi guys, some of you want to know how to be able to detect a joypad with a simple code. It may be a little inaccurate within the first 30 seconds of your very first spawn but once it's found if it's joypad or not it's fine.

http://pastie.org/private/uvbn3ydj8jkcxtcwdmjy1q

http://pastebin.com/RGtPuDGS

I've included an example in the pastie but here it is anyhow:

pawn Код:
public OnPlayerSpawn(playerid)
{
        if(!JoypadDetect(playerid)) { printf("id %d is NOT using a joypad."); }
        else { printf("id %d IS using a joypad."); }
}
Enjoy.
Reply


Messages In This Thread
[Simple]Detect Joypad - by Kyle - 27.12.2011, 10:56
Re: [Simple]Detect Joypad - by FireCat - 27.12.2011, 10:57
AW: [Simple]Detect Joypad - by BigETI - 27.12.2011, 11:33
Re: AW: [Simple]Detect Joypad - by Mauzen - 27.12.2011, 11:46
Re: [Simple]Detect Joypad - by Geryy - 28.12.2011, 03:38
Re: [Simple]Detect Joypad - by Sriubauskas - 28.12.2011, 04:05
Re: [Simple]Detect Joypad - by Kyle - 28.12.2011, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)