SA-MP Forums Archive
The Joy-pad - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: The Joy-pad (/showthread.php?tid=340487)



The Joy-pad - BlueZ4LifE - 07.05.2012

how can an admin check if there is a player with the Joy-Pad function?

if i had mistakes fix me.... I dont speak English as a first language


Re: The Joy-pad - 2KY - 07.05.2012

pawn Код:
OnPlayerUpdate(playerid) {
    new keys, ud, lr;
    GetPlayerKeys(playerid, keys, ud, lr);
    if((ud != 128 && ud != 0 && ud != -128) || (lr != 128 && lr != 0 && lr != -128))
        SendClientMessage(playerid, 0x0FFFFFFA, "JOYPADDER!");
    else
        SendClientMessage(playerid, 0x0FFFFFFA, "Not a joypadder.");
}
A simple search returned this.


Re: The Joy-pad - MP2 - 07.05.2012

I have a feeling that doesn't work.


Re: The Joy-pad - BlueZ4LifE - 08.05.2012

I am looking for something that is visual..... to prove.


Re: The Joy-pad - Whitetiger - 08.05.2012

are you the scripter?

if you're just spectating and there is no joypad-detection-code in the script then there is no way, not any visual quirks you can really look at unless you're actually sitting right next to them


Re: The Joy-pad - [NoV]Bigeasy - 11.05.2012

In my experience... While the above code is accurate, depending on your intentions, I don't recommend auto-penalizing people for it as a lot of servers have done since tiger brought it up a while ago.

It has flaws.

A great many folks getting innocently kicked/banned from servers for all the things this code DOESN'T detect.

Just sayin...