Quote:
Originally Posted by whitetigerswt
this would not work, because: when they connect and are not yet spawned GetPlayerKeys does not work at all, it only works when they are spawned, but even if it did work when they had just connected they would have to be holding down the up/down or left/right keys at the exact second that they connect.
you could do:
pawn Code:
new JoyPadders[MAX_PLAYERS]; OnPlayerUpdate(playerid) { if(JoyPadders[playerid] == 0) { new keys, ud, lr; GetPlayerKeys(playerid, keys, ud, lr); if((ud != 128 && ud != 0 && ud != -128) || (lr != 128 && lr != 0 && lr != -128)) JoyPadders[playerid] = 1; else // nothing } }
|
No i tested it and when i connect it says: "Not a joypadder"(because i dont have an joypad connected:P).