06.10.2016, 03:04
The reason why it's not working is because "i" is an integer specifier, so it never returns INVALID_PLAYER_ID, so you'll have to use IsPlayerConnected(targetid), but if you change it to "u", INVALID_PLAYER_ID is returned, so it should work.