so for this if statement $2 is a nick but i dont know how i would have it check to see if nick 2's points are 0-20 i already have a an if statement checking to see if nick 1 has a certain amount of points to do the command.

if ($2 %points isnum 0-20) {

heres the whole code code script

http://pastebin.com/Uw9u3BiA