The Joy-pad
#1

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
Reply
#2

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.
Reply
#3

I have a feeling that doesn't work.
Reply
#4

I am looking for something that is visual..... to prove.
Reply
#5

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
Reply
#6

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)