if(!strcmp("/nearobject",cmdtext)) { if(IsPlayerInRangeOfPoint(playerid, X, Y, Z)) // Object coords , get it ingame... { SetPlayerHealth(playerid, 0.0); } return 1; }