Also here is a simple PHP script that can check and give to the user reward.
The code below is just an example to make it works,you must change API_KEY with your server API_KEY also need to change the SERVER_ID with your server id.
$userIP = $_SERVER['REMOTE_ADDR'];
$check_for_reward = file_get_contents('http://l2topzone.com/api.php?API_KEY=e04e15b263448fda50815f9f8f5c7b3b&SERVER_ID=11579&IP='.$userIP);
if($check_for_reward == 'TRUE'){
//insert reward in user account
}else{
// error message
}