if (strval(inputtext) > GetPlayerCash(playerid) || strval(inputtext)< 1){ GivePlayerCash(playerid,-strval(inputtext)); // Do the stuff you want here. return 1;}