Anti-Joypad?
#1

Can someone tell me how can i detect joypader , for example: if someone use Joypad controll from Settings , kick him from the server OR show to all "[Anti-Joypad]: X uses Joypad ! " . Can someone tell me how to do this? . I've tested JunkBuster 11 , witch have ANTI-Joypad , but i can't compile JunkBuster.pwn ... compilation error with "Double-O-Files_2" problem. If someone know how to do/solve this please tell me how , like for a begginer. Thank you.
Reply
#2

Here

****** is your friend and also read the rules about bumping.
Reply
#3

do you think you're smart? there is no joypad detector on ****** just a tutorial who don't works .
Reply
#4

use junkbuster
Reply
#5

http://pastebin.com/swjzp8x3

@OP, ****** actually helps.
Reply
#6

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
http://pastebin.com/swjzp8x3

@OP, ****** actually helps.
So this code where cand i put it?
Код:
OnPlayerUpdate(playerid) {
    new keys, ud, lr;
    GetPlayerKeys(playerid, keys, ud, lr);
    if((ud != 128 && ud != 0 && ud != -128) || (lr != 128 && lr != 0 && lr != -128)) 
        // using a joypad
    else 
        // not using a joypad
}
Reply
#7

It's working only if you really enter joystik to you pc... players from consoles can't goto samp-servers, and if you just select in gamememu joystik insted of keyboard + mouse - checking fail.
Reply
#8

@OKStyle , so what i understand is that Joypad control from GameMenu can't be detected?
Reply
#9

I'm try connect this (joy for PC) to PC and check tomorrow:



If you set Joy in gamemenu and move by keyboard - setting not detected.
Reply
#10

ok thank you
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)